/* =========================================================================
   MadRat Toys — modern theme
   Same palette as the original site (black / maroon / MadRat red / silver),
   rebuilt with design tokens, glass surfaces and a responsive layout.
   ========================================================================= */

@font-face {
    font-family: 'AWfont';
    src: url('AWfont.otf');
    font-display: swap;
}

:root {
    /* Brand palette (taken from the original styles) */
    --black: #080809;
    --bg: #0c0c0e;
    --bg-2: #121214;
    --surface: #17171a;
    --surface-2: #1f1f23;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f4f5;
    --muted: #a8a8b0;
    --silver: #c0c0c0;
    --maroon: #800000;
    --maroon-deep: #660000;
    --red: #a90000;
    --red-hot: #af0000;
    --red-bright: #ff4d4d;
    --tomato: #ff6347;
    --rat-eye: #f5c400;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --glow: 0 0 0 1px rgba(255, 77, 77, 0.35), 0 10px 40px rgba(169, 0, 0, 0.35);
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);

    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', 'Open Sans', system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(169, 0, 0, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(128, 0, 0, 0.14), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--black) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.intro-playing { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-transform: uppercase;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section-head p { color: var(--muted); max-width: 520px; }

.accent { color: var(--red-bright); }
.brand-script { font-family: 'AWfont', var(--font-display); text-transform: none; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 0.95rem/1 var(--font-body);
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.btn-primary {
    background: linear-gradient(135deg, var(--red-hot), var(--maroon));
    color: #fff;
    border-color: rgba(255, 77, 77, 0.6);
    box-shadow: 0 8px 24px rgba(169, 0, 0, 0.4);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(255, 77, 77, 0.45); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--red-bright); color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Intro video (preloader) ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .7s ease, visibility .7s ease;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader-video { height: 100%; width: auto; max-width: 100%; object-fit: cover; }
.skip-intro {
    position: absolute;
    right: 20px;
    bottom: 24px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 9px 18px;
    font: 600 0.85rem var(--font-body);
    cursor: pointer;
    backdrop-filter: blur(6px);
}
.skip-intro:hover { border-color: var(--red-bright); }

/* ---------- Top bar + Navigation ---------- */
.topbar {
    background: var(--maroon-deep);
    font-size: 0.82rem;
    color: #ffdede;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 7px;
    padding-bottom: 7px;
}
.topbar a { text-decoration: none; font-weight: 600; color: #fff; }
.topbar a:hover { text-decoration: underline; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 9, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(8, 8, 9, 0.92); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); }
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-hot), transparent);
    opacity: .7;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 76px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }
.nav-logo .logo-full { display: block; }
.nav-logo .logo-head { display: none; height: 46px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 9px 13px;
    border-radius: 999px;
    color: #e6e6e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 77, 77, 0.12); }
.nav-links a.active { box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.4); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hamburger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        height: calc(100dvh - 76px);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 24px var(--gutter);
        background: rgba(8, 8, 9, 0.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
        overflow-y: auto;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { font-size: 1.15rem; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); }
    .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
    .nav-logo .logo-full { display: none; }
    .nav-logo .logo-head { display: block; }
    .topbar .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); margin-bottom: 18px; }
.hero h1 .brand-script { color: var(--red-bright); font-size: 0.78em; white-space: nowrap; display: inline-block; }
/* Store wordmark in the headline: crops logo.png (1608x405) down to just the "MadRat" lettering */
.hero h1 .hero-wordmark {
    display: inline-block;
    height: 1.05em;
    aspect-ratio: 865 / 262;
    overflow: hidden;
    vertical-align: -0.12em;
}
.hero h1 .hero-wordmark img {
    display: block;
    width: 185.9%;
    max-width: none;
    height: auto;
    margin: -5.2% 0 0 -50.3%;
}
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #d4d4d8; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 0.86rem;
    color: #e4e4e7;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }

.hero-badge {
    position: relative;
    aspect-ratio: 1;
    max-width: 440px;
    margin-left: auto;
    width: 100%;
    display: grid;
    place-items: center;
}
.hero-badge::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(169, 0, 0, 0.55), rgba(128, 0, 0, 0.12) 55%, transparent 70%);
    filter: blur(10px);
    animation: pulse 6s ease-in-out infinite;
}
.hero-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(255, 77, 77, 0.35);
    animation: spin 40s linear infinite, border-pulse 3s ease-in-out infinite;
}
.hero-badge img { position: relative; width: 72%; filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.7)); animation: float 6s ease-in-out infinite; }

