/*
Theme Name: Moon Casino
Theme URI: https://xn--vk1bs2nz1f1qe5wbfyaqcq3a.com
Author: Moon Casino Operations
Author URI: https://xn--vk1bs2nz1f1qe5wbfyaqcq3a.com/license
Description: Korean ink wash inspired theme for Moon Casino. Operator positioning with EEAT compliance.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moon-casino
*/

:root {
  --ink: #1A1A1A;
  --ink-soft: #2D2D2D;
  --ink-mute: #4A4A4A;
  --paper: #F5EFE0;
  --paper-warm: #EDE5D0;
  --paper-light: #FAF6EC;
  --celadon: #6B8E7F;
  --celadon-deep: #4A6B5E;
  --vermillion: #C73E3A;
  --ochre: #8C7853;
  --line: rgba(26, 26, 26, 0.15);
  --line-soft: rgba(26, 26, 26, 0.08);

  --serif: 'Gowun Batang', 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'D2Coding', ui-monospace, monospace;

  --max: 1140px;
  --gutter: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--vermillion);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.875rem; margin: 2.75rem 0 1.25rem; }
h3 { font-size: 1.375rem; margin: 1.75rem 0 0.75rem; }
h4 { font-size: 1.125rem; margin: 1.25rem 0 0.5rem; font-weight: 500; }

p {
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

ul, ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 3px solid var(--celadon);
  color: var(--ink-mute);
  font-style: normal;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--paper-warm);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

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

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--celadon-deep);
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--celadon);
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-mute);
}

.text-center {
  text-align: center;
}

.mt-tight {
  margin-top: 2.5rem;
}

.mt-loose {
  margin-top: 3rem;
}

.heading-flush {
  margin-top: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--line);
}

.archive-title {
  margin-top: 0;
}

.not-found {
  text-align: center;
  padding: 6rem 0;
}

.not-found .eyebrow {
  padding-left: 0;
}

.not-found .eyebrow::before {
  display: none;
}

.not-found h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.not-found .lead {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.author-tag {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--vermillion);
}

.help-box {
  background: var(--paper-warm);
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--vermillion);
  margin: 1.5rem 0;
}

.btn-spaced {
  margin-left: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 0.5px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-moon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}

.brand-moon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 400;
}

.cta-join {
  padding: 0.625rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.cta-join:hover {
  background: var(--vermillion);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease;
  z-index: 60;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--paper-warm);
  outline: none;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.35s ease, opacity 0.2s ease, width 0.35s ease, top 0.35s ease;
}

.menu-toggle span:nth-child(1) { top: 13px; width: 20px; }
.menu-toggle span:nth-child(2) { top: 19px; width: 14px; }
.menu-toggle span:nth-child(3) { top: 25px; width: 20px; }

.menu-toggle.is-open span:nth-child(1) {
  top: 19px;
  width: 22px;
  left: 9px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 19px;
  width: 22px;
  left: 9px;
  transform: rotate(-45deg);
}

.nav-foot {
  display: none;
}

.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(26,26,26,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  max-width: 30rem;
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.95rem 1.875rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--vermillion);
  color: var(--paper);
}

.btn-ghost {
  display: inline-block;
  padding: 0.875rem 1.875rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  height: auto;
  max-width: 480px;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--vermillion);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 0.5rem;
  letter-spacing: 0;
}

.definition-box {
  background: var(--paper-light);
  border-left: 4px solid var(--ink);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.definition-box .label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--celadon-deep);
  margin-bottom: 0.625rem;
  font-weight: 500;
  font-family: var(--sans);
}

.definition-box p:last-child {
  margin-bottom: 0;
}

.answer-box {
  background: var(--paper-warm);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0 2.25rem;
  position: relative;
}

.answer-box::before {
  content: '答';
  position: absolute;
  top: 0.875rem;
  right: 1.25rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--celadon);
  opacity: 0.35;
  line-height: 1;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.25rem 0;
}

.card {
  background: var(--paper-light);
  padding: 1.75rem;
  border: 0.5px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.card-num {
  font-family: var(--serif);
  font-size: 1.875rem;
  color: var(--celadon);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.card h3 {
  margin: 0 0 0.625rem;
  font-size: 1.1875rem;
}

.card p {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--ink-mute);
}

.step-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 2.25rem 0;
}

.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--paper-light);
  border-left: 3px solid var(--celadon);
}

.step-item .num {
  font-family: var(--serif);
  font-size: 2.25rem;
  color: var(--ink);
  line-height: 1;
}

.step-item h4 {
  margin: 0 0 0.375rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
}

.step-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-mute);
}

