:root {
    --page-bg: #f6f6f2;
    --page-bg-top: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f0f0ea;
    --text: #1e1f23;
    --muted: #6b6d75;
    --accent: #1d5b6f;
    --accent-soft: #e2edf0;
    --border: #d9d9cf;
    --focus-ring: rgba(29, 91, 111, 0.2);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable both-edges;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 0% 0%, var(--page-bg-top), transparent 65%), var(--page-bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

h1, h2, h3 {
    margin: 0;
    letter-spacing: -0.01em;
}

h1, h2 {
    font-weight: 600;
}

h3 {
    font-weight: 500;
}

strong,
b {
    font-weight: 600;
}

p {
    margin: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    text-decoration-color: transparent;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.cursor-dot,
.cursor-trail,
.cursor-burst,
.cursor-orbit,
.cursor-spark {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--cursor-hue, 196), 68%, 42%, 0.85) 0%, hsla(var(--cursor-hue, 196), 68%, 42%, 0.08) 70%);
    opacity: 0;
    transition: opacity 120ms ease, transform 120ms ease, background 160ms ease;
    mix-blend-mode: multiply;
}

.cursor-dot.is-visible {
    opacity: 0.85;
}

.cursor-dot.is-active {
    transform: translate(-50%, -50%) scale(1.2);
    background: radial-gradient(circle, rgba(29, 91, 111, 0.9) 0%, rgba(29, 91, 111, 0.15) 70%);
}

.cursor-dot.is-pressed {
    transform: translate(-50%, -50%) scale(0.6);
}

.cursor-trail {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.6;
    background: radial-gradient(circle, hsla(var(--cursor-hue, 196), 70%, 45%, 0.5) 0%, hsla(var(--cursor-hue, 196), 70%, 45%, 0) 70%);
    filter: blur(0);
    animation: cursorTrail 480ms ease-out forwards;
    mix-blend-mode: screen;
}

.cursor-burst {
    width: 18px;
    height: 18px;
    border: 2px solid hsla(var(--cursor-hue, 196), 64%, 46%, 0.45);
    border-radius: 50%;
    opacity: 0.75;
    animation: cursorBurst 420ms ease-out forwards;
    mix-blend-mode: screen;
}

.cursor-orbit {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid hsla(var(--cursor-hue, 196), 64%, 46%, 0.35);
    opacity: 0;
    transition: opacity 160ms ease, border-color 220ms ease;
    mix-blend-mode: screen;
    transform-origin: center;
    animation: cursorOrbit 2.8s linear infinite;
}

.cursor-orbit.is-visible {
    opacity: 0.6;
}

@property --icon-scale {
    syntax: "<number>";
    inherits: false;
    initial-value: 1;
}

@property --icon-translate-x {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --icon-translate-y {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --icon-rotate {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.cursor-icon {
    --icon-scale: 1;
    --icon-translate-x: 0px;
    --icon-translate-y: 0px;
    --icon-rotate: 0deg;
    position: fixed;
    left: 0;
    top: 0;
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(16, 19, 26, 0.2));
    opacity: 0;
    transform:
        translate(calc(-50% + var(--icon-translate-x)), calc(-50% + var(--icon-translate-y)))
        rotate(var(--icon-rotate))
        scale(var(--icon-scale));
    transition: opacity 160ms ease;
    pointer-events: none;
    will-change: transform;
    z-index: 9999;
}

.cursor-icon.is-visible {
    opacity: 0.92;
}

.cursor-icon.is-active {
    --icon-scale: 1.08;
}

.cursor-icon.is-pressed {
    --icon-scale: 0.9;
}

.cursor-spark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--cursor-hue, 196), 78%, 55%, 0.8) 0%, hsla(var(--cursor-hue, 196), 78%, 55%, 0) 70%);
    opacity: 0;
    animation: cursorSpark 420ms ease-out forwards;
    mix-blend-mode: screen;
}

@keyframes cursorTrail {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.4);
        filter: blur(0);
    }
    60% {
        opacity: 0.28;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4);
        filter: blur(10px);
    }
}

@keyframes cursorBurst {
    0% {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(0.4);
    }
    40% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.8);
    }
}

@keyframes cursorOrbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.92);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(0.98);
    }
}

