/* gammo.app home page: layout of the lounge (materials live in site.css). Mobile first. */

/* ---------- hero ---------- */
.hero { padding: 0; overflow: hidden; }
/* lamp glows sit on the painted lanterns (scene anchors from tools/art/.out/anchors.json) */
.world .scene .l1 { left: 6.7%; top: 51.4%; }
.world .scene .l2 { left: 92.8%; top: 44.7%; }
.world .scene .l3, .world .scene .l4 { display: none; }
.hero .scene .firefly { top: 60%; }
@media (min-width: 700px) {
  .world .scene .lamp-glow { width: 13%; }
  .world .scene .l1 { left: 3.4%; top: 51.2%; }
  .world .scene .l2 { left: 96.6%; top: 45%; }
  .world .scene .l3 { display: block; left: 31.8%; top: 51.2%; width: 11.5%; }
  .world .scene .l4 { display: block; left: 68.2%; top: 48.9%; width: 11.5%; }
}
.hero-sign { position: relative; z-index: 3; margin-top: -1px; }
.hero-grid { display: grid; gap: 8px; }
.hero-main { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 70px; }

.cast { --S: 112px; position: relative; z-index: 1; width: calc(var(--S) * 2.27); height: var(--S); margin-bottom: calc(var(--S) * -.17); }
.cast .mascot { position: absolute; }
.cast .c-roxy { --s: calc(var(--S) * .68); left: 0; bottom: calc(var(--S) * .065); }
.cast .c-pip { --s: calc(var(--S) * .68); left: calc(var(--S) * 1.3); bottom: calc(var(--S) * .08); }
.cast .c-rex { --s: var(--S); left: calc(var(--S) * .49); bottom: 0; }
.cast .c-cube { --s: calc(var(--S) * .4); right: 0; bottom: calc(var(--S) * .14); }
.cast::before { /* a pool of lamp light behind the cast (TitleCast glow) */
  content: ''; position: absolute; left: -14%; right: -14%; top: 30%; height: 120%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 207, 106, .3), rgba(255, 207, 106, .08) 55%, transparent);
}

.counter { position: relative; z-index: 2; width: 100%; max-width: 560px; text-align: center; padding: 22px 18px 24px; }
.counter .kicker { margin: 0 0 4px; font-family: var(--display); font-weight: var(--display-weight); color: var(--brass); font-size: 19px; letter-spacing: .4px; }
.counter h1 { font-size: clamp(27px, 7.2vw, 38px); color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, .55); margin-bottom: 12px; }
.hero-lead { margin: 0 auto 20px; max-width: 44ch; color: var(--teal-text); font-size: 16.5px; font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.counter .stores { justify-content: center; margin-top: 24px; }

.hero-phones { position: relative; height: 380px; margin: 26px auto -54px; width: 100%; max-width: 380px; z-index: 1; }
.hero-phones .phone { position: absolute; bottom: 0; }
.hero-phones .back { --w: 158px; left: 6%; transform: rotate(-7deg); bottom: 14px; filter: brightness(.86); }
.hero-phones .front { --w: 176px; right: 8%; transform: rotate(4deg); }
.hero-bubble { position: absolute; right: 0; top: 4px; z-index: 2; transform: rotate(3deg); }
.hero .table-edge { position: relative; z-index: 3; }

@media (min-width: 700px) {
  .cast { --S: 150px; }
  .hero-main { padding-top: 64px; }
}
@media (min-width: 980px) {
  .cast { --S: 172px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: end; gap: 24px; margin-top: -20px; }
  .hero-main { padding-top: 40px; padding-bottom: 36px; }
  .hero-phones { height: 560px; max-width: none; margin: 0 0 -60px; }
  .hero-phones .back { --w: 232px; left: 4%; bottom: 40px; }
  .hero-phones .front { --w: 252px; right: 6%; }
  .hero-bubble { right: 2%; top: 30px; }
}

/* ---------- section rhythm ---------- */
.lights { height: 40px; margin: 0 auto; background: url(/art/decor/lights.svg) center top / 240px 40px repeat-x; opacity: .95; }

/* ---------- the twist ---------- */
.twist-grid { display: grid; gap: 34px; }
.rules .felt { align-items: flex-start; }
.cube-ico { background: #fff6e6 !important; color: #78490f !important; border-radius: 11px !important; font-family: 'Lilita One', var(--display); font-size: 22px; border-color: #d99a1e !important; }
.board-stage { position: relative; }
.board-img img { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6)); }
.board-coach { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.note-classic { margin: 20px auto 0; max-width: 360px; }
@media (min-width: 980px) {
  .twist-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  .board-coach { position: absolute; left: -36px; top: -96px; margin: 0; }
  .note-classic { position: absolute; right: -10px; bottom: -36px; margin: 0; }
}

/* coach: a mascot with a speech bubble (CoachCard) */
.coach { display: flex; align-items: center; gap: 12px; }
.coach .mascot { flex: 0 0 auto; }

/* ---------- friends ---------- */
.friends-grid { display: grid; gap: 34px; }
.panel-title .panel-aside { float: right; font-family: var(--body); font-weight: 800; font-size: 13.5px; color: var(--teal-text); margin-top: 5px; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: 'Lilita One', var(--display); font-size: 18px; color: #1a120b; background: var(--c); border: 3px solid var(--rim); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.your-move .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chat-panel { display: flex; flex-direction: column; gap: 16px; }
.chat { display: flex; align-items: flex-end; gap: 6px; }
.chat .speech { margin-bottom: 18px; }
.chat.c2 { justify-content: flex-end; }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--inset); border: 2px solid var(--inset-border); color: #8f7a5a; font-weight: 700; }
.chat-input .send { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, var(--plq-a), var(--plq-b)); border: 2px solid var(--rim); color: var(--brass); }
.chat-input .send svg { width: 18px; height: 18px; }
.notes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 980px) { .friends-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; } }

