/* casino/css/hush.css - the page around the stage: background, loading curtain, rotate curtain,
 * boot error. The house itself is drawn on the Phaser canvas.
 *
 * For casino/index.html. A copy of tenderfoot/css/tf.css (lines 9-221), which is the main game's own
 * (index.html): the same tokens, the same curtain, the same copyright rule (the long line on desktops and
 * tablets, the short mark on a phone), the same rotate curtain. The founder (2026-09-24): "Let's make this
 * exactly how Tenderfoot is made", "keeps the same look and feel". Brand recognition is the point.
 *
 * THE HOUSE'S OWN: the lamps (--lamp-gold, the den's #FFB060), the gilt (--gilt, every chip's bezel), the
 * velvet (--velvet, the ropes and the Snug), and on the curtain CHIPS drifting up where Tenderfoot has
 * pages, and one chip rolling along the floor where Tenderfoot trots. No painting is needed: the curtain
 * and the gutters are drawn in CSS, so they never wait for art.
 */
:root {
  --candy-pink: #FF8FC7;
  --lavender: #C9A8F5;
  --mint-teal: #7FE0D6;
  --gold: #F5C242;
  --parchment: #FBF3E7;
  --obsidian: #14121A;
  --sky-indigo: #241A3D;
  --toxic-green: #6BE04A;
  --muted: #8E7FB0;
  --ink: #0B0814;
  --font: 'Trebuchet MS', 'Lucida Grande', Verdana, sans-serif;
  --title-font: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  /* the house */
  --lamp-gold: #FFB060;
  --gilt: #C9A246;
  --velvet: #3A1624;
  --velvet-deep: #2A0F1A;
  --bone: #E9DFC6;
  --inlay: #15111C;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  font-family: var(--font);
  color: var(--parchment);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

/* The gutters, edge to edge behind the stage: a wide phone or a desktop window that is not 16:9 shows the
   house's velvet and one lamp rather than bare black. */
body::before {
  content: '';
  position: fixed;
  inset: -40px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 32%, rgba(255, 176, 96, 0.16), rgba(255, 176, 96, 0) 70%),
    radial-gradient(ellipse 90% 80% at 50% 60%, #2A0F1A 0%, #170A12 55%, #0B0814 100%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

#stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* iOS: keep the stage out from under the notch / island and the home bar. */
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
#stage canvas { display: block; box-shadow: 0 0 60px rgba(0, 0, 0, 0.55); }

/* ---- the rotate curtain ------------------------------------------------------------------------ */
#rotate-prompt {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; text-align: center; color: var(--parchment);
  background: linear-gradient(160deg, #3A1624 0%, #2A0F1A 46%, #140810 100%);
}
html[data-rotate="1"] #rotate-prompt { display: flex; }
#rotate-prompt .rp-device {
  width: 46px; height: 84px; border: 3px solid var(--gold); border-radius: 10px;
  box-shadow: inset 0 0 0 2px #14121A, 0 0 24px rgba(255, 176, 96, 0.3);
  animation: hush-rotate-hint 2.2s ease-in-out infinite;
}
html[data-device="tablet"] #rotate-prompt .rp-device { width: 70px; height: 96px; border-radius: 12px; }
#rotate-prompt .rp-title { margin: 0; font-family: var(--title-font); font-weight: bold; font-size: 24px; letter-spacing: 0.08em; color: var(--gold); }
#rotate-prompt .rp-sub { margin: 0; max-width: 320px; font-size: 14px; line-height: 1.5; color: #E8CBB0; }
@keyframes hush-rotate-hint { 0%, 20% { transform: rotate(0deg); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }

/* ---- the boot error ---------------------------------------------------------------------------- */
#boot-error {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); text-align: center; padding: 24px;
}
#boot-error[hidden] { display: none; }
#boot-error .be-title { margin: 0; font-family: var(--title-font); font-size: 26px; color: var(--gold); }
#boot-error .be-sub { margin: 0; font-size: 14px; color: var(--lavender); max-width: 420px; }

/* ======================================================================================
   THE LOADING CURTAIN - the main game's, in the house's velvet: one lamp breathing, lamplit
   smoke drifting, chips of the house set rising through it and turning, and a single chip
   rolling along the floor.
   ====================================================================================== */
#load-curtain {
  position: fixed; inset: 0; z-index: 58; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding-bottom: 24vh;
  color: var(--parchment);
  background: radial-gradient(ellipse 120% 90% at 50% 40%, #3A1624 0%, #2A0F1A 45%, #120810 80%, #0B0814 100%);
  transition: opacity 0.6s ease;
}
#load-curtain.is-done { opacity: 0; pointer-events: none; }
#load-curtain::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(11, 8, 20, 0.1) 0%, rgba(11, 8, 20, 0.7) 70%, #0B0814 100%),
    linear-gradient(180deg, rgba(58, 22, 36, 0.35), rgba(11, 8, 20, 0.6));
}
.lc-glow {
  position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: 30%; margin: -30vmax 0 0 -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 96, 0.26) 0%, rgba(255, 176, 96, 0.08) 35%, rgba(255, 176, 96, 0) 70%);
  animation: lc-breathe 3.6s ease-in-out infinite; will-change: transform, opacity;
}
.lc-fog {
  position: absolute; left: -50%; top: -20%; width: 200%; height: 140%;
  background-image:
    radial-gradient(ellipse 30% 22% at 20% 60%, rgba(160, 110, 80, 0.30), transparent 70%),
    radial-gradient(ellipse 26% 18% at 55% 40%, rgba(120, 60, 70, 0.34), transparent 70%),
    radial-gradient(ellipse 34% 20% at 80% 70%, rgba(170, 120, 90, 0.26), transparent 70%);
  animation: lc-drift 22s linear infinite; will-change: transform;
}
.lc-fog--2 {
  top: 0;
  background-image:
    radial-gradient(ellipse 28% 20% at 30% 30%, rgba(90, 40, 55, 0.42), transparent 70%),
    radial-gradient(ellipse 24% 16% at 65% 65%, rgba(140, 90, 70, 0.3), transparent 70%);
  animation: lc-drift 31s linear infinite reverse;
}

