/* ============================ Gambit screens (hall, ladder, collection, decks, play, rules) ============================ */

/* ---------------- gate (signed out) ---------------- */
.g-gate { flex: 1; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 640px); align-items: center; justify-content: center; gap: clamp(28px, 6vw, 88px); padding: 40px 24px; }
.g-gate-card { display: grid; place-items: center; perspective: 900px; }
.g-gate-card .g-cardbox { transform: rotateY(-12deg) rotateX(4deg); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); animation: g-float 7s var(--g-ease-io) infinite alternate; }
@keyframes g-float { from { transform: rotateY(-12deg) rotateX(4deg) translateY(0); } to { transform: rotateY(-6deg) rotateX(2deg) translateY(-10px); } }
.g-gate-title { font-size: clamp(44px, 6vw, 76px); background: var(--g-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 820px) { .g-gate { grid-template-columns: 1fr; text-align: center; } .g-gate-card .g-cardbox { --w: 180px !important; } }

/* ---------------- hall ---------------- */
.g-hall-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 360px; }
.g-greet { font-family: var(--g-italic); font-style: italic; font-weight: 600; font-size: 22px; color: var(--g-gold); }
.g-hall-title { text-wrap: balance; font-family: var(--g-display); font-weight: 700; font-size: clamp(38px, 4.2vw, 58px); line-height: 1; margin: 6px 0 14px; letter-spacing: .02em; }
.g-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.g-stat { display: flex; flex-direction: column; min-width: 110px; padding: 12px 16px; border-radius: 10px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--g-hair-soft); }
.g-stat b { font-family: var(--g-display); font-size: 30px; line-height: 1; color: var(--g-ink); font-variant-numeric: lining-nums tabular-nums; }
.g-stat span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-ink-3); margin-top: 6px; font-family: var(--g-display); }
.g-fan { position: relative; height: 330px; perspective: 1100px; }
.g-fan .g-cardbox { position: absolute; left: 50%; top: 10px; transform-origin: 50% 110%; transition: transform var(--g-t-slow) var(--g-ease); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); }
.g-fan:hover .g-cardbox:nth-child(1) { transform: translateX(-150%) rotate(-12deg) translateY(10px); }
.g-fan:hover .g-cardbox:nth-child(3) { transform: translateX(50%) rotate(12deg) translateY(10px); }
.g-fan .g-cardbox:nth-child(1) { transform: translateX(-128%) rotate(-9deg) translateY(12px); }
.g-fan .g-cardbox:nth-child(2) { transform: translateX(-50%) translateY(-6px); z-index: 2; }
.g-fan .g-cardbox:nth-child(3) { transform: translateX(28%) rotate(9deg) translateY(12px); }
@media (max-width: 960px) { .g-hall-hero { grid-template-columns: 1fr; } .g-fan { height: 280px; } }

.g-banner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; margin: 26px 0; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 50%, rgba(214, 170, 96, .2), transparent 55%), linear-gradient(180deg, rgba(38, 34, 28, .95), rgba(22, 20, 18, .95));
  box-shadow: var(--g-shadow), inset 0 0 0 1px var(--g-hair); }