/* ---------- fair dice ---------- */
.world-band { background: radial-gradient(70% 60% at 70% 40%, rgba(87, 240, 221, .08), transparent 70%); }
.fair-grid { display: grid; gap: 34px; }
.cube-note { max-width: 330px; }
.cube-note p + p { margin-top: 8px; }
.tray { max-width: 520px; width: 100%; justify-self: center; }
.felt-tray { border-radius: 14px; background: radial-gradient(120% 90% at 50% 30%, #145049, var(--felt) 70%); border: 1px solid var(--felt-border); box-shadow: inset 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 40px rgba(0, 0, 0, .35); padding: 22px 14px 16px; text-align: center; }
.felt-tray .dice { display: flex; justify-content: center; gap: 18px; }
.die { width: 84px; height: 84px; filter: drop-shadow(0 7px 0 rgba(0, 0, 0, .35)); }
.die.rolling { animation: tumble .5s ease; }
@keyframes tumble { 0% { transform: rotate(0) scale(.85); } 40% { transform: rotate(160deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }
.stamp { margin-top: 14px; font-size: 13px; font-weight: 800; color: var(--felt-sub); }
.stamp code { display: block; margin-top: 4px; font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cream); word-break: break-all; opacity: .85; }
.tray-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.tray-actions .n { font-family: var(--body); font-weight: 900; font-size: .8em; opacity: .8; }
.verify { margin: 14px 0 0; text-align: center; color: var(--tan); font-weight: 800; font-size: 14.5px; min-height: 2.6em; }
.verify.ok { color: #7ff0c8; }
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.js button.js-only { display: inline-flex !important; }
@media (min-width: 980px) { .fair-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }

/* ---------- practice ---------- */
.practice-row { display: grid; gap: 30px; align-items: center; }
.practice-art { position: relative; display: flex; justify-content: center; padding-bottom: 20px; }
.practice-art .phone { transform: rotate(-3deg); }
.big-coach { position: absolute; right: 0; bottom: -6px; flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
.big-coach .speech { max-width: 200px; }
.big-coach .speech::after { left: auto; right: 34px; }
@media (min-width: 420px) { .big-coach { right: 4%; } }
@media (min-width: 980px) { .practice-row { grid-template-columns: .9fr 1.1fr; gap: 56px; } .big-coach { right: 6%; } }

/* ---------- notice board ---------- */
.board-notes { padding: 34px 20px 30px; }
.board-notes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.board-notes .parchment { padding-top: 22px; }
.note-ico { float: right; width: 38px; height: 38px; margin: -4px -4px 4px 8px; border-radius: 50%; display: grid; place-items: center; color: var(--parch-accent); border: 2px solid var(--parch-edge); }
.note-ico svg { width: 22px; height: 22px; }
.peek-pip { position: absolute; right: 14px; top: -62px; }
#together .sec-head { margin-bottom: 64px; }
@media (min-width: 760px) { .board-notes ul { grid-template-columns: repeat(3, 1fr); gap: 26px; } .board-notes { padding: 40px 30px 36px; } }

/* ---------- achievements ---------- */
.ach-grid { display: grid; gap: 26px; align-items: center; }
.trophy { position: relative; display: flex; flex-direction: column; align-items: center; }
.trophy::before { content: ''; position: absolute; width: 230px; height: 230px; top: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(87, 240, 221, .16), transparent); }
.trophy .crown { position: relative; z-index: 2; margin-bottom: -26px; }
.trophy .mascot { position: relative; }
.plinth { display: block; width: 150px; height: 16px; margin-top: -10px; border-radius: 6px; background: linear-gradient(180deg, var(--plq-a), var(--plq-b)); border: 2px solid var(--rim); border-bottom: 5px solid var(--plq-depth); }
.badge-shelf { list-style: none; margin: 8px 0 0; padding: 0 6px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 2px; position: relative; }
.badge-shelf li { width: 64px; }
.badge-shelf img { width: 64px; height: 64px; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .35)); }
.badge-shelf::after { content: ''; flex: 1 0 100%; height: 14px; margin-top: -4px; border-radius: 4px; background: var(--grain) 0 0 / 64px 64px, #3a2214; border-top: 3px solid var(--wood-border); box-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
@media (min-width: 560px) { .badge-shelf { justify-content: flex-start; } .badge-shelf li, .badge-shelf img { width: 92px; height: 92px; } }
@media (min-width: 980px) { .ach-grid { grid-template-columns: .7fr 1.3fr; gap: 48px; } }

/* ---------- looks + club ---------- */
.display-shelf {
  position: relative; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 30px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none;
}
.display-shelf::-webkit-scrollbar { display: none; }
.display-shelf figure { flex: 0 0 78%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.display-shelf figure img { width: 100%; height: auto; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .55)); }
.name-plate {
  margin-top: 14px; display: flex; flex-direction: column; align-items: center; padding: 6px 16px 7px; border-radius: 10px;
  background: radial-gradient(130% 160% at 30% 10%, var(--coin-a), var(--coin-b) 45%, var(--coin-c)); border: 2px solid var(--coin-border);
  box-shadow: 0 4px 0 var(--coin-depth); color: var(--coin-ink); text-align: center;
}
.name-plate b { font-family: 'Lilita One', var(--display); font-weight: 400; font-size: 18px; letter-spacing: .4px; line-height: 1.1; }
.name-plate span { font-size: 12.5px; font-weight: 900; line-height: 1.3; }
@media (min-width: 760px) {
  .display-shelf { overflow: visible; margin: 0; padding: 8px 0 40px; gap: 24px; }
  .display-shelf figure { flex: 1 1 0; }
  .display-shelf::after { /* the carved shelf the boards stand on */
    content: ''; position: absolute; left: -10px; right: -10px; bottom: 74px; height: 20px; z-index: -1; border-radius: 6px;
    background: var(--grain) 0 0 / 64px 64px, #3a2214; border-top: 3px solid var(--wood-border); box-shadow: 0 6px 0 rgba(0, 0, 0, .4);
  }
}
.club-grid { display: grid; gap: 40px; margin-top: 34px; }
.club-card { padding: 26px 22px 22px; }
.club-crown { float: right; margin: -6px -2px 0 10px; width: 54px; height: 54px; }
.club-h { font-size: 32px; color: var(--parch-ink); margin-bottom: 6px; }
.perks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.perks li { position: relative; padding-left: 28px; font-weight: 800; font-size: 15.5px; line-height: 1.45; }
.perks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--coin-a), var(--coin-b) 50%, var(--coin-c)); border: 1.5px solid var(--coin-depth); }
.club-card .fine { font-size: 13.5px; }
.club-side { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 980px) { .club-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; } }

