/* Jackbit Casino IN — lacquer-smart.css */

:root {
    --primary: #00ee6a;
    --accent: #3b67ff;
    --canvas: #0e1624;
    --highlight-active: #1440fd;
    --grad-light: #151925;
    --gradient-to: #212736;
    --text-color: #ffffff;
    --fg-muted: #c0c0c0;
    --card-bg: #161f31;
    --alert-bg: #dc2626;

    --display-font: 'Poppins', system-ui, sans-serif;
    --body-font: 'Poppins', system-ui, sans-serif;

    /* TYPO-06 desktop */
    --text-h1: 36px;
    --size-h2: 26px;
    --type-h3: 20px;
    --type-h4: 17px;
    --text-h5: 14px;
    --size-h6: 12px;
    --size-body: 14px;
    --text-sm: 12px;
    --text-xs: 11px;
    --leading-tight: 1.15;
    --lh-base: 1.45;
    --line-loose: 1.6;
    --tracking-tight: -0.01em;
    --ls-normal-x: 0;
    --tracking-wide: 0.06em;
    --weight-regular: 400;
    --font-medium: 500;
    --weight-bold: 700;

    /* SPACE-02 */
    --gutter-2xs: 8px;
    --spacing-xs: 12px;
    --gap-sm: 16px;
    --gutter-md: 24px;
    --gap-lg: 32px;
    --gap-xl: 48px;
    --gap-2xl: 72px;
    --gap-3xl: 112px;

    /* CONT-10 / spec */
    --max-width: 1020px;
    --measure: 640px;
    --gutter-mobile: 16px;
    --container-padding-tablet-x: 24px;
    --inset-desktop: 32px;

    /* GEO-05 */
    --corner-xs: 4px;
    --corner-sm: 10px;
    --round-md: 16px;
    --round-lg: 28px;
    --round-full: 9999px;
    --shadow-xs-x: 0 2px 4px rgba(0,0,0,0.06);
    --shade-sm: 0 4px 10px rgba(0,0,0,0.08);
    --depth-md: 0 10px 28px rgba(0,0,0,0.12);
    --depth-lg: 0 20px 48px rgba(0,0,0,0.16);

    /* MOTION-01 */
    --transition-fast: 120ms;
    --speed-base: 150ms;
    --timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --header-h-x: 112px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body-font);
    font-size: var(--size-body);
    line-height: var(--lh-base);
    font-weight: var(--weight-regular);
    color: var(--text-color);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast) var(--timing); }
a:hover { color: var(--highlight-active); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--gap-sm); }
h1, h2 { font-family: var(--display-font); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
h3, h4 { font-family: var(--body-font); font-weight: var(--weight-bold); }
p { margin: 0 0 var(--gap-sm); }

/* a11y */
.skip-link {
    position: fixed; left: var(--gap-sm); z-index: 200;
    background: var(--accent); color: #fff;
    padding: 10px 16px; border-radius: var(--corner-sm);
}
.skip-link:not(:focus) { top: -200px !important; }
.skip-link:focus { top: var(--gap-sm); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Shared inner width — single section width */
.truss-inner, .nave-cover, .spandrel-inner, .cresset-inner, .veranda-inner,
.crown-inner, .spread-inner, .mantle-inner, .court-inner, .mast-inner,
.trefoil-inner, .arbor-inner, .arbor-articles-inner, .mosaic-inner,
.figure-block-inner, .tribune-inner {
    width: 100%;
    max-width: calc(var(--max-width) + 2 * var(--inset-desktop));
    margin-inline: auto;
    padding-inline: var(--inset-desktop);
}

/* ===== Header HEAD-05 (.truss) ===== */
.truss { background: var(--canvas); }
.truss-inner {
    display: flex; align-items: center; gap: var(--gutter-md);
    min-height: var(--header-h-x);
    padding-block: 12px;
}
.truss-logo, .truss-logo-img { flex-shrink: 0; }
.truss-logo-img { height: 88px; width: auto; min-width: 88px; }
.truss-nav { margin-left: auto; }
.truss-nav-list {
    display: flex; flex-wrap: nowrap; gap: var(--gap-sm);
    list-style: none; margin: 0; padding: 0;
}
.truss-nav-item { display: inline-flex; }
.truss-link {
    font-family: var(--display-font); font-weight: var(--font-medium);
    font-size: var(--text-sm); color: var(--text-color);
    white-space: nowrap; padding-block: var(--gutter-2xs);
    text-transform: uppercase; letter-spacing: var(--tracking-wide);
}
.truss-link:hover, .truss-link[aria-current='page'] { color: var(--primary); }
.truss-menu-button {
    margin-left: auto; display: none;
    background: none; border: none; cursor: pointer;
    font-family: var(--body-font); font-weight: var(--font-medium);
    font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide);
    color: var(--text-color);
}
.truss-menu-button:hover { color: var(--accent); }
.truss-dialog {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(14,22,36,0.98); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
}
.truss-dialog.is-open { display: flex; }
.truss-dialog-inner { text-align: center; position: relative; padding: var(--gap-xl); }
.truss-dialog-close {
    position: absolute; top: -8px; right: 0;
    background: none; border: none; color: var(--text-color);
    font-size: 40px; line-height: 1; cursor: pointer;
}
.truss-dialog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--gutter-md); }
.truss-dialog-link {
    font-family: var(--display-font); font-weight: var(--weight-bold);
    font-size: var(--size-h2); color: var(--text-color);
}
.truss-dialog-link:hover, .truss-dialog-link[aria-current='page'] { color: var(--primary); }

