/* wgf-home.css — THE homepage stylesheet (single home; replaced the inline <style> block
   2026-07-02 redesign). Concept: "the trade floor" — a command-bar hero over navy in-game
   data plates (the same plate language as the item tooltips / FRONTEND_STANDARDS §in-game).
   Tokens from _tokens.css; in-game literals (#ffd100 data gold, navy plate) are the
   sanctioned data-surface palette. Locked components (M46 result-row, M17 chips, M53 sb)
   keep their canonical look — this sheet stages them, it doesn't fork them. */

/* Hide the topbar search on the homepage — the hero IS the search. */
body[data-wgf-page="home"] .wgf-shell-search{display:none}

/* ── Atmospheric backdrop (docs/ui-ux/02-components.md sec.16) ──
   A committed first-party dungeon tile behind the whole page so home reads as the
   game world, not a flat colored void (owner review 2026-07-03). The Hall pattern:
   fixed image + a scrim legibility floor (darkness is the lever, blur hides the
   600x300 upscale). Data always sits on opaque plates above this. */
.hm-pagebg{
  position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  background:url("/assets/dungeon-tiles/windrunner-spire.jpg") center 32%/cover no-repeat;
  /* 2026-07-07 sweep: the live blur(3px)+scale compositing wedged the renderer for
     30s+ during interaction (speed law #1). The scrim below carries legibility alone;
     upscale softness is acceptable under a darker scrim. */
  filter:saturate(1.04);
}
.hm-pagebg::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(120% 85% at 50% 6%, rgba(var(--wgf-gold-rgb),.11), transparent 46%),
    linear-gradient(180deg, rgba(12,10,8,.84) 0%, rgba(12,10,8,.76) 30%, rgba(11,9,7,.92) 100%);
}

/* ── the data plate (shared base for every data surface on this page) ──
   Warm game-client plate (owner 2026-07-03): the navy tooltip plate belongs to item
   tooltips ONLY; big page cards wear the stone plate so home never reads blue. */
.hm-plate{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.18)), var(--wgf-panel-1);
  border:1px solid var(--wgf-border-neutral);
  border-radius:6px;
  box-shadow:0 12px 38px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ── HERO: the command bar ── */
.hm-hero{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(28px,5vw,56px) 0 0;
  text-align:center;
}
.hm-eyebrow{
  font-family:var(--font-mono);
  font-size:var(--text-xs);
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--wgf-gold-muted);
  margin:0 0 var(--space-3);
  text-shadow:0 1px 2px rgba(0,0,0,.7);
}
.hm-eyebrow .hm-live-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  background:var(--wgf-up);margin-right:var(--space-2);vertical-align:1px;
  box-shadow:0 0 6px var(--wgf-up);
}
.wgf-shell-page h1.hm-h1{
  font-family:var(--font-display);
  font-size:clamp(30px,5.4vw,58px);
  line-height:1.04;
  letter-spacing:.02em;
  margin:0 0 var(--space-3);
  color:var(--wgf-text);
  /* Tier-3 legibility: crisp dark stroke so display text stays AA over the art. */
  text-shadow:0 1px 2px rgba(0,0,0,.92), 0 3px 14px rgba(0,0,0,.55);
}
.hm-h1 .hm-h1-gold{color:var(--wgf-gold-primary);display:block}
/* Device-aware tagline: one h1, two variants, CSS picks by viewport (owner 2026-07-04).
   680px matches the site's stacked-card mobile breakpoint. */
.hm-h1-device--mobile{display:none}
@media (max-width:680px){
  .hm-h1-device--desktop{display:none}
  .hm-h1-device--mobile{display:inline}
}
.hm-sub{
  max-width:62ch;
  margin:0 auto var(--space-4);
  color:var(--wgf-muted);
  font-size:var(--text-md);
  line-height:1.6;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
}
.hm-sub a{color:var(--wgf-gold-link)}

/* Command search: the in-game AH input field (kit re-cut). The real client
   auctionhouse-ui-inputfield slices (the same art as .wgf-input) paint the frame,
   so the hero search IS the game's search box. Backgrounds are non-blocking. */
