:root { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Noto Color Emoji"; background: #ac8b8d; color: #fff; -webkit-font-smoothing: subpixel-antialiased; text-rendering: optimizeLegibility; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #ac8b8d; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 2px solid #ebedf0; border-radius: .35rem; padding: .6rem .9rem; background: #eceef0; color: #3d3d3d; font-weight: 800; box-shadow: 0 1px 2px #263d40; }
button.secondary { background: #d6dce0; color: #343434; box-shadow: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, textarea, select { width: 100%; border: 2px solid #dfe7eb; border-radius: .35rem; padding: .7rem; background: #343434; color: #fff; }
textarea { min-height: 12rem; resize: vertical; }
.shell { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.environment-badge { position: fixed; z-index: 2001; top: .8rem; right: .8rem; padding: .38rem .65rem; border: 2px solid #fff3dd; border-radius: .4rem; background: #bd2437; color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .09em; box-shadow: 0 2px 4px rgb(0 0 0 / .32); }
.environment-badge[hidden] { display: none; }
.hero { padding: 1.3rem 0 1rem; border: 0; text-align: center; }
.eyebrow { color: #ffe149; text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 800; }
h1 { font-family: "Linux Libertine", Georgia, Times, serif; font-size: clamp(2rem, 5vw, 3.5rem); margin: .25rem 0; line-height: 1; font-weight: 900; letter-spacing: -.04em; text-shadow: 0 2px #486f77; }
.brand-logo { display: inline-block; width: min(13rem, 46vw); vertical-align: middle; }
.brand-logo img { display: block; width: 100%; height: auto; }
.lobby-title { display: block; margin-top: .3rem; color: #fff; font-family: "Linux Libertine", Georgia, Times, serif; font-size: .58em; letter-spacing: 0; }
h2 { margin-top: 0; }
.card { background: #57838d; border: 0; border-radius: 1.4rem; padding: 1.1rem; box-shadow: 0 2px 3px rgb(40 42 42 / .35); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.stack { display: grid; gap: .8rem; }
.row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.room-actions { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.muted { color: #e5eef0; }
.big { font-size: clamp(1.8rem, 6vw, 4rem); font-weight: 900; }
.players { display: flex; flex-wrap: wrap; gap: .55rem; }
.player { padding: .4rem .6rem; background: #ffdc36; border: 0; border-radius: .25rem; color: #343434; font-weight: 700; }
.emoji-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.emoji-choice { min-height: 2.65rem; padding: .2rem; background: #ffdc36; border: 2px solid transparent; box-shadow: 0 1px 1px rgb(38 61 64 / .45); font-size: 1.35rem; line-height: 1; }
.emoji-choice.selected { border-color: #fff; box-shadow: 0 0 0 2px #343434, 0 1px 1px rgb(38 61 64 / .45); transform: scale(1.06); }
.custom-emoji { text-align: center; font-size: 1.15rem; }
.text { font-family: sans-serif; font-size: 1rem; line-height: 1.5; font-weight: 400; background: #f8f9fa; color: #202122; padding: 1rem; box-shadow: inset 2px 2px 2px #88898a, 2px 2px #7da8b6; border-radius: .6rem; }
.article-title { margin: 0 0 .55rem; font-family: "Linux Libertine", Georgia, Times, serif; font-size: 1.8em; font-weight: 700; line-height: 1.5; }
.article-body { white-space: pre-wrap; }
.content-label { margin: 0 0 .55rem; color: #fff3a8; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.word { display: inline-block; min-width: 1.25ch; margin: 0 .08em; border-radius: .18em; }
.hidden { color: transparent; background: #333; box-shadow: 1px 1px 1px #b8b9ba; font-family: monospace; font-size: 1.2em; line-height: 1.2; user-select: none; height: 1.1em; vertical-align: -.08em; border-radius: .18em; }
.semantic-hint { background: #333; box-shadow: 1px 1px 1px #b8b9ba; color: rgb(var(--semantic-tone), var(--semantic-tone), var(--semantic-tone)); padding: 0 .12em; font-family: monospace; font-size: .88em; font-weight: 400; border-radius: .08em; white-space: nowrap; }
.title-word { font-weight: 700; }
.semantic-hint.current.warm { color: #ff4937; }
.semantic-hint.current.medium-hot { color: #ff8a28; }
.semantic-hint.current.hot { color: #ffdb4b; }
.semantic-hint.current.very-hot { color: #fffdf5; text-shadow: 0 0 4px rgb(255 255 255 / .55); }
.revealed { color: #202122; }
.revealed.recent { color: #202122; background: #6e6; padding: 0 .12em; border-radius: .08em; }
.semantic-hint.is-new { animation: semantic-arrival .38s ease-out both; animation-delay: calc(var(--reveal-order) * 24ms); }
@keyframes semantic-arrival { from { opacity: 0; transform: scale(.82); filter: brightness(1.35); } to { opacity: 1; transform: scale(1); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .revealed.is-new, .semantic-hint.is-new, .victory-toast { animation: none !important; } }
.secret-title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: .01em; background: #fff; color: #343434; padding: .7rem; }
.secret-title, .text h2 { font-family: "Linux Libertine", Georgia, Times, serif; }
.scoreboard { display: grid; gap: .45rem; }
.attempt-progress { font-size: 1.15rem; letter-spacing: -.14rem; white-space: nowrap; margin: .3rem 0 .8rem; }
.attempts { width: 100%; border-collapse: collapse; font-size: .87rem; }
.attempts th { text-align: left; border-bottom: 1px solid rgb(52 52 52 / .3); padding: .25rem; }
.attempts td { padding: .32rem .25rem; border-bottom: 1px solid rgb(52 52 52 / .16); }
.attempt-found { color: #167032; font-weight: 800; }.attempt-warm { color: #a65300; font-weight: 800; }.attempt-miss { color: #6a3131; }
.score { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: .6rem; align-items: center; padding: .5rem; background: rgb(255 255 255 / .32); border: 0; color: #343434; }
.final-results h2 { margin-bottom: .65rem; }
.winner-card { display: grid; gap: .25rem; padding: .9rem; background: #ffdc37; color: #343434; border-radius: .65rem; text-align: center; }
.winner-card .eyebrow { color: #665400; }
.winner-card strong { font-size: 1.35rem; }
.phone { width: min(100%, 440px); margin: 0 auto; }
.guess { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, #ac8b8d 25%); }
.notice { color: #fff3a8; min-height: 1.6rem; }
.success { color: #e8ffbf; } .danger { color: #ffcfca; }
.divider { border-top: 1px solid rgb(255 255 255 / .38); margin: 1rem 0; }
.tv { width: min(1500px, calc(100% - 4rem)); max-width: none; }
.tv > header { text-align: left; border: 0; }
.tv-back { margin-bottom: .75rem; }
.tv .grid { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: start; }
.tv .grid > aside.card { order: -1; background: #ffdc37; border: 0; color: #343434; border-radius: 1.5rem; }
.tv .grid > article.card { border: 0; background: #57838d; min-height: 50vh; border-radius: .8rem; }
.tv .grid > aside .muted { color: #514600; }
.tv .grid > aside .divider { border-color: rgb(52 52 52 / .28); }
.tv .grid > aside .notice { color: #665400; }
.tv .text { font-size: clamp(1.15rem, 1.35vw, 1.45rem); line-height: 1.58; padding: 1.3rem; }
.tv .article-title { font-size: 1.95em; line-height: 1.35; }
.tv .grid > aside.card { font-size: 1.05rem; }
.tv .attempts { font-size: .9em; }
.join-card { display: flex; align-items: center; gap: 1rem; background: #81acb6; border: 0; color: #fff; }
.join-card-lobby { max-width: 48rem; gap: 1.4rem; padding: 1.25rem; }
.join-card-lobby .qrcode { width: 20rem; height: 20rem; }
.join-card-lobby .big { display: inline-block; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; letter-spacing: .04em; }
.join-card-playing { max-width: 29rem; }
.join-card-playing .qrcode { width: 8.5rem; height: 8.5rem; }
.qrcode { background: white; padding: .4rem; border: 0; }
.celebration { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1000; }
.confetti-canvas { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; }
.victory-toast { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); background: #ffdc37; color: #343434; border-radius: 1rem; box-shadow: 0 4px 12px rgb(0 0 0 / .3); font-size: clamp(1.4rem, 3vw, 2.5rem); font-weight: 900; padding: .7rem 1.1rem; animation: victory-toast 3.6s ease both; }
@keyframes victory-toast { 0%, 100% { opacity: 0; transform: translate(-50%, -.6rem) scale(.85); } 12%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@media (max-width: 650px) { .shell { width: min(100% - 1.5rem, 1100px); padding-top: 1rem; } .tv { width: min(100% - 1.5rem, 1500px); } .tv .grid { grid-template-columns: 1fr; } .tv .grid > aside.card { order: 0; } .hide-mobile { display: none; } .phone { padding-bottom: 9.5rem; } .phone .guess { position: fixed; z-index: 20; right: .75rem; bottom: var(--keyboard-offset, 0px); left: .75rem; margin: 0; padding: .75rem 0 max(.9rem, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #ac8b8d 20%); } .phone .guess input { font-size: 1.1rem; } }