@media (max-width: 1199px) {
    .truss-nav { display: none; }
    .truss-menu-button { display: inline-block; }
}

/* ===== Hero HERO-08 (.nave) ===== */
.nave {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center;
}
.nave-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nave-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
}
.nave-cover { position: relative; z-index: 2; padding-block: 96px; }
.nave-issue {
    display: block; font-size: var(--text-xs); text-transform: uppercase;
    letter-spacing: var(--tracking-wide); color: rgba(255,255,255,0.7); margin-bottom: var(--gap-sm);
}
.nave-h1 {
    font-size: clamp(40px, 7vw, 72px); color: #fff;
    max-width: 900px; margin-inline: auto;
}
.nave-deck {
    font-size: var(--text-h5); color: rgba(255,255,255,0.85);
    max-width: 600px; margin: var(--gutter-md) auto 0; line-height: var(--lh-base);
}
.nave-meta {
    display: flex; gap: var(--gutter-md); justify-content: center;
    margin-top: var(--gap-lg); font-size: var(--text-sm); color: rgba(255,255,255,0.7);
}
.nave-meta span + span { position: relative; padding-left: var(--gutter-md); }
.nave-meta span + span::before { content: '·'; position: absolute; left: 0; }
.nave-scroll {
    position: absolute; bottom: var(--gap-lg); left: 0; right: 0; z-index: 2;
    text-align: center; font-size: var(--text-xs); text-transform: uppercase;
    letter-spacing: var(--tracking-wide); color: rgba(255,255,255,0.6);
}

/* ===== Page-header PHEAD-10 (.spandrel) ===== */
.spandrel { padding-block: 96px; background: var(--canvas); text-align: center; }
.spandrel-title { font-size: clamp(40px, 7vw, 80px); line-height: var(--leading-tight); }
.spandrel-dot { display: block; color: var(--accent); font-size: var(--size-h2); margin: var(--spacing-xs) 0; }
.spandrel-desc {
    font-style: italic; font-size: var(--type-h4); color: var(--fg-muted);
    max-width: 600px; margin-inline: auto;
}

/* ===== Prose PROSE-08 (.cresset) ===== */
.cresset { padding-block: var(--gap-xl); }
.cresset-h { font-size: var(--size-h2); color: var(--text-color); margin-top: var(--gap-xl); }
.cresset-h:first-child { margin-top: 0; }
h3.cresset-h { font-size: var(--type-h3); }
.cresset-p {
    padding-left: var(--gap-2xl); font-size: var(--size-body);
    line-height: var(--line-loose); max-width: 720px; color: var(--fg-muted);
}
.cresset-list { padding-left: calc(var(--gap-2xl) + 20px); max-width: 720px; color: var(--fg-muted); line-height: var(--line-loose); }
.cresset-p strong, .cresset-list strong { color: var(--text-color); }

/* ===== Figure block ===== */
.figure-block { padding-block: var(--gap-lg); }
.figure-block-inner img { width: 100%; height: auto; border-radius: var(--round-lg); }