/* Ripple rings that expand outward from the circular border */
.hero-badge .ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 77, 77, 0.6);
    box-shadow: 0 0 18px rgba(255, 77, 77, 0.35), inset 0 0 18px rgba(255, 77, 77, 0.2);
    opacity: 0;
    pointer-events: none;
    animation: ripple 4.5s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}
.hero-badge .ripple:nth-child(2) { animation-delay: 1.5s; }
.hero-badge .ripple:nth-child(3) { animation-delay: 3s; }

@keyframes ripple {
    0%   { transform: scale(0.92); opacity: 0; }
    10%  { opacity: 0.9; }
    100% { transform: scale(1.22); opacity: 0; border-width: 1px; }
}
@keyframes border-pulse {
    0%, 100% { border-color: rgba(255, 77, 77, 0.3); box-shadow: 0 0 0 rgba(255, 77, 77, 0); }
    50%      { border-color: rgba(255, 77, 77, 0.75); box-shadow: 0 0 22px rgba(255, 77, 77, 0.45); }
}

@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Slider (featured banners) ---------- */
.slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #000;
}
.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s;
}
.slider-btn:hover { background: var(--red); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button {
    width: 9px; height: 9px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.45); transition: width .25s, background .25s;
}
.slider-dots button.active { width: 26px; background: var(--red-bright); }

@media (max-width: 767px) {
    .slide img { aspect-ratio: 1 / 1; }
    .slider-btn { display: none; }
}

/* ---------- Glass card ---------- */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 32px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------- Category grid ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cat-card {
    --c1: var(--red-hot);
    --c2: var(--maroon);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 230px;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    background: var(--surface);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--c2) 35%, transparent), transparent 70%);
    opacity: .85;
    transition: opacity .3s ease;
}
.cat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -26px;
    width: 170px;
    height: 170px;
    z-index: -1;
    background: url('logohead.png') center / contain no-repeat;
    opacity: .09;
    transform: rotate(12deg);
    transition: transform .4s ease, opacity .4s ease;
}
.cat-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c1) 70%, white 10%); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.cat-card:hover::after { transform: rotate(0deg) scale(1.08); opacity: .18; }
.cat-card .cat-tag {
    position: absolute;
    top: 22px;
    left: 26px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.cat-card h3 { font-size: 1.85rem; margin-bottom: 6px; color: #fff; }
.cat-card p { color: #d4d4d8; font-size: 0.93rem; margin-bottom: 16px; }
.cat-card .cat-link { font-weight: 700; font-size: 0.9rem; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.cat-card .cat-link span { transition: transform .25s; }
.cat-card:hover .cat-link span { transform: translateX(5px); }

.cat-pokemon { --c1: #f5c400; --c2: #c62828; }
.cat-lorcana { --c1: #7b5cff; --c2: #c9a227; }
.cat-yugioh { --c1: #c2185b; --c2: #6a1b9a; }
.cat-magic { --c1: #e65100; --c2: #4e342e; }
.cat-vaultx { --c1: #9e9e9e; --c2: #424242; }
.cat-collect { --c1: #ff4d4d; --c2: #800000; }

@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { min-height: 190px; } }

/* ---------- Store photo placeholders ---------- */
.store-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    min-height: 520px;
}
.store-grid .photo-slot:first-child { grid-row: span 2; }

.photo-slot {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 240px;
    background: var(--surface);
    border: 1px solid var(--line);
}
/* When you have real photos, swap the placeholder div for:
   <img src="images/store-front.jpg" alt="..." />  — it will fill the slot. */
.photo-slot > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.photo-slot:hover > img { transform: scale(1.04); }

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    border: 2px dashed rgba(255, 77, 77, 0.35);
    border-radius: var(--radius-lg);
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 28px),
        radial-gradient(circle at 50% 40%, rgba(169, 0, 0, 0.22), transparent 65%);
}
.photo-placeholder svg { width: 46px; height: 46px; color: var(--red-bright); opacity: .9; }
.photo-placeholder strong { color: var(--text); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; font-weight: 600; }
.photo-placeholder small { font-size: 0.8rem; }

.photo-slot figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--line-strong);
}

@media (max-width: 760px) {
    .store-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
    .store-grid .photo-slot:first-child { grid-row: auto; min-height: 300px; }
}

/* ---------- Events ---------- */
.events-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 1060px) { .events-layout { grid-template-columns: 1fr; } }

.cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); min-width: 220px; text-align: center; }
.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--red); border-color: var(--red-bright); }
.icon-btn.is-disabled { opacity: .3; pointer-events: none; }