/* THE CHIPS: the house set (casino/docs/SPEC.md 6a) drawn in CSS - the body colour, six edge inserts, the
   gilt bezel and the black inlay - rising through the smoke and turning over, the way a tossed chip does. */
.lc-chips { position: absolute; inset: 0; }
.lc-chip {
  --body: #1E5A8C; --edge: #E9DFC6;
  position: absolute; bottom: -60px; width: 38px; height: 38px; border-radius: 50%;
  background:
    radial-gradient(circle, #15111C 0 27%, #C9A246 28% 33%, transparent 34%),
    radial-gradient(circle, var(--body) 0 56%, transparent 57%),
    repeating-conic-gradient(from 15deg, var(--edge) 0 30deg, var(--body) 30deg 60deg);
  box-shadow: 0 0 12px rgba(255, 176, 96, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  opacity: 0; animation: lc-flutter 9s ease-in infinite;
}
.lc-chips .lc-chip:nth-child(1) { left: 14%; animation-delay: 0s; --body: #E9DFC6; --edge: #5A4F72; }
.lc-chips .lc-chip:nth-child(2) { left: 30%; animation-delay: 2.4s; --body: #A81E2D; --edge: #E9DFC6; width: 30px; height: 30px; }
.lc-chips .lc-chip:nth-child(3) { left: 47%; animation-delay: 4.1s; --body: #1E5A8C; --edge: #E9DFC6; }
.lc-chips .lc-chip:nth-child(4) { left: 62%; animation-delay: 1.2s; --body: #1B1720; --edge: #C8963A; }
.lc-chips .lc-chip:nth-child(5) { left: 78%; animation-delay: 5.6s; --body: #8A3FB5; --edge: #C9A8F5; }
.lc-chips .lc-chip:nth-child(6) { left: 90%; animation-delay: 3.3s; --body: #CF5F9C; --edge: #241A3D; width: 30px; height: 30px; }
.lc-ember {
  position: absolute; bottom: 12%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--lamp-gold); box-shadow: 0 0 8px 2px rgba(255, 176, 96, 0.6);
  opacity: 0; animation: lc-rise 6s ease-out infinite;
}
.lc-ember:nth-child(1) { left: 12%; animation-delay: 0s; }
.lc-ember:nth-child(2) { left: 24%; animation-delay: 1.4s; background: var(--gold); box-shadow: 0 0 8px 2px rgba(245, 194, 66, 0.6); }
.lc-ember:nth-child(3) { left: 38%; animation-delay: 2.8s; }
.lc-ember:nth-child(4) { left: 52%; animation-delay: 0.7s; background: var(--gilt); box-shadow: 0 0 8px 2px rgba(201, 162, 70, 0.6); }
.lc-ember:nth-child(5) { left: 63%; animation-delay: 3.6s; }
.lc-ember:nth-child(6) { left: 74%; animation-delay: 2.1s; background: var(--gold); box-shadow: 0 0 8px 2px rgba(245, 194, 66, 0.6); }
.lc-ember:nth-child(7) { left: 86%; animation-delay: 4.4s; }
.lc-ember:nth-child(8) { left: 93%; animation-delay: 1.0s; background: var(--gilt); box-shadow: 0 0 8px 2px rgba(201, 162, 70, 0.6); }

.lc-crest { position: relative; width: 78px; height: 78px; filter: drop-shadow(0 0 14px rgba(255, 176, 96, 0.4)); }
.lc-kicker { position: relative; margin: 0; font-size: clamp(11px, 1.5vw, 15px); letter-spacing: 0.34em; color: var(--gold); text-transform: uppercase; opacity: 0.9; }
.lc-title {
  position: relative; margin: 0; font-family: var(--title-font); font-weight: bold;
  font-size: clamp(26px, 5vw, 54px); letter-spacing: 0.1em; color: var(--gold);
  text-shadow: 0 2px 0 #3A1624, 0 0 24px rgba(255, 176, 96, 0.4);
}
.lc-sub { position: relative; margin: 0; font-family: var(--title-font); font-style: italic; font-size: clamp(14px, 1.9vw, 19px); letter-spacing: 0.06em; color: #FFD9A8; }
.lc-bar {
  position: relative; width: min(420px, 70vw); height: 12px; margin-top: 8px; border-radius: 7px;
  background: rgba(26, 10, 18, 0.9); border: 1px solid rgba(201, 162, 70, 0.4);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 176, 96, 0.14); overflow: hidden;
}
.lc-bar-fill {
  height: 100%; width: 0%; border-radius: 7px;
  background: linear-gradient(90deg, #A81E2D, #FFB060 55%, #F5C242);
  box-shadow: 0 0 12px rgba(255, 176, 96, 0.55); transition: width 0.25s ease-out;
}
.lc-pct { position: relative; font-size: 13px; letter-spacing: 0.1em; color: var(--gold); min-height: 1.2em; }
.lc-note { position: relative; margin: 0; font-size: 14px; color: #E8CBB0; min-height: 1.4em; }
.lc-tip { position: relative; margin: 0; font-size: 12px; color: var(--muted); max-width: 420px; text-align: center; }
#load-curtain.is-failed .lc-note { color: var(--candy-pink); font-size: 16px; }
#load-curtain.is-failed .lc-bar, #load-curtain.is-failed .lc-roller { display: none; }

.lc-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 15%;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0) 0%, rgba(11, 8, 20, 0.75) 40%, #0B0814 100%); }
.lc-ground::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 70, 0.4) 30%, rgba(201, 162, 70, 0.4) 70%, transparent); }
/* ONE CHIP ROLLING ALONG THE FLOOR, on its edge, the way a dropped chip gets away from you. */
.lc-roller { position: absolute; left: -80px; bottom: calc(3% + 12px); width: 46px; height: 46px; animation: lc-run 7s linear infinite; will-change: transform; }
.lc-roller .lc-chip { position: absolute; inset: 0; width: 100%; height: 100%; bottom: auto; opacity: 1; --body: #A81E2D; --edge: #E9DFC6;
  animation: lc-roll 1.1s linear infinite; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.55)); }
.lc-copyright { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10px; line-height: 14px; color: rgba(232, 203, 176, 0.75); padding: 3px 12px; background: rgba(11, 8, 20, 0.62); z-index: 2; }
.lc-copyright .cr-short { display: none; }
html[data-device="phone"] .lc-copyright .cr-full { display: none; }
html[data-device="phone"] .lc-copyright .cr-short { display: inline; }
@media (max-height: 460px) { .lc-copyright { font-size: 8px; line-height: 11px; padding: 2px 8px; } #load-curtain { gap: 6px; } .lc-crest { width: 52px; height: 52px; } }

@keyframes lc-breathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes lc-drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes lc-rise { 0% { opacity: 0; transform: translateY(0) scale(0.8); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46vh) translateX(18px) scale(1.2); } }
@keyframes lc-run { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 200px)); } }
@keyframes lc-roll { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lc-flutter {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scaleY(1); }
  12% { opacity: 0.85; }
  30% { transform: translateY(-30vh) translateX(20px) rotate(60deg) scaleY(0.2); }
  50% { transform: translateY(-50vh) translateX(40px) rotate(120deg) scaleY(0.9); }
  70% { transform: translateY(-68vh) translateX(10px) rotate(200deg) scaleY(0.25); }
  85% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-95vh) translateX(-20px) rotate(320deg) scaleY(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .lc-glow, .lc-fog, .lc-ember, .lc-chip, .lc-roller, .lc-roller .lc-chip, #rotate-prompt .rp-device { animation: none !important; }
  .lc-roller { left: 50%; margin-left: -23px; }
}