/* ===== Items-grid GRID-05 (.veranda) ===== */
.veranda { padding-block: var(--gap-xl); }
.veranda-heading { font-size: var(--size-h2); margin-bottom: var(--gap-lg); }
.veranda-featured {
    padding: var(--gap-2xl); background: var(--primary);
    color: var(--canvas); border-radius: var(--round-lg); margin-bottom: var(--gap-xl);
}
.veranda-featured-title { font-size: var(--size-h2); color: var(--canvas); }
.veranda-featured-text { font-size: var(--text-h5); line-height: var(--lh-base); max-width: 720px; color: rgba(14,22,36,0.85); margin: 0; }
.veranda-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.veranda-card { padding: var(--gutter-md); border-top: 2px solid var(--accent); }
.veranda-card-title { font-size: var(--size-body); font-weight: var(--weight-bold); }
.veranda-card-text { font-size: var(--text-sm); line-height: var(--lh-base); color: var(--fg-muted); margin: 0; }

/* ===== Reviews REV-01 (.spread) ===== */
.spread { padding-block: var(--gap-xl); }
.spread-heading { font-size: var(--size-h2); margin-bottom: var(--gap-lg); }
.spread-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.spread-item {
    padding: var(--gap-lg); background: var(--card-bg);
    border: 1px solid rgba(192,192,192,0.1); border-radius: var(--round-md);
}
.spread-item-header { margin-bottom: var(--spacing-xs); }
.spread-author { font-size: var(--size-body); font-weight: var(--weight-bold); color: var(--text-color); }
.spread-rating { display: inline-flex; gap: 2px; margin-bottom: var(--spacing-xs); }
.spread-star { position: relative; display: inline-block; width: 18px; height: 18px; font-size: 18px; line-height: 1; }
.spread-star-bg { color: #808a9c; }
.spread-star-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--accent); white-space: nowrap; }
.spread-text { font-size: var(--size-body); line-height: var(--line-loose); color: var(--fg-muted); margin: 0; }

/* ===== FAQ FAQ-10 (.crown) ===== */
.crown { padding-block: var(--gap-xl); }
.crown-inner { display: grid; grid-template-columns: 40% 60%; gap: var(--gap-xl); }
.crown-aside { position: sticky; top: var(--gap-xl); align-self: start; padding: var(--gap-lg) 0; }
.crown-heading { font-size: var(--size-h2); }
.crown-sub { font-size: var(--size-body); color: var(--fg-muted); }
.crown-list { display: flex; flex-direction: column; gap: var(--gap-xl); }
.crown-item { display: block; }
.crown-q { font-size: var(--type-h4); color: var(--text-color); }
.crown-a { font-size: var(--size-body); line-height: var(--line-loose); color: var(--fg-muted); margin: 0; }

/* ===== CTA CTA-02 (.mantle) ===== */
.mantle { padding-block: var(--gap-xl); }
.mantle-box {
    max-width: 720px; margin-inline: auto; text-align: center;
    background: rgba(0,238,106,0.04); padding: var(--gap-2xl);
    border-radius: var(--round-lg); border: 1px solid rgba(255,255,255,0.08);
}
.mantle-title { font-size: var(--size-h2); }
.mantle-text { font-size: var(--size-body); line-height: var(--line-loose); color: var(--fg-muted); margin-block: var(--gutter-md); }
.mantle-btn {
    display: inline-block; height: 52px; line-height: 52px; padding-inline: var(--gap-xl);
    background: var(--accent); color: #fff; font-family: var(--display-font);
    font-weight: var(--weight-bold); text-transform: uppercase; border-radius: var(--round-md);
}
.mantle-btn:hover { background: var(--highlight-active); color: #fff; }

/* ===== Data-table TABLE-02 (.court) ===== */
.court { padding-block: var(--gap-xl); }
.court-table { width: 100%; border-collapse: collapse; }
.court-table th {
    font-family: var(--display-font); font-weight: var(--weight-bold); font-size: var(--text-sm);
    text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-color);
    text-align: left; padding-block: var(--gutter-md); border-bottom: 2px solid var(--accent);
}
.court-table td { padding: var(--gutter-md); font-size: var(--size-body); color: var(--fg-muted); border-bottom: 1px solid rgba(255,255,255,0.06); }
.court-table td:first-child { color: var(--text-color); font-weight: var(--font-medium); }
.court-table tbody tr:last-child td { border-bottom: none; }

