/* ============================================================
   Wonder Wheel — design system
   Warm tactile editorial: bone paper, clay accent, Fraunces
   display serif over Geist UI. Every class generated by
   site.js has a matching rule here.
   ============================================================ */

:root {
    --bone: #F3EDE2;
    --paper: #FBF8F1;
    --card: #FFFFFF;
    --card-warm: #FBF6EC;
    --ink: #211C16;
    --ink-2: #4A4138;
    --muted: #8C8273;
    --rule: rgba(33, 28, 22, .08);
    --rule-strong: rgba(33, 28, 22, .2);
    --clay: #C2553A;
    --clay-deep: #9C3A22;
    --clay-soft: #F0DDD5;
    --gold: #B8924A;
    --sage: #557856;
    --good: #557856;
    --danger: #B3402A;
    --shadow-soft: 0 1px 0 #FFF inset, 0 1px 2px rgba(33, 28, 22, .04), 0 8px 24px -10px rgba(33, 28, 22, .08);
    --shadow-lift: 0 1px 0 #FFF inset, 0 2px 4px rgba(33, 28, 22, .05), 0 18px 40px -16px rgba(33, 28, 22, .16);
    --r-card: 20px;
    --r-pill: 999px;
    --font-ui: 'Geist', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --font-mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.wheel-page {
    margin: 0;
    font-family: var(--font-ui);
    background: var(--bone);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .5), transparent 50%),
        radial-gradient(circle at 85% 100%, rgba(194, 85, 58, .06), transparent 55%);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.005em;
    min-height: 100vh;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::selection { background: var(--clay-soft); color: var(--clay-deep); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 5px; border: 2px solid var(--bone); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   APP FRAME
   ============================================================ */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(251, 248, 241, .8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-icon {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--clay), var(--clay-deep));
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 3px 8px rgba(194, 85, 58, .35);
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -.01em;
    white-space: nowrap;
    line-height: 1;
}
.brand-name span {
    display: block;
    font-family: var(--font-ui);
    color: var(--muted);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 3px;
}

.top-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
    background: var(--card);
    border: 1px solid var(--rule);
    width: 38px; height: 38px;
    border-radius: 12px;
    display: grid; place-items: center;
    cursor: pointer;
    color: var(--ink-2);
    transition: transform .18s, box-shadow .18s, color .18s;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); color: var(--clay); }
.icon-btn .badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--clay); color: #fff;
    font-size: 9px; font-weight: 600;
    border-radius: 999px;
    min-width: 16px; height: 16px;
    display: grid; place-items: center;
    padding: 0 4px;
    border: 2px solid var(--paper);
}

.me {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 5px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-soft);
    font-size: 13px; font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow .18s, transform .18s;
}
.me:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); color: var(--ink); }
.avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #8A5C30);
    color: #fff;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}
.signin-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ink); color: var(--paper);
    border-radius: var(--r-pill);
    padding: 9px 18px;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    transition: background .2s, transform .18s;
    white-space: nowrap;
}
.signin-link:hover { background: var(--clay); color: #fff; transform: translateY(-1px); }

/* ============================================================
   BENTO LAYOUT
   ============================================================ */
main.bento {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 290px;
    gap: 18px;
    padding: 18px 24px 26px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    flex: 1;
    align-items: stretch;
    min-height: calc(100vh - 67px);
}

.card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-head {
    padding: 15px 18px 11px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--rule);
    flex-shrink: 0;
}
.card-head h3 {
    font-size: 11.5px; font-weight: 600;
    color: var(--muted);
    letter-spacing: .07em; text-transform: uppercase;
    margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-2);
    background: var(--bone);
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.card-body { min-height: 0; display: flex; flex-direction: column; flex: 1; }

.head-action {
    background: none; border: 0;
    font: inherit; font-size: 11px; font-weight: 500;
    color: var(--muted); cursor: pointer;
    padding: 2px 0;
    transition: color .15s;
}
.head-action:hover { color: var(--clay); }

/* ============================================================
   BUILD CARD — search hero + categories + inline wizard
   ============================================================ */
