:root {
  --bg: #0f0a14;
  --bg-soft: #170f20;
  --bg-raised: #20132c;
  --text: #eee9f5;
  --muted: #a69bb2;
  --border: #342443;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --secondary: #f59e0b;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 20px 55px rgba(0, 0, 0, .25);
}
[data-theme="light"] {
  --bg: #faf8fc;
  --bg-soft: #fff;
  --bg-raised: #f1eaf8;
  --text: #160e22;
  --muted: #6f627a;
  --border: #e8e2f0;
  --primary: #7c3aed;
  --primary-strong: #6d28d9;
  --secondary: #eab308;
  --shadow: 0 18px 45px rgba(70, 40, 100, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 'Outfit', sans-serif; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: -1; background-image: linear-gradient(to right, color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px); background-size: 40px 40px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: 'Cinzel', serif; letter-spacing: .02em; line-height: 1.15; }
h1, h2, h3, h4, p { margin-top: 0; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.mono { font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.text-link { color: var(--muted); transition: color .2s; }
.text-link:hover { color: var(--primary); }
.text-gradient { background: linear-gradient(100deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell main { flex: 1; }
.navbar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(15px); }
.nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px 'Cinzel', serif; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--primary) 55%, transparent)); transition: transform .25s; }
.brand:hover img { transform: scale(1.08) rotate(-2deg); }
.desktop-nav { display: flex; align-items: center; gap: clamp(13px, 2vw, 25px); }
.desktop-nav a, .mobile-nav a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s, background .2s; }
.desktop-nav a:hover, .desktop-nav a.active, .mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); }
.nav-actions { display: flex; gap: 6px; align-items: center; }
.icon-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font-size: 18px; transition: background .2s, border .2s; }
.icon-button:hover { background: var(--bg-raised); border-color: var(--border); }
.cart-count { display: none; position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--secondary); color: #17100a; font-size: 10px; line-height: 16px; font-weight: 800; }
.cart-count.visible { display: block; }
.mobile-toggle, .mobile-nav { display: none; }
.loading-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .5s, visibility .5s; }
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-inner { text-align: center; animation: pulse 2.5s ease-in-out infinite; }
.loading-logo { width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 0 25px color-mix(in srgb, var(--primary) 65%, transparent)); }
.loading-title { font: 700 30px 'Cinzel', serif; text-transform: uppercase; letter-spacing: .18em; background: linear-gradient(100deg, var(--primary), var(--secondary)); -webkit-background-clip: text; color: transparent; }
.loading-inner p { color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
@keyframes pulse { 50% { transform: scale(1.03); opacity: .85; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.animate-rise { animation: rise .65s ease-out both; }
.stagger-1 { animation-delay: .1s; } .stagger-2 { animation-delay: .2s; } .stagger-3 { animation-delay: .3s; }
.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 44%, transparent), var(--bg)), url('../images/hero_background.png') center/cover; }
.hero::before { content: ""; position: absolute; width: 750px; height: 750px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: color-mix(in srgb, var(--primary) 20%, transparent); filter: blur(120px); }
.hero-content { position: relative; z-index: 1; max-width: 850px; padding: 90px 0; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--primary) 65%, transparent); border-radius: 999px; padding: 7px 15px; color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); font-size: 14px; font-weight: 700; }
.hero h1 { margin: 24px auto; font-size: clamp(42px, 7vw, 78px); }
.hero-copy { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.button-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 700; transition: transform .2s, background .2s, border .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: var(--primary-strong); box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 25%, transparent); }
.button.large { min-height: 56px; padding: 13px 25px; font-size: 17px; }
.button.secondary { background: var(--secondary); color: #26190b; }
.button.outline { background: transparent; color: var(--text); border-color: var(--border); }
.button.outline:hover { background: var(--bg-raised); border-color: var(--primary); color: var(--primary); }
.button.green { background: #16a34a; }
.button.danger { background: var(--danger); }
.button.full { width: 100%; }
.status-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.status-pill { border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-soft) 70%, transparent); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600; }
.status-pill span { color: var(--success); margin-right: 7px; } .status-pill .gold { color: var(--secondary); }
.status-pill.status-unavailable span { color: var(--secondary); }
.section { padding: 90px 0; }
.section.soft, .page-heading { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(30px, 5vw, 48px); }
.section-heading p { max-width: 600px; margin: auto; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--bg-soft) 88%, transparent); box-shadow: var(--shadow); }
.card-pad { padding: 25px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card-cover { height: 190px; overflow: hidden; border-radius: 14px 14px 0 0; position: relative; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s; }
.card:hover .card-cover img { transform: scale(1.07); }
.card-cover::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, var(--bg-soft)); }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: color-mix(in srgb, var(--secondary) 90%, transparent); color: #21150b; font-size: 11px; font-weight: 800; }
.promo-card { position: relative; padding: 24px; }
.promo-card h3 { color: var(--primary); font-size: 21px; }
.promo-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.page-heading { padding: 62px 0; text-align: center; }
.page-heading h1 { margin-bottom: 14px; font-size: clamp(35px, 5vw, 54px); }
.page-heading p { max-width: 670px; margin: auto; color: var(--muted); font-size: 17px; }
.content-section { padding: 58px 0 90px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.product-card .card-pad { flex: 1; }
.product-card footer { padding: 0 25px 25px; }
.category { color: var(--primary); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.price { margin: 9px 0 20px; font-size: 31px; font-weight: 800; }
.old-price { color: var(--muted); font-size: 14px; text-decoration: line-through; font-weight: 400; }
.feature-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.feature-list li::before { content: "✓"; margin-right: 8px; color: var(--primary); font-weight: 800; }
.cart-panel { position: sticky; top: 94px; overflow: hidden; }
.cart-panel header { padding: 19px 22px; background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.cart-panel header h3 { margin: 0; font-size: 20px; }
.cart-items { display: grid; gap: 10px; max-height: 400px; overflow: auto; padding: 16px; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--border); border-radius: 9px; background: color-mix(in srgb, var(--bg-raised) 70%, transparent); }
.cart-item strong { display: block; font-size: 13px; }
.cart-item small { color: var(--muted); }
.quantity { display: flex; align-items: center; gap: 7px; }
.quantity button { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--text); }
.cart-empty { padding: 32px 20px; color: var(--muted); text-align: center; font-size: 14px; }
.cart-total { padding: 20px; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.total-row strong { font-size: 25px; }
.search-box { position: relative; max-width: 480px; margin: 28px auto 0; }
.search-box input { width: 100%; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); outline: none; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.wiki-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; }
.wiki-nav { display: grid; gap: 7px; align-content: start; }
.wiki-nav .button { justify-content: flex-start; background: transparent; color: var(--muted); }
.wiki-nav .button:hover, .wiki-nav .button.selected { color: var(--text); background: var(--bg-raised); }
.prose { color: var(--muted); font-size: 17px; line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { color: var(--text); margin-top: 30px; }
.prose h2:first-child { margin-top: 0; color: var(--primary); }
.prose ul { padding-left: 22px; }
.prose li::marker { color: var(--primary); }
.command-list, .forum-list { display: grid; gap: 14px; }
.command-row, .forum-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; color: inherit; text-decoration: none; }
.command-row h3 { margin: 0 0 7px; color: var(--primary); font: 700 20px ui-monospace, monospace; }
.command-row p { margin: 0; color: var(--muted); }
.lore-list { display: grid; gap: 50px; max-width: 860px; margin: auto; }
.lore-card { position: relative; padding: 36px 42px; border-left: 3px solid var(--primary); }
.lore-card h2 { font-size: 28px; }
.lore-card p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.lore-card::before { content: ""; position: absolute; top: -50px; left: -3px; width: 3px; height: 48px; background: linear-gradient(transparent, var(--primary)); }
.lore-card:first-child::before { display: none; }
.icon-hero { color: var(--primary); font-size: 52px; margin-bottom: 16px; }
.center { text-align: center; }
.support-card { text-align: center; padding: 36px 27px; }
.support-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 15%, transparent); font-size: 31px; }
.support-card p { min-height: 70px; }
.video-placeholder { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-raised), var(--bg)); color: var(--muted); font-size: 55px; }
.video-placeholder span { font-size: 12px; display: block; text-transform: uppercase; letter-spacing: .16em; }
.forum-meta { display: flex; gap: 15px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.reply-count { min-width: 70px; padding: 8px 12px; border-radius: 9px; text-align: center; background: var(--bg-raised); }
.reply-count strong { display: block; font-size: 20px; }
.thread-detail h2 { margin: 10px 0; }
.thread-content { margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.reply-list { display: grid; gap: 14px; }
.reply-card { padding: 20px 24px; }
.reply-card p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.form-grid { display: grid; gap: 15px; }
.form-label { display: grid; gap: 7px; color: var(--text); font-weight: 600; font-size: 14px; }
.notice { margin-bottom: 20px; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: 8px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.notice.error { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); color: #fca5a5; }
.footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 58px 0; }
.footer-brand { opacity: .85; margin-bottom: 15px; }
.footer-about p { max-width: 420px; color: var(--muted); }
.footer h4 { margin-bottom: 17px; }
.footer-links { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.footer-bottom p { margin: 0; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.admin-tabs a { padding: 9px 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 14px; }
.admin-tabs a.active, .admin-tabs a:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table-wrap { overflow-x: auto; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.admin-list-heading h2 { margin: 0; }
.admin-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.danger-button { background: transparent; border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); color: #fca5a5; padding: 8px 11px; }
.danger-button:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.danger-text { color: #fca5a5 !important; border-color: color-mix(in srgb, var(--danger) 55%, var(--border)) !important; }
@media (max-width: 1000px) { .desktop-nav { gap: 12px; } .desktop-nav a { font-size: 12px; } .split { grid-template-columns: 1fr; } .cart-panel { position: static; } }
@media (max-width: 760px) {
  .container { width: min(100% - 24px, 600px); }
  .desktop-nav { display: none; } .mobile-toggle { display: grid; } .mobile-nav { display: none; flex-direction: column; padding: 10px 12px 17px; border-top: 1px solid var(--border); } .mobile-nav.open { display: flex; } .mobile-nav a { padding: 11px 12px; border-radius: 8px; } .mobile-nav a.active, .mobile-nav a:hover { background: var(--bg-raised); }
  .hero { min-height: 700px; } .hero-content { padding: 70px 0; } .hero h1 { font-size: 43px; } .button-row .button { width: 100%; }
  .grid-2, .grid-3, .product-grid, .wiki-layout, .footer-grid { grid-template-columns: 1fr; }
  .section, .content-section { padding: 60px 0; } .footer-grid { gap: 28px; padding: 42px 0; } .footer-bottom { flex-direction: column; }
  .command-row, .forum-row { align-items: flex-start; flex-direction: column; padding: 18px; } .reply-count { align-self: flex-end; }
  .lore-card { padding: 28px 25px; } .page-heading { padding: 45px 0; }
}