/* ===== Legal LEGAL-03 (.mast) ===== */
.mast { padding-block: var(--gap-xl); }
.mast-intro { font-size: var(--text-h5); color: var(--fg-muted); max-width: 720px; }
.mast-updated { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--gap-lg); }
.mast-grid { display: grid; grid-template-columns: 240px 1fr; gap: var(--gap-2xl); }
.mast-toc { position: sticky; top: var(--gap-xl); align-self: start; padding: var(--gutter-md); background: var(--card-bg); border-radius: var(--round-md); font-size: var(--text-sm); }
.mast-toc-h { font-size: var(--text-h5); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.mast-toc ol { margin: 0; padding-left: var(--gutter-md); }
.mast-toc a { color: var(--fg-muted); }
.mast-toc a:hover { color: var(--accent); }
.mast-section { margin-bottom: var(--gap-xl); }
.mast-h { font-size: var(--type-h3); }
.mast-body p { font-size: var(--size-body); line-height: var(--line-loose); color: var(--fg-muted); }
.mast-body ul { color: var(--fg-muted); line-height: var(--line-loose); }
.mast-disclaimer { font-size: var(--text-sm); color: var(--fg-muted); font-style: italic; }

/* ===== Contact-form FORM-03 (.trefoil) ===== */
.trefoil { padding-block: var(--gap-xl); }
.trefoil-intro { text-align: center; font-size: var(--size-body); color: var(--fg-muted); max-width: 540px; margin-inline: auto; margin-bottom: var(--gap-lg); }
.trefoil-form { display: flex; flex-direction: column; gap: var(--gutter-md); max-width: 640px; margin-inline: auto; }
.trefoil-field { display: flex; flex-direction: column; gap: var(--gutter-2xs); }
.trefoil-field label { font-size: var(--text-sm); font-weight: var(--font-medium); }
.trefoil-field input, .trefoil-field textarea {
    width: 100%; font-family: var(--body-font); font-size: var(--size-body);
    padding: 12px 14px; background: var(--card-bg); color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.12); border-radius: var(--round-md);
}
.trefoil-field textarea { resize: vertical; }
.trefoil-submit {
    width: 100%; height: 52px; border: none; cursor: pointer;
    background: var(--accent); color: #fff; font-family: var(--display-font);
    font-weight: var(--weight-bold); text-transform: uppercase; border-radius: var(--round-md);
}
.trefoil-submit:hover { background: var(--highlight-active); color: #fff; }
.trefoil-success { max-width: 640px; margin: var(--gap-lg) auto 0; padding: var(--gutter-md); background: rgba(0,238,106,0.08); border-radius: var(--round-md); color: var(--text-color); text-align: center; }

/* ===== Author-card AUTH-08 (.arbor) ===== */
.arbor { padding-block: var(--gap-lg); }
.arbor-card { display: inline-flex; align-items: center; gap: var(--gap-sm); }
.arbor-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.arbor-id { display: flex; flex-direction: column; }
.arbor-name { font-size: var(--type-h4); font-weight: var(--weight-bold); }
.arbor-role { font-size: var(--text-xs); color: var(--fg-muted); }
.arbor-articles { padding-block: var(--gap-2xl); }
.arbor-articles-heading { font-size: var(--type-h3); margin-bottom: var(--gutter-md); }
.arbor-articles-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--spacing-xs); }
.arbor-articles-item a { font-size: var(--size-body); color: var(--accent); }
.arbor-articles-item a:hover { color: var(--highlight-active); text-decoration: underline; }

/* ===== Error ERR-08 (.mosaic) ===== */
.mosaic { padding-block: 96px; text-align: center; }
.mosaic-title { font-size: var(--text-h1); }
.mosaic-text { font-size: var(--text-h5); color: var(--fg-muted); max-width: 560px; margin: 0 auto var(--gap-lg); }
.mosaic-btn { display: inline-block; height: 52px; line-height: 52px; padding-inline: var(--gap-xl); background: var(--accent); color: #fff; font-family: var(--display-font); font-weight: var(--weight-bold); text-transform: uppercase; border-radius: var(--round-md); }
.mosaic-btn:hover { background: var(--highlight-active); color: #fff; }
.mosaic-suggestions { margin-top: var(--gap-2xl); padding: var(--gap-xl); background: var(--card-bg); border-radius: var(--round-md); }
.mosaic-suggestions-heading { font-size: var(--type-h4); }
.mosaic-suggestions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gutter-md); justify-content: center; }
.mosaic-suggestions a { font-size: var(--size-body); color: var(--accent); }
.mosaic-suggestions a:hover { text-decoration: underline; }