.build-card .card-body { padding: 16px 14px 14px; overflow-y: auto; gap: 4px; }

.search-hero { display: flex; flex-direction: column; gap: 10px; }
.search-hero .label {
    font-family: var(--font-display);
    font-size: 19px; font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    line-height: 1.25;
}

.search-bar {
    display: flex; align-items: center; gap: 9px;
    background: var(--card-warm);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--clay); box-shadow: 0 0 0 4px rgba(194, 85, 58, .1); background: #fff; }
.search-bar svg { flex-shrink: 0; color: var(--muted); }
.search-bar input {
    flex: 1; min-width: 0;
    border: none; outline: none; background: transparent;
    font: inherit; font-size: 14.5px; color: var(--ink);
}
.search-bar input::placeholder { color: #ABA08E; }

/* location reveal — slides open when query implies a place */
.location-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .35s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.location-reveal.open { grid-template-rows: 1fr; opacity: 1; }
.location-reveal > .location-inner { overflow: hidden; display: flex; flex-direction: column; gap: 9px; }

.location-row-top {
    display: flex; align-items: center; gap: 8px;
    background: var(--card-warm);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 9px 12px;
}
.location-row-top:focus-within { border-color: var(--clay); }
.location-icon { color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.location-input {
    flex: 1; min-width: 0;
    border: none; outline: none; background: transparent;
    font: inherit; font-size: 13.5px; color: var(--ink);
}
.gps-pill {
    background: var(--ink); color: var(--paper);
    border: 0; border-radius: 999px;
    padding: 6px 13px;
    font: inherit; font-size: 11.5px; font-weight: 500;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.gps-pill:hover { background: var(--clay); }
.gps-pill.found { background: var(--sage); }

.distance-chips { display: flex; gap: 6px; }
.dist-chip {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px;
    background: var(--card-warm);
    border: 1px solid var(--rule);
    border-radius: 11px;
    font-size: 11px; font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .18s;
    user-select: none;
    text-align: center;
}
.dist-chip:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.dist-chip.active { background: var(--clay-soft); border-color: var(--clay); color: var(--clay-deep); }
.dist-chip-icon { display: grid; place-items: center; color: var(--ink-2); transition: color .18s; }
.dist-chip.active .dist-chip-icon { color: var(--clay-deep); }

.primary-cta {
    background: var(--ink); color: var(--paper);
    border: 0; border-radius: 13px;
    padding: 13px 18px;
    font: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 8px 20px -8px rgba(33, 28, 22, .4);
}
.primary-cta:hover { background: var(--clay); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(194, 85, 58, .45); }
.primary-cta:active { transform: translateY(0); }

.spinner-inner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.search-summary-pill {
    display: none;
    align-items: center; justify-content: space-between; gap: 10px;
    background: var(--clay-soft);
    border: 1px solid rgba(194, 85, 58, .28);
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    transition: border-color .2s;
}
.search-summary-pill:hover { border-color: var(--clay); }
.summary-text {
    font-size: 13px; font-weight: 500; color: var(--clay-deep);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.summary-edit {
    font-size: 11px; font-weight: 600;
    color: var(--clay);
    letter-spacing: .05em; text-transform: uppercase;
    flex-shrink: 0;
}

.or-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 0 8px;
    color: var(--muted);
    font-size: 11.5px;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.or-text { letter-spacing: .07em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.wizard-link {
    background: none; border: 0;
    font: inherit; font-size: 12px; font-weight: 500;
    color: var(--clay); cursor: pointer;
    white-space: nowrap;
    padding: 0;
}
.wizard-link:hover { text-decoration: underline; }

/* categories */
.inline-section-label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 600;
    color: var(--muted);
    letter-spacing: .07em; text-transform: uppercase;
    margin: 4px 2px 8px;
}
.inline-section-label .ct {
    font-family: var(--font-mono);
    background: var(--bone);
    padding: 1px 7px; border-radius: 6px;
    font-weight: 400;
}

.inline-category-grid { display: flex; flex-direction: column; gap: 2px; }
.inline-cat-btn {
    display: grid;
    grid-template-columns: 34px 1fr 14px;
    gap: 11px;
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 9px 10px;
    font: inherit; font-size: 13.5px; font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: background .15s ease;
    width: 100%;
}
.inline-cat-btn:hover { background: var(--bone); }
.inline-cat-btn.active { background: var(--card-warm); box-shadow: 0 0 0 1px var(--clay) inset; }
.inline-cat-btn.active .cat-ic { background: var(--clay); color: #fff; }
.inline-cat-btn.active .arr, .inline-cat-btn:hover .arr { color: var(--clay); transform: translateX(2px); }
.cat-ic {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--bone); color: var(--ink-2);
    display: grid; place-items: center;
    transition: all .2s;
}
.cat-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cat-text .t { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-text .s { font-size: 11.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.arr { color: var(--muted); font-size: 13px; transition: all .15s; text-align: center; }

/* inline wizard steps */
.inline-steps-wrap { display: none; flex-direction: column; gap: 10px; padding: 2px; }
.inline-back-btn {
    align-self: flex-start;
    background: none; border: 0;
    font: inherit; font-size: 12.5px; font-weight: 500;
    color: var(--muted); cursor: pointer;
    padding: 4px 0;
}
.inline-back-btn:hover { color: var(--ink); }
.inline-progress { height: 4px; background: var(--bone); border-radius: 4px; overflow: hidden; }
.inline-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--clay), var(--clay-deep)); border-radius: 4px; transition: width .35s cubic-bezier(.16, 1, .3, 1); }

.inline-question {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 6px 0 2px;
    line-height: 1.3;
}
.inline-choices { display: flex; flex-direction: column; gap: 7px; }
.inline-choice-btn {
    padding: 11px 14px;
    background: var(--card-warm);
    border: 1px solid var(--rule);
    border-radius: 12px;
    font: inherit; font-size: 13.5px; font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: all .15s;
}
.inline-choice-btn:hover { border-color: var(--clay); background: #fff; transform: translateX(2px); }

.inline-multi-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-multi-pill {
    padding: 8px 13px;
    background: var(--card-warm);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font: inherit; font-size: 12.5px; font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s;
}
.inline-multi-pill:hover { border-color: var(--rule-strong); }
.inline-multi-pill.selected { background: var(--clay); border-color: var(--clay); color: #fff; }

.inline-next-btn {
    margin-top: 6px;
    background: var(--ink); color: var(--paper);
    border: 0; border-radius: 12px;
    padding: 12px 16px;
    font: inherit; font-size: 13.5px; font-weight: 500;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.inline-next-btn:hover { background: var(--clay); transform: translateY(-1px); }
.inline-next-btn.generate { background: var(--clay); box-shadow: 0 8px 20px -8px rgba(194, 85, 58, .5); }
.inline-next-btn.generate:hover { background: var(--clay-deep); }

.inline-loc-row { display: flex; gap: 7px; }
.inline-location-input {
    flex: 1; min-width: 0;
    padding: 10px 13px;
    border: 1px solid var(--rule);
    border-radius: 11px;
    background: var(--card-warm);
    font: inherit; font-size: 13.5px;
    color: var(--ink);
    outline: 0;
    transition: border-color .2s;
}
.inline-location-input:focus { border-color: var(--clay); }
.inline-gps-btn {
    background: var(--ink); color: var(--paper);
    border: 0; border-radius: 11px;
    padding: 0 15px;
    font: inherit; font-size: 12px; font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.inline-gps-btn:hover { background: var(--clay); }
.inline-count-input {
    width: 90px;
    padding: 10px 13px;
    border: 1px solid var(--rule);
    border-radius: 11px;
    background: var(--card-warm);
    font-family: var(--font-mono);
    font-size: 16px; font-weight: 500;
    color: var(--ink);
    outline: 0;
    text-align: center;
}
.inline-count-input:focus { border-color: var(--clay); }

/* ============================================================
   WHEEL STAGE
   ============================================================ */
.wheel-card {
    background: linear-gradient(160deg, var(--card) 0%, var(--card-warm) 100%);
}
.wheel-head {
    padding: 20px 24px 0;
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.titlewrap { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 500;
    color: var(--clay);
    background: var(--clay-soft);
    padding: 4px 11px;
    border-radius: 999px;
    letter-spacing: .03em;
    align-self: flex-start;
}
.eyebrow .live { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: .55; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.08); }
}
.wheel-head h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
}
.wheel-head h2 .em { color: var(--clay); font-style: italic; }
.right-meta { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.55; flex-shrink: 0; }
.right-meta b { color: var(--ink); font-weight: 600; font-family: var(--font-mono); }

.wheel-stage {
    position: relative;
    display: grid; place-items: center;
    padding: 10px 24px;
    flex: 1;
    min-height: 0;
}
.wheel-orbit {
    position: relative;
    width: min(460px, 100%, 58vh);
    aspect-ratio: 1 / 1;
}
#wheelCanvas {
    width: 100%; height: 100%;
    display: block;
    cursor: pointer;
    transition: transform 4.2s cubic-bezier(.17, .84, .18, 1);
    filter: drop-shadow(0 30px 40px rgba(33, 28, 22, .18)) drop-shadow(0 8px 16px rgba(33, 28, 22, .08));
}
.pointer {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 34px; height: 34px;
    background: var(--ink);
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 6px 14px rgba(33, 28, 22, .32), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.pointer::after {
    content: "";
    position: absolute; bottom: -7px; left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--ink);
}

.hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    width: clamp(104px, 28%, 132px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff, var(--card-warm) 65%);
    border: 1px solid var(--rule);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 0 0 1px rgba(33, 28, 22, .04) inset,
        0 10px 24px rgba(33, 28, 22, .15),
        0 24px 60px -20px rgba(33, 28, 22, .25);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: transform .15s cubic-bezier(.34, 1.56, .64, 1);
    border: 0;
}
.hub:hover { transform: translate(-50%, -50%) scale(1.05); }
.hub:active { transform: translate(-50%, -50%) scale(.94); }
.hub .word {
    font-family: var(--font-display);
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1;
}
.hub .sub { font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }
.hub .ring { position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; transform: rotate(-90deg); }
.hub .ring .progress-ring__circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke: var(--clay);
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
}

/* loading overlay — JS toggles .active */
.loading {
    position: absolute; inset: 0;
    display: none;
    align-items: center; justify-content: center; flex-direction: column;
    gap: 14px;
    z-index: 30;
    background: radial-gradient(circle at center, rgba(251, 246, 236, .96), rgba(251, 246, 236, .75));
    backdrop-filter: blur(8px);
    border-radius: 50%;
}
.loading.active { display: flex; }
.loading .bars, .loader-bars { display: flex; gap: 4px; height: 24px; align-items: center; }
.loading .bars span, .loader-bars span {
    width: 4px;
    background: var(--clay);
    border-radius: 2px;
    animation: bar 1.1s ease-in-out infinite;
}
.loading .bars span:nth-child(1), .loader-bars span:nth-child(1) { animation-delay: 0s; height: 14px; }
.loading .bars span:nth-child(2), .loader-bars span:nth-child(2) { animation-delay: .15s; height: 20px; }
.loading .bars span:nth-child(3), .loader-bars span:nth-child(3) { animation-delay: .3s; height: 24px; }
.loading .bars span:nth-child(4), .loader-bars span:nth-child(4) { animation-delay: .45s; height: 20px; }
.loading .bars span:nth-child(5), .loader-bars span:nth-child(5) { animation-delay: .6s; height: 14px; }
@keyframes bar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.loading .t { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }

.wheel-foot {
    padding: 14px 24px 18px;
    border-top: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px;
    background: linear-gradient(to bottom, transparent, rgba(33, 28, 22, .02));
    flex-shrink: 0;
}
.winner-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 13px 7px 7px;
    border-radius: var(--r-pill);
    background: var(--bone);
    font-size: 13px; font-weight: 500;
    min-width: 0;
    transition: background .3s;
}
.winner-chip .dot {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; font-size: 11px; font-weight: 600;
    background: var(--muted);
    flex-shrink: 0;
}
.winner-chip.win { background: var(--clay-soft); color: var(--clay-deep); }
.winner-chip.win .dot { background: var(--clay); }
.winner-chip.error { background: #F4DEDA; color: var(--danger); }
.winner-chip.error .dot { background: var(--danger); }
.winner-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-chip .meta { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 2px; }

.keys { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11.5px; flex-shrink: 0; }
.keys kbd {
    font-family: var(--font-mono);
    background: var(--bone);
    border: 1px solid var(--rule);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 10.5px;
    color: var(--ink-2);
}

@keyframes wheelPulse {
    0% { box-shadow: var(--shadow-soft); }
    40% { box-shadow: 0 0 0 4px rgba(194, 85, 58, .18), var(--shadow-lift); }
    100% { box-shadow: var(--shadow-soft); }
}
.pulse-animation { animation: wheelPulse 1.4s ease-out 1; }

/* ============================================================
   RIGHT RAIL — on the wheel + recently decided
   ============================================================ */
.right-col { display: grid; grid-template-rows: 1.45fr 1fr; gap: 18px; min-height: 0; }
.options-card .card-body, .recent-card .card-body { padding: 8px; overflow-y: auto; }

.empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
    display: flex; flex-direction: column; gap: 10px;
    align-items: center; justify-content: center;
    min-height: 100%;
}
.empty .iconbox {
    width: 44px; height: 44px; border-radius: 13px;
    background: var(--bone);
    display: grid; place-items: center;
    color: var(--ink-2);
}

.opt-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background .15s;
}
.opt-row:hover { background: var(--bone); }
.opt-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 1px 2px rgba(33, 28, 22, .2); }
.opt-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-x {
    background: none; border: 0;
    color: var(--muted);
    font-size: 15px; line-height: 1;
    cursor: pointer;
    width: 22px; height: 22px;
    border-radius: 7px;
    display: grid; place-items: center;
    opacity: 0;
    transition: opacity .15s, color .15s, background .15s;
}
.opt-row:hover .opt-x { opacity: 1; }
.opt-x:hover { color: var(--clay); background: var(--clay-soft); }

