* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: system-ui, -apple-system, sans-serif; background: #14111f; color: #f4f1ff; min-height: 100dvh; }
#app { max-width: 520px; margin: 0 auto; padding: 12px 14px calc(20px + env(safe-area-inset-bottom)); }
button { font: inherit; font-weight: 800; border: 0; border-radius: 14px; cursor: pointer; touch-action: manipulation; color: inherit; }
button:disabled { cursor: default; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 90dvh; text-align: center; }
.center-t { text-align: center; margin: 10px 0; }
.logo { font-size: 5rem; font-weight: 900; letter-spacing: .12em; color: #ffcf3f; text-shadow: 4px 4px 0 #ff3c7a; }
.tag { font-size: 1.1rem; opacity: .85; }
.btn { background: #ff3c7a; color: #fff; padding: 16px 22px; font-size: 1.25rem; width: 100%; max-width: 360px; display: block; margin: 12px auto; }
.btn.alt { background: #5b4bff; } .btn:disabled { opacity: .5; }
.ghost { background: #2a2540; padding: 10px 14px; }
input, select { font: inherit; font-size: 1.4rem; padding: 12px; border-radius: 12px; border: 0; text-align: center; text-transform: uppercase; width: 260px; }
select { font-size: 1rem; width: auto; padding: 6px; }
.muted { opacity: .65; } .small { font-size: .85rem; } .err { color: #ff8fa8; text-align: center; min-height: 1.2em; margin-top: 8px; }
.top { display: flex; justify-content: space-between; font-size: .95rem; padding: 4px 2px 10px; } #timer { color: #ffcf3f; font-weight: 900; min-width: 3ch; text-align: right; }
.narr { background: #231d3a; border-left: 4px solid #ffcf3f; padding: 10px 12px; border-radius: 10px; font-weight: 700; margin-bottom: 12px; }
.big { font-size: 1.7rem; font-weight: 900; }
.list { display: grid; gap: 8px; margin: 12px 0; } .pl { background: #231d3a; padding: 12px; border-radius: 12px; font-weight: 700; }
.hostbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.rules { margin-top: 16px; background: #1c1730; padding: 10px 14px; border-radius: 12px; } .rules ol { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.secret { background: #231d3a; border: 2px dashed #5b4bff; border-radius: 16px; padding: 18px; text-align: center; margin: 8px 0 12px; user-select: none; -webkit-user-select: none; touch-action: none; min-height: 96px; display: grid; gap: 4px; align-content: center; }
.secret.open { border-style: solid; background: #2e2752; }
.role { font-weight: 900; letter-spacing: .1em; } .role.imp { color: #ff3c7a; font-size: 1.4rem; }
.word { font-size: 2.2rem; font-weight: 900; color: #ffcf3f; }
.turn { text-align: center; font-weight: 800; padding: 10px; border-radius: 12px; background: #1c1730; margin-bottom: 10px; }
.turn.mine { background: #ff3c7a; animation: pulse .5s infinite alternate; } @keyframes pulse { to { transform: scale(1.02); } }
.board { display: grid; gap: 6px; margin-bottom: 12px; } .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #1c1730; }
.row.now { outline: 2px solid #ffcf3f; } .who { font-weight: 800; margin-right: 4px; }
.chip { background: #3a3160; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.hand, .words { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.card { background: #f4f1ff; color: #14111f; padding: 14px 8px; font-size: 1.05rem; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; justify-content: center; }
.card:disabled { opacity: .55; } .card.used { text-decoration: line-through; opacity: .3; }
.leak { font-size: .75rem; letter-spacing: 2px; } .l1 { color: #1a9a5a; } .l2 { color: #c78a00; } .l3 { color: #d1194f; } .l0 { color: #777; }
.spot { text-align: center; font-size: 1.6rem; font-weight: 900; background: #2e2752; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.votes { display: grid; gap: 8px; } .vote { background: #231d3a; padding: 14px; text-align: left; display: grid; gap: 4px; } .vote.sel { background: #5b4bff; }
.reveal { text-align: center; display: grid; gap: 6px; font-size: 1.15rem; background: #231d3a; border-radius: 16px; padding: 16px; }
.deltas { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; }
.scores { display: grid; gap: 6px; } .sc { display: flex; justify-content: space-between; background: #1c1730; padding: 10px 12px; border-radius: 10px; }
.good { color: #3cff9a; } .bad { color: #ff3c7a; } .nick { font-size: 1.1rem; }
.pitch { max-width: 320px; font-weight: 700; opacity: .9; }
.link { color: inherit; }
.row2 { display: flex; justify-content: space-between; align-items: center; } .x { padding: 4px 10px; }
.clash { background: #2e2752; border-radius: 16px; padding: 14px; margin-bottom: 12px; text-align: center; border: 2px solid #ff3c7a; }
.cl-title { font-size: 1.5rem; font-weight: 900; color: #ffcf3f; letter-spacing: .08em; }
.cl-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 12px 0; }
.cl-side { display: grid; gap: 6px; } .cl-card { background: #f4f1ff; color: #14111f; border-radius: 12px; padding: 14px 6px; font-weight: 900; font-size: 1.1rem; }
.cl-vs { font-weight: 900; font-size: 1.6rem; color: #ff3c7a; animation: pulse .4s infinite alternate; }
.cl-sub { font-weight: 700; }
.lockbox { background: #2e2752; border: 2px dashed #ff3c7a; border-radius: 16px; padding: 12px; margin-bottom: 12px; text-align: center; }
.lb-title { font-weight: 900; color: #ff3c7a; } .card.picked { background: #ffcf3f; }
.flip { grid-template-columns: 1fr 1fr; } .flip > :last-child { grid-column: 1 / -1; } .flipcol { background: #1c1730; border-radius: 12px; padding: 10px; display: grid; gap: 4px; }
.tellcard { background: linear-gradient(160deg, #2e2752, #231d3a); border: 3px solid #ffcf3f; border-radius: 22px; padding: 22px 18px; text-align: center; display: grid; gap: 8px; margin: 4px 0 6px; }
.tc-brand { font-size: 2.6rem; font-weight: 900; letter-spacing: .12em; color: #ffcf3f; text-shadow: 3px 3px 0 #ff3c7a; }
.tc-label { font-weight: 900; letter-spacing: .15em; color: #ffcf3f; } .tc-name { font-weight: 800; opacity: .85; }
.tc-text { font-size: 1.45rem; font-weight: 800; line-height: 1.25; padding: 6px 0; } .tc-dots { letter-spacing: 2px; } .tc-foot { opacity: .7; font-weight: 700; }
