*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --teal-deep: #0b3d41;
    --teal-mid: #005b5b;
    --teal-light: #1a6b6b;
    --cyan-glow: #00d4ff;
    --orange-fire: #ff9a2e;
    --gold-bright: #ffd700;
    --gold-soft: #ffb347;
    --red-health: #e63946;
    --stone-dark: #2a2a35;
    --stone-mid: #3d3d4a;
    --text-light: #f0f8f8;
    --text-muted: #a8c4c4;
    --wood-brown: #6b4226;
    --frame-width: 1024px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--teal-deep);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 154, 46, 0.06) 0%, transparent 50%);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-glow); transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.site-frame {
    width: 100%;
    max-width: var(--frame-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ── Header ── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(11, 61, 65, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 16px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
    flex-shrink: 0;
}

.brand-logo { width: 44px; height: 44px; object-fit: contain; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--gold-bright);
}

.brand-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.nav-toggle {
    display: none;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: var(--text-light);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.25);
}

.main-nav a.is-active {
    color: var(--gold-bright);
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.35);
}

/* Per-page nav accent */
.nav-style-about a.is-active { color: var(--cyan-glow); border-color: rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.12); }
.nav-style-game a.is-active { color: var(--orange-fire); border-color: rgba(255, 154, 46, 0.4); background: rgba(255, 154, 46, 0.12); }
.nav-style-contact a.is-active { color: #7ee787; border-color: rgba(126, 231, 135, 0.4); background: rgba(126, 231, 135, 0.1); }
.nav-style-shop a.is-active { color: var(--gold-bright); border-color: rgba(255, 215, 0, 0.5); background: rgba(255, 215, 0, 0.15); }

/* ── Intro Banner (Home) ── */
.intro-banner {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--teal-mid);
}

.intro-banner-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.intro-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 61, 65, 0.92) 0%, rgba(0, 91, 91, 0.75) 50%, rgba(11, 61, 65, 0.88) 100%);
}

.intro-banner-inner {
    position: relative;
    z-index: 2;
    display: contents;
}

.intro-banner-copy {
    padding: 48px 20px 48px 40px;
    position: relative;
    z-index: 2;
}

.intro-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 154, 46, 0.2);
    border: 1px solid rgba(255, 154, 46, 0.5);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-fire);
    margin-bottom: 14px;
}

.intro-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 12px;
}

.intro-title em {
    font-style: normal;
    color: var(--gold-bright);
}

.intro-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 420px;
}

.intro-banner-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.intro-banner-visual img {
    max-height: 320px;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cta-row a img {
    height: 52px;
    width: auto;
    transition: transform 0.2s, filter 0.2s;
}

.cta-row a:hover img {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ── Section blocks ── */
.section-block { padding: 56px 0; }

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan-glow);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 640px;
    margin-bottom: 28px;
}

.stone-panel {
    background: linear-gradient(160deg, rgba(42, 42, 53, 0.85) 0%, rgba(26, 50, 50, 0.9) 100%);
    border: 2px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

/* ── Home mosaic layout ── */
.home-mosaic {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    margin-bottom: 24px;
}

.home-mosaic-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mosaic-card {
    background: linear-gradient(160deg, rgba(42, 42, 53, 0.8), rgba(11, 61, 65, 0.85));
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color 0.25s, transform 0.25s;
}

.mosaic-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
}

.mosaic-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.mosaic-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.mosaic-card img {
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    border: 2px solid rgba(0, 212, 255, 0.15);
}

.mini-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.mini-feature i {
    color: var(--orange-fire);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.mini-feature span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--cyan-glow);
}

.text-link:hover { color: var(--gold-bright); }

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold-bright), var(--orange-fire));
    color: var(--stone-dark);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid var(--wood-brown);
    box-shadow: 0 4px 16px rgba(255, 154, 46, 0.35);
    transition: transform 0.2s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    color: var(--stone-dark);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--cyan-glow);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(0, 212, 255, 0.4);
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--gold-bright);
    border-color: var(--gold-bright);
}

