:root {
    --paper: #faf8f5;
    --ink: #1c1917;
    --accent: #b91c1c;
    --accent-dark: #991b1b;
    --rule: #e7e0d8;
    --muted: #57534e;
    --soft: #44403c;
    --card: #ffffff;
    --win: #15803d;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------ top bar ------------------------------ */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.topbar-date {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-label {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

/* ------------------------------ masthead ----------------------------- */

.masthead {
    max-width: 72rem;
    margin: 1.6rem auto 2.2rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border-top: 3px double var(--ink);
    border-bottom: 3px double var(--ink);
}

.brand {
    display: block;
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

/* ---------------------------- page layout ---------------------------- */

.review-layout {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
}

@media (min-width: 60rem) {
    .review-layout {
        grid-template-columns: minmax(0, 1fr) 21rem;
        grid-template-rows: auto auto 1fr;
        column-gap: 3rem;
        row-gap: 1.8rem;
    }

    .article-body {
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    .wheel-widget {
        grid-column: 2;
        grid-row: 1;
    }

    .partner-rail {
        grid-column: 2;
        grid-row: 2 / span 2;
        align-self: start;
        position: sticky;
        top: 1.5rem;
    }
}

/* --------------------------- article column -------------------------- */

.article-body {
    min-width: 0;
    font-size: 1.02rem;
}

.article-body h1 {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.6vw, 2.7rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.article-body h2 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 2.4rem 0 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--rule);
}

.article-body h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.12rem;
    margin: 1.5rem 0 0.4rem;
}

.article-body p {
    margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.3rem;
    padding-left: 1.4rem;
}

.article-body li {
    margin: 0.45rem 0;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--accent-dark);
}

.lede {
    font-size: 1.18rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--soft);
    margin: 0 0 1.4rem;
}

.verdict-box {
    background: var(--card);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--accent);
    padding: 1.2rem 1.4rem 1.1rem;
    margin: 1.7rem 0;
}

