/* plate.css — FortunePlay Casino IT. Dark premium, hot orange accents. */

:root {
    --theme-primary: #0f0f0f;
    --theme-accent-color: #ff4d11;
    --theme-accent-active: #ea3801;
    --theme-surface: #0a0a0a;
    --theme-panel-bg: #161616;
    --theme-gradient-start: #1adc43;
    --theme-grad-mid: #fdc200;
    --theme-text-color: #ffffff;
    --theme-text-muted: #c0c0c0;
    --theme-warning-bg: #dc2626;
    --theme-divider: rgba(255, 255, 255, 0.15);

    --theme-font-heading: 'Roboto', system-ui, sans-serif;
    --theme-font-base: 'Inter', system-ui, sans-serif;

    /* TYPO-07 — mobile base sizes */
    --theme-size-h1: 32px;
    --theme-text-h2: 26px;
    --theme-fs-h3: 22px;
    --theme-type-h4: 19px;
    --theme-size-h5: 17px;
    --theme-text-h6: 15px;
    --theme-type-body: 18px;
    --theme-fs-small: 15px;
    --theme-text-xs: 13px;
    --theme-line-tight: 1.2;
    --theme-leading-normal: 1.7;
    --theme-line-loose: 2.0;
    --theme-letter-tight: -0.01em;
    --theme-ls-normal: 0;
    --theme-tracking-wide: 0.02em;
    --theme-weight-regular: 400;
    --theme-font-medium: 500;
    --theme-font-bold: 700;

    /* SPACE-05 */
    --theme-gap-2xs: 3px;
    --theme-spacing-xs: 10px;
    --theme-gutter-sm: 18px;
    --theme-spacing-md: 28px;
    --theme-spacing-lg: 44px;
    --theme-gutter-xl: 60px;
    --theme-gutter-2xl: 88px;
    --theme-gap-3xl: 128px;

    /* CONT-05 (+ site override 1240 / readable 700) */
    --theme-shell-width: 1240px;
    --theme-readable-width: 700px;
    --theme-edge-mobile: 20px;
    --theme-container-padding-tablet: 32px;
    --theme-edge-desktop: 64px;
    --theme-container-pad: var(--theme-edge-mobile);

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

    /* MOTION-06 */
    --theme-duration-fast: 120ms;
    --theme-transition-base: 180ms;
    --theme-transition-slow: 260ms;
    --theme-easing: cubic-bezier(0.3, 0.7, 0.4, 1.0);

    --theme-header-height-desktop: 108px;
    --theme-header-h-mobile: 84px;
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--theme-surface);
    color: var(--theme-text-color);
    font-family: var(--theme-font-base);
    font-size: var(--theme-type-body);
    line-height: var(--theme-leading-normal);
    font-weight: var(--theme-weight-regular);
}
img { max-width: 100%; display: block; }
a { color: var(--theme-accent-color); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--theme-gutter-sm); line-height: var(--theme-line-tight); }
h1, h2 { font-family: var(--theme-font-heading); font-weight: var(--theme-font-bold); }
h3, h4 { font-family: var(--theme-font-base); font-weight: var(--theme-font-bold); }
h5, h6 { font-family: var(--theme-font-base); font-weight: var(--theme-font-medium); }
h1 { font-size: var(--theme-size-h1); }
h2 { font-size: var(--theme-text-h2); }
h3 { font-size: var(--theme-fs-h3); }
p { margin: 0 0 var(--theme-spacing-md); }
ul, ol { margin: 0 0 var(--theme-spacing-md); padding-left: 1.4em; }
li { margin-bottom: var(--theme-spacing-xs); }
strong { font-weight: var(--theme-font-bold); color: var(--theme-text-color); }
main { display: block; }