/* The account dialog sits over the canvas. On a phone, inputs at 16px so iOS does not zoom the page. */
html[data-device="phone"] .ud-overlay input, html[data-device="phone"] .ud-overlay select,
html[data-device="phone"] .ud-overlay textarea { font-size: 16px; }


/* ==================================================================================================
   THE TWO DRAWERS (js/hush-drawers.js, 2026-09-27): CHALLENGES from the left, INVENTORY from the right,
   hidden until the house is up (html[data-hush-up]).
   ================================================================================================== */
/* PICK A SIDE, again (js/side-picker.js, HUSH.pick): a small gilt pill over the front page only, top centre */
.hush-side { position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 9px; border-radius: 999px; cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: bold; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(28, 12, 20, 0.78); border: 1px solid rgba(201, 162, 70, 0.6); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.hush-side svg { width: 18px; height: 18px; flex: none; }
.hush-side:hover, .hush-side:focus-visible { border-color: var(--gold); outline: none; background: rgba(58, 22, 36, 0.9); }
html[data-scene="HushSplash"]:not([data-picking]) .hush-side { display: inline-flex; }
.hd-tab { position: fixed; top: 50%; z-index: 40; transform: translateY(-50%); writing-mode: vertical-rl; text-orientation: mixed; padding: 14px 7px; border: 1px solid rgba(201, 162, 70, 0.6); border-radius: 0 9px 9px 0; background: linear-gradient(180deg, #4A1E2E, #2A0F1A); color: var(--gold); font-family: var(--title-font); font-size: 11px; font-weight: bold; letter-spacing: 0.22em; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); display: none; }
html[data-hush-up="1"] .hd-tab { display: block; }
.hd-tab--left { left: 0; border-left: none; }
.hd-tab--right { right: 0; border-right: none; border-radius: 9px 0 0 9px; transform: translateY(-50%) rotate(180deg); }
.hd-tab:hover { background: linear-gradient(180deg, #5C2438, #3A1624); }
.hd-tab.is-open { color: var(--mint-teal); border-color: rgba(127, 224, 214, 0.6); }
.hd-tab.has-claim { color: #14121A; background: linear-gradient(180deg, #FFE08A, var(--gold)); animation: hd-pulse 1.4s ease-in-out infinite; }
.hd-tab.has-claim::after { content: attr(data-claim); position: absolute; top: 4px; left: 50%; transform: translateX(-50%); writing-mode: horizontal-tb; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--candy-pink); color: #14121A; font-size: 10px; line-height: 16px; text-align: center; }
@keyframes hd-pulse { 0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 0 rgba(245, 194, 66, 0.5); } 50% { box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 6px rgba(245, 194, 66, 0); } }
.hd-drawer { position: fixed; top: 0; bottom: 0; z-index: 45; width: min(400px, 92vw); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(42, 15, 26, 0.97), rgba(20, 8, 16, 0.98)); border: 1px solid rgba(201, 162, 70, 0.5); box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); color: var(--parchment); font-family: var(--font); transition: transform 0.22s ease; }
.hd-drawer--left { left: 0; transform: translateX(-105%); border-left: none; border-radius: 0 14px 14px 0; }
.hd-drawer--right { right: 0; transform: translateX(105%); border-right: none; border-radius: 14px 0 0 14px; }
.hd-drawer.is-open { transform: translateX(0); }
.hd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid rgba(201, 162, 70, 0.3); }
.hd-title { margin: 0; font-family: var(--title-font); font-size: 20px; letter-spacing: 0.14em; color: var(--gold); }
.hd-close { font: inherit; font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(251, 243, 231, 0.3); background: transparent; color: var(--parchment); cursor: pointer; }
.hd-body { flex: 1; overflow-y: auto; padding: 10px 14px 20px; }
.hd-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.hd-sec { margin-top: 14px; }
.hd-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.hd-sec-head h3 { margin: 0; font-family: var(--title-font); font-size: 13px; letter-spacing: 0.12em; color: var(--gold); }
.hd-sec-head span { font-size: 11px; color: var(--muted); text-align: right; }
.hd-standing { position: relative; display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; padding: 12px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, rgba(74, 30, 46, 0.95), rgba(28, 12, 20, 0.95) 60%, rgba(58, 22, 36, 0.95)); border: 1px solid rgba(245, 194, 66, 0.55); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.hd-standing-crest { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), rgba(12, 9, 20, 0.9) 70%); border: 2px solid var(--gold); color: var(--gold); font-size: 22px; box-shadow: 0 0 16px rgba(245, 194, 66, 0.35); }
.hd-standing-words { flex: 1; min-width: 0; }
.hd-standing-kicker { margin: 0; font-size: 10px; letter-spacing: 0.18em; color: var(--gold); }
.hd-standing-rank { display: flex; align-items: baseline; gap: 8px; }
.hd-standing-rank b { font-family: var(--title-font); font-size: 28px; line-height: 1; color: var(--parchment); }
.hd-standing-rank span { font-size: 11px; color: var(--lavender); }
.hd-standing-marks { margin: 2px 0 0; font-size: 10px; letter-spacing: 0.1em; color: var(--mint-teal); }
.hd-standing-right { display: flex; flex-direction: column; gap: 6px; }
.hd-wall-btn, .hd-pill, .hd-claim { font: inherit; font-size: 10px; font-weight: bold; letter-spacing: 0.12em; padding: 7px 10px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.hd-wall-btn { color: #14121A; background: linear-gradient(180deg, #FFE08A, var(--gold)); border: 1px solid rgba(255, 224, 138, 0.9); }
.hd-pill { color: var(--parchment); background: rgba(255, 143, 199, 0.18); border: 1px solid rgba(255, 143, 199, 0.7); animation: hd-pulse 1.4s ease-in-out infinite; }
.hd-ch { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: rgba(12, 9, 20, 0.45); border: 1px solid rgba(201, 162, 70, 0.22); }
.hd-ch.is-done { border-color: rgba(127, 224, 214, 0.45); background: rgba(127, 224, 214, 0.08); }
.hd-ch.is-locked { opacity: 0.45; }
.hd-ch.is-active { border-color: rgba(245, 194, 66, 0.6); box-shadow: 0 0 14px rgba(245, 194, 66, 0.18); }
.hd-ch.is-claimable { border-color: var(--gold); background: rgba(245, 194, 66, 0.1); box-shadow: 0 0 16px rgba(245, 194, 66, 0.25); }
.hd-medal { position: relative; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.15), rgba(12, 9, 20, 0.9) 70%); border: 2px solid var(--gold); color: var(--gold); font-size: 16px; }
.hd-medal--weekly { border-color: #C79BFF; color: #C79BFF; }
.hd-medal--path { border-color: var(--mint-teal); color: var(--mint-teal); }
.hd-tick { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint-teal); color: #14121A; font-size: 10px; font-style: normal; display: grid; place-items: center; }
.hd-ch-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hd-ch-words strong { font-size: 13px; }
.hd-ch-line { font-size: 11px; color: var(--lavender); }
.hd-ch-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hd-ch-count { font-size: 11px; color: var(--muted); font-weight: bold; letter-spacing: 0.06em; }
.hd-ch.is-done .hd-ch-count { color: var(--mint-teal); }
.hd-chip { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(12, 9, 20, 0.6); border: 1px solid rgba(245, 194, 66, 0.5); color: var(--gold); }
.hd-badge { font-size: 10px; color: var(--muted); }
.hd-badge.is-earned { color: var(--mint-teal); }
.hd-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 2px; }
.hd-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--mint-teal)); }
.hd-claim { align-self: flex-start; color: #14121A; background: linear-gradient(180deg, #FFE08A, var(--gold)); border: 1px solid rgba(255, 224, 138, 0.9); animation: hd-pulse 1.4s ease-in-out infinite; }
.hd-honours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hd-honour { padding: 8px 10px; border-radius: 9px; background: rgba(12, 9, 20, 0.45); border: 1px solid rgba(201, 162, 70, 0.2); opacity: 0.55; }
.hd-honour.is-earned { opacity: 1; border-color: rgba(245, 194, 66, 0.6); background: rgba(245, 194, 66, 0.08); }
.hd-honour b { display: block; font-size: 11px; }
.hd-honour span { font-size: 10px; color: var(--muted); }
.hd-honour.is-earned span { color: var(--mint-teal); }
.hd-inv-row { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: rgba(12, 9, 20, 0.45); border: 1px solid rgba(201, 162, 70, 0.22); }
.hd-inv-row b { display: block; font-family: var(--title-font); font-size: 22px; color: var(--gold); line-height: 1; }
.hd-inv-row span { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.hd-inv-row--gilt { border-color: rgba(245, 194, 66, 0.6); background: rgba(245, 194, 66, 0.06); }
.hd-chipicon { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE08A, #C9A246 55%, #8A6A20); box-shadow: 0 3px 8px rgba(0,0,0,0.6), inset 0 0 0 4px rgba(20, 8, 16, 0.5), inset 0 0 0 7px rgba(255, 224, 138, 0.35); }
.hd-chipicon i { position: absolute; inset: 12px; border-radius: 50%; border: 2px dashed rgba(20, 8, 16, 0.55); }
.hd-inv-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: rgba(12, 9, 20, 0.7); border: 2px solid var(--lavender); color: var(--lavender); }
.hd-inv-icon--candy { border-color: var(--candy-pink); color: var(--candy-pink); }
.hd-inv-icon--essence { border-color: var(--toxic-green); color: var(--toxic-green); }
.hd-inv-icon--clue { border-color: var(--mint-teal); color: var(--mint-teal); font-weight: bold; }
.hd-guard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(12, 9, 20, 0.55); border: 1px solid rgba(245, 194, 66, 0.35); }
.hd-guard img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); }
.hd-guard b { display: block; font-family: var(--title-font); font-size: 15px; }
.hd-guard span { display: block; font-size: 10px; letter-spacing: 0.12em; font-weight: bold; }
.hd-guard em { display: block; font-size: 11px; color: var(--muted); }
.hd-banner { position: fixed; top: 18px; left: 50%; z-index: 60; transform: translateX(-50%) translateY(-140%); display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 12px; border-radius: 16px; cursor: pointer; font: inherit; font-family: var(--font); text-align: left; color: var(--parchment); background: linear-gradient(135deg, rgba(74, 30, 46, 0.97), rgba(28, 12, 20, 0.97) 55%, rgba(58, 22, 36, 0.97)); border: 1px solid rgba(245, 194, 66, 0.8); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 194, 66, 0.25); transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.hd-banner.is-on { transform: translateX(-50%) translateY(0); }
.hd-banner-kicker { margin: 0; font-size: 10px; letter-spacing: 0.2em; color: var(--gold); }
.hd-banner strong { display: block; font-size: 15px; }
.hd-banner span { font-size: 11px; color: var(--mint-teal); letter-spacing: 0.06em; }