@keyframes cursorSpark {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.4);
    }
    70% {
        opacity: 0.3;
        transform: translate(-50%, -50%) translate(var(--spark-shift-x, 6px), var(--spark-shift-y, -8px)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(var(--spark-shift-x, 10px), var(--spark-shift-y, -16px)) scale(0.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-trail,
    .cursor-burst,
    .cursor-orbit,
    .cursor-spark,
    .cursor-icon {
        display: none !important;
    }
}

@keyframes pageAurora {
    0% {
        transform: translate3d(-6%, -3%, 0) scale(1.04);
    }
    50% {
        transform: translate3d(8%, 4%, 0) scale(1.08);
    }
    100% {
        transform: translate3d(-4%, 6%, 0) scale(1.02);
    }
}

@media (prefers-reduced-motion: no-preference) {
    body::after {
        content: "";
        position: fixed;
        inset: -45vmax;
        background:
            radial-gradient(circle at 18% 22%, rgba(29, 91, 111, 0.18), transparent 58%),
            radial-gradient(circle at 70% 28%, rgba(115, 184, 199, 0.18), transparent 62%),
            radial-gradient(circle at 58% 70%, rgba(29, 91, 111, 0.12), transparent 60%);
        opacity: 0.45;
        filter: blur(120px);
        pointer-events: none;
        z-index: -1;
        animation: pageAurora 42s ease-in-out infinite alternate;
    }

    body.is-reveal-enabled .reveal-item {
        opacity: 0;
        transform: translate3d(var(--reveal-offset-x, 0px), var(--reveal-offset-y, 14px), 0) scale(var(--reveal-scale, 0.995));
        transition:
            transform 320ms cubic-bezier(0.18, 0.72, 0.42, 1),
            opacity 220ms ease-out;
        transition-delay: var(--reveal-delay, 0ms);
        will-change: transform, opacity;
    }

    body.is-reveal-enabled .reveal-item.is-visible {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        transition-delay: var(--reveal-delay, 0ms);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
        opacity: 0;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(10px);
    background: rgba(246, 246, 242, 0.85);
    border-bottom: 1px solid var(--border);
}

.site-header .inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.94rem;
    padding-bottom: 0.25rem;
    position: relative;
    transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
    transform: translateY(-1px);
    text-decoration: none;
}

nav a:hover::after,
nav a:focus-visible::after {
    transform: scaleX(1);
}

nav a:focus-visible {
    box-shadow: 0 0 0 4px var(--focus-ring);
    border-radius: 0.35rem;
}

main {
    max-width: 980px;
    margin: 0 auto;
    padding: 4.75rem 1.9rem 5.2rem;
    display: grid;
    gap: 6rem;
}

.hero {
    display: grid;
    gap: 2.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    padding: 3.2rem;
    box-shadow: 0 18px 38px rgba(16, 19, 26, 0.05), 0 6px 18px rgba(16, 19, 26, 0.06);
    position: relative;
    overflow: hidden;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.hero-top {
    display: grid;
    gap: 1.4rem;
    max-width: 640px;
}

.hero .eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--muted);
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.9rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: 1.12rem;
    color: var(--text);
    max-width: 520px;
}

.intro-note {
    margin: 0;
    padding: 1.2rem 1.4rem;
    border-radius: 1.25rem;
    background: var(--surface-muted);
    color: var(--text);
    font-size: 0.96rem;
}

.hero-game {
    margin: 1.6rem 0 0;
    padding: 1.8rem 2rem;
    border-radius: 1.4rem;
    border: 1px solid var(--border);
    background: var(--surface);
    display: grid;
    gap: 1.05rem;
    width: min(100%, 420px);
    justify-self: center;
    align-self: start;
    align-content: start;
    box-shadow: 0 16px 34px rgba(16, 19, 26, 0.05), 0 6px 16px rgba(16, 19, 26, 0.06);
}

/* Minimized state for Blackjack */
.hero-game.collapsed {
    display: inline-flex;
    align-items: center;
    padding: 0;
    gap: 0.4rem;
    max-width: none;
    width: auto;
    border: 0;
    background: transparent;
    margin: 0.75rem 0 0;
    box-shadow: none;
}
.hero-game.collapsed .game-title {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.85;
    margin-right: 0.35rem;
}
.hero-game.collapsed .bj-header { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero-game.collapsed .bj-panel { display: none; }
.hero-game.collapsed .bj-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
}
.hero-game.collapsed .bj-toggle:hover,
.hero-game.collapsed .bj-toggle:focus-visible { color: var(--text); }
.bj-mini-cards { display: none; gap: 0.25rem; margin-left: 0.1rem; }
.hero-game.collapsed .bj-mini-cards { display: inline-flex; }
.bj-mini-card {
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.08rem 0.28rem;
    border-radius: 0.3rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

/* Blackjack */
.bj-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text);
}