/* ---- a11y ---- */
.skip-link {
    position: absolute;
    left: var(--theme-spacing-md);
    top: var(--theme-spacing-md);
    z-index: 200;
    background: var(--theme-accent-color);
    color: #0a0a0a;
    padding: var(--theme-spacing-xs) var(--theme-spacing-md);
    border-radius: var(--theme-radius-sm);
    font-weight: var(--theme-font-bold);
}
.skip-link:not(:focus) { top: -200px !important; }
.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(--theme-accent-color); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---- RG banner (static; header not fixed) ---- */
.rg-banner {
    margin: 0;
    background: var(--theme-warning-bg);
    color: #ffffff;
    text-align: center;
    font-size: var(--theme-text-xs);
    font-weight: var(--theme-font-medium);
    letter-spacing: var(--theme-tracking-wide);
    padding: 7px var(--theme-spacing-md);
    line-height: 1.35;
}

/* ================= HEADER — HEAD-06 ================= */
.d27 {
    background: var(--theme-surface);
    border-bottom: 1px solid var(--theme-divider);
}
.d27-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--theme-spacing-md);
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
    min-height: var(--theme-header-h-mobile);
}
.d27-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.d27-logo-img {
    height: 64px;
    width: auto;
    flex-shrink: 0;
    mix-blend-mode: screen;
}
.d27-nav { display: none; align-items: center; justify-content: center; }
.d27-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--theme-gap-2xs) var(--theme-spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}
.d27-item { margin: 0; }
.d27-link {
    white-space: nowrap;
    font-family: var(--theme-font-base);
    font-size: var(--theme-fs-small);
    font-weight: var(--theme-font-medium);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    color: var(--theme-text-color);
    padding: var(--theme-gap-2xs) 0;
    transition: color var(--theme-transition-base) var(--theme-easing);
}
.d27-link:hover { color: var(--theme-accent-color); }
.d27-link[aria-current='page'] { color: var(--theme-accent-color); }
.d27-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto !important;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--theme-divider);
    border-radius: var(--theme-radius-sm);
    cursor: pointer;
}
.d27-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--theme-text-color);
    border-radius: 2px;
}
.d27-drawer {
    display: none;
    border-top: 1px solid var(--theme-divider);
    background: var(--theme-surface);
}
.d27-drawer.is-open { display: block; }
.d27-drawer-list {
    list-style: none;
    margin: 0;
    padding: var(--theme-gutter-sm) var(--theme-container-pad) var(--theme-spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--theme-gap-2xs);
}
.d27-drawer-list a {
    display: block;
    color: var(--theme-text-color);
    font-family: var(--theme-font-base);
    font-size: var(--theme-fs-small);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    padding: var(--theme-spacing-xs) 0;
    border-bottom: 1px solid var(--theme-divider);
}
.d27-drawer-list a:hover,
.d27-drawer-list a[aria-current='page'] { color: var(--theme-accent-color); }

