/* Blossom Word Game - blossomwordgame.uk - Pure Gaming UI */
:root {
    --bg: #f5f5f7;
    --surface: #fff;
    --primary: #e85a8c;
    --primary-dark: #c44d7a;
    --accent: #6bc96b;
    --text: #1a1a1a;
    --text-muted: #4a4a4f;
    --border: #e0e0e5;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .08);
    --font: 'Segoe UI', system-ui, sans-serif
}

[data-theme="dark"] {
    --bg: #0d0d10;
    --surface: #16161a;
    --primary: #ff7eb3;
    --primary-dark: #e85a8c;
    --accent: #5dd95d;
    --text: #f0f0f2;
    --text-muted: #b0b0b8;
    --border: #2a2a30;
    --shadow: 0 4px 24px rgba(0, 0, 0, .4)
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background .3s, color .3s;
    overflow-x: hidden;
    overflow-wrap: break-word
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s
}

a:hover {
    color: var(--primary-dark)
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: .75rem 1rem;
    background: var(--primary);
    color: #fff
}

.skip-link:focus {
    left: 0
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem
}

/* Gaming header */
header {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    transition: background .3s, border-color .3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05)
}

[data-theme="dark"] header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2)
}

.header-wrap {
    width: 100%;
    background: var(--surface)
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem
}

.logo {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    color: var(--text);
    white-space: nowrap;
    transition: color .2s
}

.logo span {
    color: var(--primary);
    font-weight: 800
}

.logo svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px
}

.logo:hover {
    color: var(--text)
}

.logo:hover span {
    color: var(--primary)
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center
}

nav a {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    transition: color .2s
}

nav a:hover {
    color: var(--primary)
}

.theme-toggle {
    background: var(--border);
    border: none;
    border-radius: 8px;
    padding: .45rem .65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--text-muted);
    font-size: .8rem;
    transition: background .2s, color .2s
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--primary);
    color: #fff
}

.theme-toggle svg {
    width: 18px;
    height: 18px
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none
}

body[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline-block
}

body[data-theme="light"] .theme-toggle .icon-moon,
body:not([data-theme]) .theme-toggle .icon-moon {
    display: inline-block
}

body[data-theme="dark"] .theme-toggle .icon-moon {
    display: none
}

/* Mobile: Mode above primary menu (stacked right), then slide-out menu */
.header-right {
    display: none;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
    flex-shrink: 0
}

.menu-toggle {
    background: transparent;
    border: none;
    padding: .5rem;
    cursor: pointer;
    color: var(--text);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s
}

.menu-toggle:hover {
    background: var(--border);
    color: var(--text)
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    height: 18px;
    justify-content: center
}

.menu-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .2s
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    background: var(--surface);
    border-left: 2px solid var(--border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
    z-index: 200;
    padding: 4rem 1.25rem 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease
}

.mobile-nav.open {
    transform: translateX(0)
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    padding: 0 0 .75rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid var(--border)
}

.menu-close {
    background: transparent;
    border: none;
    padding: .5rem;
    cursor: pointer;
    color: var(--text);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s
}

.menu-close:hover,
.menu-close:focus-visible {
    background: var(--border);
    color: var(--primary)
}

.menu-close svg {
    width: 24px;
    height: 24px
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.mobile-nav a {
    display: block;
    padding: .95rem .75rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    border-left: 4px solid transparent;
    margin-left: -1.25rem;
    padding-left: calc(1.25rem + .75rem);
    transition: color .2s, background .2s, border-left-color .2s;
    border-radius: 0 8px 8px 0
}

.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a:focus-visible {
    color: var(--primary);
    background: rgba(232, 90, 140, .12);
    border-left-color: var(--primary)
}

[data-theme="dark"] .mobile-nav a:hover,
[data-theme="dark"] .mobile-nav a:active,
[data-theme="dark"] .mobile-nav a:focus-visible {
    color: var(--primary);
    background: rgba(255, 126, 179, .14)
}

.mobile-subscribe {
    padding: 1.25rem 0 0;
    margin-top: 1rem;
    border-top: 2px solid var(--border);
    list-style: none
}

.mobile-subscribe-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    display: block;
    margin-bottom: .6rem;
    font-weight: 600
}

.mobile-subscribe-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.mobile-subscribe-row input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: .65rem .85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    min-height: 44px
}

.mobile-subscribe-row button {
    padding: .65rem 1rem;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    transition: background .2s, transform .1s
}

.mobile-subscribe-row button:hover {
    background: var(--primary-dark)
}