.hm-hero .search{max-width:760px;margin:0 auto;text-align:left}
.hm-hero .search__field{position:relative}
.hm-hero .search__input{
  width:100%;
  padding:1rem 1.1rem 1rem 3.1rem;
  font-family:var(--font-ui);
  font-size:1.1rem;
  color:#fff;
  background:
    url(/assets/ui/auctionhouse-ui-inputfield-left.png) left center / auto 100% no-repeat,
    url(/assets/ui/auctionhouse-ui-inputfield-right.png) right center / auto 100% no-repeat,
    url(/assets/ui/auctionhouse-ui-inputfield-middle.png) left center / auto 100% repeat-x,
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)), var(--wgf-bg-2);
  border:0;
  border-radius:4px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
}
.hm-hero .search__input::placeholder{color:var(--wgf-muted)}
.hm-hero .search__input:focus{
  outline:none;
  box-shadow:0 10px 30px rgba(0,0,0,.5), var(--focus-ring);
}
.hm-hero .search__icon{
  position:absolute;left:1.05rem;top:50%;transform:translateY(-50%);
  width:19px;height:19px;color:var(--wgf-gold-muted);pointer-events:none;
}
.hm-hero .cats{margin-top:var(--space-3)}
.hm-hero .cats__label{
  font-family:var(--font-mono);font-size:.66rem;text-transform:uppercase;
  letter-spacing:.14em;color:var(--wgf-muted);margin:0 0 var(--space-2);text-align:center;
}
.hm-hero .cats__row{display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:center}
/* Category selectors = the client RED BUTTON, tab-row idiom (owner directive 0.4 + 0.6:
   filter/category selectors become tab rows; every action button IS the client red button).
   Real 128-redbutton cap/center slices, NOT a CSS gradient fake. Dimmed unselected (restraint
   for a 9-wide row), brightens to full red on hover — the same slice art as .wgf-tab. */
.hm-hero .catchip{
  box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;
  height:32px;padding:0 14px;border:0;border-radius:0;
  background:
    url(/assets/ui/128-redbutton-left-cap.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center.png) left center / auto 100% repeat-x content-box;
  background-color:transparent;
  color:var(--wgf-gold-dim);
  font-family:var(--font-game);font-size:var(--text-sm);font-weight:700;
  font-variant:small-caps;letter-spacing:.03em;line-height:1;
  text-shadow:var(--text-ink-outline);cursor:pointer;
  filter:brightness(.7) saturate(.9);
  transition:filter var(--motion-fast) var(--ease-standard),
             color var(--motion-fast) var(--ease-standard);
}
.hm-hero .catchip:hover{filter:brightness(1) saturate(1);color:var(--wgf-gold-bright)}
.hm-hero .catchip:active{filter:brightness(.85);transform:translateY(1px)}
.hm-hero .catchip:focus-visible{outline:none;box-shadow:var(--focus-ring)}

/* ── SIGNATURE: the gold ticker — a real in-game metal-framed plate (kit chrome,
   the same background stack as .wgf-window: Class Hall stone tile + metal corner
   braces + 2px metal border; NOT the old flat hm-plate CSS fake). ── */