.recent-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 8px 10px;
    border-radius: 10px;
}
.recent-row:hover { background: var(--bone); }
.recent-idx { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.recent-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.recent-row:first-child .recent-name { color: var(--clay-deep); }

/* ============================================================
   MODALS (bootstrap shells, tactile skin)
   ============================================================ */
.wheel-page .modal-content {
    border: 0;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 32px 80px -20px rgba(33, 28, 22, .35);
    overflow: hidden;
    font-family: var(--font-ui);
    color: var(--ink);
}
.modal-hero {
    height: 150px;
    position: relative;
    display: flex; align-items: flex-end;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--clay) 0%, var(--clay-deep) 100%);
    color: #fff;
}
.modal-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(33, 28, 22, .25) 100%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .15), transparent 50%);
    pointer-events: none;
}
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 500;
    letter-spacing: .02em;
    backdrop-filter: blur(4px);
    position: relative; z-index: 2;
}

.btn-tactile {
    padding: 11px 18px;
    font: inherit; font-size: 13.5px; font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--rule);
    transition: all .18s;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    text-decoration: none;
}
.btn-tactile.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-tactile.primary:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-tactile.ghost { background: var(--card); color: var(--ink); }
.btn-tactile.ghost:hover { background: var(--bone); border-color: var(--rule-strong); color: var(--ink); }