/* ================= HERO — HERO-03 ================= */
.j07 {
    background: var(--theme-surface);
    padding-block: var(--theme-gap-3xl) var(--theme-spacing-lg);
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 77, 17, 0.10), transparent 60%);
}
.j07-hold {
    display: block;
    max-width: var(--theme-readable-width);
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
    text-align: center;
}
.j07-tagline {
    display: block;
    font-size: var(--theme-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    color: var(--theme-accent-color);
    font-weight: var(--theme-font-bold);
    margin-bottom: var(--theme-spacing-md);
}
.j07 h1 { font-size: var(--theme-size-h1); color: var(--theme-text-color); }
.j07-subtitle {
    font-size: var(--theme-type-body);
    line-height: var(--theme-line-loose);
    color: var(--theme-text-muted);
    margin-block: var(--theme-spacing-md);
}
.j07-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding-inline: var(--theme-gutter-2xl);
    background: var(--theme-accent-color);
    color: #0a0a0a;
    font-family: var(--theme-font-heading);
    font-weight: var(--theme-font-bold);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    border-radius: var(--theme-round-md);
    margin-block: var(--theme-spacing-lg);
    box-shadow: var(--theme-shade-md);
    transition: background var(--theme-transition-base) var(--theme-easing), color var(--theme-transition-base) var(--theme-easing);
}
.j07-cta:hover { background: var(--theme-accent-active); color: #0a0a0a; }
.j07-disclaimer {
    display: block;
    font-size: var(--theme-text-xs);
    color: var(--theme-text-muted);
    max-width: 480px;
    margin-inline: auto;
}

/* ================= PAGE HEADER — PHEAD-10 ================= */
.d66 { background: var(--theme-surface); padding-block: var(--theme-spacing-lg); }
.d66-inner {
    display: block;
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
    text-align: center;
}
.d66-title { font-size: clamp(40px, 7vw, 80px); line-height: var(--theme-line-tight); color: var(--theme-text-color); }
.d66-dot { display: block; color: var(--theme-accent-color); font-size: var(--theme-text-h2); margin: var(--theme-gap-2xs) 0; }
.d66-desc {
    font-style: italic;
    font-size: var(--theme-type-h4);
    max-width: 600px;
    margin-inline: auto;
    color: var(--theme-text-muted);
}

/* ================= PROSE — PROSE-07 (numbered h2) ================= */
.g25 { padding-block: var(--theme-spacing-lg); counter-reset: section; }
.g25-hold {
    display: block;
    max-width: var(--theme-readable-width);
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
}
.g25-hold h2 {
    font-size: var(--theme-text-h2);
    color: var(--theme-text-color);
    margin-top: var(--theme-gutter-xl);
}
.g25-hold h2:first-child { margin-top: 0; }
.g25-hold h2::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero) ". ";
    color: var(--theme-accent-color);
    font-family: var(--theme-font-heading);
    font-weight: var(--theme-font-bold);
    margin-right: var(--theme-spacing-xs);
}
.g25-hold p { color: var(--theme-text-muted); line-height: var(--theme-line-loose); }
.g25-hold ol { color: var(--theme-text-muted); line-height: var(--theme-line-loose); }
.g25-hold a { text-decoration: underline; text-underline-offset: 3px; }
.g25-hold a:hover { color: var(--theme-accent-active); }

/* ================= ITEMS GRID — GRID-01 ================= */
.g98 { padding-block: var(--theme-spacing-lg); }
.g98-inner {
    display: block;
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
}
.g98-heading { font-size: var(--theme-text-h2); margin-bottom: var(--theme-spacing-lg); }
.g98-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--theme-spacing-lg);
}
.g98-item {
    margin: 0;
    padding: var(--theme-spacing-lg);
    background: var(--theme-panel-bg);
    border: 1px solid var(--theme-divider);
    border-radius: var(--theme-corner-lg);
    box-shadow: var(--theme-shade-md);
    transition: border-color var(--theme-transition-base) var(--theme-easing);
}
.g98-item:hover { border-color: var(--theme-accent-color); }
.g98-item-title { font-size: var(--theme-type-h4); color: var(--theme-text-color); margin-bottom: var(--theme-gutter-sm); }
.g98-item-text { color: var(--theme-text-muted); margin: 0; line-height: var(--theme-leading-normal); }

/* ================= REVIEWS — REV-05 (vertical timeline) ================= */
.b90 { padding-block: var(--theme-spacing-lg); }
.b90-inner {
    display: block;
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
}
.b90-heading { font-size: var(--theme-text-h2); margin-bottom: var(--theme-spacing-lg); }
.b90-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--theme-accent-color);
}
.b90-item {
    position: relative;
    margin: 0 0 var(--theme-gutter-xl);
    padding-left: var(--theme-gutter-2xl);
}
.b90-item:last-child { margin-bottom: 0; }
.b90-marker {
    position: absolute;
    left: -8px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--theme-accent-color);
    border-radius: var(--theme-radius-circle);
}
.b90-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--theme-gutter-sm);
    margin-bottom: var(--theme-spacing-xs);
}
.b90-rating { color: var(--theme-accent-color); font-size: var(--theme-type-body); letter-spacing: 2px; }
.b90-author { font-size: var(--theme-fs-small); color: var(--theme-text-muted); font-weight: var(--theme-font-medium); }
.b90-text { margin: 0; line-height: var(--theme-leading-normal); }