.hm-ticker{
  max-width:980px;
  margin:var(--space-5) auto 0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  overflow:hidden;
  border:2px solid var(--wgf-metal);
  border-radius:4px;
  background:
    url(/assets/ui/ui-frame-metal-cornertopleft-2x.png) top left / 40px auto no-repeat,
    url(/assets/ui/ui-frame-metal-cornertopright-2x.png) top right / 40px auto no-repeat,
    url(/assets/ui/ui-frame-metal-cornerbottomleft-2x.png) bottom left / 26px auto no-repeat,
    url(/assets/ui/ui-frame-metal-cornerbottomright-2x.png) bottom right / 26px auto no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    url(/assets/ui/classhall-stone-tile.png) left top / 256px 256px repeat,
    var(--wgf-plate);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,0.65), var(--shadow-2);
}
.hm-ticker__cell{
  display:flex;flex-direction:column;align-items:center;gap:var(--space-1);
  padding:var(--space-3) var(--space-3);
  text-decoration:none;color:inherit;min-width:0;
}
.hm-ticker__cell+.hm-ticker__cell{border-left:1px solid var(--wgf-metal-soft)}
.hm-ticker__k{
  font-family:var(--font-game);font-size:.72rem;font-variant:small-caps;
  letter-spacing:.06em;color:var(--wgf-gold-muted);white-space:nowrap;
  text-shadow:var(--text-ink-outline);
}
.hm-ticker__v{
  font-family:var(--font-mono);font-variant-numeric:tabular-nums;
  font-size:var(--text-sm);color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
.hm-ticker__v .up{color:var(--wgf-up)}
.hm-ticker__v .down{color:var(--wgf-down)}
.hm-ticker__v .gold{color:#ffd100}
a.hm-ticker__cell:hover .hm-ticker__v{text-decoration:underline}

/* ── shared section scaffolding ── */
.hm-sec{max-width:1180px;margin:var(--space-6) auto 0;padding:0}
.hm-sec__head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:var(--space-3);flex-wrap:wrap;margin:0 0 var(--space-3);
}
.hm-sec__title{
  font-family:var(--font-game-display);
  font-weight:700;
  font-variant:small-caps;
  font-size:var(--text-xl, 1.5rem);
  letter-spacing:.02em;
  color:var(--wgf-gold-primary);margin:0;line-height:1.2;
  /* section heads sit over the art, not on a plate: crisp dark stroke keeps them AA */
  text-shadow:var(--text-ink-outline);
}
.hm-sec__hint{font-size:var(--text-sm);color:var(--wgf-muted);text-shadow:0 1px 2px rgba(0,0,0,.6)}
.hm-see-all{
  display:inline-block;margin-top:var(--space-3);
  font-size:var(--text-sm);font-weight:600;color:var(--wgf-gold-link);text-decoration:none;
}
.hm-see-all:hover{color:var(--wgf-gold-bright);text-decoration:underline}

/* ── MARKET BOARD: movers + deals desk in one in-game window (.wgf-window kit) ── */
.hm-board .hp-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;margin:0 0 var(--space-3)}
.hm-board__cap{
  font-family:var(--font-game);font-size:var(--text-sm);font-variant:small-caps;
  letter-spacing:.03em;color:var(--wgf-gold-muted);text-shadow:var(--text-ink-outline);
}
.hm-board__sub{
  font-family:var(--font-game);font-size:var(--text-sm);font-variant:small-caps;
  letter-spacing:.03em;margin:0 0 var(--space-2);text-shadow:var(--text-ink-outline);
}
.hm-board__sub--up{color:var(--wgf-up)}
.hm-board__sub--dn{color:var(--wgf-down)}
.hm-board__sub--deals{color:var(--wgf-gold-bright)}

/* Region selector: the client RED BUTTON tab row (owner Image #3, 2026-07-04: the flat
   squared web buttons are out). Real 128-redbutton slices, exactly the .wgf-tab
   technique: dimmed at rest, pressed slices + sink when active. */
.hp-rbar{display:flex;gap:.3rem;flex-wrap:wrap}
.hp-rbtn{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  height:26px;padding:0 12px;border:0;border-radius:0;
  background:
    url(/assets/ui/128-redbutton-left-cap.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center.png) left center / auto 100% repeat-x content-box;
  background-color:transparent;
  font-size:var(--text-xs);font-family:var(--font-game);font-weight:700;
  font-variant:small-caps;letter-spacing:.05em;line-height:1;
  color:var(--wgf-gold-dim);cursor:pointer;text-shadow:var(--text-ink-outline);
  filter:brightness(.66) saturate(.9);
  transition:filter var(--motion-fast) var(--ease-standard),
             color var(--motion-fast) var(--ease-standard);
}
.hp-rbtn:hover{filter:brightness(.9) saturate(1);color:var(--wgf-gold-bright)}
.hp-rbtn.is-active{
  background:
    url(/assets/ui/128-redbutton-left-cap-pressed.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap-pressed.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center-pressed.png) left center / auto 100% repeat-x content-box;
  background-color:transparent;
  color:var(--wgf-gold-bright);filter:none;transform:translateY(1px);
}
.hp-rbtn:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.hp-movers{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4)}
.hp-movers .wgf-well,.hm-deals .wgf-well{padding:var(--space-2)}
.hm-deals{margin-top:var(--space-4);padding-top:var(--space-4);border-top:1px solid var(--wgf-metal-soft)}
.hp-loading,.hp-empty{color:var(--wgf-muted);font-size:var(--text-sm);font-style:italic}
.hp-empty a{color:var(--wgf-gold-link)}

