/* Ring Home v3 + Characters v2 (Jenny handoff 22 Nov). Loaded after theme-v2.css so floors win.
   Phone roller at max-width 599.98px. Feature-freeze exception for the next closed-test build. */

@font-face { font-family: 'HV Roboto'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../fonts/roboto-vf.ttf') format('truetype'); }

/* ---------- shell: these routes own their header.
   Desk Home: no sidebar, ring uses the full width.
   Desk Characters (and every other desk screen): the slim icon rail (--u-side-w, 72px). ---------- */
html.hv2 body[data-u-route="home"] :is(.u-top, .u-abar),
html.hv2 body[data-u-route="characters"] :is(.u-top, .u-abar) { display: none !important; }

html.hv2 body[data-u-route="home"].u-notabs .u-tabbar { display: none !important; }

html.hv2 body.u-desk[data-u-route="home"] { --u-side-w: 0px; }
html.hv2 body.u-desk[data-u-route="home"] .u-shell {
  display: block !important;
  min-height: 100vh;
}
html.hv2 body.u-desk[data-u-route="home"] .u-side { display: none !important; }

html.hv2 body.u-desk[data-u-route="characters"] .u-shell {
  display: grid !important;
  grid-template-columns: var(--u-side-w, 72px) minmax(0, 1fr) !important;
  min-height: 100vh;
}
html.hv2 body.u-desk[data-u-route="characters"] .u-side { display: flex !important; }

html.hv2 body.u-phone[data-u-route="home"] .u-side,
html.hv2 body.u-phone[data-u-route="characters"] .u-side { display: none !important; }

html.hv2 body.u-phone[data-u-route="home"] .u-shell,
html.hv2 body.u-phone[data-u-route="characters"] .u-shell { display: block !important; min-height: 0 !important; }

html.hv2 body[data-u-route="home"] .u-main,
html.hv2 body[data-u-route="characters"] .u-main { overflow: hidden; min-height: 0; }

html.hv2 body[data-u-route="home"] #content,
html.hv2 body[data-u-route="characters"] #content {
  position: relative;
  padding: 0 !important; margin: 0 !important; max-width: none !important;
  width: 100% !important;
  height: 100vh !important; min-height: 100vh !important;
  background: none !important;
}
html.hv2 body[data-u-route="characters"].u-phone #content {
  height: calc(100vh - var(--u-tabbar-h, 84px)) !important;
  min-height: calc(100vh - var(--u-tabbar-h, 84px)) !important;
}