.mobile-subscribe-row button:active {
    transform: scale(0.98)
}

body.menu-open {
    overflow: hidden
}

body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s
}

@media(max-width:768px) {
    .nav-desktop {
        display: none
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: .5rem;
        padding: .75rem 1rem;
        min-height: 52px
    }

    .header-right {
        display: flex;
        flex-direction: column;
        order: 2;
        justify-content: center;
        align-items: flex-end;
        gap: .2rem
    }

    .logo {
        order: 1;
        min-width: 0;
        font-size: 1.1rem
    }

    .logo span {
        font-size: 1.1rem
    }

    .logo svg {
        width: 28px;
        height: 28px
    }

    .theme-toggle-mobile {
        display: inline-flex !important;
        padding: .35rem .55rem;
        font-size: .75rem
    }

    .menu-toggle {
        padding: .4rem
    }

    .menu-icon {
        width: 22px;
        height: 18px
    }

    .menu-icon span {
        height: 2.5px
    }

    .mobile-nav {
        display: block;
        padding-top: 5rem
    }

    .mobile-nav a {
        padding: 1rem .75rem;
        min-height: 48px;
        display: flex;
        align-items: center
    }

    .mobile-subscribe-row {
        flex-direction: column
    }

    .mobile-subscribe-row input[type="email"] {
        width: 100%
    }

    .mobile-subscribe-row button {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center
    }
}

@media(max-width:480px) {
    .logo {
        font-size: 1.05rem
    }

    .logo span {
        font-size: 1.05rem
    }

    .logo svg {
        width: 26px;
        height: 26px
    }

    .header-inner {
        padding: .7rem .85rem
    }

    .theme-toggle-mobile {
        padding: .3rem .45rem;
        font-size: .7rem
    }
}

@media(max-width:380px) {
    .logo {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.2
    }

    .logo span {
        font-size: 1rem
    }
}

@media(min-width:769px) {
    .mobile-nav {
        display: none !important
    }

    .header-inner {
        flex-wrap: wrap
    }
}

main {
    flex: 1;
    padding: 1.25rem 0 2rem
}

h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--text);
    font-weight: 700
}

.page-title-center {
    text-align: center
}

h2 {
    font-size: 1.15rem;
    margin: 1.5rem 0 .6rem;
    color: var(--text);
    font-weight: 700
}

h3 {
    font-size: 1.05rem;
    margin: 1rem 0 .5rem;
    color: var(--text);
    font-weight: 600
}

p {
    margin-bottom: .9rem;
    color: var(--text-muted);
    line-height: 1.6
}

.intro {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1.25rem
}

.feature-list {
    margin: 1rem 0;
    padding-left: 1.4rem
}

.feature-list li {
    margin-bottom: .4rem;
    color: var(--text-muted);
    font-size: .9375rem
}

.game-section {
    margin: 1rem 0
}

.game-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: background .3s, border-color .3s
}

.game-card-large {
    padding: 2.5rem;
    max-width: 560px;
    margin: 0 auto;
    overflow: visible
}

.game-card .game-title {
    font-size: 1.6rem;
    margin: 0 0 .6rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -.02em
}

.game-card .challenge {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5
}

.game-tips {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    background: rgba(232, 90, 140, .08);
    border: 1px solid rgba(232, 90, 140, .2);
    border-radius: var(--radius);
    font-size: .9rem
}

[data-theme="dark"] .game-tips {
    background: rgba(255, 126, 179, .08);
    border-color: rgba(255, 126, 179, .2)
}

.game-tips summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .4rem
}

.game-tips ul {
    margin: 0;
    padding-left: 1.2rem
}

.game-tips li {
    margin: .35rem 0;
    color: var(--text-muted);
    line-height: 1.5
}

.game-tips a {
    color: var(--primary)
}

.cta {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: .85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform .15s, background .2s;
    box-shadow: 0 4px 14px rgba(232, 90, 140, .35)
}

.cta:hover {
    background: var(--primary-dark);
    transform: scale(1.03)
}

.cta-small {
    padding: .5rem 1rem !important;
    font-size: .9rem !important
}

/* Blossom playable game – larger layout */
.blossom-game {
    margin-top: 0;
    padding: 1.25rem 0;
    min-height: 420px;
    display: block;
    overflow: visible
}

.blossom-board {
    max-width: 420px;
    margin: 0 auto
}

.blossom-flower {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 1.5rem
}

.blossom-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    transition: transform .15s
}

.blossom-center:hover {
    transform: translate(-50%, -50%) scale(1.1)
}