/* Movers + deal rows: warm near-black kit plate (owner 2026-07-04: navy is
   CONDEMNED outside item tooltips - "blue feels like slop"). */
.hm-board .result-row{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.25)), var(--wgf-plate);
  border:1px solid var(--wgf-metal-soft);border-radius:0;box-shadow:none;
}
.hm-board .result-row:hover{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.2)), var(--wgf-plate-hi);
  border-color:var(--wgf-gold-dim);
}
/* De-pill the movement delta + deal-score markers: plain tooltip-style text, gold
   Friz where it labels (owner: badges restyle to kit idioms, no rounded chips). */
.hm-board .dsb-delta,
.hm-board .dsb-compact{background:transparent;border:0;border-radius:0;padding:0}
.hm-board .dsb-compact__tier,
.hm-board .dsb-delta__pct{font-family:var(--font-game);font-weight:700}
.hm-board .dsb-compact__tier{font-variant:small-caps;letter-spacing:.04em}

/* ── TOKEN: four region plates (kit stone-tile, 2026-07-07) ── */
.hm-token-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-3)}
.hm-token-tile{
  display:flex;flex-direction:column;gap:var(--space-1);align-items:flex-start;
  padding:var(--space-3) var(--space-4);
  text-decoration:none;color:inherit;
  border:1px solid var(--wgf-metal);
  border-radius:4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    url(/assets/ui/classhall-stone-tile.png) left top / 256px 256px repeat,
    var(--wgf-plate);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,0.65);
}
.hm-token-tile:hover{border-color:var(--wgf-gold-bright)}
.hm-token-tile:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.hm-token-tile .sb__group-head{
  font-family:var(--font-game);font-size:var(--text-sm);font-variant:small-caps;
  letter-spacing:.05em;color:var(--wgf-gold-muted);margin:0;border:0;padding:0;
  text-shadow:var(--text-ink-outline);
}
.hm-token-tile .sb__value{
  font-family:var(--font-mono);font-variant-numeric:tabular-nums;
  font-size:var(--text-lg);color:#ffd100;display:block;
}
.hm-token-note{margin:var(--space-2) 0 0;font-size:var(--text-xs);color:var(--wgf-muted)}
.hm-token-note a{color:var(--wgf-gold-link)}

/* ── DOORS: the six product doors (kit stone-tile, 2026-07-07) ── */
.hm-doors{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3)}
.hm-door{
  display:flex;flex-direction:column;gap:var(--space-1);
  border:1px solid var(--wgf-metal);
  border-radius:4px;
  padding:var(--space-4);
  text-decoration:none;color:inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    url(/assets/ui/classhall-stone-tile.png) left top / 256px 256px repeat,
    var(--wgf-plate);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,0.65);
}
.hm-door:hover{border-color:var(--wgf-gold-bright)}
.hm-door:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.hm-door__name{
  font-family:var(--font-game);font-weight:700;font-size:var(--text-lg);
  font-variant:small-caps;letter-spacing:.02em;color:var(--wgf-gold-primary);
  text-shadow:var(--text-ink-outline);
}
.hm-door__desc{font-size:var(--text-sm);color:var(--wgf-muted);line-height:1.5;margin:0}
.hm-door__go{font-size:var(--text-sm);font-weight:600;color:var(--wgf-gold-link);margin-top:auto}
.hm-door:hover .hm-door__go{color:var(--wgf-gold-bright)}

