@import "tailwindcss"; @theme { --color-page: #1d2528; --color-panel: #253035; --color-raised: #2f3c42; --color-line: #3c4c53; --color-fg: #e8eeec; --color-muted: #9aaba6; --color-faint: #6b7d80; --color-jade: #3fbf8f; --color-sand: #ece5d3; --color-ink: #1a2224; --color-coral: #e0614c; --font-sans: var(--font-plex), ui-sans-serif, system-ui, sans-serif; --font-display: var(--font-bricolage), var(--font-plex), ui-sans-serif, sans-serif; } html { color-scheme: dark; } body { background: var(--color-page); color: var(--color-fg); font-family: var(--font-sans); } :focus-visible { outline: 2px solid var(--color-jade); outline-offset: 2px; } /* Pieces are focusable drag handles; a ring on the last-touched piece is noise. */ #ct-board-board [role="button"]:focus-visible { outline: none; } /* ------------------------------------------------------------------ layout */ /* The board is sized from the viewport: as tall as the window allows on desktop (minus the two player bars), full width on phones. */ .app { min-height: 100dvh; display: flex; justify-content: center; align-items: center; padding: 1rem; } .play-area { --bar: 3rem; --gap: 0.5rem; --eval-w: 1.5rem; --panel-w: 25rem; --board: max( 18rem, min( calc(100dvh - 2rem - 2 * var(--bar) - 2 * var(--gap)), calc(100vw - 2rem - var(--panel-w) - 1.5rem - var(--eval-w) - 0.5rem), 58rem ) ); display: flex; gap: 1.5rem; } .play-area:has([data-eval="off"]) { --eval-w: 0px; } .board-grid { display: grid; grid-template-columns: var(--eval-w) var(--board); grid-template-rows: var(--bar) var(--board) var(--bar); grid-template-areas: ". top" "eval board" ". bottom"; column-gap: 0.5rem; row-gap: var(--gap); } .board-grid[data-eval="off"] { column-gap: 0; } .strip-slot { grid-area: strip; } .top-slot { grid-area: top; } .eval-slot { grid-area: eval; } .board-slot { grid-area: board; } .bottom-slot { grid-area: bottom; } .panel { width: var(--panel-w); height: calc(var(--board) + 2 * var(--bar) + 2 * var(--gap)); display: flex; flex-direction: column; border-radius: 0.75rem; background: var(--color-panel); overflow: hidden; } @media (max-width: 1023px) { .app { align-items: flex-start; padding: 0.5rem 0.5rem 1.5rem; } .play-area { --eval-w: 0.75rem; --board: min(calc(100vw - 1rem - var(--eval-w) - 0.375rem), 40rem); flex-direction: column; align-items: center; gap: 0.75rem; width: 100%; } .board-grid { grid-template-rows: auto var(--bar) var(--board) var(--bar); grid-template-areas: "strip strip" ". top" "eval board" ". bottom"; column-gap: 0.375rem; } .panel { width: calc(var(--board) + var(--eval-w) + 0.375rem); height: auto; } } /* ----------------------------------------------------------------- controls */ .btn-primary { border-radius: 0.65rem; background: var(--color-jade); color: #0d2a1f; font-weight: 700; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.2); transition: background-color 0.15s, transform 0.05s; } .btn-primary:hover:not(:disabled) { background: #52cfa0; } .btn-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.2); } .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; } .btn-secondary { border-radius: 0.65rem; background: var(--color-raised); color: var(--color-fg); font-weight: 600; transition: background-color 0.15s; } .btn-secondary:hover { background: var(--color-line); } .choice { border: 2px solid transparent; background: var(--color-raised); color: var(--color-muted); transition: background-color 0.15s, border-color 0.15s, color 0.15s; } .choice:hover { background: var(--color-line); color: var(--color-fg); } .choice-on, .choice-on:hover { border-color: var(--color-jade); background: color-mix(in srgb, var(--color-jade) 14%, var(--color-raised)); color: var(--color-fg); } .switch { appearance: none; position: relative; flex-shrink: 0; width: 2.25rem; height: 1.25rem; border-radius: 999px; background: var(--color-line); cursor: pointer; transition: background-color 0.15s; } .switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 999px; background: var(--color-fg); transition: transform 0.15s; } .switch:checked { background: var(--color-jade); } .switch:checked::before { transform: translateX(1rem); } /* --------------------------------------------------------------- details */ .captured-dark svg { filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.4)); } .thinking-dot { animation: thinking 1s ease-in-out infinite; } @keyframes thinking { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } } /* The result card waits for the final move's animation to land. */ .modal-in { animation: modal-in 0.25s ease-out 0.4s both; } .modal-in > [role="dialog"] { animation: modal-card 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.4s both; } @keyframes modal-in { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } } @keyframes modal-card { from { transform: translateY(8px) scale(0.96); } to { transform: none; } } .no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; } @media (prefers-reduced-motion: reduce) { .thinking-dot, .modal-in, .modal-in > [role="dialog"] { animation: none; } }