.blossom-petal {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    left: 50%;
    top: 50%;
    transition: transform .15s
}

.blossom-petal-0 {
    transform: translate(-50%, -120%)
}

.blossom-petal-0:hover {
    transform: translate(-50%, -120%) scale(1.15)
}

.blossom-petal-1 {
    transform: translate(35%, -85%)
}

.blossom-petal-1:hover {
    transform: translate(35%, -85%) scale(1.15)
}

.blossom-petal-2 {
    transform: translate(65%, 10%)
}

.blossom-petal-2:hover {
    transform: translate(65%, 10%) scale(1.15)
}

.blossom-petal-3 {
    transform: translate(35%, 95%)
}

.blossom-petal-3:hover {
    transform: translate(35%, 95%) scale(1.15)
}

.blossom-petal-4 {
    transform: translate(-50%, 120%)
}

.blossom-petal-4:hover {
    transform: translate(-50%, 120%) scale(1.15)
}

.blossom-petal-5 {
    transform: translate(-135%, 10%)
}

.blossom-petal-5:hover {
    transform: translate(-135%, 10%) scale(1.15)
}

.blossom-controls {
    margin-bottom: 1rem;
    text-align: center
}

.blossom-word {
    min-height: 32px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: .75rem
}

.blossom-btns {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap
}

.blossom-btn {
    padding: .5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s, border-color .2s
}

.blossom-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.blossom-submit {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary)
}

.blossom-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark)
}

.blossom-score {
    margin-bottom: .75rem;
    font-weight: 600;
    color: var(--text)
}

.blossom-found {
    font-size: .9rem;
    color: var(--text-muted);
    max-height: 80px;
    overflow-y: auto;
    overflow-wrap: break-word;
    word-break: break-word
}

.blossom-msg {
    margin-top: .5rem;
    min-height: 24px;
    font-size: .9rem
}

.blossom-ok {
    color: var(--accent);
    font-weight: 600
}

.blossom-err {
    color: var(--primary)
}

.blossom-celebration {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s
}

.blossom-celebration-visible {
    opacity: 1
}

.blossom-celebration-inner {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    border: 2px solid var(--primary);
    max-width: 320px
}

.blossom-celebration-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: .5rem;
    letter-spacing: .5rem
}

.blossom-celebration-sub {
    font-size: 1rem;
    color: var(--primary);
    margin: 0 0 1rem
}

.blossom-celebration-inner p {
    margin: .75rem 0 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text)
}

.blossom-celebration-close {
    margin-top: .5rem
}

.content-section {
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border)
}

/* Word Games section */
.word-games-intro {
    margin: 1.25rem 0
}

.word-games-intro .intro:first-child {
    margin-top: 0
}

.word-games-intro h2 {
    font-size: 1.1rem;
    margin: 1.25rem 0 .6rem;
    color: var(--text)
}

.word-games-intro .intro {
    margin-bottom: .75rem
}

.container-word-games {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem
}

.word-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.25rem 0;
    align-items: stretch
}

.word-game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 300px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    box-sizing: border-box
}

[data-theme="dark"] .word-game-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2)
}

.word-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(232, 90, 140, .15);
    border-color: var(--primary)
}

[data-theme="dark"] .word-game-card:hover {
    box-shadow: 0 12px 28px rgba(255, 126, 179, .2)
}

.word-game-card h3 {
    margin: 0 0 .5rem;
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3
}

.word-game-card .word-game-desc {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    min-height: 5.5em
}

.word-game-card .word-game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
    margin-left: 0
}

.word-game-card .word-game-meta .meta-pill {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .35rem .6rem;
    border-radius: 6px;
    background: rgba(232, 90, 140, .1);
    color: var(--primary);
    border: 1px solid rgba(232, 90, 140, .25);
    flex: 1 1 auto;
    min-width: 4.2em;
    text-align: center
}

[data-theme="dark"] .word-game-card .word-game-meta .meta-pill {
    background: rgba(255, 126, 179, .12);
    border-color: rgba(255, 126, 179, .3)
}

.word-game-card .word-game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto
}

.word-game-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .75rem 1.5rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s, transform .1s
}

.word-game-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.02)
}

.word-game-cta:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px
}

.word-game-cta svg {
    width: 16px;
    height: 16px;
    opacity: .9
}

.word-game-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem 1rem;
    font-size: .85rem;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--primary);
    border-radius: 8px;
    transition: background .2s, color .2s
}