/* ── honesty line (the one-line disclaimer; the footer carries the full legal text) ── */
.hm-honesty{
  max-width:1180px;margin:var(--space-6) auto 0;
  font-size:var(--text-xs);color:var(--wgf-muted);text-align:center;
}

/* Browse section (category chip results, shown by item-index.js) */
.browse-sec{max-width:1180px;margin:var(--space-4) auto 0}

/* ── responsive ── */
@media(max-width:860px){
  .hm-doors{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .hp-movers{grid-template-columns:1fr}
  .hm-token-grid{grid-template-columns:repeat(2,1fr)}
  .hm-doors{grid-template-columns:1fr}
  .hm-ticker{grid-template-columns:1fr}
  .hm-ticker__cell+.hm-ticker__cell{border-left:0;border-top:1px solid var(--wgf-border-neutral)}
}

/* ── MOONSHOT 2026-07-07: escape-menu command row + profession-book categories +
   live coin badge (owner directives 4, 6, 7; escape-menu look approved 2026-07-06). ── */

/* Directive 4: the verified-data badge is a real client gold coin sprite that flips,
   not a static dot. Transform-only animation = GPU-cheap, no layout work. */
.hm-eyebrow .hm-live-coin{
  display:inline-block;vertical-align:-2px;margin-right:var(--space-2);
  animation:hm-coinflip 5s ease-in-out infinite;
}
@keyframes hm-coinflip{
  0%, 72% { transform:rotateY(0); }
  86%     { transform:rotateY(180deg); }
  100%    { transform:rotateY(360deg); }
}

/* Directive 6: the command row - search stays the primary action, the Game Menu
   window (the site's front door, the escape-menu idiom) anchors the eyeline. */
.hm-cmd{
  max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:minmax(0,1fr) 330px;
  gap:var(--space-4);align-items:start;text-align:left;
}
.hm-cmd__main .search{max-width:none;margin:0}
/* 2026-07-07 sweep: ticker + profession book live INSIDE the command column so the
   left side fills to the menu's height (no dead void under the search). */
.hm-cmd__main .hm-ticker{max-width:none;margin:var(--space-4) 0 0}
.hm-cmd__main .hm-profbook{max-width:none;margin:var(--space-4) 0 0}
.hm-menu .wgf-window__body,
.hm-menu__body{display:flex;flex-direction:column;gap:8px;padding-bottom:14px}
.hm-menu .wgf-btn-red{width:100%;justify-content:center}

/* Directive 7: browse-by-category wears the profession-book parchment page.
   Entries read as book lines (dark ink on parchment, Friz), not floating buttons;
   the parchment pane kit re-tokens text colors to dark-on-light for us. */
.hm-profbook{max-width:820px;margin:var(--space-5) auto 0}
.hm-profbook__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px 20px}
.hm-hero .hm-profbook .catchip{
  background:none;filter:none;height:auto;border:0;border-radius:0;
  padding:7px 8px;cursor:pointer;
  font-family:var(--font-game);font-size:var(--text-md);font-weight:600;
  font-variant:normal;letter-spacing:.01em;line-height:1.25;
  color:inherit;text-shadow:none;text-align:center;
}
.hm-hero .hm-profbook .catchip:hover{filter:none;color:#7a1f05;text-decoration:underline;transform:none}
.hm-hero .hm-profbook .catchip:active{filter:none;transform:none}
.hm-hero .hm-profbook .catchip.is-active{color:#7a1f05;font-weight:700}

@media(max-width:860px){
  .hm-cmd{grid-template-columns:1fr}
  .hm-cmd__side{max-width:380px;margin:0 auto;width:100%}
  .hm-profbook__grid{grid-template-columns:repeat(2,1fr)}
}

/* ── reduced-motion (docs/ui-ux/04-*: every animation/transition must respect
   prefers-reduced-motion; same approach as assets/ah-game-ui.css) ── */
@media (prefers-reduced-motion: reduce) {
  .hm-hero .catchip { transition: none; }
  .hp-rbtn { transition: none; }
  .hm-eyebrow .hm-live-dot { animation: none; }
  .hm-eyebrow .hm-live-coin { animation: none; }
}