/* ================= FAQ — FAQ-05 (native details) ================= */
.g94 { padding-block: var(--theme-spacing-lg); }
.g94-hold {
    display: block;
    max-width: var(--theme-readable-width);
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
}
.g94-heading { font-size: var(--theme-text-h2); margin-bottom: var(--theme-spacing-lg); }
.g94-list { list-style: none; margin: 0; padding: 0; }
.g94-list li { margin: 0; }
.g94-item { border-bottom: 1px solid var(--theme-divider); padding-block: var(--theme-spacing-md); }
.g94-question {
    position: relative;
    display: block;
    font-size: var(--theme-size-h5);
    font-weight: var(--theme-font-bold);
    color: var(--theme-text-color);
    cursor: pointer;
    list-style: none;
    padding-right: var(--theme-gutter-xl);
    transition: color var(--theme-transition-base) var(--theme-easing);
}
.g94-question::-webkit-details-marker { display: none; }
.g94-question::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--theme-accent-color);
    border-bottom: 2px solid var(--theme-accent-color);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--theme-transition-base) var(--theme-easing);
}
.g94-question:hover { color: var(--theme-accent-color); }
.g94-item[open] .g94-question::after { transform: translateY(-30%) rotate(-135deg); }
.g94-answer { padding-top: var(--theme-gutter-sm); }
.g94-answer p { color: var(--theme-text-muted); margin: 0; line-height: var(--theme-leading-normal); }