.word-game-cta-secondary:hover {
    background: var(--primary);
    color: #fff !important
}

.word-game-cta-secondary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

.word-game-card:focus-within {
    outline: 2px solid rgba(232, 90, 140, .5);
    outline-offset: 2px
}

.word-game-cta-secondary svg {
    width: 14px;
    height: 14px
}

.game-placeholder {
    min-height: 220px;
    background: linear-gradient(135deg, rgba(107, 201, 107, .04), rgba(232, 90, 140, .04));
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s
}

.game-placeholder:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(107, 201, 107, .08), rgba(232, 90, 140, .08))
}

[data-theme="dark"] .game-placeholder {
    background: linear-gradient(135deg, rgba(93, 217, 93, .06), rgba(255, 126, 179, .06))
}

[data-theme="dark"] .game-placeholder:hover {
    background: linear-gradient(135deg, rgba(93, 217, 93, .1), rgba(255, 126, 179, .1))
}

.game-placeholder-inner {
    text-align: center;
    padding: 2rem;
    max-width: 320px
}

.game-placeholder-inner p {
    margin: .5rem 0;
    color: var(--text-muted)
}

.game-play-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .85rem 1.75rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s, transform .1s
}

.game-play-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.03)
}

.game-play-cta svg {
    width: 18px;
    height: 18px
}

.game-play-note {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .75rem;
    opacity: .9
}

@media(min-width:600px) {
    .word-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem
    }

    .word-game-card {
        min-height: 300px;
        padding: 1.5rem
    }
}

@media(min-width:900px) {
    .word-game-card {
        min-height: 300px;
        padding: 1.5rem
    }
}

@media(max-width:768px) {
    .word-games-grid {
        grid-template-columns: 1fr;
        gap: 1rem
    }

    .word-game-card {
        width: 100%;
        min-height: 0;
        padding: 1.1rem
    }

    .word-game-card h3 {
        font-size: 1.12rem;
        line-height: 1.35
    }

    .word-game-card .word-game-desc {
        font-size: .9rem;
        line-height: 1.6;
        min-height: 0
    }

    .word-game-card .word-game-actions {
        width: 100%;
        flex-direction: column;
        gap: .6rem
    }

    .word-game-cta,
    .word-game-cta-secondary {
        width: 100%;
        justify-content: center
    }
}

/* Quordle / Octordle */
.quordle-grid,
.octordle-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0
}

.quordle-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto
}

.octordle-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

.quordle-board,
.octordle-board {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem
}

.quordle-row,
.octordle-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    justify-content: center
}

.quordle-cell,
.octordle-cell {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text)
}

.quordle-cell.correct,
.octordle-cell.correct {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text)
}

.quordle-cell.present,
.octordle-cell.present {
    background: #c9b458;
    border-color: #c9b458;
    color: #fff
}

.quordle-cell.absent,
.octordle-cell.absent {
    background: var(--text-muted);
    border-color: var(--text-muted);
    color: #fff;
    opacity: .6
}

.quordle-input,
.octordle-input {
    display: flex;
    gap: .5rem;
    margin: 1rem auto;
    max-width: 320px;
    justify-content: center
}

.quordle-input input,
.octordle-input input {
    flex: 1;
    padding: .6rem 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text)
}

.quordle-input button,
.octordle-input button {
    padding: .6rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer
}

.quordle-msg,
.octordle-msg {
    text-align: center;
    min-height: 1.5em;
    font-size: .9rem;
    color: var(--primary)
}

.quordle-win,
.quordle-lose,
.octordle-win,
.octordle-lose {
    text-align: center;
    margin: 1rem 0;
    font-weight: 600
}

.octordle-board {
    padding: .5rem
}

.octordle-cell {
    width: 24px;
    height: 24px;
    font-size: .75rem
}

@media(max-width:700px) {
    .quordle-grid {
        grid-template-columns: 1fr
    }

    .octordle-grid {
        grid-template-columns: 1fr 1fr
    }
}

/* Word Ladder */
.ladder-puzzle {
    margin: 1.5rem 0
}

.ladder-goal {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text)
}

.ladder-path {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem
}

.ladder-step {
    padding: .4rem 0;
    font-size: 1rem;
    color: var(--text-muted)
}

.ladder-word {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .05em
}

.ladder-input {
    display: flex;
    gap: .5rem;
    margin: 1rem 0;
    max-width: 280px
}

.ladder-input input {
    flex: 1;
    padding: .6rem 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text)
}

.ladder-input button {
    padding: .6rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer
}

