:root{
  --ink:#0c0a10; --panel:#171018; --cream:#efe6d2;
  --gold:#c9a24a; --gold-bright:#e8cd8a; --gold-soft:rgba(201,162,74,.32);
  --wine:#5c1f2e; --muted:#9c8fa0; --line: rgba(201,162,74,.22);
  --font-display: 'Cinzel', serif;
  --font-body: 'Jost', ui-sans-serif, system-ui, sans-serif;
  --max: 1160px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; background: var(--ink); color: var(--cream); font-family: var(--font-body); -webkit-font-smoothing:antialiased; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width: var(--max); margin:0 auto; padding-left: clamp(20px,5vw,56px); padding-right: clamp(20px,5vw,56px); }
section{ position:relative; padding: clamp(48px,7vw,80px) 0; }
.center{ text-align:center; }

.eyebrow{ font-size:12px; font-weight:600; letter-spacing:.32em; text-transform:uppercase; color: var(--gold); margin:0 0 16px; }
.zigzag{ width:170px; height:12px; margin: 16px auto 26px; display:block; }
.zigzag path{ stroke: var(--gold); stroke-width:1.4; fill:none; }

h2{ font-family: var(--font-display); font-weight:600; font-size: clamp(24px,3vw,32px); letter-spacing:.02em; line-height:1.3; margin:0 0 14px; color: var(--gold-bright); }
.section-sub{ color: var(--muted); font-size:14.5px; max-width:60ch; margin: 0 auto 34px; text-align:center; line-height:1.7; }