.bj-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bj-toggle {
    padding: 0.35rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
}
.bj-toggle:hover,
.bj-toggle:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.bj-table {
    display: grid;
    gap: 1.2rem;
    width: 100%;
    justify-items: stretch;
}

.bj-row { display: grid; width: 100%; justify-items: start; }

.bj-hand { display: grid; gap: 0.45rem; justify-items: start; text-align: left; }

.bj-cards {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: 48px;
}

.bj-card {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 56px;
    padding: 0 8px;
    border: 1px solid rgba(29, 91, 111, 0.35);
    border-radius: 0.65rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(16, 19, 26, 0.07), 0 3px 10px rgba(16, 19, 26, 0.08);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.bj-card.back { background: #e8e8e0; color: #9a9a8d; }

.bj-score { font-size: 0.9rem; color: var(--text); text-align: left; }

.bj-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: center;
}

.bj-panel { display: grid; gap: 0.9rem; }
.bj-panel.anim { animation: bj-fade-in 180ms ease; }

@keyframes bj-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bj-cards.deal { animation: bj-pop 160ms ease; }
@keyframes bj-pop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#bj-bet {
    width: 100%;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    background: var(--surface);
    font-size: 0.9rem;
    text-align: center;
}

#bj-deal, #bj-hit, #bj-stand, #bj-reset {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.48rem 0.9rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(29, 91, 111, 0.55);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

#bj-deal:disabled, #bj-hit:disabled, #bj-stand:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.game-title {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.game-hint {
    font-size: 0.85rem;
    color: var(--muted);
}

.game-canvas {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    image-rendering: pixelated;
}

.game-pad {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
}

.pad-middle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.pad-button {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 120ms ease;
}

.pad-button:hover,
.pad-button:focus-visible {
    transform: translateY(-2px);
}

.game-button {
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--surface);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.game-button:hover,
.game-button:focus-visible {
    background: var(--accent);
    color: #ffffff;
}

.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.game-score {
    font-size: 0.88rem;
    color: var(--text);
}