.ladder-msg {
    min-height: 1.5em;
    font-size: .9rem;
    color: var(--primary)
}

.ladder-win {
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0
}

/* Waffle */
.waffle-section {
    position: relative
}

.waffle-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    justify-content: center
}

.waffle-tool-btn {
    padding: .5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    cursor: pointer;
    transition: background .2s, border-color .2s
}

.waffle-tool-btn:hover {
    background: var(--border);
    border-color: var(--primary)
}

.waffle-game-board {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(244, 162, 97, .06), rgba(232, 90, 140, .04));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border)
}

.waffle-moves {
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text)
}

.waffle-grid {
    display: grid;
    gap: 6px;
    max-width: 200px;
    margin: 0 auto 1rem
}

.waffle-grid.waffle-3x3 {
    grid-template-columns: repeat(3, 1fr)
}

.waffle-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: background .2s, border-color .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
}

.waffle-cell:hover {
    border-color: var(--primary);
    transform: scale(1.05)
}

.waffle-cell.correct {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text)
}

.waffle-cell.present {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.waffle-cell.selected {
    background: rgba(232, 90, 140, .3);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 90, 140, .4)
}

body.waffle-high-contrast .waffle-cell.correct {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff
}

body.waffle-high-contrast .waffle-cell.present {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #000
}

.waffle-modals {
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none
}

.waffle-modals .waffle-modal {
    pointer-events: auto;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem
}

.waffle-modal[hidden] {
    display: none !important
}

.waffle-modal-inner {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    border: 1px solid var(--border);
    position: relative
}

.waffle-modal-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: .25rem
}

.waffle-modal-close:hover {
    color: var(--primary)
}

.waffle-modal h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem
}

.waffle-modal p {
    margin: .5rem 0;
    font-size: .95rem
}

.waffle-example {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin: 1rem 0
}

.waffle-ex-correct,
.waffle-ex-muted {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem
}

.waffle-ex-correct {
    background: var(--accent);
    color: var(--text)
}

.waffle-ex-muted {
    background: var(--border);
    color: var(--text-muted)
}

.waffle-ex-label {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: .25rem
}

.waffle-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0
}

.waffle-stat {
    background: rgba(107, 201, 107, .1);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center
}

.waffle-stat span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary)
}

.waffle-stat span:last-child {
    font-size: .8rem;
    color: var(--text-muted)
}

.waffle-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0
}

.waffle-setting-desc {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: -.5rem
}

.waffle-toggle {
    padding: .4rem .9rem;
    background: var(--border);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: .9rem
}

.waffle-toggle[aria-pressed="true"] {
    background: var(--accent);
    color: var(--text)
}

body.waffle-modal-open {
    overflow: hidden
}

.waffle-hint,
.waffle-lose,
.waffle-win {
    text-align: center;
    font-size: .95rem;
    margin: .75rem 0;
    font-weight: 600
}

.link-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0
}

.link-card {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: background .3s, border-color .3s
}

.link-card a {
    font-weight: 600;
    display: block;
    margin-bottom: .4rem
}

.link-card p {
    font-size: .875rem;
    margin: 0;
    color: var(--text-muted)
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0
}

.info-card {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: background .3s, border-color .3s
}

.info-card h3 {
    margin-top: 0
}

/* Game Details table */
.game-details-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow);
    margin: 1rem 0;
    transition: background .3s, border-color .3s;
    -webkit-overflow-scrolling: touch
}

.game-details-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px
}

.game-details-table th,
.game-details-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border)
}

.game-details-table th {
    background: var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: .9rem
}

.game-details-table td {
    color: var(--text-muted);
    font-size: .9375rem
}

.game-details-table tr:last-child td {
    border-bottom: none
}

.game-details-note {
    text-align: center;
    padding: 1rem;
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border)
}

.faq-list {
    margin: 1rem 0
}

.faq-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border)
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0
}

.faq-item h3,
.faq-item h4 {
    font-size: 1rem;
    margin: 0 0 .5rem;
    color: var(--text)
}

.faq-item p {
    margin: 0;
    font-size: .9375rem
}

.score-tiers {
    list-style: none;
    margin: .5rem 0
}

.score-tiers li {
    padding: .4rem 0;
    padding-left: 1.25rem;
    position: relative
}

.score-tiers li::before {
    content: "\2731";
    position: absolute;
    left: 0;
    color: var(--accent)
}

.date-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: .35rem .75rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 1rem
}

.blog-item {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: background .3s, border-color .3s
}

.blog-item h2 {
    margin-top: 0
}