.view-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}
.view-toggle button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 999px;
    font: 600 0.85rem var(--font-body);
    cursor: pointer;
}
.view-toggle button.active { background: var(--red); color: #fff; }

.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-head div {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red-bright);
    padding-bottom: 6px;
}
.cal-day {
    min-height: 112px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(40, 0, 0, 0.28);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    transition: border-color .2s, background .2s;
}
.cal-day:hover { border-color: rgba(255, 77, 77, 0.45); background: rgba(128, 0, 0, 0.25); }
.cal-day.other-month { opacity: .28; }
.cal-day.is-past { opacity: .55; }
.cal-day.other-month.is-past { opacity: .2; }
.cal-day .num { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.cal-day.is-today { border-color: var(--red-bright); box-shadow: var(--glow); }
.cal-day.is-today .num {
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.ev-chip {
    --ev: var(--red-bright);
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-left: 3px solid var(--ev);
    border-radius: 6px;
    padding: 5px 7px;
    background: color-mix(in srgb, var(--ev) 16%, rgba(0, 0, 0, 0.4));
    color: #fff;
    font: 600 0.74rem/1.25 var(--font-body);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}
.ev-chip:hover { background: color-mix(in srgb, var(--ev) 34%, rgba(0, 0, 0, 0.4)); transform: translateX(2px); }
.ev-chip small { display: block; font-weight: 500; opacity: .75; font-size: 0.68rem; }

.ev-pokemon { --ev: #f5c400; }
.ev-lorcana { --ev: #8b7bff; }
.ev-yugioh { --ev: #e0457b; }
.ev-magic { --ev: #ff8a3d; }
.ev-gundam { --ev: #4fa3ff; }
.ev-riftbound { --ev: #3ddc97; }
.ev-onepiece { --ev: #ff5252; }
.ev-general { --ev: #c0c0c0; }

@media (max-width: 767px) {
    .cal-head, .cal-grid { gap: 4px; }
    .cal-head div { font-size: 0.62rem; letter-spacing: .06em; }
    .cal-day { min-height: 58px; padding: 5px 4px; border-radius: 8px; align-items: center; }
    .cal-day .num { font-size: 0.72rem; }
    .cal-day.is-today .num { width: 22px; height: 22px; }
    .ev-chip { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--ev); font-size: 0; display: inline-block; }
    .ev-chip small { display: none; }
    .cal-day .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
    .month-nav h3 { min-width: 0; }
}

/* Agenda (list) view */
.agenda { display: none; flex-direction: column; gap: 10px; }
.events-panel.list-view .agenda { display: flex; }
.events-panel.list-view .calendar { display: none; }

.agenda-item {
    --ev: var(--red-bright);
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ev);
}
.agenda-item.is-past { opacity: .5; }
.agenda-date { text-align: center; line-height: 1; }
.agenda-date .dow { font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.agenda-date .day { font-family: var(--font-display); font-size: 2rem; font-weight: 600; display: block; margin-top: 4px; }
.agenda-info h4 { font-size: 1.05rem; margin-bottom: 3px; }
.agenda-info p { font-size: 0.85rem; color: var(--muted); }
.agenda-empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

@media (max-width: 560px) {
    .agenda-item { grid-template-columns: 54px 1fr; }
    .agenda-item .btn { grid-column: 1 / -1; }
}

/* Weekly schedule */
.schedule h3 { font-size: 1.5rem; margin-bottom: 4px; }
.schedule > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.schedule-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.schedule-list li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(128, 0, 0, 0.18);
    border: 1px solid transparent;
    font-size: 0.88rem;
    color: #e4e4e7;
}
.schedule-list li b {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--red-bright);
    letter-spacing: .06em;
    font-weight: 600;
}
.schedule-list li.today { border-color: var(--red-bright); background: rgba(169, 0, 0, 0.35); }
.schedule-list li.off { opacity: .55; }
.schedule-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.schedule-note a { color: var(--silver); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; font-size: 0.78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ev); display: inline-block; }

/* ---------- Banner + popular ---------- */
.banner-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.banner-img img { width: 100%; height: auto; }

.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.popular-grid .tile {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 5;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.popular-grid .tile img { width: 100%; height: 100%; object-fit: cover; }
.popular-grid .tile:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(255, 77, 77, .5); }
@media (max-width: 760px) { .popular-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-copy p { color: #d4d4d8; margin-bottom: 16px; }
.about-copy p:first-of-type { font-size: 1.12rem; color: #fff; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius-lg); border: 3px solid var(--red-bright); box-shadow: 14px 14px 0 var(--maroon-deep), var(--shadow); width: 100%; }
.about-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 860px) { .about-grid, .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-badge { display: none; } .about-photo { max-width: 360px; } }

/* Animated shimmer card (carried over from the old About section) */
@keyframes smoothShimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.shimmer {
    background: linear-gradient(-45deg, rgba(60, 60, 64, 0.65), rgba(128, 0, 0, 0.55), rgba(70, 70, 74, 0.6), rgba(169, 0, 0, 0.45));
    background-size: 300% 300%;
    animation: smoothShimmer 14s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Visit / contact ---------- */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .ico {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(169, 0, 0, 0.25); color: var(--red-bright); border: 1px solid rgba(255, 77, 77, .3);
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list a { color: #fff; text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--red-bright); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: #d4d4d8; margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font: 400 0.95rem var(--font-body);
    transition: border-color .2s, box-shadow .2s;
    margin: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.18); }
.field.invalid input, .field.invalid textarea { border-color: var(--red-bright); }
.form-msg { margin-top: 12px; font-size: 0.9rem; color: var(--red-bright); min-height: 1em; display: block; }
.recaptcha-note { font-size: 0.72rem; color: var(--muted); margin-top: 10px; }
.recaptcha-note a { color: var(--muted); }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}
.modal.open { display: flex; animation: fadeIn .2s ease; }
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: linear-gradient(180deg, #1c1c20, #121214);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 77, 77, .15);
    animation: popIn .25s ease;
}
.modal-hero {
    --ev: var(--red-bright);
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ev) 30%, transparent), transparent 60%);
}
.modal-hero .when { font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ev); }
.modal-hero h3 { font-size: 1.8rem; margin: 6px 40px 12px 0; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-body { padding: 22px 26px 26px; }
.modal-desc { color: #d4d4d8; font-size: 0.92rem; margin-bottom: 18px; }
.modal-img { border-radius: var(--radius); margin-bottom: 18px; max-height: 220px; width: 100%; object-fit: cover; }
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 2;
}
.modal-close:hover { background: var(--red); }
.past-note { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: var(--muted); text-align: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    z-index: 2000;
    max-width: min(560px, calc(100% - 32px));
    padding: 14px 20px;
    border-radius: 14px;
    background: #18181b;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.success { border-color: #3ddc97; }
.toast.error { border-color: var(--red-bright); }

/* ---------- Footer ---------- */
.site-footer { background: #050506; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer-grid h4 { font-size: 0.95rem; letter-spacing: .1em; color: var(--red-bright); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: var(--muted); font-size: 0.92rem; }
.footer-logo { height: 46px; width: auto; margin-bottom: 14px; }
.footer-bottom { background: var(--maroon-deep); font-size: 0.85rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Category page ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 14px; }
.page-hero p { color: #d4d4d8; max-width: 640px; font-size: 1.08rem; }
.page-banner { min-height: 0; padding: clamp(60px, 8vw, 88px) clamp(24px, 5vw, 56px) clamp(28px, 5vw, 52px); }
.page-banner:hover { transform: none; box-shadow: none; }
.page-banner::after { width: 260px; height: 260px; right: -20px; top: -30px; }
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner p { margin-bottom: 0; font-size: 1.08rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.page-grid .copy p { color: #d4d4d8; margin-bottom: 16px; }
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.side-stack h3 { font-size: 1.35rem; margin-bottom: 12px; }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mini-list li { padding: 11px 14px; border-radius: 12px; background: rgba(128, 0, 0, 0.2); font-size: 0.9rem; }
.mini-list li b { color: var(--red-bright); font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .05em; margin-right: 6px; }
.other-cats { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .page-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) { .hero h1 .brand-script { font-size: 0.62em; } }