/* ---------- NAV ---------- */
.navbar{ position: sticky; top:0; z-index:30; padding: 16px 0; background: rgba(12,10,16,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; max-width: var(--max); margin:0 auto; padding: 0 clamp(20px,5vw,56px); }
.brand{ display:flex; align-items:center; gap:12px; font-family: var(--font-display); font-weight:600; font-size:16px; letter-spacing:.06em; text-transform:uppercase; }
.brand-mark{ width:26px; height:26px; overflow:hidden; border: 1px solid var(--gold); flex:none; }
.brand-mark img{ width:100%; height:100%; object-fit:cover; }
.nav-links{ display:flex; gap:26px; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); }
.nav-links a{ text-decoration:none; }
.nav-links a:hover{ color: var(--gold-bright); }
.nav-cta{ display:inline-flex; align-items:center; padding:9px 18px; border: 1px solid var(--gold); color: var(--gold); font-weight:600; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; text-decoration:none; transition: all .25s ease; white-space:nowrap; }
.nav-cta:hover{ background: var(--gold); color:#1a1206; }
@media (max-width:760px){ .nav-links{ display:none; } }

/* ---------- BREADCRUMB ---------- */
.breadcrumb{ font-size:12px; letter-spacing:.04em; color: var(--muted); margin-bottom:20px; text-align:center; }
.breadcrumb a{ text-decoration:none; color: var(--muted); }
.breadcrumb a:hover{ color: var(--gold); }
.breadcrumb .sep{ margin:0 8px; opacity:.5; }

/* ---------- HERO (site hero with sunburst) ---------- */
.hero-full{ position:relative; overflow:hidden; padding-top: clamp(64px,8vw,96px); text-align:center; }
.sunburst{ position:absolute; top:-160px; left:50%; width:900px; height:900px; transform: translateX(-50%); z-index:0; opacity:.5; animation: spin 90s linear infinite; }
@keyframes spin{ from{ transform: translateX(-50%) rotate(0deg);} to{ transform: translateX(-50%) rotate(360deg);} }
@media (prefers-reduced-motion: reduce){ .sunburst{ animation:none; } }
.hero-full .hero-inner{ position:relative; z-index:2; }
.hero-full h1{ font-family: var(--font-display); font-weight:600; font-size: clamp(28px,4vw,44px); letter-spacing:.01em; line-height:1.3; margin: 0 auto 6px; max-width:20ch; color: var(--cream); }
.hero-full h1 .accent{ color: var(--gold); }
.hero-full .sub{ font-size:16px; color: var(--muted); max-width:54ch; margin: 22px auto 32px; line-height:1.8; }

/* ---------- MINI HERO (subpages) ---------- */
.mini-hero{ position:relative; padding-top: clamp(48px,7vw,72px); text-align:center; }
.mini-hero h1{ font-family: var(--font-display); font-weight:600; font-size: clamp(26px,3.6vw,38px); letter-spacing:.01em; line-height:1.28; margin: 0 auto 6px; max-width:22ch; color: var(--cream); }
.mini-hero .sub{ font-size:15.5px; color: var(--muted); max-width:58ch; margin: 20px auto 28px; line-height:1.8; }

/* ---------- BUTTONS ---------- */
.hero-actions{ display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.btn-deco{ position:relative; display:inline-flex; align-items:center; gap:10px; padding:15px 30px; border: 1px solid var(--gold); color: var(--gold); font-weight:600; font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; transition: all .25s ease; }
.btn-deco::before{ content:""; position:absolute; inset:4px; border: 1px solid var(--gold-soft); pointer-events:none; }
.btn-deco.filled{ background: var(--gold); color:#1a1206; }
.btn-deco:hover{ background: var(--gold); color:#1a1206; }

.trust-row{ display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:center; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); }

/* ---------- DECO FRAME (hero + gallery images) ---------- */
.deco-frame{ position:relative; padding:12px; opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.deco-frame.is-visible{ opacity:1; transform: translateY(0); }
.deco-frame .corner{ position:absolute; width:20px; height:20px; border-color: var(--gold); }
.deco-frame .tl{ top:0; left:0; border-top:1px solid; border-left:1px solid; }
.deco-frame .tr{ top:0; right:0; border-top:1px solid; border-right:1px solid; }
.deco-frame .bl{ bottom:0; left:0; border-bottom:1px solid; border-left:1px solid; }
.deco-frame .br{ bottom:0; right:0; border-bottom:1px solid; border-right:1px solid; }
.deco-frame img{ display:block; width:100%; }
@media (prefers-reduced-motion: reduce){ .deco-frame{ opacity:1; transform:none; transition:none; } }

.hero-shot{ max-width:300px; margin: 44px auto 0; }
.hero-shot img{ box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.mini-hero-shot{ max-width:240px; margin: 8px auto 0; }
.mini-hero-shot img{ box-shadow: 0 30px 60px rgba(0,0,0,.55); }

/* ---------- PANEL ---------- */
.panel{ background: var(--panel); border: 1px solid var(--line); padding: clamp(24px,4vw,34px); }
.panel p{ color: var(--muted); line-height:1.85; font-size:15px; margin:0 0 14px; }
.panel p:last-child{ margin-bottom:0; }

/* ---------- FEATURE GRID ---------- */
.feature-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:1px; background: var(--line); border:1px solid var(--line); }
.feature-card{ background: var(--ink); padding:26px 22px; }
.feature-card .idx{ font-family: var(--font-display); color: var(--gold); font-size:13px; letter-spacing:.1em; margin-bottom:10px; }
.feature-card h3{ font-family: var(--font-display); font-weight:600; font-size:16px; letter-spacing:.02em; margin:0 0 8px; color: var(--gold-bright); }
.feature-card p{ margin:0; color: var(--muted); font-size:13.5px; line-height:1.7; }
@media (max-width:900px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .feature-grid{ grid-template-columns: 1fr; } }

/* ---------- GALLERY WALL ---------- */
.gallery-wall{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.gallery-item{ text-align:center; }
.gallery-item h3{ font-family: var(--font-display); font-weight:600; font-size:14px; letter-spacing:.04em; margin: 14px 0 4px; color: var(--gold-bright); }
.gallery-item p{ font-size:12px; color: var(--muted); margin:0; }
@media (max-width:900px){ .gallery-wall{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px){ .gallery-wall{ grid-template-columns: 1fr; } }

/* ---------- EXPLORE / SEO LINKS (index hub) ---------- */
.explore-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:1px; background: var(--line); border:1px solid var(--line); text-align:left; }
.explore-col{ background: var(--ink); padding: 24px 22px; }
.explore-col h3{ font-family: var(--font-display); font-weight:600; font-size:14.5px; letter-spacing:.04em; margin:0 0 6px; color: var(--gold-bright); }
.explore-col .hint{ font-size:12.5px; color: var(--muted); margin:0 0 14px; line-height:1.6; }
@media (max-width:900px){ .explore-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .explore-grid{ grid-template-columns: 1fr; } }

/* ---------- FAQ (also used verbatim inside legacy .section blocks) ---------- */
.faq{ max-width: 720px; margin: 0 auto; display:grid; gap:1px; background: var(--line); border:1px solid var(--line); }
.faq details{ background: var(--ink); padding: 20px 24px; }
.faq summary{ font-family: var(--font-display); font-weight:600; font-size:15.5px; letter-spacing:.02em; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; color: var(--cream); }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-size:16px; color: var(--gold); }
.faq details[open] summary::after{ content:"–"; }
.faq p{ margin: 12px 0 0; color: var(--muted); font-size:14px; line-height:1.8; }

/* ---------- CTA STRIP ---------- */
.cta-strip{ text-align:center; }
.cta-strip p.lead{ font-family: var(--font-display); font-weight:500; font-size: clamp(18px,2.2vw,24px); color: var(--gold-bright); max-width:36ch; margin: 0 auto 20px; line-height:1.6; letter-spacing:.02em; }

footer{ border-top:1px solid var(--line); padding: 30px 0; text-align:center; }
.footer-inner{ font-size:11.5px; letter-spacing:.05em; text-transform:uppercase; color: var(--muted); }
.footer-inner a{ text-decoration:none; color: var(--muted); margin: 0 10px; }
.footer-inner a:hover{ color: var(--gold); }

/* =========================================================================
   LEGACY CONTENT CLASSES
   These class names come straight from the existing arcana-mahjong
   subpages (.section, .card, .step, .steps, .rule, .rules, .strategy,
   .strategy-grid, .tip, .tips-grid, .two-col, .media-grid, .shot, .links,
   .tag, .btnrow, .btn). Rather than rewriting the markup of every
   subpage, those blocks are carried over as-is and restyled here so the
   content (steps, HowTo structure, FAQ, internal links) survives 1:1.
   ========================================================================= */
.section h2{ text-align:left; }
.section > p{ color: var(--muted); line-height:1.85; font-size:15px; margin:0 0 14px; max-width:76ch; }

.card, .step, .rule, .tip{
  border:1px solid var(--line); background: var(--panel); padding:20px 22px;
}
.card h3, .step h3, .rule h3, .tip h3{
  font-family: var(--font-display); font-weight:600; font-size:16.5px; letter-spacing:.01em;
  margin:0 0 8px; color: var(--gold-bright);
}
.card p, .step p, .rule p, .tip p{ margin:0; color: var(--muted); font-size:14px; line-height:1.75; }

.steps, .rules, .strategy-grid, .tips-grid{ display:grid; gap:1px; background: var(--line); border:1px solid var(--line); margin-top:14px; }
.steps > *, .rules > *, .strategy-grid > *, .tips-grid > *{ background: var(--ink); }

.two-col{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:1px; background: var(--line); border:1px solid var(--line); margin-top:14px; }
.two-col > *{ background: var(--ink); }
@media (max-width:700px){ .two-col{ grid-template-columns:1fr; } }

.media-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; margin-top:14px; }
@media (max-width:700px){ .media-grid{ grid-template-columns:1fr; } }
.shot{ margin:0; border: 1px solid var(--line); background: var(--panel); }
.shot img{ width:100%; display:block; }
.shot figcaption{ padding:14px 16px; color: var(--muted); font-size:13px; line-height:1.6; }

.links{ display:flex; flex-wrap:wrap; gap:9px; margin-top:14px; }
.tag{
  display:inline-flex; font-size:12px; letter-spacing:.03em; font-weight:500; text-decoration:none;
  color: var(--muted); border:1px solid var(--line); padding:8px 14px; transition: all .2s ease;
}
.tag:hover{ border-color: var(--gold); color: var(--gold); }

.btnrow{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:16px; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:13px 26px; border: 1px solid var(--gold-soft); color: var(--muted); font-weight:600; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; text-decoration:none; transition: all .25s ease; }
.btn:hover{ border-color: var(--gold); color: var(--gold-bright); }
.btn.primary{ border: 1px solid var(--gold); color: var(--gold); }
.btn.primary:hover{ background: var(--gold); color:#1a1206; }