.blog-item h2 a {
    color: var(--text)
}

.blog-item h2 a:hover {
    color: var(--primary)
}

/* Today's Hints – gaming-style card */
.hint-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: background .3s, border-color .3s, box-shadow .2s
}

.hint-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: var(--radius) 0 0 var(--radius)
}

.hint-box:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, .1)
}

[data-theme="dark"] .hint-box:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, .35)
}

.hint-box h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--text);
    padding-left: .25rem
}

.hint-box ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none
}

.hint-box li {
    margin-bottom: .65rem;
    padding-left: .5rem;
    position: relative;
    color: var(--text-muted);
    line-height: 1.55
}

.hint-box li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: .5em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%
}

.hint-box li:last-child {
    margin-bottom: 0
}

/* Today's Solution – answers list */
.solution-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: background .3s, border-color .3s
}

.solution-section h2 {
    margin: 0 0 .75rem;
    font-size: 1.2rem;
    color: var(--text)
}

.solution-note {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6
}

.answers-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border)
}

.answers-toolbar .cta-small {
    padding: .5rem 1rem;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem
}

.answers-toolbar .btn-icon {
    font-size: 1.1em;
    opacity: .9
}

.answers-status {
    font-size: .9rem;
    color: var(--text-muted)
}

.answers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .6rem 1.25rem;
    max-width: 960px
}

.solution-section .answers-list {
    margin-top: .5rem
}

.answers-list li {
    padding: .7rem .85rem;
    background: rgba(107, 201, 107, .08);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--text);
    border-left: 3px solid var(--accent);
    transition: background .2s
}

[data-theme="dark"] .answers-list li {
    background: rgba(93, 217, 93, .08)
}

.word-games-answers-section h2 time {
    font-weight: 600;
    color: var(--primary)
}

.word-games-answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    align-items: start
}

@media(min-width:540px) {
    .word-games-answers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(min-width:1100px) {
    .word-games-answers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
}

.wg-answer-card {
    display: flex;
    flex-direction: column;
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s
}

.wg-answer-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12)
}

.wg-card-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0
}

.wg-card-words {
    margin-bottom: .5rem
}

.wg-words-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.wg-words-list li {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    padding: .15rem 0;
    color: var(--text);
    letter-spacing: .01em
}

.wg-words-list--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: .75rem;
    row-gap: .15rem
}

.wg-answer-words-single {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.45
}

.wg-answer-card h3 {
    margin: 0 0 .6rem;
    font-size: 1.125rem;
    line-height: 1.35;
    color: var(--text)
}

.wg-answer-card h3 a {
    color: inherit;
    text-decoration: none;
    font-weight: 700
}

.wg-answer-card h3 a:hover {
    color: var(--primary)
}

.wg-answer-label {
    font-weight: 500;
    font-size: .9em;
    color: var(--text-muted)
}

.wg-answer-meta {
    margin: 0;
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.4
}

.wg-card-footer {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0
}

.wg-play-link {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    white-space: nowrap
}

.word-games-answers-section .solution-note {
    font-size: .95rem
}

.wg-guides-section {
    margin-top: 2rem
}

.wg-guides-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem
}

@media(min-width:768px) {
    .wg-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.wg-guide-block {
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem
}

.wg-guide-block h3 {
    margin: 0 0 .65rem;
    font-size: 1.05rem;
    color: var(--text)
}

.wg-guide-list,
.wg-guide-block ul {
    margin: 0 0 .75rem;
    padding-left: 1.2rem;
    line-height: 1.55;
    font-size: .9375rem
}

.wg-guide-tip {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.5
}

.table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9375rem;
    background: var(--surface, var(--bg));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border)
}

.compare-table th,
.compare-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top
}

.compare-table thead th {
    background: rgba(232, 90, 140, .08);
    font-weight: 700;
    color: var(--text)
}

.compare-table tbody th[scope="row"] {
    font-weight: 600
}

.compare-table a {
    font-weight: 600;
    white-space: nowrap
}

.faq-section {
    margin-top: 1.5rem
}

.faq-section > .solution-note {
    margin-bottom: 1rem
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-top: .5rem
}

.faq-accordion-item {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible
}

.faq-accordion-item[open] {
    border: none
}

.faq-accordion-q {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text);
    user-select: none;
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color .2s
}

.faq-accordion-item[open] .faq-accordion-q {
    border-color: var(--primary)
}

.faq-accordion-q::-webkit-details-marker,
.faq-accordion-q::marker {
    display: none;
    content: ''
}