.verdict-box h2 {
    margin: 0 0 0.3rem;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 0.85rem;
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.verdict-box p {
    margin: 0 0 0.4rem;
}

.verdict-score {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.1;
    color: var(--accent);
}

.table-scroll {
    overflow-x: auto;
    margin: 0 0 1.4rem;
    border: 1px solid var(--rule);
    background: var(--card);
}

.spec-table {
    width: 100%;
    min-width: 21rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.spec-table th {
    font-family: var(--serif);
    font-size: 1rem;
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-bottom: 2px solid var(--ink);
}

.spec-table td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.spec-table tbody tr:last-child td {
    border-bottom: 0;
}

.pull-quote {
    margin: 2.2rem 0;
    padding: 1.4rem 0.5rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.32rem;
    line-height: 1.5;
    text-align: center;
}

.pull-quote p {
    margin: 0;
}

.pull-quote p::before {
    content: "\201C";
    color: var(--accent);
    margin-right: 0.15em;
}

.pull-quote p::after {
    content: "\201D";
    color: var(--accent);
    margin-left: 0.15em;
}

.pro-list,
.con-list {
    list-style: none;
    padding-left: 0;
}

.pro-list li,
.con-list li {
    position: relative;
    padding-left: 1.6rem;
}

.pro-list li::before {
    content: "+";
    position: absolute;
    left: 0.15rem;
    font-weight: 700;
    color: var(--win);
}

.con-list li::before {
    content: "\2013";
    position: absolute;
    left: 0.15rem;
    font-weight: 700;
    color: var(--accent);
}

.qa-block {
    margin: 0 0 1rem;
}

.qa-block h3 {
    margin: 1.4rem 0 0.4rem;
}

.qa-block p {
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
    color: var(--soft);
}

.qa-block p:last-child {
    border-bottom: 0;
}

/* ---------------------------- wheel widget --------------------------- */

.wheel-widget {
    background: var(--card);
    border: 1px solid var(--rule);
    padding: 1.3rem;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
    min-width: 0;
}

.widget-head {
    text-align: center;
    margin-bottom: 1rem;
}

.widget-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.45rem;
    margin: 0;
}

.widget-sub {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.bank-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.55rem 0.15rem;
    margin-bottom: 1.1rem;
}

.bank-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.bank-cell {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.bank-value {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
}

.bank-value.tick {
    animation: bank-pulse 0.55s ease;
}

.bank-reset {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.72rem;
    text-decoration: underline;
    cursor: pointer;
}

.bank-reset:hover {
    color: var(--accent);
}

.wheel-stage {
    position: relative;
    margin: 0 auto 0.9rem;
    max-width: 280px;
}

.wheel-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.wheel-pointer {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 17px solid var(--accent);
    filter: drop-shadow(0 1px 1px rgba(28, 25, 23, 0.3));
}

.spin-result {
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 0 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.95rem;
}

.spin-result.is-win {
    background: #ecf5ee;
    color: var(--win);
    animation: pop-in 0.45s ease;
}

.spin-result.is-lose {
    background: #f9ecec;
    color: var(--accent);
    animation: pop-in 0.45s ease;
}

.spin-result.is-push {
    background: #f2ede6;
    color: var(--muted);
    animation: pop-in 0.45s ease;
}

.bet-panel {
    margin-top: 0.6rem;
}

.bet-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.bet-row {
    display: flex;
    gap: 0.5rem;
}

.bet-step {
    flex: 0 0 auto;
    width: 2.6rem;
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
}

.bet-step:hover {
    border-color: var(--muted);
}

.bet-input {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: var(--card);
    color: var(--ink);
    padding: 0.5rem 0.4rem;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
}

.bet-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.bet-presets {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.preset-chip {
    flex: 1 1 0;
    border: 1px solid var(--rule);
    background: var(--card);
    color: var(--ink);
    padding: 0.4rem 0;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
}

.preset-chip:hover {
    border-color: var(--muted);
}

.preset-chip.is-active {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}

.spin-button {
    display: block;
    width: 100%;
    margin-top: 0.9rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 3px;
    padding: 0.85rem 1rem;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.spin-button:hover {
    background: var(--accent-dark);
}

.spin-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.spin-history {
    margin-top: 1.1rem;
    border-top: 1px solid var(--rule);
    padding-top: 0.8rem;
}

.history-title {
    font-family: var(--serif);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-list li {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border: 1px solid var(--rule);
    background: var(--paper);
    border-radius: 3px;
    white-space: nowrap;
}

.hist-win {
    color: var(--win);
}

.hist-lose {
    color: var(--accent);
}

.hist-push {
    color: var(--muted);
}

.no-js-note {
    margin: 0.8rem 0 0;
    padding: 0.6rem;
    background: #f9ecec;
    color: var(--accent);
    font-size: 0.9rem;
    text-align: center;
}

/* ---------------------------- partner rail --------------------------- */

.partner-rail {
    min-width: 0;
}

.partner-rail:not(:has(.partner-card)) {
    display: none;
}

.rail-heading {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px double var(--ink);
}

.partner-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0.85rem 0.95rem;
}

.partner-logo {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
}

.partner-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.partner-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.partner-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.star-row {
    line-height: 1;
}

.star-row::before {
    content: "\2605\2605\2605\2605\2605";
    color: #d97706;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
}

.partner-cta {
    flex: 0 0 auto;
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 0.85rem;
    border-radius: 3px;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.partner-cta:hover {
    background: var(--accent-dark);
}

/* ------------------------------- footer ------------------------------ */

.site-footer {
    margin-top: 3.5rem;
    border-top: 3px double var(--ink);
    background: #f4f0ea;
}

.footer-grid {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.1rem 1.25rem 2.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

@media (min-width: 60rem) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.4rem;
    }
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.02rem;
    margin: 0 0 0.5rem;
}

.footer-col p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--muted);
}

.age-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.74rem;
    line-height: 1;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    margin-right: 0.45rem;
    vertical-align: 1px;
}

/* ----------------------------- animations ---------------------------- */

@keyframes pop-in {
    0% {
        transform: scale(0.92);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bank-pulse {
    0% {
        color: var(--accent);
        transform: scale(1.08);
    }

    100% {
        color: var(--ink);
        transform: scale(1);
    }
}