/* ---------- winter ---------- */
.winter { background: var(--wn-sky); color: #f4f8ff; overflow: hidden; isolation: isolate; padding-top: 72px; }
.winter-sky { position: absolute; inset: 0 0 auto 0; z-index: -1; }
.winter-sky img { width: 100%; height: auto; opacity: .9; }
.winter-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 24, 48, .25), rgba(11, 24, 48, .7) 62%, var(--wn-sky)); }
.winter .table-edge { margin-top: 56px; }
.winter-grid { display: grid; gap: 30px; }
.winter-panel {
  position: relative; border-radius: 18px; border: 2px solid var(--wn-border); background: var(--wn-panel); overflow: hidden;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .4); align-self: center;
}
.winter-panel img { width: 100%; height: auto; }
.knit { /* Selbu knit trim (ornaments.tsx KnitTrim) */
  display: block; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Crect width='12' height='10' fill='%23c22f2a'/%3E%3Cpath d='M6 1.5 L7.6 5 L6 8.5 L4.4 5 Z' fill='%23fff'/%3E%3Crect x='0' y='4.2' width='1.6' height='1.6' fill='%23fff'/%3E%3Crect x='10.4' y='4.2' width='1.6' height='1.6' fill='%23fff'/%3E%3Crect width='12' height='1' fill='%23fff' opacity='.85'/%3E%3Crect y='9' width='12' height='1' fill='%23fff' opacity='.85'/%3E%3C/svg%3E") 0 0 / 12px 10px repeat-x;
}
.winter .sec-head h2 { color: #fff; text-shadow: 0 0 14px rgba(87, 200, 255, .45), 0 3px 0 #0a1428; }
.pill.ice { background: #0b1630; border-color: var(--wn-border); }
.pill.ice svg { color: var(--wn-ice); }
.winter-props { display: flex; align-items: flex-end; gap: 16px; }
.winter-props .phone { --w: 118px !important; }
@media (min-width: 560px) { .winter-props .phone { --w: 150px !important; } }
.winter-props .phone { flex: 0 0 auto; transform: rotate(-3deg); box-shadow: 0 0 0 2px #9fc3ee, 0 24px 40px -12px rgba(0, 0, 0, .75); background: linear-gradient(160deg, #1d355c, #0a1428); }
.winter-props .selbu { flex: 1 1 auto; min-width: 0; }
.winter-props .selbu img { width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); }
@media (min-width: 980px) { .winter-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; } }

/* ---------- faq ---------- */
.faq-wrap { max-width: 860px; }
.faq { padding: 14px 14px 12px; }
.qa { border-radius: 12px; background: var(--felt); border: 1px solid var(--felt-border); box-shadow: inset 0 4px 0 rgba(0, 0, 0, .28); }
.qa + .qa { margin-top: 10px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 16px; font-weight: 900; font-size: 16.5px; min-height: 52px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: 'Lilita One', var(--display); font-size: 20px; color: var(--coin-ink); background: radial-gradient(circle at 35% 30%, var(--coin-a), var(--coin-b) 55%, var(--coin-c)); border: 2px solid var(--coin-border); box-shadow: 0 3px 0 var(--coin-depth); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 16px 16px; color: var(--felt-sub); font-weight: 700; }

/* ---------- get ---------- */
.get { text-align: center; padding-bottom: 0; overflow: hidden; padding-top: 120px; }
@media (min-width: 980px) { .get { padding-top: 200px; } }
.get-cast { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; margin-bottom: -22px; }
.get-panel { position: relative; z-index: 2; max-width: 640px; margin: 0 auto 40px; padding: 28px 18px 30px; }
.get-panel h2 { font-size: clamp(28px, 6.6vw, 40px); margin: 14px 0 10px; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.get-panel p { color: var(--teal-text); font-weight: 800; margin: 0 auto 26px; max-width: 42ch; }
.get-panel .stores { justify-content: center; margin-bottom: 22px; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:not(:empty) { background: var(--parch); color: var(--parch-ink); border: 2px solid var(--parch-edge); border-radius: 12px; padding: 10px 16px; font-weight: 900; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
@media (min-width: 700px) { .sec { padding: 84px 0; } }
.sec.get { padding-bottom: 0; }
.sec.winter { padding-bottom: 0; }
