:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #10252a; background: #eef3ed; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; } button, input { font: inherit; } button { cursor: pointer; } h1, h2, h3, p { margin-top: 0; }
.shell { max-width: 1440px; margin: auto; padding: 24px; } .masthead { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; } h1 { margin-bottom: 4px; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.04em; } .subtitle, .muted { color: #52666b; }
button { border: 0; border-radius: 9px; padding: 10px 14px; background: #173c42; color: #fff; font-weight: 750; } button:hover:not(:disabled) { filter: brightness(1.12); } button:disabled { opacity: .46; cursor: not-allowed; } .ghost { background: #dbe7e1; color: #173c42; }
.setup { max-width: 740px; margin: 8vh auto; padding: 32px; border-radius: 18px; background: #fff; box-shadow: 0 15px 50px #16323b20; } .setup p { line-height: 1.55; } .setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; } label { display: grid; gap: 7px; font-weight: 700; } input { width: 100%; padding: 10px; border: 1px solid #aabbb5; border-radius: 8px; }
.context-picker { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; margin: 24px 0; padding: 16px; background: #e5f0e2; border-radius: 12px; } .context-picker strong { font-size: 1.1rem; } .eyebrow { text-transform: uppercase; letter-spacing: .08em; color: #52666b; font-size: .74rem; font-weight: 800; } select { width: 100%; padding: 10px; border: 1px solid #aabbb5; border-radius: 8px; background: #fff; color: #10252a; }
.status { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; margin-bottom: 18px; } .status-card { background: #fff; padding: 12px 16px; border-radius: 11px; box-shadow: 0 2px 10px #16323b12; } .status-card strong { display: block; font-size: 1.12rem; }
.notice, .die-result, .pass-screen { background: #fff4ca; border-left: 5px solid #e7a926; padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; line-height: 1.4; } .notice.win { background: #d9f0dd; border-color: #3b9253; } .notice.null { background: #e6e5e7; border-color: #747077; } .notice.computer-turn { background: #e7f0ff; border-color: #4f87ca; } .die-result { background: #e7f0ff; border-color: #4f87ca; font-weight: 800; } .pass-screen { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-color: #173c42; } .pass-screen p { margin: 0; } .pass-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; } .board-wrap, .panel { background: #b7d5a6; border-radius: 16px; padding: 20px; box-shadow: 0 8px 22px #16323b1c; } .board-area { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: stretch; } .y-axis-label { align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .98rem; font-weight: 900; letter-spacing: .02em; } .board { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 20px; } .population { min-width: 0; } .population h2 { font-size: 1.25rem; margin-bottom: 8px; text-align: center; } .population.red h2 { color: #a7242c; } .population.blue h2 { color: #155fae; }
.grid { display: grid; grid-template-columns: 38px repeat(7, 1fr); gap: 3px; align-items: center; } .axis-value { font-size: 1rem; text-align: right; padding-right: 5px; font-weight: 900; } .cell { position: relative; aspect-ratio: 1; min-height: 27px; padding: 0; border: 1px solid #233b3b; border-radius: 2px; background: #fff; color: transparent; } .cell:disabled { opacity: 1; } .cell.starting-cell { background: #e8e6c4; } .cell::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; opacity: 0; } .cell.token-red::after { opacity: 1; background: #f3242e; border: 1px solid #93121a; } .cell.token-blue::after { opacity: 1; background: #155fe5; border: 1px solid #093994; } .cell.significant::after { box-shadow: 0 0 0 3px #f4bd1d, 0 0 0 5px #fff7cc; } .cell.selectable, .sample-label.selectable { outline: 3px solid #f2bf27; outline-offset: 1px; } .cell:hover.selectable { background: #ffedab; } .cell.token-red.selectable, .cell.token-blue.selectable { cursor: grab; } .sample-label { min-width: 0; padding: 0; border-radius: 2px; background: transparent; color: #10252a; font-weight: 900; text-align: center; font-size: .95rem; }
.sidebar { display: grid; gap: 15px; align-content: start; } .panel { background: #fff; padding: 16px; box-shadow: 0 4px 16px #16323b16; } .panel h2 { font-size: 1.05rem; margin-bottom: 10px; } .threshold { display: flex; gap: 8px; align-items: center; } .level { width: 34px; height: 34px; border: 1px solid #647472; display: grid; place-items: center; font-weight: 900; } .level.active { background: #61716e; color: #fff; } .context { line-height: 1.4; font-size: .93rem; } .moves { padding-left: 18px; margin: 0; font-size: .86rem; line-height: 1.45; } .moves .latest { font-weight: 800; }
.hand { margin-top: 20px; padding: 18px; background: #fff; border-radius: 15px; box-shadow: 0 4px 16px #16323b16; } .hand h2 { margin-bottom: 6px; font-size: 1.15rem; } .cards { display: flex; flex-wrap: wrap; gap: 10px; } .card { width: 168px; min-height: 172px; text-align: left; padding: 10px; background: #d9e9f7; color: #112a33; border: 2px solid transparent; display: grid; grid-template-rows: 84px auto auto; align-content: space-between; gap: 5px; } .card img { width: 100%; height: 84px; object-fit: contain; border-radius: 5px; background: #c7ddf0; } .card-placeholder { height: 84px; display: grid; place-items: center; font-size: 3rem; background: #c7ddf0; border-radius: 5px; } .card-title { font-weight: 800; line-height: 1.15; } .card.selected { border-color: #e3a31e; box-shadow: 0 0 0 3px #ffe3a0; } .card .count { color: #4c626b; font-size: .78rem; font-weight: 650; } .action-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; } .action-controls p { margin: 0; font-weight: 700; }
.rules-reminder { margin-top: 20px; color: #334b50; } .rules-reminder summary { cursor: pointer; font-weight: 800; } .rules-copy { max-width: 900px; margin-top: 10px; padding: 20px; background: #fff; border-radius: 12px; box-shadow: 0 4px 16px #16323b16; line-height: 1.5; } .rules-copy h3 { margin: 18px 0 5px; } .rules-copy h3:first-child { margin-top: 0; } .rules-copy ol { padding-left: 22px; }
@media (max-width: 960px) { .game-layout { grid-template-columns: 1fr; } .sidebar { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 650px) { .shell { padding: 14px; } .masthead, .status, .pass-screen { display: grid; grid-template-columns: 1fr; } .setup { margin: 20px auto; padding: 22px; } .setup-grid, .board, .sidebar, .context-picker { grid-template-columns: 1fr; } .board-wrap { padding: 12px; overflow-x: auto; } .population { min-width: 285px; } .cards { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .card { flex: 0 0 158px; } }