.faq-accordion-label {
    flex: 1;
    min-width: 0
}

.faq-accordion-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    color: var(--primary);
    transition: transform .2s, background .2s
}

.faq-accordion-item[open] .faq-accordion-icon {
    transform: rotate(45deg);
    background: rgba(232, 90, 140, .12)
}

.faq-accordion-a {
    padding: .7rem 0 .25rem 1.15rem;
    border: none;
    background: transparent
}

.faq-accordion-a p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--text-muted)
}

.faq-list {
    margin-top: 1rem
}

.faq-item {
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: .85rem
}

.faq-item h3 {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text)
}

.faq-item p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-muted)
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.footer-contact-emails {
    margin: .5rem 0 0;
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.5
}

.footer-contact-emails a {
    color: var(--text-muted)
}

.word-games-answers-footer {
    display: none
}

.wg-answer-list {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: break-word
}

.game-steps {
    margin: .75rem 0 1rem;
    padding-left: 1.35rem;
    line-height: 1.7
}

.game-steps li {
    margin-bottom: .4rem
}

.quick-tip {
    margin: 0 0 1.5rem;
    padding: .75rem 1rem;
    background: rgba(107, 201, 107, .08);
    border-radius: 8px;
    font-size: .9rem;
    border-left: 3px solid var(--accent)
}

[data-theme="dark"] .quick-tip {
    background: rgba(93, 217, 93, .08)
}

.game-answer-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.game-answer-section h2 {
    margin: 0 0 .75rem;
    font-size: 1.1rem
}

.game-answer-spoiler summary {
    cursor: pointer;
    font-weight: 600;
    padding: .5rem 0;
    color: var(--primary)
}

.game-answer-spoiler summary:hover {
    text-decoration: underline
}

.game-answer-text {
    margin: .75rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text)
}

.answers-list li:hover {
    background: rgba(107, 201, 107, .15)
}

[data-theme="dark"] .answers-list li:hover {
    background: rgba(93, 217, 93, .12)
}

.answers-list li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: .25rem
}

.answers-list li .pangram {
    font-weight: 600;
    color: var(--primary)
}

.answers-list li.answers-more {
    background: transparent;
    border-left-style: dashed;
    color: var(--text-muted);
    font-style: italic
}

.answers-cta {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(232, 90, 140, .08);
    border-radius: var(--radius);
    border: 1px solid rgba(232, 90, 140, .2);
    text-align: center
}

[data-theme="dark"] .answers-cta {
    background: rgba(255, 126, 179, .08);
    border-color: rgba(255, 126, 179, .2)
}

.answers-cta-title {
    margin: 0 0 .75rem;
    font-weight: 600;
    color: var(--text)
}

.answers-cta-links {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted)
}

.form-group {
    margin-bottom: 1rem
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: .35rem
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: .6rem .875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text)
}

.form-group textarea {
    min-height: 120px;
    resize: vertical
}

.legal-page .contact-form {
    max-width: 36rem;
    margin-bottom: 1.5rem
}

.legal-page .contact-form .form-group:last-of-type {
    margin-bottom: 1.25rem
}

.legal-page .contact-form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0
}

.legal-page .contact-form .cta {
    margin: 0
}

.legal-page .contact-faq {
    margin-top: 1.75rem;
    margin-bottom: 2rem
}

.contact-form-status,
.form-notice-status,
.subscribe-form-status {
    margin: 0.75rem 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .95rem;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box
}

.footer-subscribe .form-notice-status,
.footer-subscribe .subscribe-form-status {
    margin-top: 0.5rem
}

.footer-subscribe form.is-subscribed .subscribe-form-status,
.mobile-subscribe form.is-subscribed .subscribe-form-status {
    margin-top: 0
}

.footer-subscribe form {
    min-height: 44px
}

.footer-subscribe form.is-subscribed {
    min-height: auto
}

.contact-form-status.is-success,
.form-notice-status.is-success,
.subscribe-form-status.is-success {
    background: rgba(107, 201, 107, .15);
    color: #2d8a2d;
    border: 1px solid rgba(107, 201, 107, .45)
}

[data-theme="dark"] .contact-form-status.is-success,
[data-theme="dark"] .form-notice-status.is-success,
[data-theme="dark"] .subscribe-form-status.is-success {
    color: #8ee08e
}

.contact-form-status.is-error,
.form-notice-status.is-error,
.subscribe-form-status.is-error {
    background: rgba(220, 53, 69, .1);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, .35)
}