.g-banner::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(243, 223, 162, .12) 80%, transparent 90%); animation: g-spin 9s linear infinite; pointer-events: none; }
.g-banner > * { position: relative; }
.g-banner h2 { font-family: var(--g-display); margin: 0 0 4px; font-size: 26px; letter-spacing: .04em; }
.g-banner p { margin: 0; color: var(--g-ink-2); font-size: 17px; }
.g-banner.you { background: radial-gradient(120% 140% at 0% 50%, rgba(134, 214, 255, .16), transparent 55%), linear-gradient(180deg, rgba(24, 32, 40, .95), rgba(16, 20, 26, .95)); box-shadow: var(--g-shadow), inset 0 0 0 1px rgba(134, 214, 255, .45); }
.g-pack-icon { width: 76px; height: 96px; border-radius: 10px; background: var(--g-gilt); box-shadow: 0 10px 22px -6px rgba(214, 170, 96, .6), inset 0 0 0 5px rgba(20, 16, 10, .7), inset 0 0 0 6px rgba(243, 223, 162, .6); display: grid; place-items: center; font-family: var(--g-display); font-weight: 700; color: #20180b; font-size: 34px; }
@media (max-width: 720px) { .g-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.g-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.g-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 180px; padding: 24px; border-radius: 14px; text-decoration: none; color: var(--g-ink); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(36, 38, 44, .9), rgba(22, 23, 27, .95)); box-shadow: var(--g-shadow), inset 0 0 0 1px var(--g-hair-soft); transition: transform var(--g-t) var(--g-ease), box-shadow var(--g-t); }
.g-tile:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -16px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--g-hair); }
.g-tile:focus-visible { outline: 2px solid var(--g-you); outline-offset: 3px; }
.g-tile h3 { font-family: var(--g-display); font-weight: 700; font-size: 24px; letter-spacing: .04em; margin: 0; }
.g-tile p { margin: 0; color: var(--g-ink-2); font-size: 16px; line-height: 1.45; max-width: 36ch; }
.g-tile .g-tile-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; color: var(--g-gold); font-family: var(--g-display); letter-spacing: .1em; font-size: 14px; }
.g-tile .g-tile-art { position: absolute; right: -36px; bottom: -44px; width: 190px; opacity: .42; z-index: -1; filter: saturate(.75); pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 60%); mask-image: linear-gradient(100deg, transparent 10%, #000 60%); transition: opacity var(--g-t), transform var(--g-t-slow) var(--g-ease); }
.g-tile:hover .g-tile-art { opacity: .62; transform: translate(-6px, -4px); }
.g-tile p { position: relative; }

/* ---------------- ladder ---------------- */
.g-ladder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 28px; align-items: start; }
.g-rungs { display: flex; flex-direction: column; gap: 10px; position: relative; }
.g-rungs::before { content: ""; position: absolute; left: 41px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, var(--g-gold-2), rgba(201, 162, 78, .15)); }
.g-rung { position: relative; display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 12px 18px 12px 0; border-radius: 12px; cursor: pointer; background: transparent; border: 0; color: inherit; text-align: left; font: inherit; transition: background var(--g-t); }
.g-rung:hover:not([disabled]), .g-rung[aria-pressed="true"] { background: rgba(255, 255, 255, .035); }
.g-rung[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--g-hair); }
.g-rung[disabled] { cursor: not-allowed; opacity: .42; }
.g-medal { position: relative; z-index: 1; width: 64px; height: 64px; margin-left: 10px; border-radius: 50%; padding: 2px; background: var(--g-gilt); box-shadow: 0 0 0 4px var(--g-night), 0 6px 14px rgba(0, 0, 0, .6); }
.g-medal > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2a2c32, #0a0b0d); display: grid; place-items: center; }
.g-medal img { width: 118%; height: 118%; object-fit: cover; object-position: 50% 20%; filter: saturate(.85); }
.g-rung.beaten .g-medal { background: linear-gradient(135deg, #bfe7ff, #5aa9d6); }
.g-rung .g-rung-name { font-family: var(--g-display); font-weight: 700; font-size: 21px; letter-spacing: .03em; }
.g-rung .g-rung-ep { font-family: var(--g-italic); font-style: italic; font-weight: 600; color: var(--g-ink-3); font-size: 16px; }
.g-rung .g-rung-state { font-family: var(--g-display); letter-spacing: .12em; font-size: 13px; color: var(--g-ink-3); text-transform: uppercase; }
.g-rung.beaten .g-rung-state { color: var(--g-you); }
.g-rung.next .g-rung-state { color: var(--g-gold); }
.g-rung-no { position: absolute; left: 2px; top: 8px; font-family: var(--g-display); font-size: 11px; color: var(--g-ink-3); }
.g-opp { position: sticky; top: 0; }
.g-opp .g-cardbox { margin: 14px auto 18px; }
.g-offer { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.g-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.g-meter > i { display: block; height: 100%; background: var(--g-gilt); border-radius: inherit; transition: width var(--g-t-slow) var(--g-ease); }
@media (max-width: 980px) { .g-ladder { grid-template-columns: 1fr; } .g-opp { position: static; } }

/* ---------------- collection ---------------- */
.g-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 24px; }
.g-toolbar .g-sep { width: 1px; height: 24px; background: var(--g-hair-soft); margin: 0 6px; }
.g-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 18px; justify-items: center; }
.g-cardcell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.g-cardcell:focus-visible { outline: 2px solid var(--g-you); outline-offset: 6px; border-radius: 16px; }
.g-count { font-family: var(--g-display); font-size: 14px; letter-spacing: .1em; color: var(--g-ink-3); }
.g-inspect { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; align-items: flex-end; }
.g-inspect-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g-inspect-col .g-eyebrow { font-size: 12px; }

/* ---------------- deck builder ---------------- */
.g-builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.g-decklist { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.g-slot { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 6px 10px 6px 6px; border-radius: 10px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--g-hair-soft); cursor: pointer; border: 0; color: inherit; font: inherit; text-align: left; transition: box-shadow var(--g-t-fast), background var(--g-t-fast); }
.g-slot:hover { box-shadow: inset 0 0 0 1px var(--g-hair); background: rgba(255, 255, 255, .03); }
.g-slot.empty { color: var(--g-ink-3); font-style: italic; cursor: default; }
.g-slot .g-slot-cost { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--g-gilt); color: #1c1409; font-family: var(--g-display); font-weight: 700; font-size: 17px; box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.g-slot .g-slot-name { font-family: var(--g-display); font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.g-slot .g-slot-sub { font-size: 14px; color: var(--g-ink-3); }
.g-slot.role-anchor { box-shadow: inset 0 0 0 1px var(--g-gold-2); background: rgba(201, 162, 78, .07); }
.g-errors { margin: 0; padding: 12px 14px 12px 32px; border-radius: 10px; background: rgba(224, 115, 94, .08); box-shadow: inset 0 0 0 1px rgba(224, 115, 94, .35); color: #f0b3a6; font-size: 15px; }
.g-okline { color: var(--g-good); font-size: 15px; }
@media (max-width: 1000px) { .g-builder { grid-template-columns: 1fr; } .g-decklist { position: static; } }

/* ---------------- play ---------------- */
.g-play { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.g-searching { display: flex; align-items: center; gap: 18px; }

/* ---------------- rules ---------------- */
.g-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.g-rules p, .g-rules li { line-height: 1.55; max-width: 66ch; color: var(--g-ink-2); }
.g-rules b { color: var(--g-ink); }
.g-rules ol, .g-rules ul { padding-left: 22px; }
.g-rules dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.g-rules dt { font-family: var(--g-display); font-weight: 700; color: var(--g-gold); letter-spacing: .04em; }
.g-rules dd { margin: 0; color: var(--g-ink-2); }

/* ---------------- ceremonies: pack opening + reward choice ---------------- */
.g-ceremony { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 45%, rgba(46, 38, 26, .97), rgba(5, 5, 7, .99) 72%); animation: g-fade var(--g-t-slow) both; }
.g-ceremony-stage { position: relative; width: min(1200px, 96vw); height: min(760px, 88vh); perspective: 1400px; }
.g-ceremony-stage > h2 { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-family: var(--g-display); font-size: clamp(28px, 4vw, 44px); letter-spacing: .06em; margin: 0; }
.g-ceremony-stage > .g-sub { position: absolute; top: 56px; left: 0; right: 0; text-align: center; color: var(--g-ink-2); font-size: 18px; }
.g-pack { position: absolute; left: 50%; top: 47%; width: 250px; height: 350px; transform: translate(-50%, -50%); border-radius: 16px; cursor: pointer; border: 0; padding: 0; display: grid; place-items: center; transition: transform .6s var(--g-ease), filter .6s;
  background: linear-gradient(180deg, rgba(20, 24, 30, .25), rgba(8, 9, 12, .55)), url(../assets/surface/hud_slate.webp) center/cover, #29313a;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(214, 170, 96, .35), inset 0 0 0 1px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12); animation: g-pack-float 5s var(--g-ease-io) infinite alternate; }
@keyframes g-pack-float { from { transform: translate(-50%, -50%) rotate(-1.5deg); } to { transform: translate(-50%, -53%) rotate(1deg); } }
.g-pack::before { content: ""; position: absolute; inset: 10px; border-radius: 10px; border: 1.5px solid #c9a24e; box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .25), inset 0 0 0 6px rgba(201, 162, 78, .45); pointer-events: none; }
.g-pack::after { content: ""; position: absolute; left: 10px; right: 10px; top: 74%; height: 1px; background: linear-gradient(90deg, transparent, rgba(243, 223, 162, .7), transparent); }
.g-pack:hover { filter: brightness(1.12); }
.g-pack .g-pack-face { position: relative; text-align: center; font-family: var(--g-display); display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -70px; }
.g-pack .g-pack-face .g-pack-v { font-family: var(--g-italic); font-style: italic; font-weight: 600; font-size: 24px; background: var(--g-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-pack .g-pack-face .g-pack-g { font-weight: 700; font-size: 46px; line-height: .9; letter-spacing: .06em; background: var(--g-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .8)); }
.g-pack .g-pack-face .g-pack-sub { font-size: 12px; letter-spacing: .32em; color: var(--g-ink-2); margin-top: 4px; }
.g-seal { position: absolute; left: 50%; top: 74%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: grid; place-items: center; font-family: var(--g-display); font-weight: 700; font-size: 34px; color: rgba(40, 6, 4, .7);
  background: radial-gradient(circle at 36% 30%, #d9544a, #9b1f1a 55%, #5c0f0c); box-shadow: 0 6px 12px rgba(0, 0, 0, .6), inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 180, 160, .4);
  text-shadow: 0 1px 0 rgba(255, 150, 130, .35); clip-path: polygon(50% 0, 62% 4%, 74% 2%, 82% 10%, 94% 14%, 96% 26%, 100% 38%, 97% 50%, 100% 62%, 94% 74%, 92% 86%, 80% 92%, 70% 98%, 58% 96%, 46% 100%, 34% 96%, 22% 94%, 12% 86%, 6% 74%, 0 62%, 3% 50%, 0 38%, 6% 26%, 10% 14%, 22% 8%, 34% 2%); }
.g-pack-hint { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-family: var(--g-italic); font-style: italic; color: var(--g-ink-2); font-size: 17px; }
.g-pack.opening { animation: g-pack-open 1s var(--g-ease) forwards; }
@keyframes g-pack-open { 40% { transform: translate(-50%, -50%) scale(1.08) rotate(-2deg); filter: brightness(1.6); } 100% { transform: translate(-50%, -50%) scale(.2); opacity: 0; filter: brightness(3); } }
.g-burst { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(243, 223, 162, .8); animation: g-burst 1.1s var(--g-ease) forwards; pointer-events: none; }
@keyframes g-burst { to { box-shadow: 0 0 0 60vmax rgba(243, 223, 162, 0); } }
.g-flip { position: relative; perspective: 1200px; flex: none; }
.g-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--g-ease); }
.g-flip.on .g-flip-inner { transform: rotateY(180deg); }
.g-flip .g-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.g-flip .g-face.front { transform: rotateY(180deg); }
.g-flip.settled .g-flip-inner { transform: none; transition: none; transform-style: flat; }
.g-flip.settled .g-face.back { display: none; }
.g-flip.settled .g-face.front { transform: none; }
.g-flip.settled { perspective: none; }
.g-flip.deal { animation: g-deal .7s var(--g-ease) both; }
@keyframes g-deal { from { opacity: 0; transform: translateY(-60px) scale(.8) rotate(-6deg); } to { opacity: 1; transform: none; } }
.g-flip.on.rare .g-face.front { filter: drop-shadow(0 0 18px rgba(134, 214, 255, .5)); }
.g-flip.on.legendary .g-face.front { filter: drop-shadow(0 0 24px rgba(243, 223, 162, .7)); }
.g-reveal { position: absolute; inset: 100px 0 90px; display: flex; align-items: center; justify-content: center; padding: 10px 20px; }
.g-reveal-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; max-width: 1000px; }
.g-reveal-row .g-flip { cursor: pointer; }
.g-choices { position: absolute; inset: 110px 0 90px; display: flex; gap: clamp(14px, 3vw, 40px); justify-content: center; align-items: center; flex-wrap: wrap; }
.g-choices .g-flip { cursor: pointer; border-radius: 16px; transition: transform var(--g-t) var(--g-ease), box-shadow var(--g-t); }
.g-choices .g-flip.on:hover { transform: translateY(-8px); }
.g-choices .g-flip.picked { transform: translateY(-14px) scale(1.04); box-shadow: 0 0 0 2px var(--g-you), 0 0 46px var(--g-you-glow); }
.g-ceremony-actions { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; }
.g-choice-glow { box-shadow: 0 0 0 2px var(--g-you), 0 0 38px var(--g-you-glow); border-radius: 18px; }

.g-steps { margin-top: 44px; }
.g-steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: 14px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--g-hair-soft); }
.g-step { position: relative; padding: 22px 22px 20px; background: linear-gradient(180deg, rgba(30, 31, 36, .6), rgba(18, 19, 22, .6)); }
.g-step + .g-step { box-shadow: inset 1px 0 0 var(--g-hair-soft); }
.g-step b { font-family: var(--g-display); font-size: 30px; line-height: 1; background: var(--g-gilt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-step h4 { font-family: var(--g-display); font-weight: 700; font-size: 20px; letter-spacing: .06em; margin: 8px 0 6px; }
.g-step p { margin: 0; color: var(--g-ink-2); font-size: 15px; line-height: 1.5; }

.g-decktile { padding-right: 150px; min-height: 160px; }
.g-deckfan { position: absolute; right: 18px; top: 50%; width: 120px; height: 100px; transform: translateY(-50%); pointer-events: none; }
.g-deckfan .g-cardbox { position: absolute; left: 30px; top: 5px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .7)); transition: transform var(--g-t) var(--g-ease); transform-origin: 50% 120%; }
.g-deckfan .g-cardbox:nth-child(1) { z-index: 3; }
.g-deckfan .g-cardbox:nth-child(2) { transform: rotate(-12deg) translateX(-14px); z-index: 2; }
.g-deckfan .g-cardbox:nth-child(3) { transform: rotate(12deg) translateX(14px); z-index: 1; }
.g-decktile:hover .g-deckfan .g-cardbox:nth-child(2) { transform: rotate(-18deg) translateX(-22px); }
.g-decktile:hover .g-deckfan .g-cardbox:nth-child(3) { transform: rotate(18deg) translateX(22px); }
.g-tiles:has(.g-decktile) { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.g-cardgrid .g-cardcell { content-visibility: auto; contain-intrinsic-size: auto 300px; }

/* COA: the Founders' Pack as a gilt casket */
[data-coa-pack="casket"] .g-pack { background: linear-gradient(135deg, #f3dfa2 0%, #c8a24f 22%, #8c6a2c 45%, #e6cb84 62%, #a9853a 80%, #efd99a 100%); width: 300px; height: 230px; border-radius: 14px; }
[data-coa-pack="casket"] .g-pack::before { border-color: rgba(40, 28, 10, .6); box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .12); }
[data-coa-pack="casket"] .g-pack::after { top: 30%; background: linear-gradient(90deg, transparent, rgba(40, 28, 10, .6), transparent); height: 2px; }
[data-coa-pack="casket"] .g-pack .g-pack-face { margin-top: 96px; }
[data-coa-pack="casket"] .g-pack .g-pack-v, [data-coa-pack="casket"] .g-pack .g-pack-g { background: none; color: #2a1c08; filter: none; }
[data-coa-pack="casket"] .g-pack .g-pack-sub { color: #3a2a10; }
[data-coa-pack="casket"] .g-seal { top: 30%; width: 58px; height: 42px; margin: -21px 0 0 -29px; border-radius: 8px; clip-path: none; background: radial-gradient(circle at 40% 30%, #fff2c8, #b8923f 60%, #6d521f); color: #2a1c08; font-size: 22px; }

/* COA preview panel */
.coa-panel { max-width: 860px; max-height: 86vh; overflow: auto; }
.coa-rows { display: grid; gap: 12px; margin-top: 14px; }
.coa-row { border: 0; margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--g-hair-soft); display: grid; gap: 6px; }
.coa-row legend { font-family: var(--g-display); font-weight: 700; letter-spacing: .06em; color: var(--g-gold); padding: 0 4px; }
.coa-row legend small { color: var(--g-ink-3); font-weight: 400; letter-spacing: 0; }
.coa-opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; padding: 4px; border-radius: 6px; }
.coa-opt:hover { background: rgba(255, 255, 255, .03); }
.coa-opt input { margin-top: 5px; accent-color: #c9a24e; }
.coa-opt b { font-family: var(--g-display); letter-spacing: .06em; text-transform: capitalize; }
.coa-opt small { display: block; color: var(--g-ink-2); font-size: 14px; line-height: 1.4; }
.coa-fab { position: fixed; z-index: 70; left: 14px; bottom: 14px; }

@media (max-width: 820px) {
  .g-hall-hero { overflow: hidden; }
  .g-fan { height: 250px; }
  .g-fan .g-cardbox { --w: 150px !important; }
  .g-tile { overflow: hidden; }
  .g-ladder, .g-builder { gap: 18px; }
  .g-rung { grid-template-columns: 70px 1fr; }
  .g-rung .g-rung-state { grid-column: 2; }
  .g-cardgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 10px; }
  .g-cardgrid .g-cardbox { --w: 140px !important; }
  .g-toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .g-toolbar .g-chip { flex: none; }
  .g-decktile { padding-right: 130px; }
  .g-banner h2 { font-size: 22px; }
}
.g-toolbar { scrollbar-width: thin; scrollbar-color: rgba(201,162,78,.3) transparent; }
.g-stat span { font-size: 14px; }
.g-rung .g-rung-state { font-size: 14px; }
.g-rung-no { font-size: 13px; }
.g-inspect-col .g-eyebrow { font-size: 14px; }
.g-pack .g-pack-face .g-pack-sub { font-size: 13.5px; }

/* 2026-10-02: Hall banner card, fan hints */
.g-banner-card { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .7)); transform: rotate(-4deg); }
.g-card-unowned[data-hint]::after { content: attr(data-hint); }
.g-fan .g-card-unowned > .vg-card { filter: grayscale(.85) brightness(.5); }
