/* Realm Tower Guard — Gardeno Games LLC */
:root {
    --gold: #F1C40F;
    --amber: #E67E22;
    --rust: #C0392B;
    --crimson: #922B21;
    --slate: #34495E;
    --stone: #5D4E37;
    --wood: #3E2723;
    --wood-light: #6D4C41;
    --parchment: #F5E6C8;
    --parchment-dark: #E8D4B0;
    --cream: #FFF8EE;
    --ink: #2C1810;
    --cyan: #00B4D8;
    --cyan-glow: rgba(0, 180, 216, 0.35);
    --shadow: rgba(44, 24, 16, 0.25);
    --sidebar-w: 260px;
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.realm-body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--parchment);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--rust); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--crimson); }

img { max-width: 100%; height: auto; display: block; }

/* ── Shell & Sidebar ── */
.realm-shell { display: flex; min-height: 100vh; }

.realm-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, var(--wood) 0%, #2C1810 100%);
    border-right: 4px solid var(--gold);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.2);
    text-decoration: none;
}
.sidebar-brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.sidebar-brand-text em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sidebar-brand-text strong {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--cream);
}

.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-nav ul { list-style: none; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    color: rgba(255, 248, 238, 0.75);
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}
.sidebar-link:hover {
    color: var(--cream);
    background: rgba(241, 196, 15, 0.08);
    border-left-color: var(--amber);
}
.sidebar-link.is-active {
    color: var(--gold);
    background: rgba(241, 196, 15, 0.12);
    border-left-color: var(--gold);
}
.sidebar-link-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.25);
    border-radius: 50%;
    font-size: 0.85rem;
}
.sidebar-link.is-active .sidebar-link-icon {
    background: var(--rust);
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.4);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(241, 196, 15, 0.15);
    font-size: 0.72rem;
    color: rgba(255,248,238,0.45);
}
.sidebar-policy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.sidebar-policy a {
    color: rgba(241, 196, 15, 0.75);
    font-size: 0.72rem;
    transition: color 0.2s;
}
.sidebar-policy a:hover { color: var(--gold); }

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px; left: 14px;
    z-index: 1100;
    width: 44px; height: 44px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--wood);
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
}

.realm-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
}

/* ── Ribbon Banner ── */
.ribbon-banner {
    display: inline-block;
    background: linear-gradient(135deg, var(--rust) 0%, var(--crimson) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 28px;
    position: relative;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 4px 12px var(--shadow);
}
.ribbon-banner::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid var(--crimson);
}

.page-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--ink);
    margin-bottom: 8px;
}
.page-subheading {
    color: var(--stone);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 32px;
}

/* ── Stone Card ── */
.stone-card {
    background: var(--cream);
    border: 3px solid var(--stone);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: 0 6px 24px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
}
.stone-card::before {
    content: '';
    position: absolute;
    top: -3px; left: 20px; right: 20px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.content-pad { padding: 40px 48px 60px; }

/* ── Home Hero ── */
.home-hero {
    position: relative;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(44,24,16,0.88) 0%, rgba(44,24,16,0.55) 45%, rgba(230,126,34,0.25) 100%);
    z-index: 1;
}
.home-hero-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
}
.home-hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.home-hero-right img {
    max-height: 340px;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
    animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.home-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--gold);
    line-height: 1.15;
    margin: 16px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.home-hero .hero-tagline {
    color: rgba(255,248,238,0.88);
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 28px;
}
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.cta-play img {
    height: 60px;
    transition: transform 0.2s, filter 0.2s;
}
.cta-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.cta-stores a img {
    height: 48px;
    transition: transform 0.2s, filter 0.2s;
}
.cta-play:hover img,
.cta-stores a:hover img {
    transform: scale(1.04);
    filter: brightness(1.1);
}

/* ── Stats Strip ── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--slate);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}
.stat-cell {
    text-align: center;
    padding: 22px 16px;
    border-right: 1px solid rgba(241,196,15,0.15);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
}
.stat-cell .stat-lbl {
    font-size: 0.82rem;
    color: rgba(255,248,238,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Zigzag Sections ── */
.zigzag-section {
    padding: 56px 48px;
}
.zigzag-section:nth-child(even) {
    background: linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment) 100%);
}
.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.zigzag-row.reverse { direction: rtl; }
.zigzag-row.reverse > * { direction: ltr; }

.zigzag-media img {
    border-radius: var(--radius);
    border: 4px solid var(--stone);
    box-shadow: 0 8px 28px var(--shadow);
}
.zigzag-body h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--ink);
    margin-bottom: 16px;
}
.zigzag-body p { margin-bottom: 14px; color: var(--stone); }
.zigzag-body .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-weight: 700;
    color: var(--rust);
}

