@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --ink: #1d1a2e;
    --paper: #fff6e6;
    --paper-tint: #f3e6cc;
    --card: #ffffff;
    --tomato: #ff5a36;
    --sun: #ffc531;
    --teal: #0f9c8a;
    --grape: #6b47f5;
    --night: #1b1446;
    --on-tomato: #ffffff;
    --on-sun: #1d1a2e;
    --on-teal: #1d1a2e;
    --on-grape: #ffffff;
    --on-night: #ffffff;
    --radius: 16px;
    --shadow: 4px 4px 0 0 var(--ink);
    --tap: 56px;
    --tap-lg: 64px;
    --phone-nav: 78px;
    --muted: #5c5674;
    --tomato-dark: #9c2f1a;
    --display: "Bricolage Grotesque", "Atkinson Hyperlegible", sans-serif;
    --body: "Atkinson Hyperlegible", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-weight: 400;
    line-height: 1.45;
}
body.has-nav { padding-bottom: calc(var(--phone-nav) + env(safe-area-inset-bottom)); }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.skip {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 20;
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    background: var(--ink);
    color: var(--paper);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}
.mast {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 0 8px;
}
.phone-mark { display: none; }
.brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 16px 0;
    color: var(--ink);
    text-decoration: none;
}
.brand-logo { display: block; width: auto; height: auto; }
.brand-logo--lockup { height: 60px; }
.brand-logo--header { height: 48px; }
.brand-logo--auth { height: 72px; }
.you-face {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    border: 3px solid var(--ink);
    border-radius: 50%;
    font-family: var(--display);
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    flex: none;
}
.you-face--tomato { background: var(--tomato); color: var(--on-tomato); }
.you-face--sun { background: var(--sun); color: var(--on-sun); }
.you-face--teal { background: var(--teal); color: var(--on-teal); }
.you-face--grape { background: var(--grape); color: var(--on-grape); }
.you-face--ink { background: var(--ink); color: var(--paper); }
.nav-you { display: none; }
a.brand:focus-visible, .nav a:focus-visible, .pill:focus-visible, .sheet-tab:focus-visible, .game-card:focus-visible, .text-button:focus-visible, .link-back:focus-visible, a.night-row:focus-visible, a.play-game:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
    min-height: var(--tap-lg);
    min-width: var(--tap-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.nav a[aria-current="page"] {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 2px 2px 0 0 var(--ink);
    transform: translate(2px, 2px);
}
.nav--desk { display: none; }
.nav--phone {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    justify-content: space-around;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 3px solid var(--ink);
}
.nav--phone a {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-height: var(--tap);
    padding: 4px 2px;
    box-shadow: none;
    border-radius: 14px;
    font-size: 0.72rem;
    line-height: 1;
}
.nav--phone .icon { width: 22px; height: 22px; }
.page-title {
    margin: 12px 0 8px;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    letter-spacing: -0.045em;
    line-height: 0.95;
}
.lede { margin: 0 0 16px; max-width: 38rem; font-size: 1.05rem; }
.family {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.family-person { display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
.swatch {
    width: var(--tap);
    height: var(--tap);
    display: grid;
    place-items: center;
    border: 3px solid var(--ink);
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.35rem;
}
.swatch--tomato { background: var(--tomato); color: var(--on-tomato); }
.swatch--sun { background: var(--sun); color: var(--on-sun); }
.swatch--teal { background: var(--teal); color: var(--on-teal); }
.swatch--grape { background: var(--grape); color: var(--on-grape); }
.family-name { font-weight: 700; }
.filter-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
    padding: 10px 0 12px;
    margin: 0 0 16px;
    border-bottom: 3px solid var(--ink);
}
.filter-groups { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: 100%; }
.filter-actions .count { margin: 0; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    min-width: 4.6rem;
}
.filter-label .icon { width: 20px; height: 20px; }
.filter-hint { font-size: 0.85rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
    min-height: var(--tap);
    min-width: var(--tap);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 14px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow);
    cursor: pointer;
}
.pill-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.pill-name { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pill-note { font-size: 0.75rem; line-height: 1.1; }
.pill--time { min-width: 112px; justify-content: space-between; }
.pill[aria-pressed="true"] {
    background: var(--sun);
    color: var(--ink);
    box-shadow: 2px 2px 0 0 var(--ink);
    transform: translate(2px, 2px);
}
.pill-check { width: 14px; height: 14px; }
.count {
    margin: 4px 0 0;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
}
.text-button, .link-back {
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
    text-decoration: none;
    cursor: pointer;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.text-button .icon { width: 18px; height: 18px; }
.text-button.is-on {
    background: var(--sun);
    box-shadow: 2px 2px 0 0 var(--ink);
    transform: translate(2px, 2px);
}
.shelf-die {
    width: 22px;
    height: 22px;
    display: grid;
    flex: none;
}
.shelf-die .die-face {
    grid-area: 1 / 1;
    width: 22px;
    height: 22px;
    opacity: 0;
}
.shelf-die[data-face="1"] .die-face-1,
.shelf-die[data-face="2"] .die-face-2,
.shelf-die[data-face="3"] .die-face-3,
.shelf-die[data-face="4"] .die-face-4,
.shelf-die[data-face="5"] .die-face-5,
.shelf-die[data-face="6"] .die-face-6 { opacity: 1; }
.shelf-die.is-rolling { animation: die-tumble 480ms cubic-bezier(0.16, 1, 0.3, 1); }
.shelf-die.is-rolling .die-face { opacity: 0; animation: die-slot 80ms linear; }
.shelf-die.is-rolling .die-face-1 { animation-delay: 0ms; }
.shelf-die.is-rolling .die-face-2 { animation-delay: 80ms; }
.shelf-die.is-rolling .die-face-3 { animation-delay: 160ms; }
.shelf-die.is-rolling .die-face-4 { animation-delay: 240ms; }
.shelf-die.is-rolling .die-face-5 { animation-delay: 320ms; }
.shelf-die.is-rolling .die-face-6 { animation-delay: 400ms; }
@keyframes die-tumble {
    0% { transform: rotate(-24deg) scale(0.86); }
    45% { transform: rotate(210deg) scale(1.14); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes die-slot {
    0%, 99% { opacity: 1; }
    100% { opacity: 0; }
}
.shelf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 4px 6px 28px 0;
}
.shelf.is-dealt .game-card {
    animation: shelf-rattle 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.shelf.is-dealt .game-card:nth-child(3n+2) { animation-delay: 45ms; }
.shelf.is-dealt .game-card:nth-child(3n) { animation-delay: 90ms; }
@keyframes shelf-rattle {
    0% { transform: translateY(8px) rotate(-1.6deg); }
    35% { transform: translateY(-3px) rotate(1.2deg); }
    100% { transform: none; }
}
.game-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 12px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.game-card__art {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--paper-tint);
}
.game-card__art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
    .game-card:hover .game-card__art img { transform: rotate(-2.5deg) scale(1.04); }
}
.game-card h2 {
    margin: 0;
    height: 2.3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.game-card:active {
    box-shadow: 2px 2px 0 0 var(--ink);
    transform: translate(2px, 2px);
}
.chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 18px;
}
.chips li {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.chips .icon { width: 16px; height: 16px; }
.chip-missing { color: var(--muted); }
.icon { width: 1.15rem; height: 1.15rem; display: block; flex: none; }
.empty, .stub-card, .detail-card {
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}
.empty .icon { width: 3.2rem; height: 3.2rem; }
.empty h2, .stub-card h1, .detail-card h1 {
    margin: 8px 0;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.empty p, .stub-card p, .detail-card p { margin: 0 0 16px; max-width: 36rem; }
.detail-art {
    width: min(100%, 420px);
    aspect-ratio: 1;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--paper-tint);
    overflow: hidden;
}
.detail-art img { width: 100%; height: 100%; object-fit: contain; }
.house-note { width: min(1120px, calc(100% - 48px)); margin: 22px auto 28px; font-size: 0.95rem; }
.filter-bar--desk { display: none; }
.sheet-tabs { display: flex; gap: 8px; }
.sheet-tab {
    flex: 1;
    min-width: 0;
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    cursor: pointer;
}
.sheet-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-chevron { width: 14px; height: 14px; flex: none; }
.sheet-tab.is-set { background: var(--sun); color: var(--ink); }
.count-line { display: flex; align-items: center; gap: 8px 12px; width: 100%; }
.count-line .count { margin: 0; }
.count-line .text-button { min-height: 44px; padding: 0 12px; }
.sort-seg {
    display: inline-flex;
    height: 44px;
    margin-left: auto;
    border: 3px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    flex: none;
}
.sort-seg button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 100%;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    cursor: pointer;
}
.sort-seg button + button { border-left: 3px solid var(--ink); }
.sort-seg button.is-on { background: var(--sun); }
.sort-seg .icon { width: 18px; height: 18px; }
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    background: rgba(29, 26, 46, 0.45);
    cursor: pointer;
}
.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 31;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 80vh;
    overflow: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: var(--card);
    border: 3px solid var(--ink);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 0 0 var(--ink);
}
.sheet .pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.sheet .pill { width: 100%; min-width: 0; }
.sheet-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
    line-height: 1;
}
.sheet-title .icon { width: 26px; height: 26px; }
@media (max-width: 719px) {
    .page-catalog .mast,
    .page-picker .mast,
    .page-detail .mast,
    .page-log .mast,
    .page-feed .mast,
    .page-stats .mast,
    .page-settings .mast { display: none; }
    .page-catalog .lede { display: none; }
    .page-title { margin: 10px 0 8px; font-size: 1.7rem; }
    .phone-mark {
        display: flex;
        align-items: center;
        gap: 12px;
        height: auto;
        min-height: 48px;
        margin: 0;
        padding: 12px 0;
        color: var(--ink);
    }
    .phone-mark .brand-home { display: flex; line-height: 0; }
    .phone-mark .you-face { display: grid; margin-left: auto; }
    .filter-bar--phone { position: static; padding: 0 0 8px; margin-bottom: 8px; }
    .sheet-tabs {
        position: sticky;
        top: 0;
        z-index: 5;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        box-sizing: border-box;
        height: 64px;
        max-height: 64px;
        margin: 0 -16px 12px;
        padding: 2px 20px 6px 16px;
        background: #fff6e6;
        border-bottom: 3px solid var(--ink);
    }
    .sheet-tabs .sheet-tab,
    .sheet-tabs .sheet-tab span {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .sheet-tabs .sheet-tab {
        width: 100%;
        min-height: 0;
        height: 52px;
        overflow: hidden;
    }
    .shelf { gap: 12px 10px; }
    .game-card { padding: 6px; gap: 6px; }
    .chips { gap: 4px; }
    .chips li { gap: 2px; font-size: 16px; font-weight: 700; }
    .chips .icon { width: 18px; height: 18px; }
}
@media (min-width: 720px) {
    .filter-bar--phone, .sheet-tabs, .sheet, .sheet-backdrop { display: none; }
    .filter-bar--desk { display: block; }
    .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
    .game-card h2 { font-size: 1.2rem; line-height: 1.2; height: 2.4em; }
    .filter-groups {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: start;
        width: 100%;
        column-gap: 28px;
        row-gap: 12px;
        align-items: center;
    }
    .filter-group {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }
    .filter-group .pills { flex-wrap: nowrap; }
    .filter-bar--desk .count-line { margin-top: 12px; padding-right: 4px; }
}
@media (min-width: 900px) {
    .nav-you { display: grid; }
    .nav a.you-face {
        display: grid;
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        box-shadow: none;
    }
    .nav a.you-face--tomato { background: var(--tomato); color: var(--on-tomato); }
    .nav a.you-face--sun { background: var(--sun); color: var(--on-sun); }
    .nav a.you-face--teal { background: var(--teal); color: var(--on-teal); }
    .nav a.you-face--grape { background: var(--grape); color: var(--on-grape); }
    .nav a.you-face--ink { background: var(--ink); color: var(--paper); }
    body.has-nav { padding-bottom: 40px; }
    .nav--phone { display: none; }
    .nav--desk { display: flex; }
}
@media (min-width: 1100px) {
    .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
    .wrap { width: min(1400px, calc(100% - 48px)); }
    .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.picker-layout { position: relative; }
.picker-step { margin: 0 0 22px; }
.picker-step h2 {
    margin: 0 0 12px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}
.picker-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.picker-avatars li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.picker-avatars .swatch {
    position: relative;
    cursor: pointer;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}
.picker-avatars .swatch--tomato { border-color: var(--tomato); }
.picker-avatars .swatch--sun { border-color: var(--sun); }
.picker-avatars .swatch--teal { border-color: var(--teal); }
.picker-avatars .swatch--grape { border-color: var(--grape); }
.picker-avatars .swatch.is-on { box-shadow: var(--shadow); }
.picker-avatars .swatch--tomato.is-on { background: var(--tomato); color: var(--on-tomato); border-color: var(--ink); }
.picker-avatars .swatch--sun.is-on { background: var(--sun); color: var(--on-sun); border-color: var(--ink); }
.picker-avatars .swatch--teal.is-on { background: var(--teal); color: var(--on-teal); border-color: var(--ink); }
.picker-avatars .swatch--grape.is-on { background: var(--grape); color: var(--on-grape); border-color: var(--ink); }
.check-badge {
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}
.check-badge .icon { width: 14px; height: 14px; }
.guest-step {
    display: inline-flex;
    align-items: stretch;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.guest-step button {
    width: 56px;
    height: 56px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.guest-step p {
    margin: 0;
    min-width: 7.2rem;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-left: 3px solid var(--ink);
    border-right: 3px solid var(--ink);
    font-weight: 700;
}
.picker-count { margin: 14px 0 0; font-size: 17px; font-weight: 700; }
.picker-time { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker-time .pill { width: 100%; min-height: 56px; justify-content: space-between; }
.pick-go {
    min-height: var(--tap-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--tomato);
    color: var(--on-tomato);
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    cursor: pointer;
}
.pick-go:disabled { opacity: 0.45; cursor: not-allowed; }
.pick-go:active, .pick-again:active {
    box-shadow: 2px 2px 0 0 var(--ink);
    transform: translate(2px, 2px);
}
.pick-again {
    min-height: var(--tap-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    cursor: pointer;
}
.deck-stack { display: none; }
.picker-night {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 56px 16px 16px;
    background: var(--night);
    color: var(--on-night);
    overflow: hidden;
}
.picker-night > * { grid-area: 1 / 1; }
.change-players {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 7;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--paper);
    font-weight: 700;
    font-size: 17px;
    padding: 0 8px 0 0;
    cursor: pointer;
}
.chevron-back { width: 20px; height: 20px; transform: rotate(90deg); }
.stage {
    position: fixed;
    inset: 0;
    perspective: 1400px;
    z-index: 2;
    pointer-events: none;
}
.deal-card {
    position: absolute;
    left: 50%;
    top: 45%;
    width: min(45vw, 280px);
    aspect-ratio: 3 / 4;
    margin-left: calc(min(45vw, 280px) / -2);
    margin-top: calc(min(45vw, 280px) * -0.667);
    transform-style: preserve-3d;
}
.deal-spin {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}
.deal-veil {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--night);
    display: none;
    pointer-events: none;
}
.fan-back, .fan-front {
    position: absolute;
    inset: 0;
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 0 #0e0a2a;
    backface-visibility: hidden;
}
.fan-back {
    background-color: var(--grape);
    background-image: radial-gradient(circle, #5a3bd6 1.35px, transparent 1.6px);
    background-size: 16px 16px;
    background-position: 8px 8px;
}
.fan-back::before,
.fan-back::after { content: ""; position: absolute; pointer-events: none; }
.fan-back::before {
    inset: 10px;
    border: 6px solid var(--sun);
    border-radius: 10px;
}
.fan-back::after {
    left: 50%;
    top: 50%;
    width: 34%;
    height: 34%;
    transform: translate(-50%, -50%);
    background: var(--sun);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.fan-front {
    background: var(--paper-tint) center/cover no-repeat;
    transform: rotateY(180deg);
}
.confetti { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 0; top: 0; display: block; }
.picker-result {
    position: relative;
    z-index: 4;
    width: min(100%, 760px);
    max-height: 100%;
    overflow-y: auto;
    text-align: center;
}
.picker-runners { margin: 0 auto 24px; width: min(100%, 520px); }
.picker-runners p {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 16px;
}
.picker-runners ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.picker-runners a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 80px;
    padding: 8px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    text-align: left;
    text-decoration: none;
}
.picker-runners a:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}
.picker-runners img,
.picker-runners .runner-art {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--paper-tint);
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
    .picker-runners a:hover img { transform: rotate(-3deg) scale(1.08); }
}
.picker-runners .runner-copy { display: grid; gap: 4px; min-width: 0; }
.picker-runners .runner-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.picker-runners .runner-why { font-size: 15px; font-weight: 700; }
.picker-kicker {
    margin: 0 0 8px;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
}
.picker-art {
    width: min(200px, 56vw);
    aspect-ratio: 1;
    margin: 0 auto 10px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 0 #0e0a2a;
    background: var(--paper-tint);
    overflow: hidden;
    opacity: 0;
}
.picker-art img { width: 100%; height: 100%; object-fit: cover; }
.picker-result h1 {
    margin: 0 auto 8px;
    max-width: 100%;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.045em;
    font-size: 46px;
    line-height: 1.02;
}
.picker-result h1.is-medium { font-size: 38px; }
.picker-result h1.is-long { font-size: 34px; letter-spacing: -0.05em; }
.picker-result .chips { justify-content: center; gap: 8px; margin: 0 0 12px; }
.picker-result .chips li {
    padding: 4px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
}
.picker-result .chips .icon { width: 18px; height: 18px; }
.picker-reason {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
}
.picker-actions { display: flex; flex-direction: column; gap: 10px; }
.picker-result [data-stagger] { opacity: 0; }
.picker-result .picker-reason {
    opacity: 1;
    background: #ffc93c;
    color: var(--ink);
}
.picker-night.is-skipped .stage,
.picker-night.is-skipped .confetti { display: none; }
.picker-night.is-skipped .picker-result [data-stagger],
.picker-night.is-skipped .picker-art { opacity: 1; transform: none; }
@media (max-width: 719px) {
    .page-picker .mast { display: none; }
    .page-picker .lede { display: none; }
    .page-picker .page-title { margin-top: 14px; }
    .picker-form > .pick-go { width: 100%; }
    .picker-actions .pick-go,
    .picker-actions .pick-again { width: 100%; }
}
@media (min-width: 720px) {
    .picker-step h2 { font-size: 1.35rem; }
    .picker-time { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .picker-art { width: min(380px, 30vh); }
    .picker-result h1,
    .picker-result h1.is-medium { font-size: 72px; }
    .picker-result h1.is-long { font-size: 56px; }
    .picker-runners ul { grid-template-columns: 1fr 1fr; }
    .picker-actions { flex-direction: row; justify-content: center; }
    .picker-actions .pick-go,
    .picker-actions .pick-again { width: auto; min-width: 180px; }
}
@media (min-width: 900px) {
    .picker-layout {
        display: grid;
        grid-template-columns: minmax(280px, 560px) minmax(240px, 1fr);
        column-gap: 32px;
        align-items: center;
        min-height: calc(100vh - 180px);
    }
    .deck-stack {
        display: block;
        position: relative;
        height: 460px;
    }
    .deck-stack .fan-back {
        position: absolute;
        inset: auto;
        width: 230px;
        height: 310px;
        left: 12%;
        top: 50px;
    }
    .deck-stack .fan-back:nth-child(1) { transform: rotate(-11deg) translateY(16px); }
    .deck-stack .fan-back:nth-child(2) { transform: rotate(-2deg) translate(22px, 4px); }
    .deck-stack .fan-back:nth-child(3) { transform: rotate(9deg) translate(46px, 14px); }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    .stage, .confetti { display: none; }
    .picker-result { opacity: 1; animation: none; }
    .picker-result [data-stagger],
    .picker-art { opacity: 1; transform: none; }
    .shelf-die.is-rolling,
    .shelf-die.is-rolling .die-face,
    .shelf.is-dealt .game-card,
    .game-card__art img,
    .picker-runners img { animation: none; transition: none; }
    .shelf-die.is-rolling .die-face { opacity: 0; }
    .shelf-die.is-rolling[data-face="1"] .die-face-1,
    .shelf-die.is-rolling[data-face="2"] .die-face-2,
    .shelf-die.is-rolling[data-face="3"] .die-face-3,
    .shelf-die.is-rolling[data-face="4"] .die-face-4,
    .shelf-die.is-rolling[data-face="5"] .die-face-5,
    .shelf-die.is-rolling[data-face="6"] .die-face-6 { opacity: 1; }
}
[x-cloak] { display: none !important; }
.swatch--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 44px;
    margin: 8px 0 16px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
}
.text-back .icon { width: 20px; height: 20px; }
body.page-log { padding-bottom: calc(72px + 75px + 24px + env(safe-area-inset-bottom)); }
body.page-log:has(.save-bar) .nav--phone { border-top: 0; }
body.page-detail {
    min-height: 100dvh;
    padding-bottom: calc(72px + 75px + 24px + env(safe-area-inset-bottom));
}
body.page-detail:has(.log-bar) .nav--phone { border-top: 0; }
.detail-page { width: min(1040px, 100%); margin: 0 auto; }
.detail-hero-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
.detail-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 899px) {
    .detail-hero-row:not(:has(.empty-night)) .detail-side { display: contents; }
    .detail-hero-row:not(:has(.empty-night)) .detail-hero { grid-column: 1; grid-row: 1 / span 2; }
    .detail-hero-row:not(:has(.empty-night)) .detail-actions,
    .detail-hero-row:not(:has(.empty-night)) .look-around,
    .detail-hero-row:not(:has(.empty-night)) .scoreboard { grid-column: 1 / -1; }
}
.detail-side h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.04em; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-side > .detail-actions .pick-side { width: 100%; }
.pick-side { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }
.detail-hero { width: 120px; height: 120px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; background: var(--paper-tint); }
.detail-hero img { width: 100%; height: 100%; object-fit: contain; }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.scoreboard .stat-tile { min-height: 112px; height: auto; padding: 16px; justify-content: flex-start; gap: 2px; }
.scoreboard .score-champ { grid-column: 1 / -1; }
.score-kicker { font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--ink); }
.score-num, .score-when { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.scoreboard .stat-tile-label { font-size: 15px; font-weight: 700; line-height: 1.2; }
.score-champ { align-items: flex-start; }
.champ-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.champ-avatar { width: 32px; height: 32px; font-size: 0.85rem; box-shadow: none; }
.score-champ { min-width: 0; }
.score-champ .score-when { font-size: 28px; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.champ-stack { display: flex; flex-wrap: nowrap; }
.champ-stack .champ-avatar { width: 32px; height: 32px; margin-left: -10px; font-size: 0.85rem; }
.champ-stack .champ-avatar:first-child { margin-left: 0; }
.champ-team { width: 32px; height: 32px; }
.empty-night { grid-column: 1 / -1; margin-top: 4px; padding: 18px; border: 3px dashed var(--ink); border-radius: 16px; background: var(--card); }
.empty-night h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.04em; }
.empty-night p { margin: 0 0 16px; font-weight: 700; }
.who-wins, .nights { margin-top: 28px; }
@media (max-width: 899px) {
    body.page-detail:not(:has(.log-bar)) .who-wins { margin-top: 4px; }
}
.who-wins h2, .nights > h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.who-wins ul, .night-list { list-style: none; margin: 0; padding: 0; }
.who-wins { padding: 16px; border: 3px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.who-wins li { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "avatar name" "avatar bar" "avatar score"; gap: 4px 10px; align-items: center; padding: 8px 0; }
.who-avatar { grid-area: avatar; width: 40px; height: 40px; font-size: 1rem; box-shadow: none; }
.who-name { grid-area: name; font-weight: 700; color: var(--ink); }
.who-track { grid-area: bar; height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.who-bar { display: block; height: 100%; }
.who-bar--tomato { background: var(--tomato); }
.who-bar--sun { background: var(--sun); }
.who-bar--teal { background: var(--teal); }
.who-bar--grape { background: var(--grape); }
.who-bar--ink { background: var(--ink); }
.who-score { grid-area: score; font-weight: 700; font-size: 16px; color: var(--ink); }
.who-team { grid-template-columns: 24px 1fr; grid-template-areas: "avatar name"; }
.who-team .icon { width: 22px; height: 22px; }
.nights h3 { margin: 16px 0 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.night-list { display: grid; gap: 12px; }
.night-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.night-date { display: grid; justify-items: center; }
.night-date span { font-size: 12px; font-weight: 700; }
.night-date strong { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.04em; line-height: 0.9; }
.night-body { display: grid; gap: 4px; min-width: 0; }
.night-row .seat-mini { width: 32px; height: 32px; font-size: 0.85rem; }
.night-row .play-seats li { padding-top: 12px; }
.night-row .seat-crown { width: 16px; height: 16px; margin-left: -8px; }
.latest-chip { position: absolute; top: 10px; right: 12px; display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 800; }
.night-row.is-latest { padding-right: 76px; }
a.night-row, .night-list .night-row { width: 100%; color: inherit; text-decoration: none; }
.row-chevron { width: 22px; height: 22px; flex: none; color: var(--ink); transform: rotate(-90deg); }
.night-row.has-edit:not(.is-latest) { padding-right: 40px; }
.night-row.has-edit .row-chevron { position: absolute; right: 8px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.night-row.has-edit.is-latest .row-chevron { top: auto; bottom: 8px; transform: rotate(-90deg); }
.winner-verb { display: inline; font-weight: 400; }
.winner-line .winner-crown { display: none; }
.winner-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.winner-person { display: inline-flex; align-items: center; gap: 6px; }
.winner-dot { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); flex: none; }
.winner-dot--tomato { background: var(--tomato); }
.winner-dot--sun { background: var(--sun); }
.winner-dot--teal { background: var(--teal); }
.winner-dot--grape { background: var(--grape); }
.winner-name { font-weight: 700; color: var(--ink); }
.winner-crown { width: 16px; height: 16px; color: var(--sun); }
.winner-crown path { stroke: var(--ink); stroke-width: 1.4px; }
.winner-team { width: 18px; height: 18px; }
.first-played { margin: 18px 0 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 16px;
}
.detail-title-row .page-title { margin: 0; }
.latest-play {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 10px;
    margin-left: auto;
    max-width: 100%;
}
.latest-play .play-when { font-weight: 800; }
.latest-play .play-seats { gap: 6px; }
.latest-play .play-seats li { padding-top: 12px; }
.latest-play .seat-mini { width: 32px; height: 32px; font-size: 0.85rem; }
.latest-play .seat-crown { width: 16px; height: 16px; margin-left: -8px; }
.latest-outcome { margin: 0; font-weight: 700; }
.winner-name { font-weight: 800; }
.winner-line .winner-name { font-weight: 700; }
.winner-name--tomato { color: var(--tomato-dark); }
.winner-name--sun { background: var(--sun); color: var(--ink); padding: 1px 6px; border-radius: 999px; }
.winner-name--teal { color: var(--teal); }
.winner-name--grape { color: var(--grape); }
.winner-name--ink { color: var(--ink); }
.detail-page .play-row { padding: 8px 10px; gap: 4px; }
.detail-page .play-seats { gap: 6px; }
.detail-page .play-seats li { padding-top: 12px; }
.detail-page .seat-mini { width: 32px; height: 32px; font-size: 0.85rem; }
.detail-page .seat-crown { width: 16px; height: 16px; margin-left: -8px; }
.detail-page .chips { margin: 8px 0 14px; }
.detail-page .chips li { gap: 4px; padding: 0 8px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
.detail-page .chips .icon { width: 18px; height: 18px; }
.stat-tiles { display: flex; gap: 10px; margin: 0 0 16px; }
.detail-page .stat-tiles .stat-tile { flex: 0 1 140px; }
.stat-tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 88px;
    padding: 12px 14px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.stat-tile-num,
.stat-tile-date {
    font-family: var(--display);
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -0.04em;
    line-height: 0.95;
}
.scoreboard .score-num { font-size: 40px; line-height: 1; }
.stat-tile-label { font-weight: 700; font-size: 0.95rem; }
.stat-tile--sun {
    margin: 0 0 16px;
    background: var(--sun);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.35rem;
    justify-content: center;
}
.detail-log-desk { display: none; margin: 0 0 18px; }
.recent-plays h2, .log-form h2 {
    margin: 0 0 10px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
}
.play-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.play-row {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.play-row-top, .play-game { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.play-game { color: inherit; font-weight: 800; text-decoration: none; }
.play-row--feed .play-game { width: 100%; cursor: pointer; }
.play-row--feed div.play-game { cursor: default; }
.play-row--feed .play-feed-copy { flex: 1; min-width: 0; }
.play-row--feed .play-seats { margin-left: auto; flex: none; }
.play-game img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--paper-tint); }
.log-feed { width: min(760px, 100%); margin: 0 auto; }
.play-feed-copy { display: grid; gap: 6px; }
.play-title { font-family: var(--display); font-weight: 800; }
.play-when, .play-outcome { margin: 0; font-weight: 700; }
.play-outcome { font-size: 0.95rem; }
.coop-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--teal);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
}
.day-group { margin: 0 0 18px; }
.day-group h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.see-all { display: inline-flex; margin-top: 12px; font-weight: 800; color: var(--ink); }
.play-seats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.play-seats li { position: relative; padding-top: 16px; }
.seat-mini { width: 40px; height: 40px; font-size: 1rem; box-shadow: none; }
.seat-mini.swatch--tomato { color: var(--ink); }
.seat-mini.has-crown { box-shadow: 0 0 0 3px var(--sun); }
.seat-crown {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    color: var(--sun);
}
.log-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(8px + var(--tap) + 8px + env(safe-area-inset-bottom));
    z-index: 6;
    padding: 10px 16px;
    background: var(--paper);
    border-top: 3px solid var(--ink);
}
.log-bar .pick-go {
    width: 100%;
    min-height: 52px;
    height: 52px;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 800;
}
@media (max-width: 899px) {
    .page-feed .toast { bottom: calc(var(--phone-nav) + 16px + env(safe-area-inset-bottom)); }
}
.toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--phone-nav) + 98px + env(safe-area-inset-bottom));
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background-color: #ffc531;
    color: var(--ink);
    box-shadow: 4px 4px 0 0 var(--ink);
    opacity: 1;
    animation: toast-in 150ms ease-out;
}
@keyframes toast-in {
    from { transform: translateY(12px); }
    to { transform: none; }
}
.toast p { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.toast .icon { width: 22px; height: 22px; }
.toast button {
    min-height: 44px;
    padding: 0 14px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}
.log-feed-go, .log-feed-note { margin: 0 0 16px; }
.log-preview { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.log-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 3px solid var(--ink); }
.log-preview .page-title { margin: 0; font-size: 1.7rem; }
.field { display: grid; gap: 6px; margin: 0 0 16px; font-weight: 700; }
.note-field {
    width: 100%;
    min-height: 96px;
    padding: 12px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    resize: vertical;
}
.note-field::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.note-count { display: block; margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-align: right; }
.delete-row { margin: 14px 0 0; }
.delete-row > .text-remove {
    display: inline-block;
    box-sizing: content-box;
    min-height: 0;
    padding-block: calc((44px - 1lh) / 2);
    margin-block: calc((1lh - 44px) / 2);
}
.delete-ask { margin: 0 0 8px; font-weight: 800; }
.delete-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.danger-outline, .plain-button {
    min-height: 44px;
    padding: 0 14px;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}
.danger-outline { border-color: var(--tomato-dark); background: var(--paper); color: var(--tomato-dark); }
.save-bar .save-play.is-held,
.save-bar .save-play.is-held:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.log-picked-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.log-picked-copy .hint { margin: 0; }
.field select, .date-field {
    width: 100%;
    min-height: 56px;
    padding: 0 12px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 700;
}
.player-tiles {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 14px 10px;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}
.player-tiles li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; }
.player-tiles .swatch {
    position: relative;
    width: 64px;
    height: 64px;
    cursor: pointer;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}