/* ================= CTA — CTA-04 (minimal text link) ================= */
.w45 { padding-block: var(--theme-spacing-lg); }
.w45-inner {
    display: block;
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
    text-align: center;
}
.w45-title { font-size: var(--theme-type-h4); color: var(--theme-text-color); }
.w45-text {
    font-size: var(--theme-type-body);
    line-height: var(--theme-line-loose);
    color: var(--theme-text-muted);
    margin-block: var(--theme-spacing-md);
    max-width: 580px;
    margin-inline: auto;
}
.w45-link {
    display: inline-block;
    font-size: var(--theme-text-h6);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    color: var(--theme-accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: padding-left var(--theme-transition-base) var(--theme-easing), text-decoration-thickness var(--theme-transition-base) var(--theme-easing);
}
.w45-link:hover {
    color: var(--theme-accent-active);
    padding-left: 8px;
    text-decoration-thickness: 2px;
}

/* ================= LEGAL — LEGAL-06 (compact) ================= */
.k44 { background: var(--theme-surface); padding-block: var(--theme-spacing-lg); counter-reset: legal; }
.k44-hold {
    display: block;
    max-width: var(--theme-readable-width);
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
    font-size: var(--theme-fs-small);
}
.k44-heading {
    font-size: var(--theme-type-h4);
    color: var(--theme-text-color);
    margin-top: var(--theme-spacing-md);
    margin-bottom: var(--theme-spacing-xs);
}
.k44-heading::before {
    counter-increment: legal;
    content: '§ ' counter(legal) '. ';
    color: var(--theme-accent-color);
    font-weight: var(--theme-font-bold);
}
.k44-hold p { color: var(--theme-text-muted); font-size: var(--theme-fs-small); line-height: var(--theme-leading-normal); }
.k44-hold ul { color: var(--theme-text-muted); font-size: var(--theme-fs-small); }
.k44-disclaimer {
    margin-top: var(--theme-spacing-md);
    padding-top: var(--theme-spacing-md);
    border-top: 1px solid var(--theme-divider);
    font-style: italic;
    font-size: var(--theme-text-xs);
}

/* ================= CONTACT FORM — FORM-08 ================= */
.k27 { padding-block: var(--theme-spacing-lg); }
.k27-hold {
    display: block;
    max-width: var(--theme-readable-width);
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
}
.k27-heading { font-size: var(--theme-fs-h3); }
.k27-intro { color: var(--theme-text-muted); margin-bottom: var(--theme-spacing-lg); }
.k27-form {
    background: var(--theme-panel-bg);
    padding: var(--theme-gutter-xl);
    border-radius: var(--theme-round-md);
    border: 1px solid var(--theme-divider);
}
.k27-field { display: flex; flex-direction: column; margin-bottom: var(--theme-spacing-md); }
.k27-field label {
    font-size: var(--theme-fs-small);
    font-weight: var(--theme-font-medium);
    margin-bottom: var(--theme-gap-2xs);
    color: var(--theme-text-color);
}
.k27-field input, .k27-field textarea {
    font-family: var(--theme-font-base);
    font-size: var(--theme-type-body);
    color: var(--theme-text-color);
    background: var(--theme-surface);
    border: 1px solid var(--theme-divider);
    border-radius: var(--theme-round-md);
    padding: var(--theme-gutter-sm) var(--theme-spacing-md);
}
.k27-field input:focus, .k27-field textarea:focus { border-color: var(--theme-accent-color); outline: none; }
.k27-submit {
    width: 100%;
    min-height: 72px;
    background: var(--theme-accent-color);
    color: #0a0a0a;
    font-family: var(--theme-font-heading);
    font-size: var(--theme-type-h4);
    font-weight: var(--theme-font-bold);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    border: none;
    border-radius: var(--theme-round-md);
    cursor: pointer;
    transition: background var(--theme-transition-base) var(--theme-easing), color var(--theme-transition-base) var(--theme-easing);
}
.k27-submit:hover { background: var(--theme-accent-active); color: #0a0a0a; }
.k27-success {
    margin-top: var(--theme-spacing-md);
    margin-bottom: 0;
    padding: var(--theme-spacing-md);
    background: rgba(26, 220, 67, 0.12);
    border: 1px solid var(--theme-gradient-start);
    border-radius: var(--theme-round-md);
    color: var(--theme-text-color);
    font-weight: var(--theme-font-medium);
}

/* ================= AUTHOR CARD — AUTH-01 ================= */
.t62-section { padding-block: var(--theme-spacing-lg); }
.t62-inner {
    display: block;
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
}
.t62 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--theme-spacing-lg);
    background: var(--theme-panel-bg);
    padding: var(--theme-gutter-xl) var(--theme-spacing-lg);
    border-radius: var(--theme-corner-lg);
    border: 1px solid var(--theme-divider);
    box-shadow: var(--theme-depth-sm);
}
.t62-portrait {
    width: 120px;
    height: 120px;
    border-radius: var(--theme-radius-circle);
    overflow: hidden;
    margin-inline: auto;
}
.t62-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.t62-body { display: flex; flex-direction: column; gap: var(--theme-spacing-md); }
.t62-role {
    font-size: var(--theme-fs-small);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    color: var(--theme-accent-color);
    font-weight: var(--theme-font-medium);
    margin: 0;
}
.t62-name { font-size: var(--theme-text-h2); margin: 0; }
.t62-bio { color: var(--theme-text-muted); line-height: var(--theme-line-loose); margin: 0; }
.t62-tags { display: flex; flex-wrap: wrap; gap: var(--theme-spacing-xs); }
.t62-tag {
    padding: var(--theme-gap-2xs) var(--theme-gutter-sm);
    background: var(--theme-primary);
    color: var(--theme-text-color);
    border-radius: var(--theme-pill);
    font-size: var(--theme-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    border: 1px solid var(--theme-divider);
}
.t62-articles { margin-top: var(--theme-spacing-lg); }
.t62-articles-heading { font-size: var(--theme-type-h4); margin-bottom: var(--theme-gutter-sm); }
.t62-articles-list { list-style: none; margin: 0; padding: 0; }
.t62-articles-item { margin: 0 0 var(--theme-spacing-xs); }
.t62-articles-item a { color: var(--theme-accent-color); text-decoration: underline; text-underline-offset: 3px; }
.t62-articles-item a:hover { color: var(--theme-accent-active); }

/* ================= AUTHOR BYLINE — BYLINE-06 ================= */
.i17 {
    max-width: var(--theme-readable-width);
    margin-inline: auto;
    padding-block: var(--theme-spacing-md);
    padding-inline: var(--theme-container-pad);
}
.i17-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--theme-spacing-md);
    border-top: 1px solid var(--theme-divider);
    padding-top: var(--theme-spacing-md);
}
.i17-text { flex: 1; font-size: var(--theme-fs-small); font-style: italic; color: var(--theme-text-muted); margin: 0; }
.i17-label { text-transform: uppercase; letter-spacing: var(--theme-tracking-wide); font-style: normal; font-size: var(--theme-text-xs); }
.i17-name { color: var(--theme-accent-color); text-decoration: underline; text-underline-offset: 2px; font-style: normal; font-weight: var(--theme-font-medium); }
.i17-name:hover { text-decoration-thickness: 2px; color: var(--theme-accent-active); }
.i17-divider { color: var(--theme-text-muted); }
.i17-role { font-style: italic; }
.i17-portrait { width: 48px; height: 48px; border-radius: var(--theme-radius-circle); object-fit: cover; flex-shrink: 0; }