.game-title {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.game-button {
    justify-self: start;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--surface);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.game-button:hover,
.game-button:focus-visible {
    background: var(--accent);
    color: #ffffff;
}

.game-output {
    font-size: 0.95rem;
    color: var(--text);
    min-height: 1.4em;
}

.game-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.game-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.game-score {
    font-size: 0.9rem;
    color: var(--text);
}
.link {
    color: var(--accent);
    font-weight: 500;
    position: relative;
}

.link:hover,
.link:focus-visible {
    text-decoration: none;
}

.link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.link:hover::after,
.link:focus-visible::after {
    transform: scaleX(1);
}

.section {
    display: grid;
    gap: 2rem;
}

.section-header {
    display: grid;
    gap: 0.75rem;
    max-width: 560px;
}

.section-header h2 {
    font-size: clamp(1.9rem, 4.8vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.section-header p {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


.list-card {
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    padding: 1.8rem;
    background: var(--surface);
    display: grid;
    gap: 0.85rem;
    box-shadow: 0 10px 24px rgba(16, 19, 26, 0.05), 0 4px 12px rgba(16, 19, 26, 0.05);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.list-card--highlight {
    border-color: rgba(29, 91, 111, 0.45);
    background: var(--accent-soft);
}

.list-card p {
    font-size: 0.95rem;
    color: var(--text);
}


.list-card:hover,
.list-card:focus-within {
    border-color: rgba(29, 91, 111, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(16, 19, 26, 0.08), 0 6px 16px rgba(16, 19, 26, 0.08);
    background: var(--accent-soft);
}

.list-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.list-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.05rem;
}

.card-item-title {
    display: block;
    font-weight: 500;
}

.card-item-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.card-list p {
    color: var(--text);
    margin: 0;
}

.grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    padding: 1.75rem;
    background: var(--surface);
    display: grid;
    gap: 0.85rem;
    box-shadow: 0 10px 26px rgba(16, 19, 26, 0.05), 0 4px 12px rgba(16, 19, 26, 0.05);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.card h3 {
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.contact {
    display: grid;
    gap: 1.2rem;
    padding: 2.2rem;
    border-radius: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(16, 19, 26, 0.05), 0 4px 14px rgba(16, 19, 26, 0.05);
}

.large-link {
    font-size: clamp(1.6rem, 4.2vw, 2.4rem);
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.large-link:hover,
.large-link:focus-visible {
    color: var(--accent);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.contact-links a {
    color: var(--accent);
    font-size: 0.94rem;
    position: relative;
    transition: color 160ms ease, transform 160ms ease;
}

.contact-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.contact-links a:hover::after,
.contact-links a:focus-visible::after {
    transform: scaleX(1);
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: var(--text);
    transform: translateY(-1px);
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.75rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .site-header .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    main {
        gap: 4rem;
        padding: 3.6rem 1.4rem 4.5rem;
    }

    .hero {
        padding: 2.4rem;
    }

    }





.list-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


.list-card {
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    padding: 1.8rem;
    background: var(--surface);
    display: grid;
    gap: 0.85rem;
    box-shadow: 0 10px 24px rgba(16, 19, 26, 0.05), 0 4px 12px rgba(16, 19, 26, 0.05);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.list-card--highlight {
    border-color: rgba(29, 91, 111, 0.45);
    background: var(--accent-soft);
}

.list-card p {
    font-size: 0.95rem;
    color: var(--text);
}


.list-card:hover,
.list-card:focus-within {
    border-color: rgba(29, 91, 111, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(16, 19, 26, 0.08), 0 6px 16px rgba(16, 19, 26, 0.08);
    background: var(--accent-soft);
}

.list-meta {
    font-size: 0.85rem;
    color: var(--muted);
}













.contact-note {
    font-size: 1rem;
    color: var(--text);
}

.contact-email {
    font-size: 0.95rem;
    color: var(--text);
}

.contact-email span {
    color: var(--accent);
}

#bj-deal:not(:disabled):hover,
#bj-deal:not(:disabled):focus-visible,
#bj-hit:not(:disabled):hover,
#bj-hit:not(:disabled):focus-visible,
#bj-stand:not(:disabled):hover,
#bj-stand:not(:disabled):focus-visible,
#bj-reset:hover,
#bj-reset:focus-visible {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 14px 28px rgba(29, 91, 111, 0.18);
}

.bj-controls label {
    grid-column: 1;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    justify-self: start;
}

.bj-controls #bj-bet { grid-column: 2; }

.bj-controls #bj-deal,
.bj-controls #bj-stand { grid-column: 1; }

.bj-controls #bj-hit,
.bj-controls #bj-reset { grid-column: 2; }

.bj-controls #bj-deal,
.bj-controls #bj-hit,
.bj-controls #bj-stand,
.bj-controls #bj-reset { width: 100%; }

.bj-hand strong {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bj-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 19, 26, 0.09), 0 6px 14px rgba(16, 19, 26, 0.08);
}

.bj-status span:last-child {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 600px) {
    .hero-game {
        margin: 1.6rem auto 0;
        padding: 1.5rem;
        width: min(100%, 360px);
        justify-self: center;
        align-self: start;
    }
}

.card:hover,
.card:focus-within {
    border-color: rgba(29, 91, 111, 0.45);
    box-shadow: 0 18px 38px rgba(16, 19, 26, 0.08), 0 6px 16px rgba(16, 19, 26, 0.08);
    transform: translateY(-3px);
    background: var(--accent-soft);
}

.hero-game:not(.collapsed):hover {
    box-shadow: 0 20px 36px rgba(16, 19, 26, 0.08), 0 8px 18px rgba(16, 19, 26, 0.07);
}