/* ── Feature Orbs ── */
.feature-orbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 32px auto 0;
}
.orb-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--cream);
    border: 2px solid var(--parchment-dark);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}
.orb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--gold);
}
.orb-icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--slate), var(--wood));
    border: 3px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    box-shadow: 0 4px 12px var(--shadow);
}
.orb-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--ink);
}
.orb-card p { font-size: 0.88rem; color: var(--stone); }

/* ── Screenshot Fan ── */
.screenshot-fan {
    display: flex;
    justify-content: center;
    gap: -20px;
    padding: 40px 48px 56px;
    perspective: 800px;
}
.fan-item {
    width: 200px;
    transform-origin: bottom center;
    transition: transform 0.3s;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 3px solid var(--stone);
    box-shadow: 0 8px 24px var(--shadow);
}
.fan-item-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    line-height: 0;
}
.fan-item-trigger img {
    width: 100%;
    display: block;
    transition: filter 0.2s;
}
.fan-item-trigger:hover img {
    filter: brightness(1.08);
}
.fan-item-trigger:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.fan-item:nth-child(1) { transform: rotate(-8deg) translateY(10px); z-index: 1; }
.fan-item:nth-child(2) { transform: rotate(-3deg); z-index: 2; margin: 0 -10px; }
.fan-item:nth-child(3) { transform: rotate(0deg); z-index: 3; }
.fan-item:nth-child(4) { transform: rotate(3deg); z-index: 2; margin: 0 -10px; }
.fan-item:nth-child(5) { transform: rotate(8deg) translateY(10px); z-index: 1; }
.fan-item:hover { transform: rotate(0deg) translateY(-12px) scale(1.05); z-index: 10; }

/* ── Screenshot Lightbox ── */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.img-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.img-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 8, 0.88);
    cursor: zoom-out;
}
.img-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(960px, 92vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.img-lightbox-dialog img {
    max-width: 100%;
    max-height: calc(90vh - 48px);
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    border: 4px solid var(--gold);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}
.img-lightbox-dialog p {
    margin-top: 12px;
    color: var(--cream);
    font-size: 0.9rem;
    text-align: center;
}
.img-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--rust);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.img-lightbox-close:hover {
    background: var(--crimson);
    transform: scale(1.08);
}

/* ── About Page ── */
.about-hero-band {
    background: linear-gradient(135deg, var(--slate) 0%, var(--wood) 100%);
    padding: 48px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}
.about-hero-band h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--gold);
    margin-top: 12px;
}
.about-hero-band p { color: rgba(255,248,238,0.8); max-width: 600px; margin: 12px auto 0; }

.about-timeline {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
}
.about-timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}
.about-timeline-item::before {
    content: '';
    position: absolute;
    left: 39px; top: 80px; bottom: -40px;
    width: 2px;
    background: var(--parchment-dark);
}
.about-timeline-item:last-child::before { display: none; }
.timeline-marker {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--rust), var(--crimson));
    border: 3px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}
.timeline-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.timeline-body p { color: var(--stone); }

.about-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 48px 48px 48px;
    max-width: 1100px;
    margin: 0 auto;
}
.about-showcase img {
    border-radius: var(--radius);
    border: 4px solid var(--stone);
    box-shadow: 0 8px 28px var(--shadow);
	height:400px;
}

/* ── Event Log Page ── */
.events-hero {
    background: linear-gradient(135deg, var(--wood) 0%, var(--slate) 100%);
    padding: 48px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}
.events-hero h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--gold);
    margin: 14px 0 10px;
}
.events-hero p {
    color: rgba(255, 248, 238, 0.82);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.02rem;
}

.event-chronicle {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 48px 24px;
    position: relative;
}
.event-chronicle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 48px;
    bottom: 24px;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--gold), var(--amber), var(--rust));
    border-radius: 2px;
    opacity: 0.45;
}

.event-entry {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
}
.event-entry-alt .event-card { grid-column: 1; grid-row: 1; }
.event-entry-alt .event-spine { grid-column: 2; }
.event-entry:not(.event-entry-alt) .event-card { grid-column: 3; }
.event-entry:not(.event-entry-alt) .event-spine { grid-column: 2; grid-row: 1; }

.event-spine {
    display: flex;
    justify-content: center;
    z-index: 1;
}
.event-phase {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--rust), var(--crimson));
    border: 3px solid var(--gold);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--shadow);
}

.event-card {
    padding: 22px 24px;
}
.event-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--slate);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.event-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
}
.event-card p {
    font-size: 0.92rem;
    color: var(--stone);
    line-height: 1.65;
}

