:root { --ink: #241a1e; --pink: #d3405f; --gold: #f0b03a; --teal: #2aa39b; --cream: #fbf3e4; --violet: #5d4585; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f0a36b; color: var(--ink); font-family: Poppins, 'IBM Plex Sans', sans-serif; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#load { position: fixed; inset: 0; display: grid; place-items: center; background: #f0a36b; font-weight: 800; font-size: 20px; z-index: 40; transition: opacity .5s; } #load.off { opacity: 0; pointer-events: none; }
.st { color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .5), 0 0 18px rgba(0, 0, 0, .45); font-weight: 800; }

#hud { position: fixed; top: max(8px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); text-align: right; pointer-events: none; }
#num { font-size: clamp(30px, 4.6vw, 50px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#time { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-size: clamp(18px, 2.2vw, 26px); font-variant-numeric: tabular-nums; pointer-events: none; } #time.hot { color: var(--gold); animation: beat .5s infinite alternate; } @keyframes beat { to { transform: translateX(-50%) scale(1.18); } }
#letters { position: fixed; top: 62px; left: 50%; transform: translate(-50%, -20px); display: flex; gap: 5px; opacity: 0; transition: .3s; pointer-events: none; } #letters.on { opacity: 1; transform: translate(-50%, 0); } #letters i { font: 800 20px Poppins, sans-serif; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(42, 24, 56, .55); color: rgba(251, 238, 214, .4); } #letters i.ok { background: var(--gold); color: var(--ink); }
#combo { position: fixed; left: 50%; bottom: 11%; transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; width: 92vw; } #combo.on { opacity: 1; }
#combo .l { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; } #combo span { background: var(--cream); color: var(--ink); font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 99px; } #combo span.n { background: var(--violet); color: #fff; font-size: 17px; animation: pop .18s ease-out; } @keyframes pop { from { transform: scale(1.7); } }
#combo b { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; color: var(--cream); -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; font-variant-numeric: tabular-nums; } #combo.on:not(.bank)::after { content: ''; display: block; height: 5px; width: 170px; margin: 2px auto 0; border-radius: 9px; background: var(--gold); transform: scaleX(var(--l, 1)); border: 1px solid var(--ink); } #combo.bank b { color: var(--gold); font-size: clamp(32px, 5vw, 56px); display: inline-block; animation: bank .9s forwards; } @keyframes bank { 0% { transform: scale(.6); } 20% { transform: scale(1.15); } 70% { opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }
#say { position: fixed; left: 50%; top: 19%; transform: translate(-50%, -10px); opacity: 0; transition: .25s; font-size: clamp(16px, 2vw, 23px); text-align: center; pointer-events: none; width: 88vw; } #say.on { opacity: 1; transform: translate(-50%, 0); }
#quest { position: fixed; right: 16px; top: 118px; background: var(--teal); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 12px; border: 3px solid var(--ink); transform: translateX(120%); pointer-events: none; visibility: hidden; } #quest i { display: block; font-size: 12px; font-style: normal; color: var(--ink); } #quest.on { animation: slide 4s; visibility: visible; } @keyframes slide { 0%, 100% { transform: translateX(120%); } 8%, 90% { transform: none; } }
#trophy { position: fixed; inset: 18% 0 auto; text-align: center; pointer-events: none; opacity: 0; } #trophy div { font-size: clamp(64px, 11vw, 130px); line-height: 1.1; } #trophy b { display: block; font-size: clamp(26px, 4.6vw, 54px); font-weight: 800; color: var(--gold); -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; } #trophy span { font-size: 26px; font-weight: 800; color: var(--cream); -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; } #trophy.on { animation: tro 3.4s cubic-bezier(.2, 1.4, .4, 1); } @keyframes tro { 0% { opacity: 0; transform: scale(.2) rotate(-14deg); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-40px); } }
#result { position: fixed; left: 16px; bottom: 16px; background: var(--cream); border-radius: 18px; padding: 14px 20px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); transform: translateX(-130%); transition: transform .45s cubic-bezier(.2, 1.2, .4, 1); } #result.on { transform: none; } #result div > * { display: block; font-style: normal; } #result small, #result span { font-size: 13px; font-weight: 600; } #result strong { font-size: 44px; font-weight: 800; line-height: 1.1; color: var(--pink); font-variant-numeric: tabular-nums; } #result em { font-weight: 800; color: var(--teal); }
button { font: 700 16px Poppins, sans-serif; color: var(--ink); cursor: pointer; } #again { margin-top: 10px; background: var(--gold); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 16px; }
#orb { position: fixed; left: 70px; top: 12px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff3c4; background: radial-gradient(circle at 35% 30%, #fff0b0, #f7b733 45%, #b9741a); padding: 0; display: grid; place-items: center; z-index: 22; } #orb svg { width: 26px; height: 26px; }
#orb:focus-visible, #menu button:focus-visible, #again:focus-visible { outline: 3px solid #fff; }
#menu { position: fixed; inset: 0; z-index: 20; background: rgba(42, 24, 56, .5); display: none; place-items: center; padding: 70px 14px 14px; overflow: auto; } #menu.on { display: grid; grid-template-columns: minmax(0, 1fr); }
#card { background: var(--cream); border-radius: 20px; box-shadow: 0 18px 60px rgba(0, 0, 0, .45); padding: 22px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; width: min(920px, 100%); }
#items { display: flex; flex-direction: column; gap: 7px; } #items button { text-align: left; background: #fff; border: 0; border-radius: 11px; padding: 11px 14px; box-shadow: 0 1px 4px rgba(36, 26, 30, .16); } #items button b { display: block; font-size: 13px; color: var(--pink); } #items button.f, #items button:hover { background: var(--gold); } #items button.f b, #items button:hover b { color: var(--ink); }
#card h3 { margin: 4px 0 12px; font-size: 19px; } #quests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; } #quests li { padding-left: 26px; position: relative; } #quests li::before { content: ''; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; box-shadow: inset 0 0 0 2px var(--ink); border-radius: 5px; } #quests li.ok::before { background: var(--teal); } #quests li.ok b { color: #17756f; } #quests b { display: block; font-size: 14px; line-height: 1.3; } #quests span { font-size: 12.5px; line-height: 1.35; display: block; }
#card.lv { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; } .lv button { text-align: left; border: 0; padding: 0 0 12px; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 1px 4px rgba(36, 26, 30, .2); } .lv img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #c98f6c; } .lv b, .lv span { display: block; padding: 0 13px; } .lv b { margin-top: 9px; font-size: 17px; } .lv span { font-size: 12.5px; font-weight: 500; } .lv button.f, .lv button:hover { background: var(--gold); }
#card.fr { display: block; width: min(540px, 100%); } .fr button { border: 0; border-radius: 12px; padding: 11px 18px; background: #fff; box-shadow: 0 1px 4px rgba(36, 26, 30, .18); } .fr button.f, .fr button:hover { background: var(--gold); } .fr h4 { margin: 20px 0 8px; font-size: 15px; } .fr p { margin: 8px 0 0; font-size: 14px; }
.fr form { display: flex; gap: 10px; } #code { flex: 1; min-width: 0; font: 800 28px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 14px; background: #fff; -webkit-user-select: text; user-select: text; outline-offset: 2px; } #code::placeholder { color: #a79b9b; font-weight: 600; } #code.no { animation: no .35s; } @keyframes no { 25%, 75% { transform: translateX(-7px); } 50% { transform: translateX(7px); } } .fr .go { background: var(--teal); color: #fff; font-size: 19px; }
.fr .rooms, .fr .end, .fr .now div { display: flex; flex-wrap: wrap; gap: 8px; } .fr .rooms button { font-size: 20px; font-weight: 800; letter-spacing: .05em; } .fr .end { margin-top: 22px; } .fr .now { background: #fff; border-radius: 14px; padding: 12px 16px 14px; margin-bottom: 16px; } .fr .now span { display: block; font-size: 14px; font-weight: 600; } .fr .now strong { display: block; font-size: 38px; line-height: 1.2; letter-spacing: .08em; color: var(--pink); } .fr .now div { margin-top: 8px; } .fr .now button { background: var(--cream); } .fr .now button.f, .fr .now button:hover { background: var(--gold); }
.keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 12px; } .fr .keys button { padding: 8px 0; }
#pick { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: none; align-items: center; gap: 16px; z-index: 21; } #pick.on { display: flex; } #pick > button { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--cream); font-size: 34px; line-height: 1; padding: 0 0 5px; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); } #pick div { text-align: center; background: var(--cream); border-radius: 18px; padding: 10px 22px 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); min-width: 220px; } #pick div b { display: block; font-size: 22px; } #pick span { display: flex; justify-content: center; gap: 7px; padding: 7px 0 11px; cursor: pointer; } #pick i { width: 20px; height: 20px; border-radius: 50%; } #pick i.f { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink); } #pick div button { border: 0; background: var(--gold); border-radius: 10px; padding: 8px 18px; }
.p0 { background: #2a8b86; } .p1 { background: #e2a12c; } .p2 { background: #b8384e; } .p3 { background: #5d4585; } .p4 { background: #e6d9c2; box-shadow: inset 0 0 0 1px #998; } .p5 { background: #d9702f; } body.picking #hud, body.picking #time, body.picking #say, body.picking #combo, body.picking #track, body.picking #people, body.picking #tags, body.picking #talk, body.picking #jump { visibility: hidden; }
#tags { position: fixed; inset: 0; overflow: hidden; pointer-events: none; } .tag { position: absolute; left: 0; top: 0; text-align: center; will-change: transform; } .tag b { display: block; font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); white-space: nowrap; } .tag i { font-style: normal; font-size: 34px; line-height: 1; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); }
#people { position: fixed; right: max(16px, env(safe-area-inset-right)); top: 148px; text-align: right; pointer-events: none; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); font-size: 14px; font-weight: 600; } #people p { margin: 0 0 2px; } #people b { margin-left: 10px; font-variant-numeric: tabular-nums; } #people .me { color: var(--gold); }
#track { position: fixed; left: 50%; top: 52px; transform: translateX(-50%); color: #fff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 5px rgba(0, 0, 0, .85); opacity: 0; transition: .3s; pointer-events: none; text-align: center; width: 70vw; } #track.on { opacity: 1; }
#talk { position: fixed; left: 18px; bottom: 18px; width: min(370px, 92vw); transform: translate(0, 130%); visibility: hidden; transition: .35s; background: var(--cream); border-radius: 18px; padding: 13px 20px 15px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); pointer-events: none; z-index: 6; } #talk.on { transform: none; visibility: visible; } #talk b { font-size: 14px; color: var(--pink); } #talk p { margin: 2px 0 0; font-size: 16px; font-weight: 500; line-height: 1.4; } #talk em { display: block; margin-top: 7px; font-style: normal; font-weight: 700; font-size: 15px; } .touch #talk { left: 50%; bottom: auto; top: 118px; transform: translate(-50%, -260%); } .touch #talk.on { transform: translate(-50%, 0); }
#emote { position: fixed; left: 50%; top: 34%; font-size: 70px; transform: translateX(-50%); opacity: 0; pointer-events: none; } #emote.on { animation: emo 1.3s; } @keyframes emo { 0% { opacity: 0; transform: translate(-50%, 40px) scale(.4); } 20%, 70% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; transform: translate(-50%, -40px); } }
#call { position: fixed; left: 50%; top: 27%; transform: translateX(-50%); display: none; border: 0; background: var(--pink); color: #fff; border-radius: 14px; padding: 12px 22px; font-size: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); z-index: 7; } #call.on { display: block; } #call b { display: block; font-size: 14px; }
#result p { margin: 3px 0; display: flex; gap: 10px; font-weight: 600; min-width: 250px; } #result p b { margin-left: auto; font-variant-numeric: tabular-nums; } #result u { text-decoration: none; width: 18px; } #result .me { color: var(--pink); }
#logo { position: fixed; left: 0; right: 0; top: 11%; text-align: center; pointer-events: none; transition: .5s; } #logo b { display: block; line-height: .95; letter-spacing: -.03em; font-weight: 800; -webkit-text-stroke: .13em var(--ink); paint-order: stroke fill; transform: rotate(-3deg); } #logo b:first-child { font-size: clamp(28px, 6.4vw, 84px); color: var(--gold); } #logo b:last-child { font-size: clamp(44px, 10.6vw, 146px); color: var(--pink); } body.go #logo { opacity: 0; transform: translateY(-60px) scale(1.1); }
#d-start, #d-tag, #d-how { display: none; } body.demo #hud, body.demo #time, body.demo #combo, body.demo #say { visibility: hidden; } body.demo[data-demo=play] #combo, body.demo[data-demo=play] #hud { visibility: visible; } body.demo[data-demo=play] #logo, body.demo[data-demo=howto] #logo { opacity: 0; } body.demo #orb { display: none; }
body[data-demo=title] #d-start { display: block; position: fixed; bottom: 14%; width: 100%; text-align: center; font-size: 30px; animation: bl 1s steps(2) infinite; } @keyframes bl { 50% { opacity: 0; } } body[data-demo=play] #d-tag { display: block; position: fixed; left: 50%; transform: translateX(-50%); top: 16px; background: var(--pink); color: #fff; font-weight: 800; padding: 3px 12px; border-radius: 8px; }
body[data-demo=howto] #d-how { display: block; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--cream); border: 4px solid var(--ink); border-radius: 20px; padding: 16px 30px 22px; width: min(560px, 92vw); } #d-how h2 { margin: 0 0 8px; } #d-how p { margin: 8px 0; font-weight: 600; display: flex; gap: 14px; align-items: center; } kbd { font: 700 15px Poppins, sans-serif; border: 2px solid var(--ink); border-radius: 8px; padding: 3px 10px; background: #fff; white-space: nowrap; }
#stick, #jump { display: none; } .touch #jump { display: grid; place-items: center; position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom)); width: 104px; height: 104px; border-radius: 50%; border: 4px solid var(--ink); background: rgba(247, 183, 51, .88); touch-action: none; z-index: 5; } #jump svg { width: 46px; } #jump:active { background: #fff; }
#stick.on { display: block; position: fixed; width: 124px; height: 124px; margin: -62px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); background: rgba(42, 24, 56, .18); pointer-events: none; } #nub { position: absolute; left: 34px; top: 34px; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.touch #combo { bottom: 26%; } .touch #result { bottom: auto; top: 76px; }
@media (max-width: 720px) { #card { grid-template-columns: 1fr; gap: 14px; padding: 16px; } #card.lv { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; } #track { top: 92px; } #items { display: grid; grid-template-columns: 1fr 1fr; } #items button { font-size: 13px; padding: 8px 10px; } #quests { grid-template-columns: 1fr; gap: 6px; } #menu { place-items: start center; } #time { top: 62px; } #letters { top: 98px; } }
@media (max-height: 480px) { #quests span { display: none; } #logo { top: 6%; } }