/* ---------- floors (beat theme-v2's transparent !important on .hv-home) ---------- */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring,
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars {
  background:
    radial-gradient(70% 62% at 50% 48%, rgba(0,0,0,0) 40%, rgba(0,0,0,.38) 78%, rgba(0,0,0,.72) 100%),
    linear-gradient(rgba(6,6,6,.08), rgba(6,6,6,.08)),
    url("../img/theme/black-leather-768.webp") 0 0 / 768px 768px, #111010 !important;
  color: #f4e8cc;
  --ink: #f4e8cc; --muted: #c4ae86; --gold: #e8c06a; --title: #e8c06a; --lab: #f6d78a; --cap: #f1cf7c;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars {
  background:
    radial-gradient(70% 62% at 50% 48%, rgba(255,255,255,0) 42%, rgba(120,80,20,.16) 78%, rgba(90,55,10,.30) 100%),
    url("../img/theme/parchment-768.webp") 0 0 / 768px 768px, #ecdcae !important;
  color: #3a2410;
  --ink: #3a2410; --muted: #6b5232; --gold: #7a4f12; --title: #4a2c0c; --lab: #3a2410; --cap: #8d1f12;
}
html.hv2 body[data-u-route="home"],
html.hv2 body[data-u-route="characters"] { background: #111010; }
html.hv2[data-look="light"] body[data-u-route="home"],
html.hv2[data-look="light"] body[data-u-route="characters"] { background: #ecdcae; }

.hv-home.hv-ring,
.hv-home.hv-chars {
  --gilt: linear-gradient(160deg, #fbe6a6 0%, #d6a84c 15%, #7c5620 36%, #f1cf7c 54%, #a87b2e 74%, #5c3c10 100%);
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  overflow: hidden !important;
  border-radius: 0 !important;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- shared header ---------- */
.hv-home.hv-ring .hv-head,
.hv-home.hv-chars .hv-head {
  position: absolute; left: 0; right: 0; top: 8px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 16px; z-index: 4; flex: none;
}
.hv-home.hv-chars .hv-head { padding-left: 12px; justify-content: flex-start; }
.hv-home.hv-ring .hv-mark,
.hv-home.hv-chars .hv-mark {
  display: flex; align-items: center; justify-content: flex-start; flex: none;
}
.hv-home.hv-ring .hv-mark { width: 44px; height: 44px; }
.hv-home.hv-chars .hv-mark { width: 28px; height: 44px; }
.hv-home.hv-ring .hv-mark img,
.hv-home.hv-chars .hv-mark img { width: 22px; height: 27px; object-fit: contain; display: block; }
html[data-look="light"] .hv-home.hv-ring .hv-mark img,
html[data-look="light"] .hv-home.hv-chars .hv-mark img {
  filter: sepia(1) saturate(2) hue-rotate(-12deg) brightness(.85);
}
.hv-home.hv-ring .hv-acts { display: flex; gap: 4px; align-items: center; }
.hv-home.hv-ring .hv-join,
.hv-home.hv-ring .hv-sign,
.hv-home.hv-ring .hv-mb {
  height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 13px/1 var(--serif), 'HV Gelasio', Gelasio, Georgia, serif;
  position: relative; border-radius: 22px; border: 1.5px solid transparent; padding: 0 12px;
  background: none; box-shadow: none;
}
.hv-home.hv-ring .hv-join {
  color: #fbe9cf; border: 1.5px solid #2a0703;
  background: radial-gradient(130% 80% at 50% -10%, rgba(255,190,150,.30), rgba(255,190,150,0) 55%),
              linear-gradient(180deg, #962e1d, #6a1a0e 55%, #470e07);
  box-shadow: inset 0 1px 0 rgba(255,200,170,.35), inset 0 -2px 4px rgba(20,3,0,.55),
              0 0 0 1.5px rgba(214,168,76,.72), 0 3px 7px -1px rgba(0,0,0,.6);
}
.hv-home.hv-ring .hv-join::after {
  content: ""; position: absolute; inset: 4px; border-radius: 18px; border: 1px dashed rgba(251,226,162,.48);
}
html[data-look="dark"] .hv-home.hv-ring .hv-sign,
html[data-look="dark"] .hv-home.hv-ring .hv-mb {
  background: linear-gradient(180deg, #33302b, #1c1a17 60%, #100f0d) padding-box, var(--gilt) border-box;
  color: var(--gold, #e8c06a);
  box-shadow: inset 0 1px 0 rgba(255,225,160,.26), inset 0 -2px 0 rgba(0,0,0,.5), 0 3px 7px -2px rgba(0,0,0,.7);
}
html[data-look="light"] .hv-home.hv-ring .hv-sign,
html[data-look="light"] .hv-home.hv-ring .hv-mb {
  background: linear-gradient(180deg, #fff8e4, #f0e0b4) padding-box, var(--gilt) border-box;
  color: #5a3a0e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(120,80,20,.25), 0 3px 7px -2px rgba(90,60,10,.45);
}
.hv-home.hv-ring .hv-mb { width: 44px; padding: 0; border-radius: 50%; color: inherit; }
.hv-home.hv-ring .hv-mb .hv-i { width: 20px; height: 20px; }

/* ---------- ring cluster ---------- */
.hv-ringhome { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hv-ringhome .hv-orbit { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 1; }
html[data-look="dark"] .hv-ringhome .hv-orbit path { stroke: #e8c06a; stroke-width: 1.15; fill: none; opacity: .32; }
html[data-look="light"] .hv-ringhome .hv-orbit path { stroke: #8a5a18; stroke-width: 1.15; fill: none; opacity: .28; }
.hv-ringhome .hv-logo {
  position: absolute; left: 50%; display: flex; flex-direction: column; align-items: center;
  z-index: 2; pointer-events: none;
}
.hv-ringhome .hv-halo {
  position: absolute; left: 50%; top: 42%; width: var(--halo, 280px); height: var(--halo, 280px);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 0;
}
html[data-look="dark"] .hv-ringhome .hv-halo {
  background: radial-gradient(circle at 50% 52%, rgba(255,214,130,.40) 0%, rgba(255,176,80,.20) 26%, rgba(255,150,55,.09) 48%, rgba(255,130,45,.03) 64%, rgba(255,120,40,0) 80%);
  mix-blend-mode: screen;
}
html[data-look="light"] .hv-ringhome .hv-halo {
  background: radial-gradient(circle at 50% 52%, rgba(255,232,170,.80) 0%, rgba(255,200,110,.36) 30%, rgba(230,160,70,.12) 52%, rgba(230,150,60,0) 76%);
  mix-blend-mode: soft-light;
}
.hv-ringhome .hv-logo img { display: block; object-fit: contain; position: relative; z-index: 1; }
.hv-ringhome .hv-word {
  font: 700 var(--word, 42px)/1 var(--serif), 'HV Gelasio', Gelasio, Georgia, serif;
  color: var(--title, #e8c06a); letter-spacing: .01em; margin-top: 6px; position: relative; z-index: 1;
}
html[data-look="dark"] .hv-ringhome .hv-word {
  text-shadow: 0 0 22px rgba(255,180,70,.40), 0 1px 2px rgba(0,0,0,.65);
}
.hv-ringhome .hv-call {
  position: absolute; width: 124px; height: var(--coin, 64px); z-index: 3; pointer-events: auto;
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
}
.hv-ringhome .hv-coin {
  width: var(--coin, 64px); height: var(--coin, 64px); border-radius: 50%; padding: 3px;
  background: var(--gilt);
  box-shadow: 0 8px 14px -3px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.5);
  position: absolute; left: 50%; top: 0; margin-left: calc(var(--coin, 64px) / -2);
}
.hv-ringhome .hv-coin .hv-face {
  width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 26%, #fdeaa8, #dbab49 52%, #9a6c22 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1.5px rgba(110,70,10,.5), inset 0 -7px 12px rgba(110,60,0,.35);
}
.hv-ringhome .hv-coin svg {
  width: var(--icon, 30px); height: var(--icon, 30px);
  stroke: #2a1a06; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255,240,190,.55));
}
.hv-ringhome .hv-clab {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 0); margin-top: 8px;
  font: 700 var(--lab, 16px)/1.15 var(--serif), 'HV Gelasio', Gelasio, Georgia, serif;
  color: var(--lab, #f6d78a); text-align: center; white-space: nowrap;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[data-look="light"] .hv-ringhome .hv-clab { color: var(--lab, #3a2410); }

/* Home notices sit under the header, above the ring */
.hv-home.hv-ring > .hv-notes,
.hv-home.hv-chars > .hv-notes { position: absolute; left: 12px; right: 12px; top: 64px; z-index: 5; }

/* ---------- Characters v2 carousel ---------- */
.hv-home.hv-chars { display: block; }
.hv-home.hv-chars .hv-car {
  position: absolute; left: 0; right: 0; top: 68px; bottom: 0;
  display: block; justify-content: unset;
  overflow: hidden; overflow: clip;
  touch-action: pan-y pinch-zoom;
  container-type: size; container-name: hvcar;
}
.hv-home.hv-chars .hv-stage { position: absolute; left: 0; right: 0; top: var(--stage-top, 0px); height: var(--stage-h, 540px); }
.hv-home.hv-chars .hv-track {
  position: absolute; left: 0; right: auto; top: var(--track-top, 30px);
  height: var(--card-h, 470px);
  display: flex; column-gap: var(--card-gap, 20px); align-items: stretch;
  width: max-content;
}
/* Fixed v2 card chrome (300×470, or the 933 uniform scale via --card-w/--card-h). */
.hv-home.hv-chars .hv-card {
  --aw: auto; --cw: var(--card-w, 300px); --d: 0;
  width: var(--card-w, 300px); height: var(--card-h, 470px);
  padding: 0; border-radius: var(--card-r, 20px); border: 0;
  background: linear-gradient(180deg, #26221b, #14120f);
  box-shadow: 0 0 0 2px #0a0907, 0 0 0 3.5px #c9a04a, 0 18px 34px -6px rgba(0,0,0,.85);
  transform: none;
  overflow: hidden;
  flex: none;
  position: relative;
}
html[data-look="light"] .hv-home.hv-chars .hv-card {
  background: url("../img/theme/vellum-384.webp") 0 0 / 384px, #f6ecd2;
  box-shadow: 0 0 0 2px #fff5d6, 0 0 0 3.5px #b98d3e, 0 16px 30px -8px rgba(70,40,5,.55);
}
.hv-home.hv-chars .hv-card::before { display: none; }
.hv-home.hv-chars .hv-card .hv-por {
  position: absolute; left: var(--win-in, 14px); right: var(--win-in, 14px); top: var(--win-in, 14px);
  width: auto; height: var(--win-h, 362px);
  aspect-ratio: auto;
  border-radius: var(--arch-r, 136px) var(--arch-r, 136px) 10px 10px;
  padding: 2.5px; background: var(--gilt);
  box-shadow: none;
  overflow: hidden;
}
.hv-home.hv-chars .hv-card .hv-pin {
  position: absolute; inset: 2.5px;
  border-radius: calc(var(--arch-r, 136px) - 2px) calc(var(--arch-r, 136px) - 2px) 8px 8px;
  overflow: hidden;
  background: radial-gradient(70% 55% at 50% 38%, rgba(232,192,106,.12), transparent 72%), #14120f;
}
.hv-home.hv-chars .hv-card .hv-pin::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 22px rgba(0,0,0,.55); pointer-events: none;
}
.hv-home.hv-chars .hv-card .hv-nm {
  position: absolute; left: 0; right: 0; top: var(--nm-top, 388px);
  display: block; text-align: center; margin: 0;
  font-family: Gelasio, Georgia, serif;
  font-weight: 700;
  font-size: var(--name-s, 25px);
  line-height: 1.1;
  color: var(--title, #e8c06a);
  letter-spacing: .01em;
  white-space: nowrap;
}
.hv-home.hv-chars .hv-card .hv-nm .hv-cap {
  font-size: 1.32em; color: var(--cap, #f1cf7c); line-height: 1;
  display: inline; vertical-align: -0.05em;
}
html[data-look="dark"] .hv-home.hv-chars .hv-card .hv-nm { text-shadow: 0 1px 2px #000; }
.hv-home.hv-chars .hv-card .hv-cl {
  position: absolute; left: 0; right: 0; top: calc(var(--nm-top, 388px) + 38px);
  display: block; margin: 0; text-align: center;
  font-family: Roboto, 'HV Roboto', sans-serif;
  font-weight: 400;
  font-size: var(--line-s, 14px);
  line-height: 1.2;
  color: var(--muted, #c4ae86);
  filter: none;
  white-space: nowrap;
}
.hv-home.hv-chars .hv-card .hv-cl::before {
  content: ""; display: block; width: var(--rule-w, 128px); height: 1px; margin: 0 auto 5px;
  background: linear-gradient(90deg, transparent, var(--gold, #e8c06a), transparent); opacity: .65;
}
.hv-home.hv-chars .hv-card .hv-por { filter: none; }
.hv-home.hv-chars .hv-card:not(.hv-on) { filter: saturate(.75) brightness(.78); }
html[data-look="light"] .hv-home.hv-chars .hv-card:not(.hv-on) { filter: saturate(.8) brightness(.9); }

/* New character: see-through arch, gold + medallion */
.hv-home.hv-chars .hv-card.hv-new {
  background: none !important; box-shadow: none !important; overflow: visible;
}
.hv-home.hv-chars .hv-card.hv-new .hv-por,
.hv-home.hv-chars .hv-card.hv-new .hv-ghost {
  position: absolute; left: var(--win-in, 14px); right: var(--win-in, 14px); top: var(--win-in, 14px);
  height: var(--win-h, 362px); width: auto;
  border-radius: var(--arch-r, 136px) var(--arch-r, 136px) 10px 10px;
  padding: 0; background: none;
  border: 1.5px solid #d7ae58;
}
/* Spread veil only on the focused New character card, so neighbours peek around the empty arch
   without every card painting an 800px shadow. */
.hv-home.hv-chars .hv-card.hv-new.hv-on .hv-por,
.hv-home.hv-chars .hv-card.hv-new.hv-on .hv-ghost {
  box-shadow: 0 0 0 800px rgba(18,16,13,.62), inset 0 0 0 1px rgba(0,0,0,.4), 0 0 10px rgba(255,190,90,.25);
}
html[data-look="light"] .hv-home.hv-chars .hv-card.hv-new .hv-por,
html[data-look="light"] .hv-home.hv-chars .hv-card.hv-new .hv-ghost {
  border-color: #b98d3e;
}
html[data-look="light"] .hv-home.hv-chars .hv-card.hv-new.hv-on .hv-por,
html[data-look="light"] .hv-home.hv-chars .hv-card.hv-new.hv-on .hv-ghost {
  box-shadow: 0 0 0 800px rgba(248,238,212,.93), 0 3px 6px rgba(90,55,10,.35);
}
.hv-home.hv-chars .hv-card.hv-new .hv-pl {
  position: absolute; left: 50%; top: 50%; width: var(--plus, 84px); height: var(--plus, 84px);
  margin: calc(var(--plus, 84px) / -2) 0 0 calc(var(--plus, 84px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fdeaa6, #d9a846 55%, #8a5f1c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1.5px rgba(110,70,10,.55), 0 6px 12px -2px rgba(0,0,0,.6);
}
.hv-home.hv-chars .hv-card.hv-new .hv-pl svg { display: none; }
.hv-home.hv-chars .hv-card.hv-new .hv-pl::before,
.hv-home.hv-chars .hv-card.hv-new .hv-pl::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: #1a1208; border-radius: 1px;
}
.hv-home.hv-chars .hv-card.hv-new .hv-pl::before { width: 30px; height: 2.6px; margin: -1.3px 0 0 -15px; }
.hv-home.hv-chars .hv-card.hv-new .hv-pl::after { width: 2.6px; height: 30px; margin: -15px 0 0 -1.3px; }

.hv-home.hv-chars .hv-nav { display: contents; }
.hv-home.hv-chars .hv-arw { display: none; }
.hv-home.hv-chars .hv-dots {
  position: absolute; left: 0; right: 0; top: var(--dots-y, 520px);
  display: flex; justify-content: center; align-items: center; gap: 9px;
  width: auto; margin: 0; z-index: 6; pointer-events: auto;
}
.hv-home.hv-chars .hv-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(200,170,110,.35); --a: 0;
}
html[data-look="light"] .hv-home.hv-chars .hv-dots i { background: rgba(120,85,30,.28); }
.hv-home.hv-chars .hv-dots i.hv-on,
.hv-home.hv-chars .hv-dots i[style*="--a: 1"] {
  width: 26px; border-radius: 4px; background: var(--gold, #e8c06a);
}
.hv-home.hv-chars .hv-dots i.hv-plus { width: 8px; background: none; position: relative; margin-left: 1px; }
.hv-home.hv-chars .hv-dots i.hv-plus::before,
.hv-home.hv-chars .hv-dots i.hv-plus::after {
  content: ""; position: absolute; background: var(--gold, #e8c06a);
}
.hv-home.hv-chars .hv-dots i.hv-plus::before { left: 3px; top: 0; width: 2px; height: 8px; }
.hv-home.hv-chars .hv-dots i.hv-plus::after { left: 0; top: 3px; width: 8px; height: 2px; }

/* Coins live on ring Home only. Characters uses the standard PNAV / desk sidebar. */
.hv-home.hv-chars .hv-doors,
.hv-home.hv-chars .hv-doors.hv-coins,
.hv-home.hv-chars .hv-ringhome,
.hv-home.hv-chars .hv-coin { display: none !important; }

/* ---------- phone roller. Gated by .hv-roller (JS: short side < 600 CSS px), not a rem media query.
   260 used min-height: 42.5625rem (681px at 16px); 261 used 37.5rem (600px). Both fail when the
   user has a large font or display zoom, because rem grows and the height gate misses a normal
   phone. Styles follow the class so landscape phones and zoomed fonts still get the vertical well. ---------- */
.hv-home.hv-chars.hv-roller .hv-car { touch-action: none; top: 0 !important; bottom: 0 !important; left: 0; right: 0; }
.hv-home.hv-chars.hv-roller .hv-track {
  display: block; position: relative; width: 100%; height: 100%;
  top: 0; column-gap: 0; transform: none !important; will-change: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 96px), transparent 100%);
}
.hv-home.hv-chars.hv-roller .hv-card {
  position: absolute; left: 50%; top: 47%;
  margin: 0;
  transform-origin: 50% 50%;
  z-index: var(--z, 1);
  transform:
    translate(-50%, -50%)
    translateY(calc(var(--off, 0) * var(--fan-y, 72%)))
    rotateX(calc(clamp(-1.15, var(--off, 0), 1.15) * -18deg))
    scale(calc(1 - min(0.22, abs(var(--off, 0)) * 0.16)));
}
@media (prefers-reduced-motion: reduce) {
  .hv-home.hv-chars.hv-roller .hv-card {
    transform: translate(-50%, -50%) translateY(calc(var(--off, 0) * var(--fan-y, 72%))) scale(calc(1 - min(0.22, abs(var(--off, 0)) * 0.16)));
  }
}
.hv-home.hv-chars.hv-roller .hv-card[data-far="1"] {
  opacity: 0; pointer-events: none; visibility: hidden;
}
.hv-home.hv-chars.hv-roller .hv-dots { top: auto; bottom: calc(18px + var(--hearth-safe-bottom, 0px)); z-index: 6; pointer-events: auto; height: 22px; }

/* Shop page keeps the older Home v2 shop styles; it is not a ring. */


/* Beat theme-v2's 5× data-palette + !important rules (drop-cap, gold rule, button chrome). */
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars .hv-card .hv-nm,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars .hv-card .hv-nm {
  background: none !important;
  text-shadow: 0 1px 2px #000 !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars .hv-card .hv-nm {
  color: #e8c06a !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars .hv-card .hv-nm {
  color: #4a2c0c !important;
  text-shadow: 0 1px 0 rgba(255,250,236,.7) !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars .hv-card .hv-nm::first-letter,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars .hv-card .hv-nm::first-letter {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  text-shadow: inherit !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-sign,
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-mb {
  border: 1.5px solid #d6a84c !important;
  background: linear-gradient(180deg, #33302b, #1c1a17 60%, #100f0d) !important;
  color: #e8c06a !important;
  -webkit-text-fill-color: #e8c06a !important;
  box-shadow: inset 0 1px 0 rgba(255,225,160,.26), inset 0 -2px 0 rgba(0,0,0,.5), 0 3px 7px -2px rgba(0,0,0,.7) !important;
  text-shadow: 0 -1px 0 rgba(0,0,0,.8) !important;
  outline: none !important;
  z-index: 5;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-mb svg,
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-mb .hv-i {
  color: #e8c06a !important; stroke: #e8c06a !important; fill: none !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-sign,
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-mb {
  border: 1.5px solid #b98d3e !important;
  background: linear-gradient(180deg, #fff8e4, #f0e0b4) !important;
  color: #5a3a0e !important;
  -webkit-text-fill-color: #5a3a0e !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(120,80,20,.25), 0 3px 7px -2px rgba(90,60,10,.45) !important;
  outline: none !important;
  z-index: 5;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-join {
  border: 1.5px solid #2a0703 !important;
  background: radial-gradient(130% 80% at 50% -10%, rgba(255,190,150,.30), rgba(255,190,150,0) 55%),
              linear-gradient(180deg, #962e1d, #6a1a0e 55%, #470e07) !important;
  color: #fbe9cf !important;
  box-shadow: inset 0 1px 0 rgba(255,200,170,.35), inset 0 -2px 4px rgba(20,3,0,.55),
              0 0 0 1.5px rgba(214,168,76,.72), 0 3px 7px -1px rgba(0,0,0,.6) !important;
  outline: none !important;
}
html:root[data-look="light"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-ring .hv-join {
  outline: none !important;
}
html:root[data-look="dark"][data-palette][data-palette][data-palette][data-palette][data-palette] body .hv-home.hv-chars .hv-card .hv-pin {
  background: radial-gradient(70% 55% at 50% 38%, rgba(232,192,106,.12), transparent 72%), #14120f !important;
  box-shadow: none !important;
}

/* Don't let the ring header's display:flex beat [hidden] or the narrow-phone rule
   that moves Sign in into the menu (Tom, 4 Nov; existing Home v2). */
.hv-home.hv-ring .hv-sign[hidden] { display: none !important; }
@media (max-width: 370px) {
  .hv-home.hv-ring .hv-sign { display: none !important; }
}


/* ---------- sideways roller deck (.hv-deck, JS: short side >= 600 CSS px).
   Tom signed the 23 Nov mock (picker-deck-1123). 64% step leaves a little more of the neighbour names showing. */
.hv-home.hv-chars.hv-deck .hv-car { overflow: hidden; overflow: clip; }
  .hv-home.hv-chars.hv-deck .hv-track {
    display: block;
    position: absolute;
    left: 0; right: 0;
    width: 100%;
    height: var(--card-h, 470px);
    column-gap: 0;
    transform: none !important;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    overflow: visible;
  }
  .hv-home.hv-chars.hv-deck .hv-card {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    z-index: var(--z, 1);
    transform-origin: 50% 50%;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--off, 0) * 64%))
      rotateY(calc(clamp(-1.2, var(--off, 0), 1.2) * -20deg))
      scale(calc(1.02 - min(0.22, abs(var(--off, 0)) * 0.16)));
  }
  .hv-home.hv-chars.hv-deck .hv-card.hv-on {
    filter: none;
    box-shadow:
      0 0 0 2px #0a0907,
      0 0 0 3.5px #e8c06a,
      0 0 18px rgba(232,192,106,.28),
      0 22px 40px -6px rgba(0,0,0,.9);
  }
  .hv-home.hv-chars.hv-deck .hv-card[data-far="1"] {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
  @media (prefers-reduced-motion: reduce) {
    .hv-home.hv-chars.hv-deck .hv-card {
      transform:
        translate(-50%, -50%)
        translateX(calc(var(--off, 0) * 64%))
        scale(calc(1.02 - min(0.22, abs(var(--off, 0)) * 0.16)));
    }
  }