.events-footer-note {
    max-width: 820px;
    margin: 0 auto 48px;
    padding: 20px 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--stone);
}
.events-footer-note i { color: var(--amber); margin-right: 6px; }

/* ── Game Page ── */
.game-banner {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.game-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.game-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44,24,16,0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 32px 48px;
}
.game-banner-overlay h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--gold);
}

.game-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 48px;
    max-width: 1100px;
    margin: 0 auto;
}
.game-sidebar-card {
    background: var(--cream);
    border: 3px solid var(--stone);
    border-radius: var(--radius);
    padding: 24px;
}
.game-sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--rust);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--parchment-dark);
}
.game-stat-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.92rem;
    border-bottom: 1px dashed var(--parchment-dark);
}
.game-stat-line strong { color: var(--gold); font-family: var(--font-display); }

.game-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.game-feature-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--parchment);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--amber);
}
.game-feature-item .gf-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--slate);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.game-feature-item h4 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    margin-bottom: 4px;
}
.game-feature-item p { font-size: 0.82rem; color: var(--stone); }

.game-gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.game-gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    line-height: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.game-gallery-trigger img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 2px solid var(--stone);
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: filter 0.2s, transform 0.2s;
}
.game-gallery-trigger:hover img {
    filter: brightness(1.08);
    transform: scale(1.02);
}
.game-gallery-trigger:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ── Contact Page ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - 0px);
}
.contact-info-panel {
    background: linear-gradient(160deg, var(--slate) 0%, var(--wood) 100%);
    padding: 56px 48px;
    color: var(--cream);
}
.contact-info-panel h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--gold);
    margin: 16px 0 12px;
}
.contact-info-panel > p { opacity: 0.8; margin-bottom: 36px; }

.contact-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius);
    border: 1px solid rgba(241,196,15,0.2);
    transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--gold); }
.contact-card-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--rust);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.contact-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 4px;
}
.contact-card p, .contact-card a {
    font-size: 0.92rem;
    color: rgba(255,248,238,0.85);
}
.contact-card a:hover { color: var(--gold); }

.contact-visual-panel {
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.contact-visual-panel img {
    width: 90%;
    border-radius: var(--radius);
    border: 4px solid var(--stone);
    box-shadow: 0 12px 40px var(--shadow);
}

/* ── Shop Page ── */
.shop-intro-bar {
    background: var(--slate);
    color: var(--cream);
    padding: 24px 48px;
    border-bottom: 3px solid var(--gold);
}
.shop-intro-bar h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.shop-intro-bar p { font-size: 0.92rem; opacity: 0.85; line-height: 1.7; }

.shop-body { padding: 40px 48px 60px; }

.gems-scroll-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.gems-scroll-row::-webkit-scrollbar { height: 6px; }
.gems-scroll-row::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

.gem-tile {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--cream);
    border: 3px solid var(--parchment-dark);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.gem-tile:hover {
    border-color: var(--amber);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}
.gem-tile.is-selected {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}
.gem-tile.is-selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px; right: 10px;
    width: 24px; height: 24px;
    background: var(--cyan);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
}
.gem-tile img {
    width: 80px; height: 80px;
    margin: 0 auto 12px;
    object-fit: contain;
}
.gem-tile h4 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    margin-bottom: 6px;
}
.gem-tile .gem-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rust);
}

.checkout-panel {
    max-width: 640px;
    margin: 32px auto 0;
}
.checkout-panel h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--stone);
}
.form-field label .req { color: var(--rust); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--parchment-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--amber);
}
.form-field input.is-invalid,
.form-field select.is-invalid {
    border-color: var(--rust);
    background: #FDF0EE;
}
.form-field input:disabled {
    background: var(--parchment);
    color: var(--stone);
}

.payment-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.payment-pill {
    flex: 1;
    min-width: 140px;
    position: relative;
}
.payment-pill input { position: absolute; opacity: 0; pointer-events: none; }
.payment-pill label {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border: 2px solid var(--parchment-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
    background: #fff;
}
.payment-pill input:checked + label {
    border-color: var(--amber);
    background: rgba(230,126,34,0.08);
    color: var(--rust);
}

.agree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--stone);
}
.agree-row input { margin-top: 4px; accent-color: var(--rust); }

.field-error {
    display: block;
    color: var(--rust);
    font-size: 0.82rem;
    margin-top: 4px;
    min-height: 18px;
}

.alert-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.alert-box.error {
    background: #FDF0EE;
    border: 2px solid var(--rust);
    color: var(--crimson);
}

.btn-realm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
.btn-realm-primary {
    background: linear-gradient(135deg, var(--amber) 0%, var(--rust) 100%);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 16px rgba(192,57,43,0.35);
}
.btn-realm-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192,57,43,0.45);
}
.btn-realm-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-realm-outline:hover { background: rgba(241,196,15,0.1); }