/* Screenshot strip */
.shot-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.shot-strip img {
    flex: 0 0 220px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(0, 212, 255, 0.2);
    scroll-snap-align: start;
}

/* ── About page: timeline layout ── */
.page-about .about-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
}

.about-visual {
    position: sticky;
    top: 90px;
}

.about-visual img {
    border-radius: var(--radius-md);
    border: 3px solid rgba(255, 154, 46, 0.3);
    box-shadow: var(--shadow-glow);
}

.about-visual-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.about-timeline { position: relative; padding-left: 28px; }

.about-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--cyan-glow), var(--orange-fire));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--gold-bright);
    border: 3px solid var(--teal-deep);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.timeline-item h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.vision-box {
    background: linear-gradient(135deg, rgba(255, 154, 46, 0.15), rgba(255, 215, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 8px;
}

.vision-box h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--orange-fire);
    margin-bottom: 10px;
}

.vision-box p { color: var(--text-light); font-size: 1rem; }

/* ── Game page: tab-style sections ── */
.page-game .game-intro-banner {
    text-align: center;
    padding: 40px 0 32px;
}

.page-game .game-logo {
    max-width: 280px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.15);
    padding-bottom: 12px;
}

.game-tab-label {
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.game-tab-label:hover {
    color: var(--text-light);
    background: rgba(0, 212, 255, 0.14);
}

.game-tab-label.is-highlight {
    color: var(--gold-bright);
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.35);
}

.game-tab-panel {
    display: none;
    animation: tabFadeIn 0.25s ease;
}

.game-tab-panel.is-active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feature-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.feature-table tr {
    background: rgba(42, 42, 53, 0.6);
    transition: background 0.2s;
}

.feature-table tr:hover {
    background: rgba(0, 212, 255, 0.08);
}

.feature-table td {
    padding: 16px 20px;
    vertical-align: top;
}

.feature-table td:first-child {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--orange-fire);
    width: 28%;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-left: 3px solid var(--cyan-glow);
}

.feature-table td:last-child {
    color: var(--text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.game-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.game-gallery img {
    border-radius: var(--radius-sm);
    border: 2px solid rgba(0, 212, 255, 0.15);
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.25s;
}

.game-gallery img:hover { transform: scale(1.03); }

/* ── Contact page: icon cards ── */
.page-contact .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.contact-card {
    background: linear-gradient(160deg, rgba(42, 42, 53, 0.85), rgba(11, 61, 65, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--shadow-glow);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.12);
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--cyan-glow);
}

.contact-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange-fire);
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    font-size: 0.92rem;
    color: var(--text-light);
    text-decoration: none;
    word-break: break-word;
}

.contact-card a:hover { color: var(--gold-bright); }

.contact-map-note {
    text-align: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Shop page ── */
.page-shop .shop-head { margin-bottom: 24px; }

.shop-notes {
    list-style: none;
    margin-bottom: 24px;
}

.shop-notes li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.shop-notes li i {
    color: var(--gold-bright);
    margin-top: 3px;
    flex-shrink: 0;
}

.currency-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.currency-bar-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-switcher { display: flex; flex-wrap: wrap; gap: 8px; }

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(42, 42, 53, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.currency-btn.is-active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

.currency-symbol { font-size: 1rem; }

.shop-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.shop-panel, .checkout-panel {
    background: linear-gradient(160deg, rgba(42, 42, 53, 0.85), rgba(11, 61, 65, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
}

.shop-panel h2, .checkout-panel h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--gold-bright);
    margin-bottom: 16px;
}

.coin-list-scroll {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.coin-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coin-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.coin-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
}

.coin-card.is-selected {
    border-color: var(--gold-bright);
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

.coin-card img { width: 48px; height: 48px; object-fit: contain; }

.coin-info .coin-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
}

.coin-info .coin-price {
    font-family: 'Fredoka', sans-serif;
    color: var(--gold-bright);
    font-size: 1rem;
}

.coin-pick {
    padding: 6px 14px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cyan-glow);
}

.coin-card.is-selected .coin-pick {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

.coin-loading, .coin-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.coin-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--cyan-glow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.checkout-panel { position: sticky; top: 90px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group label .required { color: var(--red-health); }

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.92rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cyan-glow);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-group input:disabled,
.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.selected-display {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.selected-display.has-value {
    border-style: solid;
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--text-light);
}

.payment-options { display: flex; flex-direction: column; gap: 8px; }

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.payment-option.is-selected {
    border-color: var(--cyan-glow);
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-light);
}

.payment-option input { accent-color: var(--cyan-glow); }

.payment-option i { color: var(--orange-fire); width: 20px; text-align: center; }

.agree-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.agree-row input { margin-top: 4px; accent-color: var(--gold-bright); flex-shrink: 0; }
.agree-row a { color: var(--cyan-glow); }

.field-error {
    display: block;
    color: var(--red-health);
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 0;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold-bright), var(--orange-fire));
    color: var(--stone-dark);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--wood-brown);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 8px;
}

