/* Game HUD skin over the hangar: chamfered metal panels, corner brackets, Rajdhani labels, scanlines.
   Loaded last on every play page. */
:root { --hud: "Rajdhani", "IBM Plex Sans", system-ui, sans-serif; --edge: rgba(114,220,255,.55); --edge2: rgba(114,220,255,.18); --cut: 12px; }
#hangar { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
#hangar.on { opacity: 1; }
html { background: #03060a !important; }
body { background: transparent !important; }
body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .055;
  background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
/* vignette so text stays readable over the 3D */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(2,4,7,.75) 100%); }

/* type */
h1, h2, h3, .bar b, .zn, .panel h2, .detail h3, .chip, .btn, .iconbtn, .choice b, .budget, .mono, .banner b, summary { font-family: var(--hud) !important; }
h1 { text-transform: uppercase; letter-spacing: .02em; font-weight: 700 !important; line-height: .95 !important;
  background: linear-gradient(180deg, #ffffff 0%, #cfe9f7 45%, #7fb6cf 52%, #e9f6fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(24,191,255,.35)); }
h1 em { -webkit-text-fill-color: #18BFFF; color: #18BFFF; }
h2 { text-transform: uppercase; letter-spacing: .03em; font-weight: 700 !important; }
.bar b { text-transform: uppercase; letter-spacing: .14em; font-size: 20px !important; }
.mono { font-weight: 600 !important; letter-spacing: .22em !important; color: var(--soft) !important; }

/* chamfered panels */
.choice, .zone, .plate, .detail, .panel, .four article, .steps6 > div, .glossary article, .facs article, .zlist div, .wheel div, .callout-box, .kpop, .coach, .step, .prom, .tier, .road div, .r-zones div, .share, .chip, .filters input {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  border-radius: 0 !important; }
.choice, .zone, .detail, .panel, .four article, .steps6 > div, .glossary article, .facs article, .zlist div, .wheel div, .callout-box {
  background:
    linear-gradient(var(--edge), var(--edge)) top left / 26px 1.5px no-repeat,
    linear-gradient(var(--edge), var(--edge)) top left / 1.5px 26px no-repeat,
    linear-gradient(var(--edge), var(--edge)) bottom right / 26px 1.5px no-repeat,
    linear-gradient(var(--edge), var(--edge)) bottom right / 1.5px 26px no-repeat,
    linear-gradient(180deg, rgba(14,26,38,.82), rgba(6,11,17,.86)) !important;
  border: 1px solid var(--edge2) !important; box-shadow: inset 0 0 30px -12px rgba(24,191,255,.35); backdrop-filter: blur(4px); }
.facs article { background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 16%, rgba(8,14,20,.88)), rgba(6,11,17,.9)) !important; }
.plate { background: linear-gradient(180deg, rgba(20,36,50,.94), rgba(8,14,20,.94)) !important; border: 1px solid var(--edge2) !important; --cut: 8px; }
.zone { --cut: 10px; }
.zone.hold-m { border-color: rgba(24,191,255,.7) !important; box-shadow: inset 0 -50px 70px -40px rgba(24,191,255,.45), 0 0 30px -10px #18BFFF; }
.zone.hold-e { border-color: rgba(255,122,89,.7) !important; box-shadow: inset 0 50px 70px -40px rgba(255,122,89,.4), 0 0 30px -10px #FF7A59; }
.choice[aria-pressed="true"] { border-color: var(--fc, #18BFFF) !important; box-shadow: inset 0 0 40px -10px var(--fc, #18BFFF); }

/* buttons: chamfered metal with a light sweep */
.btn, .iconbtn, .chip {
  position: relative; overflow: hidden; text-transform: uppercase; letter-spacing: .14em; font-weight: 700 !important; border-radius: 0 !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn { padding: 12px 26px !important; color: #04121a !important; border: 0 !important;
  background: linear-gradient(180deg, #bff0ff 0%, #4fd0ff 45%, #109bd6 55%, #6fe0ff 100%) !important; box-shadow: 0 0 24px -4px rgba(24,191,255,.8); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 48%, transparent 66%); transform: translateX(-120%); transition: transform .6s; }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost, .iconbtn { color: #cfeefc !important; background: linear-gradient(180deg, rgba(40,62,80,.9), rgba(14,24,34,.9)) !important; border: 1px solid var(--edge) !important; box-shadow: none; text-shadow: none; }
.btn:disabled { filter: grayscale(.8) brightness(.6); }
.iconbtn { padding: 6px 14px !important; font-size: 13px !important; }

/* top bar as a HUD strip */
.bar { background: linear-gradient(180deg, rgba(10,20,30,.92), rgba(4,8,12,.82)) !important; border-bottom: 1px solid var(--edge2) !important;
  box-shadow: 0 1px 0 rgba(114,220,255,.12), 0 10px 30px -20px #18BFFF; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #18BFFF 30%, #72DCFF 50%, #18BFFF 70%, transparent); opacity: .7; }

/* hand dock as a cockpit console */
.handbar { background: linear-gradient(180deg, rgba(10,20,30,.9), rgba(3,6,10,.97)) !important; border-top: 1px solid var(--edge) !important; box-shadow: 0 -20px 40px -24px #18BFFF; }
.budget i { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.budget i.on { background: #18BFFF !important; box-shadow: 0 0 8px #18BFFF; }
.banner b { text-transform: uppercase; letter-spacing: .06em; background: linear-gradient(180deg, #fff, #8fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toast { border-radius: 0 !important; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); background: rgba(8,16,24,.95) !important; border: 1px solid var(--edge) !important; }
.slot { border-color: rgba(114,220,255,.14) !important; border-radius: 4px; background: rgba(24,191,255,.03); }
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* menu, collection hero and guide hero sit on a dark HUD panel so the 3D never fights the text */
.start, .chero { position: relative; padding: 26px 28px 30px !important; margin-top: 22px !important;
  background: linear-gradient(90deg, rgba(3,7,11,.9), rgba(3,7,11,.72)); border: 1px solid var(--edge2); backdrop-filter: blur(6px);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
@media (min-width: 1100px) { .start { margin-left: max(24px, 5vw) !important; margin-right: auto !important; max-width: 640px !important; } }
.ghero > div:first-child { background: linear-gradient(90deg, rgba(3,7,11,.88), rgba(3,7,11,.6)); padding: 26px; border: 1px solid var(--edge2);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
/* every guide section on its own dark glass panel: the crescent behind is bright, body text must never sit on it */
.gwrap section:not(.ghero) { position: relative; margin-top: 28px; padding: 26px 28px 24px !important;
  background: linear-gradient(180deg, rgba(3,7,11,.88), rgba(3,7,11,.8)); border: 1px solid var(--edge2); backdrop-filter: blur(8px);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.gwrap section:not(.ghero) li, .gwrap section:not(.ghero) p { color: #c9d8e1; }
@media (max-width: 520px) { .gwrap section:not(.ghero) { padding: 20px 16px 18px !important; } }

#decks { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.pnote { position: relative; max-width: 760px; margin: 18px auto 0 !important; padding: 10px 16px; background: rgba(3,7,11,.85); border: 1px solid var(--edge2); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.filters { position: relative; padding: 10px; background: rgba(3,7,11,.75); }
/* phones and small landscape screens: the header menu scrolls sideways inside the bar instead of running off the screen */
@media (max-width: 1100px) {
  .bar { gap: 8px; }
  .bar b { font-size: 16px !important; letter-spacing: .1em; flex: none; }
  .bar .tools { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 18px; }
  .bar .tools::-webkit-scrollbar { display: none; }
  .bar .tools > * { flex: none; }
}

/* the brand in the header leads home */
.bar .brand { color: inherit; text-decoration: none; flex: none; white-space: nowrap; }
.bar .brand:hover b { color: #72DCFF; }
/* the smallest phones: a longer fade on the scrolling header tools, so the cut-off item reads as "more this way" */
@media (max-width: 400px) { .bar .tools { -webkit-mask-image: linear-gradient(90deg, #000 60%, rgba(0,0,0,.4) 80%, transparent 96%); mask-image: linear-gradient(90deg, #000 60%, rgba(0,0,0,.4) 80%, transparent 96%); padding-right: 36px; } }
/* the current page in the header tools */
.bar .tools .iconbtn[aria-current="page"] { color: #fff !important; border-color: #18BFFF !important; background: linear-gradient(180deg, rgba(24,191,255,.38), rgba(10,50,72,.92)) !important; box-shadow: inset 0 -2px 0 #18BFFF; }

/* Refund and Tax on the budget line (8 Oct 2026): Refunded hexagons are gold, Budget lost to Tax shows as red hexagons */
.budget .blabel, .budget .bsrc { white-space: nowrap; }
.budget .bsrc { font-size: .9em; }
.budget .b-rf { color: #E0BE72; font-weight: 700; }
.budget .b-tx { color: #FF7A59; font-weight: 700; }
.budget i.rf.on { background: #E0BE72 !important; box-shadow: 0 0 9px #E0BE72; }
.budget i.rf.used { background: #5a4a26; }
.budget i.tx { background: rgba(255, 122, 89, .4); }
.float.fl-refund { color: #FFE7A8 !important; font-size: 18px; padding: 4px 10px; border-radius: 999px; background: #140e04; border: 2px solid #FFD27A; box-shadow: 0 0 0 1px #000, 0 0 20px -2px #E0BE72; text-shadow: none; z-index: 5; }
@media (max-width: 480px) { .budget .bsrc { font-size: .8em; } }