.faq {
  margin: 2.25rem 0;
  border-top: 0.5px solid var(--line);
}

.faq-item {
  border-bottom: 0.5px solid var(--line);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--celadon);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .answer {
  margin-top: 1rem;
  color: var(--ink-mute);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.faq-item .answer p:last-child {
  margin-bottom: 0;
}

.diagnose {
  background: var(--paper-light);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  border-top: 3px solid var(--ink);
}

.diagnose h3 {
  margin-top: 0;
}

.diagnose-q {
  margin: 1.25rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--line);
}

.diagnose-q:last-of-type {
  border-bottom: none;
}

.diagnose-q .q-text {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.diagnose-q .q-text .q-num {
  color: var(--celadon);
  margin-right: 0.5rem;
  font-weight: 700;
}

.diagnose-q .options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.diagnose-q .options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 0.5px solid var(--line);
  cursor: pointer;
  font-size: 0.875rem;
  background: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.diagnose-q .options label:hover {
  border-color: var(--ink);
}

.diagnose-q .options input[type="radio"] {
  accent-color: var(--vermillion);
  margin: 0;
}

.diagnose-submit {
  margin-top: 1.5rem;
  padding: 0.875rem 1.875rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s ease;
}

.diagnose-submit:hover {
  background: var(--vermillion);
}

.diagnose-result {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: var(--paper-warm);
  display: none;
  border-left: 3px solid var(--celadon);
}

.diagnose-result.show {
  display: block;
}

.diagnose-result h4 {
  font-family: var(--serif);
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.diagnose-result.warn {
  border-left-color: var(--vermillion);
  background: rgba(199, 62, 58, 0.06);
}

.compare-prose {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

.compare-prose h4 {
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--celadon-deep);
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
}

.compare-prose p {
  font-size: 0.9375rem;
  line-height: 1.85;
}

.compare-prose .divider {
  background: var(--line);
}

.vip-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 2.25rem 0;
}

.vip-tier {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--paper-light);
  border-top: 3px solid var(--celadon);
}

.vip-tier:nth-child(2) { border-color: var(--celadon-deep); }
.vip-tier:nth-child(3) { border-color: var(--ochre); }
.vip-tier:nth-child(4) { border-color: var(--ink); }
.vip-tier:nth-child(5) { border-color: var(--vermillion); }

.vip-tier h5 {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.vip-tier .pct {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--ink);
  display: block;
  margin: 0.5rem 0;
  font-weight: 700;
}

.vip-tier small {
  font-size: 0.75rem;
  color: var(--ink-mute);
  display: block;
}

.ext-link {
  color: var(--celadon-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.ext-link:hover {
  color: var(--vermillion);
}

.ext-link::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0.7;
}

.bonus-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.bonus-list li {
  background: var(--paper-light);
  padding: 1.5rem;
  border-top: 2px solid var(--celadon);
  margin: 0;
  list-style: none;
}

.bonus-list h4 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
}

.bonus-list .rate {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--vermillion);
  display: block;
  margin: 0.25rem 0 0.5rem;
  font-weight: 700;
}

.bonus-list p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.game-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.game-cat {
  background: var(--paper-light);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 0.5px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: var(--ink);
}

.game-cat:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.game-cat h4 {
  margin: 0.5rem 0 0.375rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
}

.game-cat small {
  font-size: 0.75rem;
  color: var(--ink-mute);
  display: block;
}

.game-cat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.5rem;
  color: var(--celadon-deep);
}

.author-block {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  background: var(--paper-light);
  border-left: 3px solid var(--ink);
}

.author-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-warm);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-meta .author-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.author-meta .author-role {
  font-size: 0.8125rem;
  color: var(--celadon-deep);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.author-meta p {
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.7;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 0 0 2rem;
  margin-top: 5rem;
  position: relative;
}

.footer-1336 {
  background: var(--vermillion);
  color: var(--paper);
  padding: 1.25rem var(--gutter);
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-1336 strong {
  font-size: 1.1875rem;
  font-family: var(--serif);
  margin: 0 0.375rem;
  letter-spacing: 0.05em;
}

.footer-1336 a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 1.25rem;
  color: var(--paper);
  font-weight: 500;
}

.footer-col p {
  font-size: 0.875rem;
  color: var(--paper-warm);
  opacity: 0.7;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  color: var(--paper-warm);
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--paper);
}

.footer-bottom {
  border-top: 0.5px solid rgba(245, 239, 224, 0.15);
  padding: 2rem var(--gutter) 0;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--paper-warm);
  opacity: 0.75;
}