/* ================= COOKIE — COOK-03 (corner card) ================= */
.a83 {
    position: fixed;
    inset-block-end: var(--theme-spacing-md);
    inset-inline-end: var(--theme-spacing-md);
    inset-inline-start: var(--theme-spacing-md);
    max-width: 360px;
    z-index: 90;
}
.a83[hidden] { display: none; }
.a83-inner {
    display: flex;
    flex-direction: column;
    gap: var(--theme-spacing-md);
    background: var(--theme-panel-bg);
    border-radius: var(--theme-corner-lg);
    padding: var(--theme-spacing-lg);
    box-shadow: var(--theme-shade-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.a83-title {
    font-family: var(--theme-font-heading);
    font-weight: var(--theme-font-bold);
    font-size: var(--theme-size-h5);
    text-transform: uppercase;
    color: var(--theme-accent-color);
    margin: 0;
}
.a83-message { font-size: var(--theme-fs-small); line-height: var(--theme-leading-normal); color: var(--theme-text-muted); margin: 0; }
.a83-actions { display: flex; gap: var(--theme-gutter-sm); }
.a83-button {
    width: 50%;
    min-height: 40px;
    border-radius: var(--theme-round-md);
    font-family: var(--theme-font-base);
    font-weight: var(--theme-font-bold);
    font-size: var(--theme-fs-small);
    cursor: pointer;
    border: 1px solid var(--theme-divider);
}
.a83-accept { background: var(--theme-accent-color); color: #0a0a0a; border-color: var(--theme-accent-color); }
.a83-accept:hover { background: var(--theme-accent-active); color: #0a0a0a; }
.a83-decline { background: transparent; color: var(--theme-text-color); }
.a83-decline:hover { border-color: var(--theme-accent-color); color: var(--theme-accent-color); }

/* ================= ERROR — ERR-04 (full-bleed atmospheric) ================= */
.e92 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--theme-gutter-2xl) var(--theme-container-pad);
    background-image: url('/snaps/portrait.webp');
    background-size: cover;
    background-position: center;
}
.e92-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.9));
}
.e92-box { position: relative; text-align: center; max-width: 640px; }
.e92-code { font-family: var(--theme-font-heading); font-weight: var(--theme-font-bold); font-size: clamp(64px, 16vw, 140px); color: var(--theme-accent-color); line-height: 1; margin: 0; }
.e92-title { font-size: var(--theme-text-h2); color: #ffffff; margin-bottom: var(--theme-spacing-md); }
.e92-text { color: #e6e6e6; margin-bottom: var(--theme-spacing-lg); }
.e92-button {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding-inline: var(--theme-gutter-2xl);
    background: var(--theme-accent-color);
    color: #0a0a0a;
    font-family: var(--theme-font-heading);
    font-weight: var(--theme-font-bold);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    border-radius: var(--theme-round-md);
    transition: background var(--theme-transition-base) var(--theme-easing), color var(--theme-transition-base) var(--theme-easing);
}
.e92-button:hover { background: var(--theme-accent-active); color: #0a0a0a; }

/* ================= PAGE FIGURES (per-page images) ================= */
.page-figure {
    max-width: var(--theme-readable-width);
    margin: var(--theme-spacing-lg) auto;
    padding-inline: var(--theme-container-pad);
}
.page-figure img { width: 100%; height: auto; border-radius: var(--theme-round-md); border: 1px solid var(--theme-divider); }
.page-figure--context { max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop)); }
.page-figure--detail img { border-radius: var(--theme-corner-lg); }
.page-figure--process { opacity: 1; }

/* ================= FOOTER — FOOT-05 (four-column) ================= */
.p01 { background: var(--theme-primary); border-top: 1px solid var(--theme-divider); padding-block: var(--theme-gutter-2xl); }
.p01-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--theme-gutter-xl);
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin-inline: auto;
    padding-inline: var(--theme-container-pad);
}
.p01-col { margin: 0; }
.p01-brand { max-width: 420px; }
.p01-logo-img { height: 72px; width: auto; margin-bottom: var(--theme-spacing-md); mix-blend-mode: screen; }
.p01-tagline { color: var(--theme-text-muted); font-size: var(--theme-fs-small); margin-bottom: var(--theme-gutter-sm); }
.p01-age { color: var(--theme-accent-color); font-size: var(--theme-fs-small); font-weight: var(--theme-font-bold); margin: 0; }
.p01-heading {
    font-family: var(--theme-font-heading);
    font-weight: var(--theme-font-bold);
    font-size: var(--theme-fs-small);
    text-transform: uppercase;
    letter-spacing: var(--theme-tracking-wide);
    color: var(--theme-text-color);
    margin-bottom: var(--theme-spacing-md);
}
.p01-links { list-style: none; margin: 0; padding: 0; }
.p01-links li { margin-bottom: var(--theme-spacing-xs); }
.p01-links a { color: var(--theme-text-muted); font-size: var(--theme-fs-small); transition: color var(--theme-transition-base) var(--theme-easing); }
.p01-links a:hover { color: var(--theme-accent-color); }
.p01-bottom {
    max-width: calc(var(--theme-shell-width) + 2 * var(--theme-edge-desktop));
    margin: var(--theme-gutter-xl) auto 0;
    padding: var(--theme-spacing-lg) var(--theme-container-pad) 0;
    border-top: 1px solid var(--theme-divider);
    text-align: center;
}
.p01-copyright { color: var(--theme-text-muted); font-size: var(--theme-fs-small); margin: 0 0 var(--theme-spacing-xs); }
.p01-disclaimer { color: var(--theme-text-muted); font-size: var(--theme-text-xs); margin: 0; line-height: var(--theme-leading-normal); }

/* ================= TABLET (min-width 832) ================= */
@media (min-width: 832px) {
    :root {
        --theme-size-h1: 48px;
        --theme-text-h2: 36px;
        --theme-fs-h3: 26px;
        --theme-type-h4: 21px;
        --theme-size-h5: 18px;
        --theme-text-h6: 16px;
        --theme-type-body: 19px;
        --theme-fs-small: 16px;
        --theme-text-xs: 14px;
        --theme-container-pad: var(--theme-container-padding-tablet);
    }
    .d27-inner { min-height: var(--theme-header-height-desktop); gap: var(--theme-spacing-lg); }
    .d27-logo-img { height: 88px; }
    .d27-nav { display: flex; }
    .d27-toggle { display: none; }
    .d27-drawer { display: none; }
    .g98-list { grid-template-columns: repeat(2, 1fr); }
    .t62 { grid-template-columns: 160px 1fr; gap: var(--theme-gutter-xl); }
    .t62-portrait { width: 160px; height: 160px; margin-inline: 0; }
    .p01-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ================= DESKTOP (min-width 1136) ================= */
@media (min-width: 1136px) {
    :root { --theme-container-pad: var(--theme-edge-desktop); }
    .g98-list { grid-template-columns: repeat(3, 1fr); }
}
