/* Appearance only. Page layout, responsive grids and form behavior belong to RC2. */
:root {
  --bg: #17131d;
  --panel: #241e2c;
  --line: #4a3d51;
  --text: #f3ebe6;
  --muted: #c5b8c9;
  --gold: #f0b9a5;
  --accent: #f0b9a5;
  --heading: #f4e5d8;
  --lavender: #d6c6ef;
  --surface: #221d2a;
  --surface-deep: #1b1622;
  --surface-raised: #2b2334;
  --line-strong: #796680;
  --action: #ebb5a0;
  --action-hover: #ffd0b9;
  --action-ink: #301e27;
  --focus: #e9c8f8;
  --interior: radial-gradient(ellipse 70rem 34rem at 92% 5rem, #432d4699, transparent 86%),
    radial-gradient(ellipse 53rem 34rem at -18% 75%, #2c2c4a8f, transparent 80%),
    #17131d;
  --interior-art: linear-gradient(0deg, #17131d 0%, transparent 52%) right top / 100% 48rem no-repeat,
    linear-gradient(90deg, #17131d 8%, #1c1623f6 34%, #281d2de6 62%, #2f2235b8) right top / 100% 48rem no-repeat,
    url('/assets/frozen-citadel.png') right top / auto 48rem no-repeat;
  --panel-light: linear-gradient(153deg, #2f2536 0, var(--surface) 60%);
}

html body,
html body.player-view,
html body.realm-information-background,
html body.chronicle-page {
  background: var(--interior);
  color: var(--text);
}

html body.player-view::before { background: none; }

html body.player-view,
html body.realm-information-background,
html body.chronicle-page {
  background: radial-gradient(ellipse 57rem 33rem at 0% 85%, #35294545, transparent 86%), var(--interior-art), var(--bg);
}

html body .site-header {
  color: var(--text);
  background: radial-gradient(ellipse at 14% 0, #3b2b40 0, transparent 60%), linear-gradient(#211926, #18131e);
  border-bottom-color: transparent;
  box-shadow: inset 0 -1px #6b536a;
}

html body .site-header .site-brand { color: var(--heading); text-shadow: none; }
html body .site-header .site-sigil { color: var(--action); text-shadow: 0 0 13px #e5a39038; }
html body .site-header .site-navigation { color: var(--muted); border-color: #b2a0c226; }
html body .site-header .site-navigation a:is(:hover, [aria-current]) { color: #fff0e7; }
html body .site-header .site-navigation a[aria-current]::after { background: linear-gradient(90deg, var(--action), #ac849b40); }
html body .site-header a[href='/store']::before { animation: none; background: none; }

html body .site-header .site-account-button {
  color: var(--heading);
  background: #2b2233;
  border-color: #79647d;
  box-shadow: none;
}

html body .site-header .site-account-button:hover { background: #382b41; border-color: #ad91ac; }
html body .site-header .header-avatar { border-color: #9a819c; }
html body .site-header .site-register,
html body .site-header .site-signout { color: var(--gold); }
html body .site-header :is(.site-register, .site-signout):hover { color: var(--action-hover); text-decoration: underline; text-underline-offset: 3px; }

body :is(.page-heading h1, .information-page #page-title, .armory-page h1, .section-heading h2,
  .card h2, .shop-cart h2, .chronicle-card h3, .community-card h3, .connect h2,
  .archive-group-header h2, .armory-search-summary h2, .guild-profile h2, .vote-site h2) {
  color: var(--heading);
  text-shadow: none;
}

html body.realm-section-page .page-heading h1,
html body .information-page #page-title { color: var(--heading); text-shadow: none; }
html body :is(.eyebrow, .community-eyebrow, .hero-caption, .label) { color: var(--gold); }
body :is(.muted, .hint, .policy-copy, .connect-instructions, .armory-search-guide > span, .archive-group-header p) { color: var(--muted); }
body :is(.text-link, .chronicle-read, .chronicle-back, .back-link, .history-back, .chat-guest a, .recipient-armory-row a) {
  color: var(--gold);
  text-decoration-color: #c294aa87;
  text-underline-offset: .23em;
}
body :is(.text-link, .chronicle-read, .chronicle-back, .back-link, .history-back, .chat-guest a, .recipient-armory-row a):hover {
  color: var(--action-hover);
  text-decoration: underline;
}

/* Main and secondary actions share the existing element sizes and a quiet baseline. */
html body :is(.button, .connect-download, .connect-realmlist button, [data-copy-realmlist], .community-donate,
  .auth-action, .player-view .account-actions a:not([href='/admin']),
  .player-view form button:not(.password-toggle):not([role='checkbox']), .player-view .cards button,
  .vote-view .vote-button, .vote-view .vote-actions button, .vote-view .vote-check,
  .shop-product > button:not(.shop-details-link), .shop-checkout, .shop-quantity button,
  .armory-search button, .pagination button:not([aria-current]):not(.active), #cookie-form button,
  .chat-compose button[type='submit']) {
  --control-bg: #302638;
  --refinement-button-hover: #43334a;
  --control-ink: var(--text);
  --control-edge: #79637c;
  --control-floor: #84617a;
  background: var(--control-bg) !important;
  color: var(--control-ink) !important;
  border-color: var(--control-edge) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 -1px var(--control-floor) !important;
  text-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

html body :is(.button.primary, .auth-action:not(.secondary), .armory-search button,
  .shop-checkout, .vote-button, .chat-compose button[type='submit'],
  #login-form button[type='submit'], #register-form button[type='submit']) {
  --control-bg: var(--action);
  --refinement-button-hover: var(--action-hover);
  --control-ink: var(--action-ink);
  --control-edge: #dca58e;
  --control-floor: #9e675c;
}

html body :is(.button, .connect-download, .connect-realmlist button, [data-copy-realmlist], .community-donate,
  .auth-action, .player-view .account-actions a:not([href='/admin']),
  .player-view form button:not(.password-toggle):not([role='checkbox']), .player-view .cards button,
  .vote-view .vote-button, .vote-view .vote-actions button, .vote-view .vote-check,
  .shop-product > button:not(.shop-details-link), .shop-checkout, .shop-quantity button,
  .armory-search button, .pagination button:not([aria-current]):not(.active), #cookie-form button,
  .chat-compose button[type='submit']):not(:disabled):not([aria-disabled=true]):hover {
  background: var(--refinement-button-hover) !important;
  color: var(--control-ink) !important;
  border-color: #c1a1b9 !important;
  box-shadow: inset 0 -1px var(--control-floor) !important;
}

html body :is(.button, .auth-action, .shop-checkout, .shop-product > button, .vote-button,
  .connect-download, .armory-search button, .player-view form button[type='submit']):not(:disabled):not([aria-disabled=true]):active {
  box-shadow: inset 0 1px 3px #1f102e58 !important;
}
html body :is(.shop-checkout, .vote-button, .player-view .cards button):is(:disabled, [aria-disabled=true]) {
  opacity: .58;
  filter: saturate(.38);
  cursor: not-allowed;
}

html body :is(a, button, input, select, textarea, summary):focus-visible { outline-color: var(--focus); }
html body :is(a, button, input, select, textarea, summary):focus-visible:not(:disabled) { outline: 2px solid var(--focus); }
html body :is(.site-header a, .site-header button, .archive-entry, .shop-details-link):focus-visible { outline-offset: 3px; }

html body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
  background: #181320;
  border-color: #76607a;
  color: var(--text);
  box-shadow: none;
}
html body :is(input, textarea)::placeholder { color: #ae9fb7; opacity: 1; }
html body :is(input, select, textarea):hover:not(:disabled) { border-color: #a184a2; }
html body :is(input, select, textarea):focus { border-color: #d19bb6; }
html body :is(input, select, textarea)[aria-invalid=true] { border-color: #f093a1; }
html body :is(input[type='checkbox'], input[type='radio'], progress, meter) { accent-color: var(--action); }

/* The original hero, status strip, chat and news stay in their existing slots. */
html body #home .hero {
  background: linear-gradient(90deg, #1b1423ed 0%, #2117289c 37%, #22162822 76%),
    linear-gradient(0deg, #201725 0%, transparent 36%), url('/limiar/pass.jpg') 62% 46% / cover no-repeat;
  border-bottom-color: #795d7399;
}
html body #home .hero h1 { color: #fff0e4; text-shadow: 0 3px 18px #100b16bd; }
html body #home .hero h1 em { color: #eed6ed; }
html body #home .hero h1::after { background: linear-gradient(90deg, var(--action), transparent); }
html body #home .hero .intro { color: #ede0ec; }
html body #home .hero-caption { color: #d9c5dc; }
html body #home .spark { background: var(--action); box-shadow: 0 0 9px #f8b49b6b; }
html body #home .snow { opacity: .36; }

html body :is(.realm-strip, .hero-realmlist, .connect, .roadmap, .content-grid > #community.community) {
  background: var(--panel-light);
  border-color: var(--line-strong);
  box-shadow: none;
}
html body :is(.realm-strip .realm-connection, .discord-placeholder, .roadmap > .text-link) { border-color: var(--line); }
html body :is(.realm-strip strong:not(.status), .hero-realmlist code, [data-realmlist]) { color: var(--heading); }
html body .realm-strip .label { color: var(--muted); }

html body #realm-chat { --chat-line: var(--line); --chat-gold: var(--gold); color: var(--text); background: var(--surface); border-color: #9e819d91; box-shadow: 0 14px 36px #110b1880; }
html body .chat-heading { background: linear-gradient(90deg, #302337fa, #2c2134ee 65%, #251b30ad); border-color: var(--line-strong); }
html body .chat-heading::after { background: linear-gradient(90deg, var(--action), #956983, transparent); }
html body .chat-heading h2 { color: var(--heading); }
html body .chat-sigil { color: var(--action); border-color: #ad829b; box-shadow: none; }
html body :is(.chat-feed, .chat-compose, .chat-guest) { background: var(--surface-deep); border-color: var(--line); }
html body :is(.chat-feed li, .chat-feed li > img, .chat-compose img) { border-color: var(--line); }
html body .chat-feed .chat-empty { color: var(--muted); }

html body .posts .home-chronicles article.chronicle-card,
html body .chronicle-list .chronicle-card,
html body .chronicle-detail { background: var(--surface); border-color: #826b866b; box-shadow: none; }
html body :is(.home-chronicles, .chronicle-list, .chronicle-detail) .chronicle-art::after {
  background: linear-gradient(88deg, #211827f7 4%, #261d2de7 37%, #2d20365c 83%, #2f223340), linear-gradient(0deg, #1b1424a3, transparent 72%);
}
html body .chronicle-art { overflow: hidden; }
html body .home-chronicles .chronicle-art img { opacity: .95; }
html body .chronicle-card h3 { color: var(--heading); }
html body .chronicle-card p,
html body .chronicle-body p { color: var(--muted); }
html body :is(.chronicle-meta, .home-chronicles .chronicle-meta time) { color: #cfc0cf; }
html body .chronicle-meta > span { color: var(--gold); background: #e1a9a119; border-color: #c093a059; }
html body .chronicle-body { background: var(--surface); }
html body .posts .home-chronicles article.chronicle-card:focus-within { outline-color: var(--focus); }
@media (hover: hover) {
  html body .posts .home-chronicles article.chronicle-card:hover,
  html body .chronicle-list .chronicle-card:hover { border-color: #bf91a9b8; box-shadow: 0 9px 22px #0f0a17ad; }
  html body .chronicle-list .chronicle-art img { transition: transform .35s ease; }
  html body .chronicle-list .chronicle-card:hover .chronicle-art img { transform: scale(1.035); }
}

/* Refinish panels in place, including the existing Store grid and sticky cart. */
html body :is(.card, .banner, .connect-realmlist, .archive-group, .guild-roster,
  .history-panel, .advanced-panel, .download-panel, .shop-detail-dialog, .cookie-preferences, .cookie-banner) {
  background: var(--panel-light);
  border-color: var(--line);
  box-shadow: none;
}
html body :is(.account-dashboard .account-frame, .vote-view .vote-site, .vote-view .vote-welcome,
  .character-profile .equipment-layout, .shop-cart, .shop-product) {
  background: var(--panel-light);
  border-color: #5d4b64;
  box-shadow: none;
}
html body :is(.account-dashboard .account-frame, .shop-cart, .character-profile .equipment-layout) {
  border-top-color: #a37b96;
  background: linear-gradient(145deg, #34283c, #251d2d 64%);
}
html body .character-profile .equipment-layout { border-style: solid; border-color: #66506d; }
html body .shop-product:hover { border-color: #997993; box-shadow: 0 6px 16px #100a1a54; transform: none; }
html body :is(.shop-product img, .shop-cart-item-icon, .equipment-button, .account-avatar,
  .account-dashboard .character-roster .character-portraits > img, .archive-item-icon) {
  background-color: var(--surface-deep);
  border-color: #8a718d;
  box-shadow: none;
}
html body :is(.shop-product p, .shop-cart small, .shop-cart-line > span, .shop-pack-quantity > span,
  .shop-delivery-label, .wallet-label, .character-roster .character-identity > small) { color: var(--muted); }
html body :is(.shop-product > small, .shop-pack-quantity > strong, .character-roster .character-level) { color: var(--heading); }
html body :is(.shop-cart-balance, .shop-product > .shop-pack-quantity, .shop-cart-description > .shop-pack-quantity,
  .page-heading > .wallet, .shop-character-picker, .character-roster .character,
  .shop-game-details .item-tooltip, .armory-item-page .item-tooltip, .equipment-slot > .item-tooltip) {
  background: var(--surface-deep);
  border-color: var(--line-strong);
  box-shadow: none;
}
html body :is(.shop-cart-line, .shop-total, .shop-character-picker[open] > summary, .account-frame > .account-actions) { border-color: var(--line); }
html body :is(.shop-character-picker > summary, .shop-product button.shop-details-link) { color: var(--lavender); }
html body :is(.shop-character-picker[open] > summary, .shop-character-picker > summary:hover,
  .account-dashboard .character-roster .character:hover) { background: var(--surface-raised); }

html body :is(.shop-filters button, .shop-currency-filter > button, .shop-recipient, .section-tabs button, .archive-filters button) {
  background: #211a2a;
  border-color: #6a5670;
  color: var(--muted);
  box-shadow: none;
}
html body :is(.shop-filters button, .shop-currency-filter > button, .shop-recipient, .section-tabs button, .archive-filters button):hover:not(:disabled) {
  background: #352a40;
  border-color: #9d809e;
  color: var(--text);
}
html body :is(.shop-filters .selected, .shop-currency-filter [aria-pressed=true], .shop-recipient[aria-pressed=true],
  .section-tabs .active, .archive-filters [aria-pressed=true], .pagination button[aria-current]) {
  background: #493247;
  color: #ffe5da;
  border-color: #af819f;
  box-shadow: inset 0 -2px #ce9aab;
}
html body .shop-product .shop-currency-options { background: var(--surface-deep); border-color: #68536e; }
html body .shop-product .shop-currency-options > button { border-color: #68536e; }
html body .shop-product .shop-currency-options > button[aria-pressed=true] { background: #3f314e; color: var(--text); box-shadow: inset 0 -2px #bd9bbe; }
html body .shop-product .shop-currency-options > button:hover:not([aria-pressed=true]) { background: #33293e; }

html body :is(.archive-group-header, .guild-roster-header, .character-profile .armory-stats) { background: #31253a; border-color: var(--line); }
html body :is(.archive-entry, .guild-member, .character-profile .armory-stats > div) { border-bottom-color: #8a718c37; }
html body :is(.archive-entry, .guild-member):is(:hover, :focus-visible) { background: #42314a; border-color: #a87e9e; }
html body :is(.archive-count, .armory-search-examples > a, .guild-role-badge) { background: #2f253a; border-color: #6a5772; color: var(--lavender); }
html body :is(.archive-arrow, .armory-search-summary > span, .character-level) { color: var(--lavender); }
html body .archive-welcome { border-color: var(--line); }
html body .archive-welcome .archive-symbol { background: var(--panel-light); border-color: #6a5772; }

html body :is(.vote-view .vote-guide, .vote-view .vote-reward, .donation-history-disclosure, .account-history-links, .connect-version) {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

html body #home-community-slot .community-card,
html body #community-widgets .community-carousel .community-card {
  background: var(--panel-light);
  border-color: #705b77;
  box-shadow: none;
}
html body #home-community-slot .community-card::before,
html body #community-widgets .community-carousel .community-card::before { animation: none; background: none; }
html body #home-community-slot .community-card:hover { transform: none; border-color: #927593; }
html body :is(.community-card h3, .community-name, .community-score, .rank-number) { color: var(--heading); }
html body :is(.community-subtitle, .community-empty, .community-preview-label) { color: var(--muted); }
html body .supporter-ranking .podium-row,
html body .community-list > li { background: #1a1522; border-color: #503d57; }
html body :is(.supporter-ranking, .pvp-list) .podium-row:first-child { background: #37273e; border-color: #906e89; }

html body footer.site-footer { background: #17121d; border-color: #544258; color: var(--muted); }
html body .site-footer .footer-bottom { border-color: #47384d; }
html body .site-footer :is(.footer-links a, .blizzard-notice, .cms-credit) { color: #bcadbf; }
html body .site-footer :is(.footer-links a:hover, .cms-credit strong) { color: var(--gold); }

@media (max-width: 640px) {
  html body #home .hero {
    background-image: linear-gradient(90deg, #1b1423ee 0%, #211728a6 62%, #22162836),
      linear-gradient(0deg, #201725 0%, transparent 36%), url('/limiar/pass.jpg');
    background-position: 63% center;
  }
  html body #home .hero-content { background: none; }
}

@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { transition-duration: 0s !important; }
  html body .chronicle-list .chronicle-card:hover .chronicle-art img { transform: none; }
}