.age-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--vermillion);
  color: var(--vermillion);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.age-gate.hidden {
  display: none;
}

.age-moon {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s ease, background 0.3s ease;
  border: none;
}

.age-moon:hover {
  transform: scale(1.04);
}

.age-moon-text {
  text-align: center;
}

.age-moon-text .age-mark-big {
  font-family: var(--serif);
  font-size: 2.875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.age-moon-text small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  font-weight: 500;
}

.age-deny {
  margin-top: 2rem;
  text-align: center;
}

.age-deny a {
  color: var(--paper-warm);
  font-size: 0.8125rem;
  opacity: 0.6;
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 101;
  text-decoration: none;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .game-cats { grid-template-columns: repeat(3, 1fr); }
  .vip-row { grid-template-columns: repeat(5, 1fr); gap: 0.375rem; }
}

@media (max-width: 768px) {
  :root {
    --gutter: 1rem;
  }

  body { font-size: 15px; line-height: 1.8; }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; margin: 2.25rem 0 1rem; }
  h3 { font-size: 1.25rem; }

  .nav, .cta-join { display: none; }
  .menu-toggle { display: block; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--paper);
    padding: 5rem 1.5rem 2.5rem;
    z-index: 49;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    animation: nav-fade 0.35s ease;
  }

  .nav.is-open::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(26,26,26,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .nav.is-open::after {
    content: 'NAVIGATION';
    position: absolute;
    top: 4.75rem;
    left: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--celadon-deep);
    font-weight: 500;
    padding-left: 2rem;
  }

  .nav.is-open a {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 1.05rem 0;
    border-bottom: 0.5px solid var(--line-soft);
    transition: color 0.2s ease, padding-left 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
  }

  .nav.is-open a:first-child {
    margin-top: 1.75rem;
    border-top: 0.5px solid var(--line-soft);
  }

  .nav.is-open a::before {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--celadon);
    width: 22px;
    text-align: left;
    flex-shrink: 0;
    transition: color 0.2s ease;
  }

  .nav.is-open a:nth-of-type(1)::before { content: '壹'; }
  .nav.is-open a:nth-of-type(2)::before { content: '貳'; }
  .nav.is-open a:nth-of-type(3)::before { content: '參'; }
  .nav.is-open a:nth-of-type(4)::before { content: '肆'; }
  .nav.is-open a:nth-of-type(5)::before { content: '伍'; }
  .nav.is-open a:nth-of-type(6)::before { content: '陸'; }
  .nav.is-open a:nth-of-type(7)::before { content: '柒'; }

  .nav.is-open .nav-foot a::before {
    content: none;
  }

  .nav.is-open .nav-foot a {
    border-bottom: none;
    padding: 0;
    gap: 0;
  }

  .nav.is-open .nav-foot {
    display: block;
    margin-top: auto;
    padding-top: 2.5rem;
    position: relative;
    z-index: 1;
  }

  .nav.is-open a:hover,
  .nav.is-open a:focus {
    color: var(--vermillion);
    padding-left: 0.5rem;
  }

  .nav.is-open a:hover::before,
  .nav.is-open a:focus::before {
    color: var(--vermillion);
  }

  .nav-foot {
    margin-top: auto;
    padding-top: 2.5rem;
    position: relative;
    z-index: 1;
  }

  .nav-foot .cta-join {
    display: block;
    text-align: center;
    padding: 1rem 1.25rem;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .nav-foot .nav-tg {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--ink-mute);
    text-decoration: none;
    letter-spacing: 0.05em;
  }

  @keyframes nav-fade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero { padding: 3.5rem 0 4rem; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero h1 { font-size: 2.125rem; }

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
    order: -1;
  }

  .vip-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .vip-row .vip-tier:last-child {
    grid-column: span 2;
  }

  .game-cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-cats .game-cat:last-child {
    grid-column: span 2;
  }

  .compare-prose {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .compare-prose .divider { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .age-moon {
    width: 240px;
    height: 240px;
  }

  .age-moon-text .age-mark-big {
    font-size: 2.375rem;
  }

  .author-block {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .author-block .author-photo {
    margin-bottom: 0.5rem;
  }

  .definition-box,
  .answer-box,
  .step-item {
    padding: 1.25rem 1.25rem;
  }

  .step-item {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }

  .step-item .num {
    font-size: 1.875rem;
  }

  .footer-1336 {
    font-size: 0.875rem;
  }
}

@media (max-width: 420px) {
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.875rem; }
}

@media print {
  .site-header, .site-footer, .age-gate, .cta-join, .btn-primary, .btn-ghost,
  .menu-toggle, .diagnose-submit {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
