/* Card Night (cards.thelabs.fyi): the front door to the card games. Same look as Spades Night; dark by default. */
@font-face { font-family: "Alfa Slab One"; src: url(/fonts/alfa-slab-one-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
:root { --bg: #0d1630; --surface: #15213f; --surface-2: #1c2a4f; --line: #2a3a63; --ink: #f2ecd6; --ink-2: #ccc6ae; --ink-3: #a8a38e; --accent: #8ea6ff; --accent-ink: #0b1430; --bad: #ff8a7a; --pitch: #39b8bf; color-scheme: dark; }
:root[data-theme="light"] { --bg: #f4f1e6; --surface: #fffdf6; --surface-2: #ece7d6; --line: #d9d2bb; --ink: #13203a; --ink-2: #3d4a66; --ink-3: #5a6378; --accent: #3a4fc4; --accent-ink: #fff; --bad: #b8382a; --pitch: #12707a; color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 "Inter", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.wrap { flex: 1; padding-top: 10px; padding-bottom: 20px; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 640px; width: 100%; margin: 0 auto; padding: max(12px, env(safe-area-inset-top, 0px)) 16px 6px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand b { font: 400 1.4rem/1 "Alfa Slab One", Georgia, serif; }
.fan { position: relative; width: 44px; height: 36px; }
.fan img { position: absolute; width: 32px; height: 32px; border-radius: 8px; }
.fan img:first-child { left: 0; top: 4px; transform: rotate(-10deg); }
.fan img:last-child { left: 14px; top: 0; transform: rotate(8deg); box-shadow: -2px 2px 6px rgba(0, 0, 0, .35); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 10px; padding: 0; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .sun { display: none; } :root[data-theme="light"] .icon-btn .sun { display: inline; } :root[data-theme="light"] .icon-btn .moon { display: none; }
h1 { font: 400 2rem/1.1 "Alfa Slab One", Georgia, serif; margin: 14px 0 6px; }
.lead { margin: 0 0 16px; color: var(--ink-2); }
.games { display: grid; gap: 12px; }
.game { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); transition: transform .15s, border-color .15s; }
.game:hover { transform: translateY(-2px); border-color: var(--gc); }
.game.pitch { --gc: var(--pitch); } .game.spades { --gc: var(--accent); }
.game img { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 14px; }
.g-tx { display: grid; gap: 3px; }
.g-tx b { font: 400 1.3rem/1.15 "Alfa Slab One", Georgia, serif; }
.g-tx span { color: var(--ink-2); font-size: .92rem; }
.go { justify-self: start; font-weight: 750; font-size: .95rem; color: var(--gc); }
.go::after { content: " →"; }
.code { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.code label { display: grid; gap: 1px; margin-bottom: 8px; }
.code label span { color: var(--ink-3); font-size: .88rem; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code-row input { min-width: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 1.5rem/1 "Alfa Slab One", Georgia, serif; letter-spacing: .25em; text-transform: uppercase; text-align: center; color: var(--ink); }
.code-row input:focus { outline: none; border-color: var(--accent); }
.code-row button { border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 750 1rem "Inter", sans-serif; padding: 0 22px; cursor: pointer; }
.err { margin: 10px 0 0; color: var(--bad); font-weight: 600; }
.same { color: var(--ink-3); font-size: .86rem; margin: 14px 4px 0; }
.foot { text-align: center; color: var(--ink-3); font-size: .82rem; padding-bottom: 22px; }
.foot p { margin: 4px 0; }
.coffee a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; }
.coffee b { color: var(--ink); }
.nobr { white-space: nowrap; }

/* hint text in empty boxes (2026-10-19): the box's own text color, faded and italic, so it never looks filled in */
::placeholder { color: currentColor; opacity: .5; font-style: italic; font-weight: 400; letter-spacing: normal; text-transform: none; }
