* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(160deg, rgba(5, 8, 12, 0.92), rgba(5, 8, 12, 0.88)),
        url('https://images.unsplash.com/photo-1621761191319-6f17b8d3f9a0?auto=format&fit=crop&w=1920&q=75') center/cover fixed;
    color: #f2f4f8;
    line-height: 1.65;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    z-index: 200;
    background: #f7931a;
    color: #000;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.nav {
    background: rgba(8, 10, 14, 0.92);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(247, 147, 26, 0.15);
}

.nav-items {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.nav-meta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-winbits-flash {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #ffd27a;
    margin: 0;
}

.nav-winbits-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    font-size: 0.82rem;
    color: #aeb6c5;
}

.nav-winbits-label {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #f7931a;
    text-transform: uppercase;
}

.nav-winbits-balance {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fff;
    font-size: 0.95rem;
}

.nav-winbits-form {
    margin: 0;
}

.nav-winbits-claim {
    appearance: none;
    border: 1px solid rgba(247, 147, 26, 0.55);
    background: rgba(247, 147, 26, 0.15);
    color: #ffd27a;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-winbits-claim:hover:not(:disabled),
.nav-winbits-claim:focus-visible:not(:disabled) {
    background: #f7931a;
    color: #0a0a0a;
    outline: none;
    transform: translateY(-1px);
}

.nav-winbits-claim.is-waiting,
.nav-winbits-claim:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.nav-winbits-hint {
    font-size: 0.72rem;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.nav-item {
    color: #f7931a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(247, 147, 26, 0.35);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover,
.nav-item:focus-visible {
    background: #f7931a;
    color: #0a0a0a;
    outline: none;
    transform: translateY(-1px);
}

.nav-item.is-active {
    background: rgba(247, 147, 26, 0.18);
    color: #ffd27a;
    border-color: rgba(247, 147, 26, 0.55);
}

.nav-item.is-active:hover,
.nav-item.is-active:focus-visible {
    background: #f7931a;
    color: #0a0a0a;
}

.container {
    max-width: 1100px;
    margin: 124px auto 0;
    padding: 24px 20px 48px;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin: 36px 0 28px;
}

.logo {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #ffd27a, #f7931a, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.tagline {
    max-width: 36rem;
    margin: 0 auto 20px;
    color: #c8ced9;
    font-size: 1.05rem;
}

.demo-timer {
    background: rgba(247, 147, 26, 0.08);
    border: 1px solid rgba(247, 147, 26, 0.25);
    padding: 18px 20px;
    border-radius: 14px;
    margin: 24px auto;
    max-width: 420px;
    text-align: center;
}

.demo-timer p {
    color: #aeb6c5;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timer {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: #f7931a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 22px 0 8px;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(120deg, #f7931a, #ffb347);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: none;
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.25);
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(247, 147, 26, 0.35);
    outline: none;
}

.cta-note {
    font-size: 0.85rem;
    color: #9aa3b2;
}

.section {
    margin: 48px 0;
}

.section h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: #fff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.step-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 14px;
}

.step-title {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.step-card p {
    color: #c8ced9;
    font-size: 0.95rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(247, 147, 26, 0.2);
    color: #f7931a;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px;
    border-radius: 14px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(247, 147, 26, 0.35);
}

.feature-card h3 {
    color: #f7931a;
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.faq details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: #fff;
}

.faq details[open] summary {
    margin-bottom: 8px;
    color: #f7931a;
}

.faq p {
    color: #c8ced9;
    font-size: 0.95rem;
}

footer {
    background: rgba(5, 8, 12, 0.95);
    padding: 40px 0 28px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

footer h3 {
    color: #f7931a;
    margin-bottom: 12px;
    font-size: 1rem;
}

footer p,
footer li {
    color: #aeb6c5;
    font-size: 0.9rem;
}

footer ul {
    list-style: none;
}

footer a {
    color: #e8ecf4;
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    color: #f7931a;
    outline: none;
}

.footer-meta {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6b7280;
    font-size: 0.85rem;
}

/* Guides page */
.guides-hero {
    text-align: left;
    max-width: 42rem;
    margin: 28px 0 32px;
}

.guides-hero .logo {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 10px;
}

.guides-hero .tagline {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.guides-hero .cta-row {
    justify-content: flex-start;
    margin-top: 18px;
}

.guide-toc {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 36px;
}

.guide-toc h2 {
    font-size: 1rem;
    color: #f7931a;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.guide-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    color: #c8ced9;
}

.guide-toc li {
    margin-bottom: 8px;
}

.guide-toc a {
    color: #e8ecf4;
    text-decoration: none;
    font-weight: 600;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
    color: #f7931a;
    outline: none;
}

.guide-section {
    scroll-margin-top: 132px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 22px 22px;
    margin-bottom: 20px;
}

.guide-section h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.guide-section p {
    color: #c8ced9;
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.guide-section p:last-child {
    margin-bottom: 0;
}

.guide-list {
    margin: 8px 0 0 1.2rem;
    color: #c8ced9;
    font-size: 0.95rem;
}

.guide-list li {
    margin-bottom: 6px;
}

.guide-callout {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.25);
    color: #e8ecf4;
    font-size: 0.92rem;
}

/* Games hub and play pages */
.game-back {
    margin: 0 0 12px;
}

.game-back a {
    color: #f7931a;
    font-weight: 700;
    text-decoration: none;
}

.game-back a:hover,
.game-back a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.games-hub-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.games-hub-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    min-height: 5.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.games-hub-card:hover,
.games-hub-card:focus-visible {
    border-color: rgba(247, 147, 26, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.games-hub-card-title {
    font-weight: 800;
    color: #fff;
    font-size: 1.02rem;
}

.games-hub-card-desc {
    font-size: 0.88rem;
    color: #aeb6c5;
    line-height: 1.45;
}

.games-hero {
    margin-bottom: 20px;
}

.game-panel {
    scroll-margin-top: 132px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 20px 20px;
    margin-bottom: 22px;
}

.game-blurb {
    color: #c8ced9;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.game-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    margin-bottom: 10px;
}

.game-btn {
    appearance: none;
    border: 1px solid rgba(247, 147, 26, 0.45);
    background: rgba(247, 147, 26, 0.12);
    color: #ffd27a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.game-btn:hover,
.game-btn:focus-visible {
    background: #f7931a;
    color: #0a0a0a;
    outline: none;
}

.game-label {
    color: #aeb6c5;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-input {
    width: 5rem;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.game-status,
.game-score {
    color: #e8ecf4;
    font-size: 0.92rem;
    margin-top: 6px;
}

.slots-reels {
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #ffd27a;
    margin: 10px 0 4px;
}

.mem-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-width: 360px;
    margin: 12px 0 14px;
}

.mem-card {
    min-height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

.mem-card.is-matched {
    opacity: 0.45;
    cursor: default;
}

.snake-canvas {
    display: block;
    margin: 10px 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0b0f14;
}

.reaction-pad {
    width: min(100%, 360px);
    min-height: 120px;
    margin: 10px 0 8px;
    border-radius: 14px;
    border: 2px solid rgba(247, 147, 26, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}

.reaction-wait {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.55);
}

.reaction-go {
    background: rgba(34, 197, 94, 0.35);
    border-color: rgba(34, 197, 94, 0.75);
    color: #052e16;
}

.simon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 110px));
    gap: 10px;
    max-width: 240px;
    margin: 10px 0 12px;
}

.simon-btn {
    height: 96px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0.85;
}

.simon-btn.simon-red {
    background: #e53e3e;
}

.simon-btn.simon-green {
    background: #38a169;
}

.simon-btn.simon-blue {
    background: #3182ce;
}

.simon-btn.simon-yellow {
    background: #ecc94b;
}

.simon-lit {
    filter: brightness(1.35);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 96px));
    gap: 8px;
    margin: 10px 0 12px;
}

.whack-cell {
    height: 72px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.whack-cell.is-hot {
    background: rgba(247, 147, 26, 0.45);
    border-color: #f7931a;
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 88px));
    gap: 8px;
    margin: 10px 0 12px;
}

.ttt-cell {
    height: 72px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
}

.ttt-cell:disabled {
    opacity: 0.55;
    cursor: default;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-width: 360px;
    margin: 10px 0 12px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.tile-cell {
    min-height: 64px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-val {
    font-weight: 800;
    font-size: 1.35rem;
    color: #ffd27a;
}

.pad-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 360px;
    margin-bottom: 8px;
}

.pad-btn {
    appearance: none;
    border: 1px solid rgba(247, 147, 26, 0.45);
    background: rgba(247, 147, 26, 0.12);
    color: #ffd27a;
    font-weight: 800;
    font-size: 1rem;
    width: 52px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
}

.pad-btn:hover,
.pad-btn:focus-visible {
    background: #f7931a;
    color: #0a0a0a;
    outline: none;
}

.scramble-letters {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #fff;
    margin: 8px 0 10px;
}

.game-input-wide {
    width: min(100%, 14rem);
}

.lights-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 52px));
    gap: 6px;
    margin: 10px 0 12px;
}

.lights-cell {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.lights-cell.is-on {
    background: rgba(247, 147, 26, 0.55);
    border-color: #f7931a;
}

.frenzy-zone {
    position: relative;
    min-height: 220px;
    max-width: 420px;
    margin: 10px 0 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
}

.frenzy-target {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(120deg, #f7931a, #ffb347);
    color: #0a0a0a;
}

.stroop-display {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 10px 0 12px;
    min-height: 2.5rem;
}

.stroop-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.stroop-swatch {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.stroop-swatch:hover,
.stroop-swatch:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.hangman-word {
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #e8ecf4;
    margin: 8px 0 6px;
}

.hangman-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 420px;
    margin: 10px 0 12px;
}

.hang-key {
    min-width: 34px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hang-key:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 768px) {
    .nav-items {
        justify-content: center;
    }
}
