:root { --ink: #fff7ea; --red: #ff2d4b; --gold: #ffcf7a; --bg: #120c08; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Apple SD Gothic Neo", Thonburi, sans-serif; -webkit-user-select: none; user-select: none; }
#c { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }

.title { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(120% 80% at 50% 40%, rgba(18,12,8,0) 0%, rgba(18,12,8,.55) 70%, rgba(8,5,3,.85) 100%); transition: opacity .9s ease; }
.title.gone { opacity: 0; pointer-events: none; }
.title__inner { max-width: 560px; }
.neon { margin: 0; font-size: clamp(42px, 12vw, 92px); line-height: .92; font-weight: 900; letter-spacing: -.02em; color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--red), 0 0 42px var(--red), 0 0 80px rgba(255,45,75,.6); animation: buzz 4.2s infinite steps(1); }
@keyframes buzz { 0%, 61%, 64%, 100% { opacity: 1 } 62%, 63.5% { opacity: .45 } }
.tag { margin: 18px 0 26px; font-size: clamp(16px, 4.4vw, 21px); color: #f3e5cf; text-shadow: 0 2px 12px #000; }
.enter { font: 800 20px/1 inherit; font-family: inherit; color: #1a0d06; background: linear-gradient(#ffe3a6, #ffbf55); border: 0; border-radius: 999px; padding: 18px 46px; box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset, 0 10px 40px rgba(255,170,60,.45); cursor: pointer; }
.enter:active { transform: scale(.97); }
.hint { margin-top: 18px; font-size: 13px; opacity: .7; }

/* narrator captions: styled like the viral captions the narrator worships */
.sub { position: fixed; left: 16px; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); text-align: center; pointer-events: none; font-weight: 900; font-size: clamp(19px, 5.4vw, 30px); line-height: 1.18; color: #fff; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.sub.on { opacity: 1; }
.sub .w { display: inline-block; animation: pop .22s cubic-bezier(.3,1.6,.5,1) both; }
.sub .w.hl { color: #ffe14a; }
.sub.loud { font-size: clamp(24px, 7vw, 40px); color: #ffe14a; }
@keyframes pop { from { transform: scale(.4) translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }

.stamp { position: fixed; top: 38%; left: 50%; transform: translate(-50%, -50%) rotate(-9deg); font-weight: 900; font-size: clamp(44px, 14vw, 96px); color: var(--red); border: 6px solid var(--red); padding: 4px 18px 8px; border-radius: 10px; text-shadow: 0 0 22px rgba(255,45,75,.8); pointer-events: none; animation: stamp .5s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-9deg) scale(2.2); opacity: 0 } to { transform: translate(-50%, -50%) rotate(-9deg) scale(1); opacity: 1 } }
.toast { position: fixed; top: calc(18px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 16px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); padding: 10px 18px; border-radius: 999px; pointer-events: none; }

.card { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 30%, rgba(255,214,150,.55), rgba(255,170,90,.25) 50%, rgba(20,10,6,.9)); animation: fadein 1.2s ease both; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.receipt { width: min(360px, 100%); background: #fbf6ec; color: #1d1712; font-family: "Courier New", "Hiragino Sans", monospace; padding: 22px 20px 16px; box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(-1.2deg); position: relative; -webkit-mask: radial-gradient(8px at 8px 100%, #0000 98%, #000) -8px 0 / 16px 100% repeat-x; }
.receipt h2 { margin: 0 0 12px; text-align: center; letter-spacing: .3em; font-size: 20px; border-bottom: 2px dashed #1d1712; padding-bottom: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px dotted #b8ad9b; }
.row b { font-size: 18px; }
.line { margin: 14px 0 6px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.soon { margin: 0 0 10px; font-size: 12px; opacity: .7; line-height: 1.35; }
.barcode { height: 34px; background: repeating-linear-gradient(90deg, #1d1712 0 2px, transparent 2px 4px, #1d1712 4px 7px, transparent 7px 8px, #1d1712 8px 9px, transparent 9px 12px); }
.btn { font: 800 16px/1 inherit; font-family: inherit; width: min(360px, 100%); padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; }
.btn--main { background: linear-gradient(#ffe3a6, #ffbf55); color: #1a0d06; border: 0; }
.bootfail { position: fixed; inset: auto 16px 40px; text-align: center; background: #000; padding: 14px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .neon { animation: none } .sub .w, .stamp { animation: none } }
/* group-chat line (11-09): the quip under the receipt + "Send to the group chat" with explicit LINE / WhatsApp links. */
.tsQuip { margin: 0; width: min(360px, 100%); text-align: center; font-size: 14px; line-height: 1.3; font-weight: 800; color: #ffe3a6; }
.tsRow { display: flex; gap: 6px; width: min(360px, 100%); }
.tsRow .btn { flex: 1; min-width: 0; width: auto; padding: 13px 10px; border-color: rgba(255,191,85,.7); }
.tsLink { flex: 0 0 auto; display: flex; align-items: center; padding: 0 11px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.card:has(#tsRow:not([hidden])) { gap: 9px; }
.card:has(#tsRow:not([hidden])) .btn { padding-top: 13px; padding-bottom: 13px; }
.card:has(#tsRow:not([hidden])) .receipt { padding-top: 16px; padding-bottom: 12px; }
