@charset "UTF-8";

:root {
  --paper: #f1f1e9;
  --white: #fcfcf7;
  --ink: #172c25;
  --muted: #69736a;
  --line: #d4d9cd;
  --lime: #d3f16a;
  --green: #25513c;
  --peach: #f3c3a4;
  --blue: #c1d9e3;
  --yellow: #ecd990;
  --body-font: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  --display-font: "Trebuchet MS", "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body-font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 90% 15%, #e0e8c6 0, transparent 43%), repeating-linear-gradient(0deg, #ffffff09 0, #ffffff09 1px, transparent 1px, transparent 4px); }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #497337; outline-offset: 4px; }
input, textarea { width: 100%; background: #f4f5ed; border: 1px solid #cbd3c4; color: var(--ink); border-radius: 10px; padding: 15px 17px; outline-offset: 2px; }
input { min-height: 54px; }
input:focus, textarea:focus { border-color: var(--green); background: #fff; }
textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
svg { flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.page-shell { max-width: 1512px; padding: 0 56px; margin: 0 auto; }
.site-header { min-height: 104px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 30px var(--display-font); letter-spacing: -1.5px; }
.brand-period { color: #5e8141; }
.brand-mark { width: 32px; height: 35px; background: var(--ink); border-radius: 8px 8px 12px 12px; display: grid; place-items: center; transform: rotate(-5deg); }
.brand-mark span { width: 13px; height: 17px; border: 4px solid var(--lime); border-top: 0; border-radius: 0 0 6px 6px; }
.header-caption { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding-top: 4px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.community-actions { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 0; }
.community-actions .text-button { padding: 6px 0; }
.community-actions .statement-button { color: var(--green); font-size: 11px; }
.statement-button .icon { width: 17px; height: 17px; }
.text-button { background: none; border: 0; padding: 10px 0; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; }
.text-button:hover { color: #5b7829; }
.account-button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 40px; padding: 5px 14px 5px 5px; background: #fafbf280; max-width: 190px; }
.account-button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.avatar { width: 29px; height: 29px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: var(--lime); display: grid; place-items: center; font-size: 13px; }
.welcome { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; min-height: 735px; padding: 75px 0 70px; align-items: center; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; display: flex; align-items: center; gap: 9px; margin: 0; }
.live-dot { width: 7px; height: 7px; display: inline-block; flex-shrink: 0; border-radius: 50%; background: #6c8c3c; box-shadow: 0 0 0 4px #6c8c3c0d; }
.welcome h1 { font-family: var(--display-font); font-size: clamp(88px, 9.7vw, 148px); line-height: 1; font-weight: 800; letter-spacing: -10px; margin: 20px 0 25px -6px; }
.welcome h1 > span { color: #709245; }
.welcome h2 { font-size: clamp(32px, 3.1vw, 45px); line-height: 1.4; letter-spacing: -1.6px; margin: 0 0 20px; font-weight: 650; }
.welcome-description { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0 0 29px; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--ink); border-radius: 8px; background: var(--lime); min-height: 52px; padding: 12px 20px; font-weight: 650; font-size: 14px; transition: background .18s, transform .18s, box-shadow .18s; }
.primary-button:hover:not(:disabled) { background: #c6e65a; box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.large-button { min-width: 239px; min-height: 61px; padding: 16px 22px; font-size: 15px; }
.login-note { font-size: 11px; color: var(--muted); margin: 13px 0 0; }
.welcome-bottom { display: flex; align-items: center; gap: 16px; color: #6d786d; font-size: 11px; font-weight: 600; margin-top: 40px; }
.tiny-cross { color: #8a9b77; font-size: 18px; }
.welcome-art { position: relative; height: 520px; isolation: isolate; }
.welcome-art::before { content: ""; position: absolute; inset: 4% -6% 5% 0; border-radius: 50%; z-index: -1; background: repeating-linear-gradient(90deg, #7b8c6512 0, #7b8c6512 1px, transparent 1px, transparent 26px), repeating-linear-gradient(0deg, #7b8c6512 0, #7b8c6512 1px, transparent 1px, transparent 26px); mask-image: radial-gradient(ellipse, black 40%, transparent 70%); }
.preview-sheet { background: var(--white); border: 1px solid #bfcbb7; box-shadow: 9px 14px 0 #83936f0c; overflow: hidden; }
.preview-main { position: absolute; width: 98%; left: -2%; top: 42px; border-radius: 11px; transform: rotate(-5deg); animation: sheet-in .7s ease-out both; }
.preview-top { height: 43px; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; }
.preview-top span { display: flex; align-items: center; gap: 8px; }
.preview-top .icon { width: 14px; height: 14px; }
.preview-top i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #608b40; }
.preview-main > img { width: 100%; height: 278px; display: block; object-fit: cover; object-position: center; background: #91ac85; }
.preview-caption { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.sticker { border: 1px solid #b8c998; border-radius: 30px; padding: 6px 11px; background: #e6edcf; font-size: 9px; letter-spacing: .8px; }
.preview-small { position: absolute; bottom: -4px; right: -4px; width: 65%; transform: rotate(7deg); border-radius: 8px; animation: sheet-in .7s .15s ease-out both; }
.preview-small img { display: block; width: 100%; height: 166px; object-fit: cover; background: #657e95; }
.preview-small > span { display: flex; align-items: center; justify-content: space-between; padding: 12px; font-size: 10px; }
.preview-small .icon { width: 17px; height: 17px; }
.orbit-label { position: absolute; right: -12px; top: 0; font: 10px var(--display-font); letter-spacing: 2px; transform: rotate(6deg); }
.starburst { position: absolute; right: -25px; top: 294px; width: 116px; height: 116px; background: var(--lime); display: grid; place-items: center; clip-path: polygon(50% 0%,59% 12%,73% 5%,76% 21%,93% 20%,89% 37%,100% 50%,87% 59%,95% 74%,78% 77%,80% 94%,62% 89%,50% 100%,40% 88%,25% 95%,22% 78%,6% 79%,12% 62%,0% 50%,12% 40%,5% 25%,22% 23%,21% 7%,39% 12%); transform: rotate(12deg); }
.starburst span { text-align: center; font: 700 19px var(--display-font); line-height: 1.3; }
.starburst b { font-family: var(--body-font); font-size: 11px; }
.art-coordinate { position: absolute; bottom: 5px; left: 2px; font-size: 8px; letter-spacing: 1.3px; writing-mode: vertical-rl; transform: rotate(180deg); }
.site-footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; gap: 18px; letter-spacing: .4px; }
.site-footer > span:first-child { font-weight: 600; }
.site-footer > span:last-child { font-size: 9px; letter-spacing: 1.5px; }
.footer-divider { margin: 0 12px; color: #aab3a3; }
.lobby { padding: 54px 0 35px; }
.lobby-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.lobby-session { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.lobby-session .eyebrow { margin: 0; overflow-wrap: anywhere; }
.lobby-session button { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.lobby-intro h1 { font-size: clamp(30px, 4vw, 49px); font-weight: 650; letter-spacing: -2px; margin: 16px 0 13px; }
.lobby-intro h1 span { color: #7a9257; }
.lobby-intro > div > p:last-child { font-size: 13px; color: var(--muted); margin: 0; }
.collection-stamp { display: flex; flex-direction: column; text-align: center; padding: 7px 20px; transform: rotate(5deg); }
.collection-stamp span { font-size: 8px; letter-spacing: 1.7px; }
.collection-stamp b { font: 800 59px/.98 var(--display-font); letter-spacing: -5px; color: #45613b; margin: 8px 0; }
.collection-stamp span:last-child { font-size: 9px; letter-spacing: .5px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 39px 0 25px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter { border: 0; border-radius: 30px; padding: 9px 15px; background: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.filter:hover { background: #e0e5d5; }
.filter.active { background: var(--ink); color: #f8f9ee; }
.filter > span { color: #bad18c; font-size: 10px; padding-left: 5px; }
.game-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.game-card { border: 1px solid #cdd5c5; border-radius: 14px; overflow: hidden; background: #fafbf4; animation: rise-in .45s both; }
.game-card:nth-child(2) { animation-delay: .05s; }
.game-card:nth-child(3) { animation-delay: .10s; }
.game-card:nth-child(4) { animation-delay: .15s; }
.game-art { position: relative; aspect-ratio: 1.93; overflow: hidden; background: #d8e3cf; border-bottom: 1px solid #cdd5c5; }
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.game-card:hover .game-art img { transform: scale(1.035); }
.game-art::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, #07160d78); pointer-events: none; }
.game-number { position: absolute; top: 14px; left: 15px; z-index: 1; padding: 5px 8px; border-radius: 5px; background: #fcfcf1eb; font: 700 10px var(--display-font); letter-spacing: 1px; }
.game-category { position: absolute; bottom: 14px; left: 18px; z-index: 1; color: white; font-size: 10px; letter-spacing: 1px; }
.game-art-label { position: absolute; bottom: 14px; right: 17px; color: #ffffffe0; z-index: 1; font-size: 9px; letter-spacing: 1px; }
.game-body { padding: 20px 22px 18px; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-title-row h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; font-weight: 650; }
.player-tag { font-size: 9px; color: #57714e; background: #e8eddf; padding: 5px 8px; border-radius: 4px; white-space: nowrap; }
.game-description { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 11px 0 16px; }
.game-bottom { display: flex; align-items: center; gap: 15px; justify-content: space-between; }
.play-link { display: inline-flex; align-items: center; gap: 21px; border: 1px solid var(--ink); padding: 9px 13px; border-radius: 5px; font-size: 11px; font-weight: 650; background: var(--lime); white-space: nowrap; }
.play-link .icon { width: 16px; height: 16px; }
.play-link:hover { background: var(--ink); color: var(--lime); }
.game-notice { text-align: right; font-size: 10px; color: #876a29; max-width: 230px; }
.game-notice small { display: block; font-size: 9px; line-height: 1.6; color: #978975; margin-top: 3px; }
.controls-note { font-size: 9px; color: #8a9583; }
.unavailable-label { color: #946141; font-size: 11px; }
.lobby-footnote { display: flex; gap: 11px; align-items: flex-start; color: #7a8476; margin-top: 27px; }
.lobby-footnote .live-dot { margin-top: 6px; width: 5px; height: 5px; }
.lobby-footnote p { font-size: 10px; line-height: 1.8; margin: 0; }
.modal { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #b8c4ac; border-radius: 17px; color: var(--ink); background: var(--white); padding: 42px 36px 30px; box-shadow: 0 26px 100px #0a1d1733; }
.modal::backdrop { background: #15291c70; backdrop-filter: blur(7px); }
.modal[open] { animation: rise-in .22s ease-out; }
.close-button { position: absolute; top: 15px; right: 15px; padding: 5px; background: none; border: 0; border-radius: 50%; color: #7e8a74; }
.close-button:hover { background: #e5eadc; color: var(--ink); }
.modal-kicker { font-size: 9px; letter-spacing: 1.4px; color: #7c8b70; margin-bottom: 28px; }
.modal h2 { font-family: var(--display-font); margin: 0 0 12px; font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: -1px; overflow-wrap: anywhere; }
.modal h2 > span { color: #709245; }
.modal-copy { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 0 0 25px; }
.steps { display: flex; align-items: center; gap: 11px; margin: 0 0 23px; font-size: 10px; color: #97a18d; }
.steps .current { color: #456c2f; font-weight: 700; }
.steps i { width: 22px; height: 1px; background: #ccd6c0; }
.input-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 9px; }
.question-label { display: block; font-size: 15px; line-height: 1.6; font-weight: 650; padding: 0 0 14px; }
.form-error { color: #a04c3c; font-size: 11px; min-height: 18px; line-height: 1.7; margin: 12px 0; }
.form-error.success { color: #42682e; }
.full-width { width: 100%; }
.small-print { font-size: 10px; color: #8b9582; line-height: 1.8; text-align: center; margin: 17px 0 0; }
.field-hint { color: #839077; font-size: 10px; line-height: 1.7; margin: 8px 0; }
.back-button { border: 0; padding: 12px; width: 100%; background: none; font-size: 11px; color: #67785d; }
.back-button:hover { text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.textarea-footer { display: flex; justify-content: space-between; gap: 16px; color: #8a9480; font-size: 10px; margin-top: 8px; }
.news-modal { width: min(600px, calc(100% - 32px)); }
.news-content { margin-top: 25px; }
.news-empty { padding: 28px 22px; background: #eef2e4; border: 1px dashed #c9d2ba; border-radius: 8px; }
.news-empty p { margin: 0; color: #718060; font-size: 12px; line-height: 1.8; }
.news-empty b { display: block; margin-bottom: 8px; font-size: 15px; }
.news-item { padding: 20px 0; border-top: 1px solid var(--line); }
.news-item h3 { margin: 6px 0 10px; font-size: 18px; }
.news-item time { color: var(--muted); font-size: 10px; }
.news-item p { color: #5d6d55; line-height: 1.9; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.secondary-button { background: #f4f5ed; border: 1px solid #bbc8ae; border-radius: 8px; min-height: 48px; font-size: 13px; }
.secondary-button:hover { background: #e2e9d5; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 32px); border: 1px solid #749060; border-radius: 10px; padding: 14px 20px; background: var(--ink); color: #e7f1d4; font-size: 12px; box-shadow: 0 4px 20px #0c28182b; z-index: 5; }
.inline-message { font-size: 13px; padding: 18px; background: #f2dfcf; border-radius: 8px; line-height: 1.8; }
.noscript-notice { padding: 20px; background: #f5d5b1; text-align: center; }

.play-page { background: #18251e; color: #e9eddc; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.play-toolbar { min-height: 61px; display: flex; gap: 20px; align-items: center; padding: 10px 22px; border-bottom: 1px solid #40513e; }
.back-lobby { display: inline-flex; align-items: center; gap: 8px; color: #d3f16a; font-size: 12px; }
.back-lobby .icon { transform: rotate(180deg); width: 17px; height: 17px; }
.play-title { margin: 0; padding-left: 18px; border-left: 1px solid #42513a; font-size: 13px; font-weight: 600; }
.play-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.play-actions button, .play-actions a { border: 1px solid #4d6042; border-radius: 5px; background: none; color: #d8e1c8; padding: 7px 10px; font-size: 11px; }
.play-actions button:hover, .play-actions a:hover { background: #31422b; }
.game-frame { display: block; width: 100%; border: 0; flex: 1; min-height: 0; background: #eff0e8; }
.play-status { margin: 0; padding: 7px 22px; font-size: 10px; color: #a5b496; line-height: 1.7; }
.play-status:empty { display: none; }
.play-error { margin: auto; padding: 30px; max-width: 600px; line-height: 1.8; color: #edd9b1; }

@keyframes sheet-in { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) { .welcome { min-height: 810px; } .welcome-art { height: 550px; } .preview-main > img { height: 310px; } }
@media (max-width: 1100px) {
  .page-shell { padding: 0 32px; }
  .header-caption { display: none; }
  .welcome { gap: 30px; padding: 60px 0; min-height: 670px; }
  .welcome-art { height: 435px; }
  .preview-main { top: 40px; }
  .preview-main > img { height: 220px; }
  .preview-small img { height: 135px; }
  .starburst { right: -16px; top: 251px; width: 90px; height: 90px; }
  .starburst span { font-size: 16px; }
  .starburst b { font-size: 9px; }
  .orbit-label { font-size: 8px; letter-spacing: 1.2px; }
  .game-body { padding: 18px; }
  .controls-note { max-width: 170px; text-align: right; line-height: 1.6; }
}
@media (max-width: 760px) {
  .page-shell { padding: 0 22px; }
  .site-header { min-height: 83px; gap: 12px; }
  .brand { font-size: 26px; gap: 8px; }
  .brand-mark { width: 28px; height: 30px; }
  .header-actions { gap: 15px; }
  .text-button { font-size: 11px; gap: 5px; }
  .text-button .icon { width: 17px; height: 17px; }
  .welcome { grid-template-columns: 1fr; padding: 43px 0 46px; gap: 25px; }
  .welcome-copy { position: relative; }
  .welcome h1 { font-size: 105px; letter-spacing: -7px; margin: 18px 0; }
  .welcome h2 { font-size: 33px; letter-spacing: -1px; }
  .welcome h2 br { display: none; }
  .welcome-description { font-size: 12px; margin-bottom: 22px; }
  .welcome-description br { display: none; }
  .large-button { min-width: 220px; min-height: 55px; }
  .welcome-bottom { margin-top: 24px; }
  .welcome-art { height: 420px; max-width: 540px; width: 95%; margin: 0 auto; }
  .preview-main { top: 20px; }
  .preview-main > img { height: 230px; }
  .preview-small { bottom: -4px; right: -2px; width: 63%; }
  .preview-small img { height: 135px; }
  .starburst { top: 255px; right: -17px; }
  .orbit-label { top: 0; right: 0; }
  .site-footer { align-items: flex-start; justify-content: center; flex-direction: column; min-height: 92px; gap: 11px; }
  .lobby { padding-top: 35px; }
  .lobby-intro { gap: 0; }
  .lobby-intro h1 { letter-spacing: -1.5px; }
  .lobby-intro .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .lobby-intro > div > p:last-child { font-size: 11px; }
  .collection-stamp { padding: 3px 6px 3px 12px; }
  .collection-stamp b { font-size: 44px; }
  .collection-stamp span { font-size: 6px; letter-spacing: .6px; }
  .collection-stamp span:last-child { display: none; }
  .collection-toolbar { display: block; margin-top: 28px; }
  .filters { gap: 2px; }
  .filter { padding: 8px 11px; font-size: 11px; }
  .game-count { display: block; margin-top: 14px; }
  .game-grid { gap: 19px; grid-template-columns: 1fr; }
  .game-title-row h2 { font-size: 21px; }
  .game-art { aspect-ratio: 1.86; }
  .game-body { padding: 19px; }
  .game-description { font-size: 11px; }
  .account-button { padding-right: 5px; border: 0; background: none; max-width: 30px; }
  .account-button > span:last-child { display: none; }
  .modal { padding: 38px 24px 26px; }
  .modal h2 { font-size: 26px; }
  .modal-kicker { font-size: 8px; letter-spacing: 1px; }
  .play-toolbar { gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
  .play-title { font-size: 11px; padding-left: 10px; }
  .back-lobby { font-size: 11px; gap: 4px; }
  .play-actions { gap: 5px; }
  .play-actions button, .play-actions a { font-size: 10px; padding: 6px 8px; }
  .play-status { padding: 7px 12px; }
}
@media (max-width: 370px) {
  .page-shell { padding: 0 16px; }
  .header-actions { gap: 9px; }
  .welcome h1 { font-size: 90px; }
  .welcome-art { height: 365px; }
  .preview-main > img { height: 190px; }
  .preview-small img { height: 115px; }
  .starburst { top: 218px; }
  .preview-caption { font-size: 10px; }
  .sticker { font-size: 7px; }
  .collection-stamp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