.selected-gem-display {
    text-align: center;
    padding: 12px;
    background: var(--parchment);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
    color: var(--stone);
}
.selected-gem-display strong { color: var(--ink); }

.gems-empty,
.gems-loading {
    text-align: center;
    padding: 40px;
    color: var(--stone);
    font-style: italic;
    flex: 1 0 100%;
}
.gems-loading i {
    margin-right: 8px;
    color: var(--amber);
}

/* ── Confirm Page ── */
.confirm-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(160deg, var(--parchment) 0%, var(--parchment-dark) 100%);
}
.confirm-card {
    max-width: 520px;
    width: 100%;
    background: var(--cream);
    border: 4px solid var(--stone);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 48px var(--shadow);
}
.confirm-card-header {
    background: linear-gradient(135deg, var(--slate), var(--wood));
    padding: 28px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}
.confirm-card-header .confirm-icon {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.confirm-card-header h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
}
.confirm-rows { padding: 24px 28px; }
.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--parchment-dark);
    font-size: 0.92rem;
}
.confirm-row .lbl { color: var(--stone); font-weight: 600; }
.confirm-row .val { color: var(--ink); font-weight: 700; text-align: right; max-width: 60%; word-break: break-all; }
.confirm-row .val.highlight { color: var(--rust); font-family: var(--font-display); font-size: 1.1rem; }
.confirm-actions {
    padding: 0 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Pay Finish & Error ── */
.result-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.result-card {
    max-width: 480px;
    width: 100%;
    text-align: center;
    padding: 48px 36px;
    background: var(--cream);
    border: 4px solid var(--stone);
    border-radius: var(--radius);
    box-shadow: 0 12px 48px var(--shadow);
}
.result-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.result-icon.success { background: #D5F5E3; color: #1E8449; border: 3px solid #1E8449; }
.result-icon.failed { background: #FADBD8; color: var(--crimson); border: 3px solid var(--crimson); }
.result-icon.warning { background: #FCF3CF; color: var(--amber); border: 3px solid var(--amber); }
.result-card h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.result-card p { color: var(--stone); margin-bottom: 8px; }
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.error-tips {
    text-align: left;
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--parchment);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.error-tips h3 { font-size: 0.92rem; margin-bottom: 8px; color: var(--ink); }
.error-tips ul { padding-left: 20px; color: var(--stone); }
.error-tips li { margin-bottom: 4px; }

/* ── Page Footer Bar ── */
.page-footer-bar {
    background: var(--wood);
    color: rgba(255,248,238,0.6);
    text-align: center;
    padding: 20px;
    font-size: 0.82rem;
    border-top: 3px solid var(--gold);
}
.page-footer-bar a { color: var(--gold); margin: 0 10px; }
.footer-policy { margin-top: 8px; }
.footer-policy a { font-size: 0.85rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .home-hero { grid-template-columns: 1fr; min-height: auto; }
    .home-hero-right { display: none; }
    .feature-orbs { grid-template-columns: repeat(2, 1fr); }
    .game-content-grid { grid-template-columns: 1fr; }
    .about-showcase { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .event-chronicle::before { left: 24px; transform: none; }
    .event-entry,
    .event-entry-alt {
        grid-template-columns: 48px 1fr;
        gap: 16px;
    }
    .event-entry .event-spine,
    .event-entry-alt .event-spine { grid-column: 1; grid-row: 1; justify-content: flex-start; }
    .event-entry .event-card,
    .event-entry-alt .event-card { grid-column: 2; grid-row: 1; }
}

@media (max-width: 768px) {
    .realm-sidebar {
        transform: translateX(-100%);
    }
    .realm-sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .realm-main { margin-left: 0; }
    .content-pad, .zigzag-section, .shop-body, .game-content-grid,
    .about-timeline, .about-showcase, .contact-info-panel, .contact-visual-panel,
    .event-chronicle, .events-hero, .events-footer-note {
        padding-left: 24px;
        padding-right: 24px;
    }
    .home-hero-left { padding: 80px 24px 40px; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .zigzag-row { grid-template-columns: 1fr; gap: 24px; }
    .zigzag-row.reverse { direction: ltr; }
    .feature-orbs { grid-template-columns: 1fr; }
    .screenshot-fan { flex-wrap: wrap; gap: 12px; }
    .fan-item { transform: none !important; width: 140px; margin: 0 !important; }
    .game-features-grid { grid-template-columns: 1fr; }
    .game-gallery-row { grid-template-columns: 1fr; }
    .payment-pills { flex-direction: column; }
}