.player-tiles .swatch--tomato { border-color: var(--tomato); }
.player-tiles .swatch--sun { border-color: var(--sun); }
.player-tiles .swatch--teal { border-color: var(--teal); }
.player-tiles .swatch--grape { border-color: var(--grape); }
.player-tiles .swatch.is-on { box-shadow: var(--shadow); }
.player-tiles .swatch--tomato.is-on { background: var(--tomato); color: var(--on-tomato); border-color: var(--ink); }
.player-tiles .swatch--sun.is-on { background: var(--sun); color: var(--on-sun); border-color: var(--ink); }
.player-tiles .swatch--teal.is-on { background: var(--teal); color: var(--on-teal); border-color: var(--ink); }
.player-tiles .swatch--grape.is-on { background: var(--grape); color: var(--on-grape); border-color: var(--ink); }
.player-tiles .swatch--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow); }
.player-tiles .family-name { font-size: 0.8rem; text-align: center; line-height: 1.1; }
.crown-hit {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.crown-hit .icon { width: 24px; height: 24px; }
.crown-hit.is-on { background: var(--sun); }
.crown-hit:disabled { opacity: 0.35; cursor: not-allowed; }
.when-pills { margin-bottom: 10px; }
.when-pills .pill[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.game-picks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.game-picks button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 6px 10px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}
.game-picks img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.field input[type="search"] {
    width: 100%;
    min-height: 56px;
    padding: 0 12px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 700;
}
.hint, .notice { margin: 0 0 10px; }
.notice { font-weight: 700; }
.look-around { margin: 0; font-weight: 700; line-height: 1.35; }
.empty-night .look-around { margin: 12px 0 0; }
.look-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
    padding: 18px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.look-card p { margin: 0; font-weight: 700; line-height: 1.35; }
.look-card .pick-side { width: 100%; }
.save-bar .notice,
.save-bar .guest-hint { margin: 0 0 8px; text-align: center; font-weight: 700; }
.save-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(8px + var(--tap) + 8px + env(safe-area-inset-bottom));
    z-index: 6;
    padding: 10px 16px;
    background: var(--paper);
    border-top: 3px solid var(--ink);
}
.save-bar .pick-go {
    width: 100%;
    min-height: 52px;
    height: 52px;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 800;
}
.save-bar .save-play:disabled {
    opacity: 1;
    background: #fff;
    border: 3px solid color-mix(in srgb, var(--ink) 35%, transparent);
    color: color-mix(in srgb, var(--ink) 60%, transparent);
    box-shadow: none;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 800;
    cursor: not-allowed;
}
.save-bar .save-play.is-held:disabled {
    opacity: 0.45;
    background: var(--tomato);
    border: 3px solid var(--ink);
    color: var(--on-tomato);
    box-shadow: var(--shadow);
}
.log-picked {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
}
.log-picked img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; border: 3px solid var(--ink); }
.log-picked .page-title { margin: 0; font-size: 1.7rem; flex: 1; }
.log-picked button {
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    min-height: 44px;
}
.log-feed-go, .log-feed-note { margin: 0 0 16px; }
@media (max-width: 719px) {
    .log-feed-go { width: 100%; }
    .detail-page .chips { font-size: 16px; }
    .detail-page .chips .icon { width: 18px; height: 18px; }
    .player-tiles { grid-template-columns: repeat(4, 80px); }
    .play-row--feed .play-game {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas: "art copy" "art seats";
        align-items: start;
        column-gap: 12px;
        row-gap: 4px;
    }
    .play-row--feed .play-game:has(.row-chevron) {
        grid-template-columns: 56px minmax(0, 1fr) 22px;
        grid-template-areas: "art copy chevron" "art seats chevron";
    }
    .play-row--feed .row-chevron { grid-area: chevron; align-self: center; justify-self: end; }
    .play-row--feed .play-game > img { grid-area: art; }
    .play-row--feed .play-feed-copy { grid-area: copy; }
    .play-row--feed .play-seats { grid-area: seats; margin-left: 0; gap: 8px; }
    .play-row--feed .play-seats li { padding-top: 12px; }
    .play-row--feed .seat-mini { width: 32px; height: 32px; font-size: 0.85rem; }
    .play-row--feed .seat-crown { width: 18px; height: 18px; margin-left: -9px; }
    .headline { gap: 8px; }
    .headline .stat-tile { padding: 10px 6px; }
    .headline .stat-tile-label { font-size: 15px; white-space: nowrap; }
}
@media (min-width: 900px) {
    body.page-detail { padding-bottom: 32px; }
    body.page-log { padding-bottom: calc(var(--phone-nav) + env(safe-area-inset-bottom)); }
    .detail-hero-row { grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: stretch; }
    .detail-hero-row:has(.empty-night) {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 24px;
        padding-left: 408px;
        align-items: start;
    }
    .detail-hero-row:has(.empty-night) .chips { margin-bottom: 0; }
    .detail-hero-row:has(.empty-night) .detail-hero {
        position: absolute;
        top: 0;
        left: 0;
        grid-row: auto;
        width: 380px;
        height: 380px;
    }
    .detail-hero-row:has(.empty-night) .detail-side,
    .detail-hero-row:has(.empty-night) .empty-night { grid-column: 1; }
    .detail-hero-row:not(:has(.empty-night)) .detail-hero { position: sticky; top: 24px; grid-row: auto; align-self: start; width: 380px; height: 380px; }
    .detail-hero-row:not(:has(.empty-night)) .detail-side { align-self: start; }
    .detail-hero-row + .who-wins,
    .detail-hero-row + .nights { margin-top: 40px; }
    .detail-side { min-height: 0; }
    .empty-night { grid-column: 2; margin-top: 0; align-self: start; }
    .detail-side h1 { font-size: 64px; line-height: 0.95; display: block; overflow: visible; }
    .detail-actions { width: 100%; flex-wrap: nowrap; }
    .detail-actions .pick-go, .detail-actions .pick-side { flex: 1 1 0; width: 0; min-width: 0; height: 64px; min-height: 64px; padding: 0 16px; white-space: nowrap; font-size: 20px; }
    .scoreboard { grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); flex: 0 0 auto; }
    .score-num, .score-when { white-space: nowrap; }
    .scoreboard .score-champ { grid-column: auto; }
    .who-wins li { grid-template-columns: 40px 140px minmax(0, 1fr) auto; grid-template-areas: "avatar name bar score"; }
    .who-track { border-radius: 4px; }
    .night-row, .night-row.is-latest, .night-row.has-edit, .night-row.has-edit.is-latest { display: flex; align-items: center; gap: 16px; padding-right: 12px; }
    .night-row.has-edit .row-chevron, .night-row.has-edit.is-latest .row-chevron { position: static; top: auto; right: auto; bottom: auto; transform: rotate(-90deg); }
    .night-row.has-edit:not(.is-latest) .row-chevron { margin-left: auto; }
    .night-body { display: flex; align-items: center; justify-content: flex-start; gap: 24px; flex: 0 1 auto; min-width: 0; }
    .night-row .seat-mini { width: 40px; height: 40px; font-size: 1rem; }
    .night-row .seat-crown { width: 18px; height: 18px; margin-left: -9px; }
    .latest-chip { position: static; margin-left: auto; }
    .winner-line .winner-crown { display: none; }
    .winner-verb { display: inline; font-weight: 400; }
    .winner-line .winner-name { font-weight: 700; }
    .detail-log-desk { display: inline-flex; }
    .log-bar { display: none; }
    .log-form { width: min(560px, 100%); margin: 0 auto; }
    .save-bar { position: static; padding: 0; border: 0; background: transparent; }
    .toast { left: auto; right: 24px; width: 340px; bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .toast { animation: none; }
}
.stats-page { width: min(960px, 100%); margin: 0 auto; }
.headline { align-items: stretch; }
.headline .stat-tile { height: auto; }
.headline .stat-tile-num { display: flex; align-items: baseline; font-size: 36px; white-space: nowrap; }
.headline .stat-tile-label { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.stat-of {
    margin-left: 4px;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    color: var(--muted);
}
.podium-block h2, .dust-block h2 {
    margin: 8px 0 10px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.5rem;
}
.podium-block { margin-bottom: 28px; }
.podium-block + .dust-block h2 { margin-top: 0; }
.podium {
    display: grid;
    grid-template-columns: 92px 110px 92px;
    justify-content: center;
    align-items: end;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border-bottom: 3px solid var(--ink);
    list-style: none;
}
.podium--1 { grid-template-columns: 110px; width: 110px; }
.podium--2 { grid-template-columns: 92px 110px; width: 210px; }
.podium-step { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.podium-step--1 { order: 2; }
.podium-step--2 { order: 1; }
.podium-step--3 { order: 3; }
.podium-step a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    text-align: center;
}
.podium-step img {
    width: 92px;
    height: 92px;
    max-width: none;
    object-fit: cover;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--paper-tint);
}
.podium-step--1 img { width: 110px; height: 110px; }
.podium-meta { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.podium-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.podium-count {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.podium-riser {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin: 0 0 -3px;
    padding-top: 2px;
    border: 3px solid var(--ink);
    border-radius: 12px 12px 0 0;
    font-family: var(--display);
    font-weight: 800;
    line-height: 1;
}
.podium-step--1 .podium-riser { height: 72px; background: var(--sun); font-size: 28px; }
.podium-step--2 .podium-riser { height: 52px; background: var(--teal); font-size: 22px; }
.podium-step--3 .podium-riser { height: 40px; background: var(--grape); color: #fff; font-size: 20px; }
.dust {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    align-items: flex-start;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
}
.dust a { display: flex; flex-direction: column; gap: 4px; width: 132px; color: var(--ink); text-decoration: none; }
.dust img { width: 132px; height: 132px; object-fit: cover; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); background: var(--paper-tint); }
.dust-title { font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.dust-wait { font-size: 15px; font-weight: 700; color: var(--muted); }
.dust-wait--pill {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font-weight: 800;
}
.dust-all { display: none; }
.dust-block .pick-go { margin-top: 16px; }
.stats-page .empty { margin-bottom: 22px; }
@media (max-width: 899px) {
    body.page-stats { padding-bottom: calc(var(--phone-nav) + 21px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
    .podium {
        grid-template-columns: 150px 180px 150px;
        gap: 24px;
        max-width: 640px;
    }
    .podium-riser { align-items: center; padding-top: 0; }
    .podium--1 { grid-template-columns: 180px; width: 180px; }
    .podium--2 { grid-template-columns: 150px 180px; width: min(640px, 100%); }
    .podium-step--1 img { width: 180px; height: 180px; }
    .podium-step--2 img, .podium-step--3 img { width: 150px; height: 150px; }
}
@media (min-width: 1024px) {
    .dust {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        overflow: visible;
        gap: 16px 12px;
        padding-bottom: 0;
    }
    .dust a, .dust img { width: 100%; }
    .dust img { height: auto; aspect-ratio: 1; }
    .dust-all {
        display: flex;
        width: fit-content;
        margin-top: 16px;
        font-weight: 800;
        color: var(--ink);
    }
}
.page-auth { background: var(--paper); }
.auth-shell { width: min(420px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
.auth-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 0;
    text-decoration: none;
}
.auth-line { margin: 8px 0 0; text-align: center; font-size: 16px; font-weight: 400; }
.auth-card {
    margin-top: 16px;
    padding: 24px;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 0 var(--ink);
}
.auth-form { display: grid; gap: 20px; }
.auth-after { margin-top: 4px; }
.auth-field { display: grid; gap: 6px; }
.auth-label { font-weight: 700; font-size: 15px; }
.auth-control { position: relative; display: block; }
.auth-input {
    width: 100%;
    height: 56px;
    padding: 0 14px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 700;
}
.auth-input--secret { padding-right: 52px; }
.auth-input:focus { outline: 3px solid var(--teal); outline-offset: 2px; box-shadow: var(--shadow); }
.auth-peek {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.auth-error { display: flex; align-items: center; gap: 6px; color: var(--tomato-dark); font-weight: 700; font-size: 15px; }
.auth-bang { width: 16px; height: 16px; }
.auth-success { margin: 0; font-weight: 700; }
.auth-sent { display: grid; gap: 20px; }
.auth-copy { display: grid; gap: 8px; }
.auth-muted, .auth-hint { margin: 0; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.4; }
.auth-banner {
    margin: 0;
    padding: 12px 14px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--paper);
    color: var(--tomato-dark);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}
.auth-banner p { margin: 0; }
.auth-banner-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tomato-dark);
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.auth-banner-link:disabled { cursor: progress; }
.auth-reset-for { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.4; }
.auth-reset-for strong { font-weight: 700; }
.auth-link { color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.auth-submit { width: 100%; min-height: 64px; font-size: 20px; }
.auth-submit:disabled { cursor: progress; }
.auth-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-covers { display: flex; justify-content: center; align-items: flex-end; height: 120px; margin-top: 28px; }
.auth-covers img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    margin: 0 -6px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: var(--paper-tint);
}
.auth-covers img:nth-child(1) { transform: rotate(-6deg); }
.auth-covers img:nth-child(2) { transform: rotate(2deg); }
.auth-covers img:nth-child(3) { transform: rotate(8deg); }
.auth-switch { display: flex; gap: 8px; margin: 12px 0; }
.auth-switch .pill { flex: 1; min-height: 56px; }
.pill.is-on { background: var(--sun); color: var(--ink); }
.invite-copy { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 16px; }
.invite-copy h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; line-height: 1.15; }
.auth-note { margin: 0; font-weight: 700; }
.seat-face {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 3px solid var(--ink);
    border-radius: 50%;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.4rem;
    flex: none;
}
.seat-face--tomato { background: var(--tomato); color: var(--on-tomato); }
.seat-face--sun { background: var(--sun); color: var(--on-sun); }
.seat-face--teal { background: var(--teal); color: var(--on-teal); }
.seat-face--grape { background: var(--grape); color: var(--on-grape); }
.seat-face--ink { background: var(--ink); color: var(--paper); }
.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 10px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    font-weight: 800;
    background: #fff;
}
.role-chip--editor { background: var(--sun); }
.role-chip--viewer { background: #fff; }
.members { width: min(720px, 100%); margin: 0 auto; display: grid; gap: 22px; }
.member-block h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.member-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-height: 80px;
    padding: 12px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.member-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.member-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 800; }
.member-email { color: var(--muted); font-weight: 700; font-size: 15px; }
.member-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.waiting-on { margin: 24px 0 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.account-id { display: grid; gap: 4px; }
.account-id .member-name,
.account-id .member-email { margin: 0; }
.logout-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
}
.text-remove { border: 0; background: none; color: var(--tomato-dark); font-weight: 800; cursor: pointer; min-height: 44px; }
@media (max-width: 899px) {
    .member-controls { flex: 1 1 100%; justify-content: space-between; }
}
@media (min-width: 900px) {
    .member-row { flex-wrap: nowrap; }
    .member-controls { flex: none; }
    .pending-list .member-copy { flex: 1 1 auto; }
}
.role-select { min-height: 44px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; }
.library-switch select { min-height: 44px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; font: inherit; font-weight: 800; }
.empty-line { margin: 0; font-weight: 700; }
.invite-form { display: grid; gap: 12px; }
@media (max-height: 359px) { .auth-covers { display: none; } }
@media (prefers-reduced-motion: reduce) { .auth-spinner { animation: none; } }
/* Player profile */
.profile { width: min(760px, 100%); min-width: 0; margin: 0 auto 8px; }
.profile-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--paper-tint);
    box-shadow: var(--shadow);
}
.profile-frame--bare { min-height: 240px; }
.profile-cover {
    display: block;
    width: 100%;
    height: 176px;
    object-fit: cover;
    background: var(--paper-tint);
}
.profile-chip-sub {
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-block .log-feed-go { margin-top: 12px; margin-bottom: 0; }
.profile-initial {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px 0 36px;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    font-size: 96px;
    letter-spacing: -0.04em;
    line-height: 1;
}
.profile-see-all:focus-visible,
.profile-shelf a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.profile-band {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 14px 104px 14px 16px;
    border-top: 3px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
}
.profile-card--teal .profile-band { background: var(--teal); color: var(--on-teal); }
.profile-card--tomato .profile-band { background: var(--tomato); color: var(--ink); }
.profile-card--sun .profile-band { background: var(--sun); color: var(--on-sun); }
.profile-card--grape .profile-band { background: var(--grape); color: var(--on-grape); }
.profile-card--ink .profile-band { background: var(--ink); color: var(--paper); }
.profile-kicker { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.2; }
.profile-name {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: 44px;
    letter-spacing: -0.04em;
    line-height: 0.95;
    overflow-wrap: anywhere;
}
.profile-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.profile-chips--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 88px;
    padding: 12px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.profile-chip--lead {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    min-height: 96px;
}
.profile-chip-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.04em;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
    color: var(--teal);
}
.profile-chip--lead .profile-chip-num { font-size: 56px; }
.profile-chip-label { font-size: 17px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.profile-chip { padding: 12px 10px; }
.profile-chip--lead { padding: 12px; }
.profile-chip-label { white-space: nowrap; }
@media (max-width: 719px) { .profile-chip:not(.profile-chip--lead) .profile-chip-label { font-size: 15px; } }
.profile-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 10px;
}
.profile-block h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}
.profile-see-all {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}
.profile-empty { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.profile-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 2px 0 0;
    list-style: none;
}
.profile-shelf li { min-width: 0; }
.profile-shelf a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-height: 56px;
    color: var(--ink);
    text-decoration: none;
}
.profile-shelf img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--paper-tint);
    box-shadow: var(--shadow);
}
.profile-shelf-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    min-height: calc(1.15em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.profile-shelf-count {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.profile-shelf a:active img { transform: translate(2px, 2px); }
.logo-piece { position: relative; display: block; width: 100%; height: 100%; color: var(--teal); }
.logo-piece svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-piece--teal { color: var(--teal); }
.logo-piece--tomato { color: var(--tomato); }
.logo-piece--sun { color: var(--sun); }
.logo-piece--grape { color: var(--grape); }
.logo-piece--paper { color: var(--paper); }
.logo-piece--ink { color: var(--ink); }
.logo-piece-letter {
    position: absolute;
    left: 0;
    right: 0;
    top: 64%;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}
.profile-piece.logo-piece {
    position: absolute;
    z-index: 2;
    right: 16px;
    top: -43px;
    width: 72px;
    height: 86px;
}
.seat-link { text-decoration: none; color: inherit; }
.seat-link:focus-visible,
.member-name-link:focus-visible,
.winner-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.member-name-link, .winner-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
    .profile { width: min(920px, 100%); }
    .profile-cover { height: 200px; }
    .profile-frame--bare { min-height: 300px; }
    .profile-name { font-size: 72px; }
    .profile-chips { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .profile-chips--duo { grid-template-columns: 2fr 1fr 1fr; }
    .profile-chip--lead { grid-column: auto; }
    .profile-chip--lead .profile-chip-num { font-size: 64px; }
    .profile-shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .profile-shelf a,
    .profile-shelf img { width: 100%; }
    .profile-shelf img { height: auto; aspect-ratio: 1; }
}
/* Shelf setup: players and games */
.setup { width: min(720px, 100%); margin: 0 auto; display: grid; gap: 22px; padding-bottom: 24px; }
.setup .intro, .setup .field, .setup .hint { margin: 0; }
.setup-faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
.setup-faces li { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; }
.setup-face-name { font-weight: 800; overflow-wrap: anywhere; }
.setup-face-note { color: var(--muted); font-weight: 700; font-size: 15px; }
.setup-colors { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.setup-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.setup-swatch { display: grid; justify-items: center; gap: 4px; min-width: 64px; cursor: pointer; }
.setup-swatch .seat-face { transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
.setup-swatch .seat-face.is-on { box-shadow: var(--shadow); }
.setup-swatch .seat-face .icon { width: 26px; height: 26px; }
.setup-swatch input:focus-visible + .seat-face { outline: 3px solid var(--teal); outline-offset: 3px; }
.setup-swatch-name { font-weight: 700; font-size: 15px; }
.setup-add, .setup-next { width: 100%; }
.setup-count { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.15rem; }
.setup-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.setup-game {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.setup-game-art { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #F3E6CC; }
.setup-game-art img { width: 100%; height: 100%; object-fit: contain; }
.setup-game-copy { display: grid; gap: 4px; min-width: 0; }
.setup-game-title { font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.setup-add-game {
    min-height: var(--tap);
    min-width: 76px;
    padding: 0 16px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
}
.setup-add-game:active { box-shadow: 2px 2px 0 0 var(--ink); transform: translate(2px, 2px); }
.setup-add-game:disabled { opacity: 0.45; cursor: progress; }
.setup-have {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 12px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--teal);
    color: var(--on-teal);
    font-weight: 800;
    font-size: 15px;
}
.setup-have .icon { width: 16px; height: 16px; }
.setup-empty h2 { font-size: 1.6rem; }
.setup-empty p { margin: 0; }
.setup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.shelf-add { margin-top: 12px; }
.setup-jump { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.setup-more { justify-self: center; }
.setup-hand { scroll-margin-top: 16px; }
@media (max-width: 899px) {
    .setup .toast { bottom: calc(var(--phone-nav) + 16px + env(safe-area-inset-bottom)); }
}
/* A typed-in game has no box art yet: show its first letter in the well. */
.art-initial {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2rem, 40cqi, 5rem);
    line-height: 1;
    color: var(--ink);
}
.game-card__art, .detail-hero, .setup-game-art { container-type: inline-size; }
.setup-game-art .art-initial { font-size: 2rem; }