/* ===== Byline BYLINE-03 (.credenza) ===== */
.credenza { border-bottom: 1px solid rgba(255,255,255,0.05); padding-block: var(--gap-sm); }
.credenza-inner { display: flex; align-items: center; width: 100%; max-width: calc(var(--max-width) + 2 * var(--inset-desktop)); margin-inline: auto; padding-inline: var(--inset-desktop); }
.credenza-portrait { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: var(--spacing-xs); }
.credenza-meta { font-size: var(--text-sm); color: var(--fg-muted); }
.credenza-role { color: var(--fg-muted); }
.credenza-name { color: var(--accent); font-weight: var(--font-medium); }
.credenza-name:hover { text-decoration: underline; }

/* ===== Footer FOOT-04 (.tribune) ===== */
.tribune {
    background: rgba(14,22,36,0.95); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.tribune-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; padding-block: var(--gap-sm);
}
.tribune-copy { font-size: var(--text-xs); color: var(--fg-muted); }
.tribune-nav { display: flex; align-items: center; gap: var(--gap-sm); }
.tribune-nav a {
    font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide);
    color: var(--fg-muted); padding-left: var(--gap-sm); border-left: 1px solid rgba(255,255,255,0.15);
}
.tribune-nav a:first-child { border-left: none; padding-left: 0; }
.tribune-nav a:hover { color: var(--text-color); }

/* ===== Cookie COOK-07 (.bureau) ===== */
.bureau {
    position: fixed; right: var(--gutter-md); bottom: var(--gutter-md); z-index: 90;
    width: 320px; max-width: calc(100vw - 2 * var(--gutter-md));
    background: var(--canvas); border-left: 4px solid var(--accent);
    border-radius: var(--corner-sm); padding: var(--gutter-md); box-shadow: var(--depth-md);
}
.bureau[hidden] { display: none; }
.bureau-msg { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--spacing-xs); }
.bureau-actions { display: flex; gap: var(--spacing-xs); }
.bureau-accept, .bureau-decline {
    font-family: var(--body-font); font-size: var(--text-sm); cursor: pointer;
    padding: 8px 14px; border-radius: var(--corner-sm); border: none;
}
.bureau-accept { background: var(--accent); color: #fff; }
.bureau-accept:hover { background: var(--highlight-active); }
.bureau-decline { background: transparent; color: var(--fg-muted); border: 1px solid rgba(255,255,255,0.15); }
.bureau-decline:hover { color: var(--text-color); }

/* ===== Mobile ===== */
@media (max-width: 940px) {
    :root {
        --text-h1: 26px; --size-h2: 22px; --type-h3: 18px; --type-h4: 16px;
        --inset-desktop: 16px;
    }
    .truss-inner, .nave-cover, .spandrel-inner, .cresset-inner, .veranda-inner,
    .crown-inner, .spread-inner, .mantle-inner, .court-inner, .mast-inner,
    .trefoil-inner, .arbor-inner, .arbor-articles-inner, .mosaic-inner,
    .figure-block-inner, .tribune-inner, .credenza-inner { padding-inline: var(--gutter-mobile); }
    .veranda-grid { grid-template-columns: repeat(2, 1fr); }
    .spread-grid { grid-template-columns: repeat(2, 1fr); }
    .crown-inner { grid-template-columns: 1fr; gap: var(--gap-lg); }
    .crown-aside { position: static; }
    .mast-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
    .mast-toc { position: static; }
    .cresset-p { padding-left: var(--gutter-md); }
    .cresset-list { padding-left: calc(var(--gutter-md) + 20px); }
}
@media (max-width: 620px) {
    .veranda-grid, .spread-grid { grid-template-columns: 1fr; }
    .veranda-featured { padding: var(--gap-lg); }
    .tribune-inner { flex-direction: column; gap: var(--spacing-xs); align-items: flex-start; min-height: 80px; }
    .truss-logo-img { height: 60px; min-width: 60px; }
    :root { --header-h-x: 84px; }
}
@media (max-width: 720px) {
    .bureau, .bureau-inner {
        left: var(--gutter-md); right: var(--gutter-md); width: auto;
    }
    .bureau-actions { flex-direction: column; }
    .bureau-accept, .bureau-decline { width: 100%; min-height: 40px; }
}
