/* ================= v2: venue, board, profile, carousel, slideshow, fab ================= */
.hero-venue {
  display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 14px; padding: 9px 14px 9px 10px; border-radius: 999px;
  background: rgba(243, 233, 214, .08); border: 1px solid rgba(243, 233, 214, .16); color: var(--cream); text-decoration: none; font-size: 15px;
  transition: background .2s, transform .2s; max-width: 100%;
}
.hero-venue:hover { background: rgba(243, 233, 214, .14); transform: translateY(-1px); }
.hero-venue .pin { font-size: 18px; animation: bob 2.4s ease-in-out infinite; }
.hero-venue .go { color: var(--kodak); font-weight: 700; font-size: 13px; margin-left: 4px; white-space: nowrap; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; position: relative; z-index: 5; }
.score {
  background: var(--paper-hi); border-radius: 16px; padding: 14px 12px 12px; text-align: center; text-decoration: none; color: var(--ink);
  box-shadow: 0 14px 30px rgba(60, 40, 15, .14), 0 1px 0 rgba(0, 0, 0, .04); border: 1px solid var(--line);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; display: grid; gap: 4px; align-content: center;
}
.score:nth-child(2) { animation-delay: .08s; }
.score:nth-child(3) { animation-delay: .16s; }
.score small { font: 700 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.score b { font: 400 clamp(28px, 7vw, 44px)/1 var(--mono); color: var(--ink); }
.score span { font-size: 12px; color: var(--ink-3); line-height: 1.25; }
.score.hot { background: var(--film); color: var(--cream); border-color: var(--film); }
.score.hot small, .score.hot span { color: rgba(243, 233, 214, .6); }
.score.hot b { color: var(--kodak); text-shadow: 0 0 14px rgba(244, 180, 26, .35); }
.score.cta { background: var(--stamp); border-color: var(--stamp); }
.score.cta b { font: italic 800 clamp(17px, 3.6vw, 24px)/1.1 var(--serif); color: #1a0d04; }
.score.cta small, .score.cta span { color: rgba(26, 13, 4, .7); }
@media (max-width: 420px) { .score { padding: 12px 6px 10px; } .score span { font-size: 11px; } .score small { letter-spacing: .08em; } }

.step { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); margin-bottom: 10px; }
.hello-links { margin-left: auto; display: flex; gap: 14px; }
.nick { font: italic 500 .95em/1.2 var(--serif); color: var(--ink-2); display: block; }
.hello .nick { display: inline; font-weight: 500; }
.emo { position: absolute; left: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.emo.big { width: 40px; height: 40px; font-size: 24px; left: -8px; bottom: -8px; }
.emo.pop { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { 0% { transform: scale(.4) rotate(-20deg); } 100% { transform: none; } }
.av.big { width: 84px; height: 84px; font-size: 28px; }
.prof-preview { display: flex; align-items: center; gap: 20px; padding: 16px; margin: 0 0 18px; border-radius: 16px; background: radial-gradient(120% 120% at 0% 0%, #fff, var(--paper-lo)); border: 1px solid var(--line); }
.pv-name { font: 800 21px/1.2 var(--sans); }
.pv-nick { font: italic 500 18px/1.3 var(--serif); color: var(--ink-2); margin-top: 2px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.emoji-grid button { aspect-ratio: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-size: 24px; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; padding: 0; }
.emoji-grid button:hover { transform: scale(1.1); }
.emoji-grid button[aria-checked="true"] { border-color: var(--stamp); background: #fff1e4; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255, 107, 26, .25); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.total { display: grid; gap: 6px; justify-content: stretch; align-items: stretch; }
.total .tl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink-2); font-size: 15px; }
.total .tl .num { font-family: var(--mono); font-size: 17px; color: var(--ink); white-space: nowrap; }
.total .tl.fee { font-size: 14px; color: var(--ink-3); }
.total .tl.fee .num { color: var(--ink-3); font-size: 15px; }
.total .tl.sum { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; color: var(--ink); font-weight: 700; }

.kid .av-wrap .emo { width: 26px; height: 26px; font-size: 15px; }
.kid .nick { font-size: 12.5px; margin-top: 1px; }

/* carousel */
.carousel { position: relative; aspect-ratio: 4 / 3; max-height: 70vh; width: 100%; border-radius: 18px; overflow: hidden; background: var(--film); margin-bottom: 14px; cursor: zoom-in; box-shadow: 0 20px 44px rgba(40, 25, 10, .25); }
@media (min-width: 900px) { .carousel { aspect-ratio: 16 / 9; } }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.on img { animation: kenburns 7s ease-out both; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)); }
.slide figcaption { position: absolute; left: 18px; right: 18px; bottom: 50px; z-index: 2; color: #fff; display: grid; gap: 2px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.slide figcaption .c { font: italic 600 clamp(18px, 3vw, 26px)/1.2 var(--serif); }
.slide figcaption .b { font-size: 13px; opacity: .85; }
.slide.on figcaption { animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.car-ui { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; cursor: default; }
.car-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.car-dots { display: flex; gap: 6px; }
.car-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.car-dots i.on { width: 20px; background: var(--kodak); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* live slideshow */
.show { position: fixed; inset: 0; z-index: 400; background: #000; color: #fff; overflow: hidden; animation: fade .4s ease; }
.show-stage .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.4s ease; }
.show-stage .layer.vis { opacity: 1; }
.show-stage .layer.kb1 { animation: kb1 8s ease-out both; }
.show-stage .layer.kb2 { animation: kb2 8s ease-out both; }
@keyframes kb1 { from { transform: scale(1.08) translate(-1%, -1%); } to { transform: scale(1); } }
@keyframes kb2 { from { transform: scale(1); } to { transform: scale(1.08) translate(1%, 1%); } }
.show::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%, transparent 70%, rgba(0, 0, 0, .7)); pointer-events: none; }
.show-cap { position: absolute; left: 4vw; bottom: 4vh; right: 30vw; z-index: 2; }
.show-cap .c { font: italic 600 clamp(22px, 3.2vw, 44px)/1.2 var(--serif); }
.show-cap .b { font-size: clamp(14px, 1.4vw, 20px); opacity: .85; margin-top: 4px; }
.show-brand { position: absolute; left: 4vw; top: 3vh; z-index: 2; display: flex; align-items: center; gap: 16px; }
.show-brand .t { font: italic 600 clamp(18px, 2vw, 28px)/1 var(--serif); }
.show-brand em { color: var(--stamp); font-weight: 900; }
.show-qr { position: absolute; right: 3vw; bottom: 4vh; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; background: rgba(20, 17, 16, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 700 clamp(13px, 1.2vw, 17px)/1.25 var(--sans); }
.show-qr .big { font-size: 32px; }
.show-x { position: absolute; right: 16px; top: 16px; z-index: 3; opacity: .5; }
.show-x:hover { opacity: 1; }

/* floating upload button */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 150; display: grid; justify-items: end; gap: 10px; }
.fab-btn {
  order: 2; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--stamp); color: #1a0d04; font: 800 16px/1 var(--sans); box-shadow: 0 12px 28px rgba(255, 107, 26, .45), 0 2px 6px rgba(0, 0, 0, .2);
  animation: fabIn .7s .8s cubic-bezier(.3, 1.6, .5, 1) both; transition: transform .15s;
}
.fab-btn:active { transform: scale(.96); }
.fab-btn .ic { font-size: 22px; }
@keyframes fabIn { from { transform: translateY(40px) scale(.6); opacity: 0; } }
.fab-menu { order: 1; width: 250px; background: var(--paper-hi); border-radius: 18px; padding: 14px; box-shadow: 0 20px 50px rgba(30, 20, 10, .3); border: 1px solid var(--line); animation: rise .25s ease both; }
.fab-menu p { margin: 0 0 10px; font: 700 13px/1.3 var(--sans); color: var(--ink-3); }
.fab-menu button { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, transform .15s; }
.fab-menu button:hover { border-color: var(--stamp); transform: translateX(-2px); }
.fab-menu button b { display: block; font-size: 15px; }
.fab-menu button small { color: var(--ink-3); font-size: 12.5px; }
.fab-menu button:last-child { margin-bottom: 0; }
.toast { bottom: max(90px, calc(env(safe-area-inset-bottom) + 80px)); }
.foot { padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 90px)); }

/* scroll reveal */
.sec { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.sec.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sec { opacity: 1; transform: none; transition: none; }
  .reveal, .score, .kid, .pile-card, .fab-btn { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* login gate: first screen */
body.anon .tabs, body.anon main, body.anon .fab { display: none !important; }
body.anon .hero { min-height: 100svh; display: grid; align-content: center; }
body.anon .foot { margin-top: 0; }
.hero-login { max-width: 460px; }
.gate-lead { color: rgba(243, 233, 214, .85); margin: 0 0 16px; font-size: 16px; }
.gate-fine { color: rgba(243, 233, 214, .5); font-size: 13px; margin: 14px 0 0; }
.hero-login .gbtn-wrap { min-height: 44px; }
.hero-login .notice { margin-top: 12px; }
.toast { opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .3, 1.2), opacity .25s, visibility .25s; }
.toast.show { opacity: 1; visibility: visible; }
.classphoto { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.kid .nm { overflow-wrap: break-word; hyphens: auto; max-width: 110px; font-size: 13px; }
