@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { --ink: #edf2ff; --muted: #9aa7c2; --panel: #131d33; --line: #263453; --yellow: #f7b955; --teal: #61d6c7; --blue: #73a6ff; --bg: #0c1324; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 13% 0%, #1b2a4a 0, var(--bg) 38rem), var(--bg); font-family: 'Space Grotesk', sans-serif; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.site-header, main, footer { position: relative; max-width: 1240px; margin: auto; padding-left: 28px; padding-right: 28px; }
.site-header { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; }.brand span:last-child { color: var(--yellow); }.brand-mark { color: var(--yellow); font-size: 18px; margin-right: 7px; }
.header-pill, .status-chip { font: 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.landing { max-width: 760px; padding-top: 86px; padding-bottom: 110px; }.eyebrow, .result-kicker { color: var(--yellow); font: 11px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }.landing h1 { margin: 20px 0 17px; font-size: clamp(48px, 7vw, 88px); letter-spacing: -.07em; line-height: .95; }.landing h1 em { color: var(--teal); font-style: normal; }.lede { max-width: 570px; margin: 0 0 36px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.entry-card { max-width: 480px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(19, 29, 51, .86); box-shadow: 0 24px 70px rgba(0,0,0,.2); }.entry-card label { display: block; margin-bottom: 8px; color: var(--muted); font: 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }.entry-card input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; color: var(--ink); background: #0d1629; font: 15px 'Space Grotesk', sans-serif; outline: none; }.entry-card input:focus { border-color: var(--blue); }.entry-actions, .join-row, .result-actions, .board-actions { display: flex; gap: 10px; }.entry-actions { margin-top: 14px; }.join-row { margin-top: 10px; }.join-row input { flex: 1; text-transform: uppercase; letter-spacing: .15em; }.button { border: 0; border-radius: 9px; padding: 13px 16px; color: var(--ink); cursor: pointer; font: 600 13px 'Space Grotesk', sans-serif; transition: transform .15s, filter .15s, opacity .15s; }.button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }.button:disabled { opacity: .4; cursor: not-allowed; }.button-primary { color: #211b10; background: var(--yellow); }.button-secondary { border: 1px solid var(--line); background: #1a2844; }.button-quiet { border: 1px solid var(--line); background: transparent; color: var(--muted); }.feature-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 25px; color: #71809f; font: 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }.error { min-height: 17px; margin: 11px 0 0; color: #ff7b7b; font-size: 12px; }.hidden { display: none !important; }
.game-shell { padding-top: 26px; padding-bottom: 70px; }.game-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }.back-button, .share-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font: 12px 'DM Mono', monospace; }.back-button:hover, .share-button:hover { color: var(--ink); }.room-label { margin-left: 20px; color: var(--yellow); font: 11px 'DM Mono', monospace; letter-spacing: .15em; }.status-chip { padding: 8px 12px; border: 1px solid #2d426d; border-radius: 99px; color: var(--teal); background: #12233a; }.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 18px; }.board-column, .side-panel, .result-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(19, 29, 51, .82); }.board-column { padding: 15px; }.objective { display: flex; gap: 12px; align-items: center; padding: 8px 5px 16px; }.objective-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #39629b; border-radius: 11px; color: var(--blue); font-size: 24px; }.objective strong, .objective small { display: block; }.objective strong { font-size: 14px; }.objective small { margin-top: 3px; color: var(--muted); font-size: 11px; }.canvas-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 11px; background: #0a1222; }.canvas-wrap canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; user-select: none; }.canvas-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 10px; border-radius: 99px; color: #a8b6d2; background: rgba(8, 15, 29, .85); font: 11px 'DM Mono', monospace; pointer-events: none; transition: opacity .2s; }.canvas-hint.is-hidden { opacity: 0; }.board-actions { padding-top: 14px; }.board-actions .button { flex: 1; }.side-panel { overflow: hidden; }.panel-section { padding: 18px; border-bottom: 1px solid var(--line); }.panel-section:last-child { border: 0; }.section-heading { display: flex; justify-content: space-between; margin-bottom: 13px; font-size: 12px; font-weight: 600; }.section-heading small { color: var(--muted); font: 10px 'DM Mono', monospace; }.toolbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.tool { display: grid; place-items: center; min-height: 69px; padding: 7px 2px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #101a2d; cursor: pointer; }.tool:hover, .tool.selected { border-color: var(--yellow); color: var(--ink); background: #252b37; }.tool-icon { display: block; color: var(--tool-color); font-size: 21px; line-height: 1; }.tool-name { display: block; margin-top: 6px; font: 9px 'DM Mono', monospace; }.tip { margin: 14px 0 0; color: #7887a4; font-size: 11px; line-height: 1.5; }kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font: 10px 'DM Mono', monospace; }.players { display: grid; gap: 8px; }.player { display: flex; align-items: center; gap: 9px; font-size: 12px; }.player-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--player-color); box-shadow: 0 0 8px var(--player-color); }.player small { margin-left: auto; color: var(--muted); font: 9px 'DM Mono', monospace; }.feed { max-height: 115px; overflow: auto; color: var(--muted); font-size: 11px; line-height: 1.5; }.feed p { margin: 0 0 8px; }.feed b { color: var(--ink); font-weight: 500; }.result-card { position: relative; overflow: hidden; margin-top: 18px; padding: 34px; text-align: center; }.result-glow { position: absolute; top: -140px; left: 50%; width: 280px; height: 280px; transform: translateX(-50%); border-radius: 50%; background: var(--teal); opacity: .15; filter: blur(35px); }.result-card h2 { position: relative; margin: 10px 0 7px; font-size: 34px; letter-spacing: -.04em; }.result-card p { position: relative; margin: 0 auto; max-width: 470px; color: var(--muted); }.result-stats { display: flex; justify-content: center; gap: 44px; margin: 27px 0; }.result-stats b, .result-stats small { display: block; }.result-stats b { font-size: 23px; color: var(--yellow); }.result-stats small { margin-top: 4px; color: var(--muted); font: 10px 'DM Mono', monospace; text-transform: uppercase; }.result-actions { justify-content: center; }
footer { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 28px; color: #53617b; font: 10px 'DM Mono', monospace; letter-spacing: .05em; }
@media (max-width: 800px) { .site-header, main, footer { padding-left: 16px; padding-right: 16px; }.site-header { height: 64px; }.header-pill { display: none; }.landing { padding-top: 55px; }.landing h1 { font-size: 54px; }.game-layout { grid-template-columns: 1fr; }.side-panel { display: grid; grid-template-columns: 1fr 1fr; }.feed-section { grid-column: span 2; }.room-label { margin-left: 9px; }.share-button { display: none; } }
@media (max-width: 470px) { .entry-actions { flex-direction: column; }.feature-row { display: grid; gap: 8px; }.side-panel { display: block; }.feed-section { display: none; }.result-card { padding: 26px 15px; }.result-stats { gap: 20px; }.result-actions { flex-direction: column; } footer { display: none; } }