.btn-submit:hover:not(:disabled) { transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.shop-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: var(--radius-sm);
    color: #ffb3b3;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.order-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: none;
}

.order-message.error {
    display: block;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.4);
    color: #ffb3b3;
}

/* ── Transaction pages (confirm, payfinish, error) ── */
.transaction-wrap { padding: 48px 0; }

.transaction-card {
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(42, 42, 53, 0.9), rgba(11, 61, 65, 0.95));
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.transaction-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.transaction-card h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: var(--gold-bright);
    margin-bottom: 8px;
}

.transaction-card > p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.order-details {
    text-align: left;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
    font-size: 0.9rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-row .label {
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.detail-row .value {
    color: var(--text-light);
    text-align: right;
    word-break: break-all;
}

.detail-row .value.total {
    color: var(--gold-bright);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
}

.payment-redirect {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.payment-redirect p { color: var(--text-muted); margin-bottom: 12px; }

.countdown {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: var(--gold-bright);
    margin-bottom: 12px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.btn-action.primary {
    background: linear-gradient(135deg, var(--gold-bright), var(--orange-fire));
    color: var(--stone-dark);
    border: 2px solid var(--wood-brown);
}

.btn-action.secondary {
    background: transparent;
    color: var(--cyan-glow);
    border: 2px solid rgba(0, 212, 255, 0.4);
}

.btn-action:hover { transform: translateY(-2px); }

.transaction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.result-icon { font-size: 3.5rem; margin-bottom: 16px; }
.result-icon.success { color: #7ee787; }
.result-icon.fail { color: var(--red-health); }

.error-code {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(230, 57, 70, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb3b3;
    margin-bottom: 12px;
}

/* ── Footer ── */
.site-footer {
    background: rgba(0, 0, 0, 0.35);
    border-top: 2px solid rgba(0, 212, 255, 0.12);
    padding: 32px 0 24px;
    margin-top: auto;
}

.footer-inner { text-align: center; }

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img { width: 36px; height: 36px; }

.footer-brand strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    color: var(--gold-bright);
    font-size: 0.95rem;
}

.footer-brand span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
}

.footer-links a:hover { color: var(--gold-bright); }

.footer-copy {
    font-size: 0.78rem;
    color: rgba(168, 196, 196, 0.5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .intro-banner { grid-template-columns: 1fr; min-height: auto; }
    .intro-banner-copy { padding: 36px 20px 20px; }
    .intro-banner-visual { padding: 0 20px 36px; }
    .intro-banner-visual img { max-height: 220px; }
    .home-mosaic, .about-layout, .shop-layout { grid-template-columns: 1fr; }
    .home-mosaic-wide { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .game-gallery { grid-template-columns: repeat(2, 1fr); }
    .about-visual { position: static; }
    .checkout-panel { position: static; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 61, 65, 0.98);
        border-bottom: 2px solid rgba(0, 212, 255, 0.2);
        padding: 12px 20px;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; }
    .top-bar { position: relative; }
    .top-bar-inner { position: relative; flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .intro-title { font-size: 1.8rem; }
    .game-gallery { grid-template-columns: 1fr; }
    .feature-table td:first-child { width: 35%; }
}