.streaming-btn {
    flex: 1;
    padding: 11px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 12.5px; font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform .15s, filter .15s;
}
.streaming-btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: #fff; }

/* how-to steps */
.howto-steps { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 18px; }
.howto-step { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: flex-start; }
.howto-ic {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--bone); color: var(--clay-deep);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.howto-step b { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 1px; }
.howto-step p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* mobile wizard modal */
.wizard-progress { height: 4px; background: var(--bone); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.wizard-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--clay), var(--clay-deep)); transition: width .35s cubic-bezier(.16, 1, .3, 1); }
.audit-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.audit-pill {
    font-size: 11px; font-weight: 500;
    background: var(--clay-soft); color: var(--clay-deep);
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: stepIn .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.choice-grid { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 4px; }
.choice-pill {
    padding: 9px 15px;
    background: var(--card-warm);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font: inherit; font-size: 13px; font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s;
    display: inline-flex; align-items: center; gap: 7px;
}
.choice-pill svg { flex-shrink: 0; color: var(--ink-2); }
.choice-pill.selected svg { color: #fff; }
.choice-pill:hover { border-color: var(--clay); }
.choice-pill.selected { background: var(--clay); border-color: var(--clay); color: #fff; }

.form-range::-webkit-slider-thumb { background: var(--clay); }
.form-range::-moz-range-thumb { background: var(--clay); }

/* ============================================================
   SAVED PICKS DRAWER  (markup generated by site.js)
   ============================================================ */
.wheel-page .offcanvas {
    background: var(--bone);
    border-left: 1px solid var(--rule);
    width: min(420px, 90vw);
    font-family: var(--font-ui);
    color: var(--ink);
}
.wheel-page .offcanvas-header { padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.wheel-page .offcanvas-title {
    font-family: var(--font-display);
    font-size: 19px; font-weight: 600;
    letter-spacing: -.01em;
    display: flex; align-items: center; gap: 9px;
}
.wheel-page .offcanvas-title .heart { color: var(--clay); }
.wheel-page .offcanvas-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.saved-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s, opacity .25s, margin .3s, max-height .3s, box-shadow .18s;
    box-shadow: var(--shadow-soft);
}
.saved-card:hover { box-shadow: var(--shadow-lift); }
.saved-card .img {
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: var(--card-warm);
}
.saved-card .body { padding: 13px 15px 14px; display: flex; flex-direction: column; gap: 5px; }
.saved-card .meta-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.saved-card .cat-pill {
    font-size: 10.5px; font-weight: 600;
    color: var(--clay-deep);
    background: var(--clay-soft);
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: .03em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.saved-card .when { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); flex-shrink: 0; }
.saved-card .nm { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 0; line-height: 1.25; }
.saved-card .desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.saved-card .open-link {
    font-size: 12.5px; font-weight: 500;
    color: var(--clay);
    text-decoration: none;
    margin-top: 3px;
    align-self: flex-start;
}
.saved-card .open-link:hover { color: var(--clay-deep); text-decoration: underline; }

.delete-hold-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 36px; height: 36px;
    z-index: 5;
    cursor: pointer;
    display: grid; place-items: center;
    -webkit-tap-highlight-color: transparent;
}
.delete-hold-btn svg { position: absolute; inset: 0; width: 36px; height: 36px; }
.delete-hold-btn span {
    position: relative;
    color: #fff; font-size: 16px; font-weight: 600;
    line-height: 1;
    pointer-events: none;
}
.delete-ring {
    stroke: #fff;
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
}
@keyframes gentleBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.drawer-foot {
    border-top: 1px solid var(--rule);
    padding: 16px 18px;
    background: var(--card);
    margin-top: auto;
}
.drawer-foot .manage-link {
    display: block; text-align: center;
    background: var(--bone); color: var(--ink);
    border-radius: 11px;
    padding: 11px;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background .2s;
}
.drawer-foot .manage-link:hover { background: var(--clay-soft); color: var(--clay-deep); }
.drawer-foot .logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-2);
    border-radius: 11px;
    padding: 11px;
    font: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.drawer-foot .logout-btn:hover { border-color: var(--clay); color: var(--clay); }

/* toast */
.instruction-toast {
    position: fixed;
    left: 50%; bottom: 18px;
    transform: translateX(-50%);
    background: rgba(33, 28, 22, .92);
    color: #fff;
    font-size: 12px;
    padding: 9px 15px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(33, 28, 22, .2);
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
    white-space: nowrap;
}

/* ============================================================
   ABOUT THE BUILD + CONTACT + FOOTER
   ============================================================ */
.about {
    border-top: 1px solid var(--rule);
    background:
        radial-gradient(circle at 90% 10%, rgba(194, 85, 58, .05), transparent 45%),
        var(--paper);
    padding: 88px 24px 72px;
}
.about-inner { max-width: 1060px; margin: 0 auto; }

.about-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600;
    color: var(--clay);
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 18px;
}
.about-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--clay); }

