:root {
    --bg: #071323;
    --panel: rgba(10, 24, 52, 0.9);
    --panel-soft: rgba(255, 255, 255, 0.08);
    --text: #f5f8ff;
    --muted: #d8e0ff;
    --accent: #ffd44d;
    --accent-strong: #ff9f1c;
    --danger: #ef476f;
    --danger-strong: #cf2d58;
    --sky: #6fc1ff;
    --border: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 77, 0.16), transparent 18%),
        radial-gradient(circle at 85% 12%, rgba(111, 193, 255, 0.16), transparent 18%),
        linear-gradient(180deg, #132d5c 0%, #071323 44%, #040a12 100%);
}

.page {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 20px 0 36px;
}

.shell,
.hero,
.section,
.game-shell {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.shell {
    padding: 18px 22px;
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
}

nav a.active,
nav a:hover {
    color: #102348;
    background: var(--accent);
}

.hero,
.section {
    margin-top: 18px;
    padding: 28px;
    border-radius: 32px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 900;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.lead,
.hero-list li,
.card p,
.meta p,
.game-copy p,
.game-copy li,
.embed-note {
    color: var(--muted);
    line-height: 1.7;
}

.hero-list {
    margin: 18px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.meta {
    padding: 22px;
    border-radius: 28px;
    background: var(--panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    display: grid;
    gap: 0;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.08);
}

.card-thumb-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-fallback {
    position: absolute;
    inset: 0;
    display: none;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 77, 0.18), transparent 20%),
        linear-gradient(145deg, rgba(19, 45, 92, 0.95), rgba(7, 19, 35, 0.98));
    align-items: end;
    color: var(--text);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.1;
    z-index: 1;
}

.card-play-bubble {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 16px 28px rgba(255, 159, 28, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.card-play-bubble .icon-play {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 20px;
    margin-left: 5px;
}

.card-overlay-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.card-body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.card-body p {
    font-size: 1rem;
}

.badge {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #11264f;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.visual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card a,
.back-link,
.play-link,
.secondary-button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.card a,
.play-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0d2148;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.icon-button {
    gap: 10px;
}

.icon-chip {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 33, 72, 0.18);
    flex: 0 0 24px;
}

.icon-play {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #0d2148;
    margin-left: 2px;
}

.icon-frame {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
}

.quick-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.guide-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    gap: 10px;
}

.guide-visual {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255, 212, 77, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
}

.guide-visual.play-shape::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid var(--accent);
    margin-left: 4px;
}

.guide-visual.expand-shape::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid var(--accent);
}

.guide-card p {
    margin: 0;
}

.easy-mode-banner {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 212, 77, 0.18), rgba(111, 193, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.easy-mode-banner strong {
    font-size: 1.05rem;
}

.back-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.game-shell {
    margin-top: 18px;
    padding: 22px;
    border-radius: 32px;
}

.game-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.game-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 18px;
}

.game-copy,
.embed-wrap,
.game-preview {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.game-copy {
    display: grid;
    align-content: start;
}

.game-copy ul {
    padding-left: 18px;
    margin-bottom: 18px;
}

.game-preview {
    display: grid;
    gap: 12px;
}

.game-preview-button {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}

.game-preview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.game-preview-visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.game-preview-visual .cover-fallback {
    border-radius: 18px;
}

.preview-start {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 18px 28px rgba(255, 159, 28, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d2148;
}

.preview-start .icon-play {
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 22px;
    margin-left: 6px;
}

.preview-note {
    margin: 0;
    color: var(--muted);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.embed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 18px;
    background: #03060d;
}

.embed-placeholder {
    display: none;
    gap: 12px;
    place-items: start;
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.embed-placeholder:hover {
    border-color: rgba(255, 212, 77, 0.45);
}

.big-play {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 18px 28px rgba(255, 159, 28, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-play .icon-play {
    border-top-width: 15px;
    border-bottom-width: 15px;
    border-left-width: 24px;
    margin-left: 6px;
}

.embed-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.embed-toolbar p {
    margin: 0;
    color: var(--muted);
}

.embed-wrap.is-active .embed-placeholder {
    display: none;
}

.embed-note {
    margin-top: 12px;
    font-size: 0.92rem;
}

code {
    font-family: "Consolas", "Courier New", monospace;
    color: #fff1aa;
}

@media (max-width: 980px) {
    .hero,
    .grid,
    .quick-guide,
    .cards,
    .game-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 16px, 1180px);
        padding-top: 14px;
    }

    .shell,
    .hero,
    .section,
    .game-shell {
        padding: 18px;
        border-radius: 28px;
    }
}