[data-theme="dark"] .contact-form-status.is-error,
[data-theme="dark"] .form-notice-status.is-error,
[data-theme="dark"] .subscribe-form-status.is-error {
    color: #ff8a96
}

.legal-page .form-disclaimer {
    margin: 1rem 0 0;
    padding: 0;
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 32rem
}

/* Gaming footer */
footer {
    width: 100%;
    background: var(--surface);
    border-top: 2px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
    transition: background .3s, border-color .3s
}

.footer-wrap {
    width: 100%
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin-bottom: .75rem;
    flex: 1 1 100%
}

.footer-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    padding: 0 1rem 0 0;
    border-right: 1px solid var(--border)
}

.footer-links a:first-child {
    padding-left: 0
}

.footer-links a:last-child {
    border-right: none;
    padding-right: 0
}

.footer-links a:hover {
    color: var(--primary)
}

.footer-text {
    flex: 1 1 260px;
    max-width: 520px
}

.footer-note {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .4rem
}

.copyright {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500
}

.footer-subscribe {
    flex: 1 1 260px;
    max-width: 340px
}

.footer-subscribe-title {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 .5rem
}

.footer-subscribe-row-desktop {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem
}

.footer-subscribe-row-desktop input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: .55rem .85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: .9rem;
    background: var(--surface);
    color: var(--text);
    min-height: 40px
}

.footer-subscribe-row-desktop button {
    padding: .55rem 1.1rem;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 40px;
    transition: background .2s, transform .1s
}

.footer-subscribe-row-desktop button:hover {
    background: var(--primary-dark)
}

.footer-subscribe-row-desktop button:active {
    transform: scale(0.98)
}

@media(max-width:600px) {
    footer {
        padding: 1.25rem 0
    }

    .footer-wrap {
        width: 100%;
        text-align: center
    }

    .footer-inner {
        flex-direction: column;
        align-items: center !important;
        justify-content: flex-start;
        text-align: center !important;
        gap: .75rem
    }

    .footer-links {
        width: 100%;
        justify-content: center !important;
        text-align: center !important
    }

    .footer-text {
        max-width: 100%;
        text-align: center !important
    }

    .footer-note,
    .copyright {
        text-align: center !important
    }

    .footer-subscribe {
        width: 100%;
        max-width: 420px;
        margin-top: 0
    }

    .footer-subscribe-title {
        margin-bottom: .35rem
    }

    .footer-subscribe-row-desktop {
        flex-direction: column
    }

    .footer-subscribe-row-desktop button {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center
    }
}

@media(max-width:480px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: .75rem
    }

    .footer-links a {
        border-right: none;
        padding: .25rem 0
    }
}

@media(min-width:600px) {
    h1 {
        font-size: 1.65rem
    }

    .container {
        padding: 0 1.5rem
    }

    .link-cards {
        grid-template-columns: 1fr 1fr
    }

    .header-inner,
    .footer-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }
}

@media(min-width:900px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:700px) {
    .link-cards {
        grid-template-columns: repeat(3, 1fr)
    }
}

/* Subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.anim-fade {
    animation: fadeIn .5s ease-out forwards;
    opacity: 0
}

.anim-delay-1 {
    animation-delay: .15s
}

.anim-delay-2 {
    animation-delay: .25s
}

.anim-delay-3 {
    animation-delay: .35s
}

.today-letters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 1rem 0
}

.today-letter-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem
}

.today-letter-petal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    background: rgba(107, 201, 107, .15);
    border: 1px solid var(--border);
    font-weight: 600
}

.today-puzzle-info {
    margin-bottom: 1.5rem
}

.answers-day + .answers-day {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border)
}

.legal-page h2 {
    margin-top: 1.75rem;
    margin-bottom: .65rem;
    font-size: 1.2rem
}

.legal-page h3 {
    margin-top: 1.25rem;
    margin-bottom: .5rem;
    font-size: 1.05rem
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: var(--text)
}

.legal-page ul {
    margin: 0 0 1.15rem 1.35rem;
    padding: 0;
    line-height: 1.7
}

.legal-page li {
    margin-bottom: .45rem
}

.legal-page .intro {
    font-size: 1.05rem;
    margin-bottom: 1.25rem
}

/* Legal / About / Contact – no top border line above h1 */
.container.legal-page {
    margin-top: 0;
    padding-top: 0;
    border-top: none
}

.container.legal-page.content-section {
    border-top: none;
    padding-top: 0;
    margin-top: 0
}

.legal-page h1 {
    margin-top: 0;
    padding-top: 0
}