.about h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.12;
    margin: 0 0 18px;
    max-width: 16ch;
    text-wrap: balance;
}
.about h2 .em { color: var(--clay); font-style: italic; }
.about .lede {
    font-size: 16.5px;
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 62ch;
    margin: 0 0 44px;
    text-wrap: pretty;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 52px;
}
.tech-card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform .25s, box-shadow .25s;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tech-card .tc-ic {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bone); color: var(--clay-deep);
    display: grid; place-items: center;
    margin-bottom: 14px;
}
.tech-card h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.tech-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

.contact-card {
    background: linear-gradient(135deg, var(--ink) 0%, #3A3029 100%);
    border-radius: 24px;
    padding: clamp(28px, 4.5vw, 48px);
    color: var(--paper);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.contact-card::after {
    content: "";
    position: absolute;
    right: -90px; top: -90px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 85, 58, .35), transparent 65%);
    pointer-events: none;
}
.contact-card h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.2;
    margin: 0 0 10px;
}
.contact-card h3 .em { color: #E8987F; font-style: italic; }
.contact-card .sub { font-size: 14px; color: rgba(251, 248, 241, .65); line-height: 1.65; margin: 0; max-width: 44ch; }
.contact-actions { display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 2; }
.contact-btn {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    padding: 12px 16px;
    color: var(--paper);
    text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    transition: background .2s, border-color .2s, transform .15s;
}
.contact-btn:hover { background: rgba(194, 85, 58, .25); border-color: rgba(232, 152, 127, .5); color: #fff; transform: translateX(3px); }
.contact-btn svg { flex-shrink: 0; opacity: .8; }
.contact-btn .cb-label { font-size: 10.5px; color: rgba(251, 248, 241, .5); display: block; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1px; }

.site-foot {
    border-top: 1px solid var(--rule);
    background: var(--paper);
    padding: 22px 24px;
}
.site-foot .foot-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}
.site-foot a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-foot a:hover { color: var(--clay); }
.foot-links { display: flex; gap: 18px; }

/* scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 6px;
    pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
    main.bento {
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-areas: "wheel build" "rail rail";
        min-height: 0;
    }
    .wheel-card { grid-area: wheel; min-height: 540px; }
    .build-card { grid-area: build; }
    .right-col { grid-area: rail; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .options-card .card-body, .recent-card .card-body { max-height: 300px; }
}

@media (max-width: 900px) {
    main.bento {
        grid-template-columns: 1fr;
        grid-template-areas: "wheel" "build" "rail";
        padding: 14px 14px 22px;
        gap: 14px;
    }
    .wheel-card { min-height: 0; }
    .wheel-stage { padding: 6px 14px; }
    .wheel-orbit { width: min(420px, 100%, 52vh); }
    .right-col { grid-template-columns: 1fr; gap: 14px; }
    .top { padding: 12px 14px; }
    .brand-name span { display: none; }
    .wheel-head { padding: 16px 16px 0; flex-direction: column; gap: 8px; }
    .right-meta { text-align: left; display: flex; gap: 6px; align-items: baseline; }
    .right-meta br { display: none; }
    .wheel-foot { padding: 12px 16px 14px; }
    .keys { display: none; }
    .about { padding: 60px 18px 52px; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .contact-card { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
    .about-grid { grid-template-columns: 1fr; }
    .me .me-name { display: none; }
    .me { padding: 4px; }
    .hub .sub { display: none; }
    .site-foot .foot-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
