@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/NotoSansJP-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff8ee;
  --paper: #fffdf6;
  --paper-warm: #f9e8c6;
  --brown: #5e3b2b;
  --brown-soft: #7b5845;
  --orange: #f28e42;
  --sunset: #cf6428;
  --yellow: #f4c44d;
  --brass: #b08a3e;
  --blue: #27364e;
  --blue-deep: #1f2c41;
  --wood-edge: #8a6238;
  --board-fill: #a5c6ea;
  --border: rgb(176 138 62 / 34%);
  --shadow: 0 28px 80px rgb(94 59 43 / 14%);
  --focus: #1769aa;
  --shell: 1120px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--brown); line-height: 1.75; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: var(--yellow); color: var(--brown); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid rgb(94 59 43 / 8%);
  background: linear-gradient(180deg, rgb(255 253 246 / 86%), rgb(255 253 246 / 52%));
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; }
.brand img, .footer-brand img { border-radius: 12px; box-shadow: 0 5px 18px rgb(94 59 43 / 14%); }
.primary-nav, footer nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.primary-nav a, footer nav a, .nav-drawer nav a {
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 6px;
}
.primary-nav a:hover, .primary-nav a:focus-visible,
.nav-drawer nav a:hover, .nav-drawer nav a:focus-visible,
footer nav a:hover, footer nav a:focus-visible { color: #b95c20; }

.nav-drawer { display: none; position: relative; }
.nav-drawer summary {
  list-style: none;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 800;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}
.nav-drawer summary::-webkit-details-marker { display: none; }
.nav-drawer nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 198px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.nav-drawer nav a { padding: 10px 12px; border-radius: 8px; }
.nav-drawer nav a:hover, .nav-drawer nav a:focus-visible { background: rgb(249 232 198 / 50%); }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 140px 0 72px;
  background: radial-gradient(circle at 78% 28%, rgb(244 196 77 / 32%), transparent 29rem), linear-gradient(135deg, #fffdf7 0%, #fff8ee 52%, #f9e8c6 100%);
}
.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(176 138 62 / 16%) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-glow { position: absolute; top: -170px; right: -160px; width: 540px; height: 540px; border: 1px solid rgb(176 138 62 / 15%); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr); align-items: center; gap: 64px; }
.hero-copy { animation: hero-arrive 700ms cubic-bezier(.2, .72, .2, 1) both; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: #9d4b18; font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.eyebrow span { color: var(--brass); }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 5.4vw, 4.25rem); line-height: 1.12; letter-spacing: -.04em; }
.hero-title-line { display: inline-block; white-space: nowrap; }
.hero-title-accent { color: #bd6127; }
.lead { margin-bottom: 30px; color: var(--brown-soft); font-size: 1.1rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 28px; }
.coming-soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  min-height: 58px;
  padding: 10px 18px;
  border: 1px solid var(--brass);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgb(176 138 62 / 12%);
  color: var(--brown);
  line-height: 1.15;
}
.coming-soon strong { font-size: 1.05rem; font-weight: 800; }
.coming-soon small { color: var(--brown-soft); font-size: .72rem; letter-spacing: .08em; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #9c4e1d; font-weight: 800; text-underline-offset: 5px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; color: var(--brown-soft); font-size: .82rem; font-weight: 700; list-style: none; }
.trust-list span { color: #9d4b18; }

.hero-visual {
  position: relative;
  margin: 0;
  animation: hero-arrive 800ms 120ms cubic-bezier(.2, .72, .2, 1) both;
}
.hero-art {
  width: 100%;
  max-height: 620px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 32px;
  object-fit: cover;
  object-position: center 42%;
  box-shadow: 0 36px 80px rgb(94 59 43 / 18%);
}
.floating-note {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 22px;
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  background: rgb(255 253 246 / 90%);
  box-shadow: 0 12px 36px rgb(94 59 43 / 14%);
  backdrop-filter: blur(12px);
  font-size: .78rem;
  font-weight: 800;
}

@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro, .rules, .journey, .faq { padding: 112px 0; }
.intro { position: relative; overflow: hidden; background: var(--paper); text-align: center; }
.intro::before, .intro::after { position: absolute; border: 1px solid rgb(176 138 62 / 16%); border-radius: 50%; content: ""; pointer-events: none; }
.intro::before { top: -190px; left: -120px; width: 430px; height: 430px; }
.intro::after { right: -160px; bottom: -250px; width: 520px; height: 520px; border-style: dashed; }
.intro .shell { position: relative; }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.25; letter-spacing: -.03em; }
.section-lead { max-width: 600px; margin: 0 auto 52px; color: var(--brown-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.feature-card { position: relative; min-height: 280px; overflow: hidden; padding: 30px; border: 1px solid var(--border); border-radius: 26px; background: linear-gradient(155deg, white, #fff9ed); box-shadow: 0 16px 42px rgb(94 59 43 / 7%); }
.feature-card::after { position: absolute; right: -32px; bottom: -44px; width: 124px; height: 124px; border: 1px solid rgb(176 138 62 / 20%); border-radius: 50%; content: ""; }
.feature-fact { display: flex; min-height: 94px; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.feature-fact span { padding-top: 8px; color: var(--brass); font-family: Georgia, serif; font-size: .7rem; font-weight: 700; letter-spacing: .15em; }
.feature-fact strong { color: var(--sunset); font-size: 2.35rem; line-height: 1; letter-spacing: -.06em; }
.feature-fact small { margin-left: 3px; font-size: .85rem; letter-spacing: 0; }
.feature-grid h3 { margin-bottom: 10px; font-size: 1.25rem; }
.feature-grid p { margin-bottom: 0; color: var(--brown-soft); font-size: .92rem; }
.rules { position: relative; overflow: hidden; background: var(--blue); color: var(--paper); }
.rules::before { position: absolute; inset: 0; background-image: radial-gradient(circle, rgb(255 255 255 / 13%) 1px, transparent 1.5px); background-size: 34px 34px; content: ""; mask-image: linear-gradient(115deg, transparent 10%, black 60%, transparent 100%); pointer-events: none; }
.rules::after { position: absolute; top: -300px; right: -240px; width: 620px; height: 620px; border: 1px solid rgb(244 196 77 / 16%); border-radius: 50%; content: ""; pointer-events: none; }
.rules-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 64px; }
.rules-grid > * { position: relative; z-index: 1; }
.rules .section-kicker { color: #f5ca68; }
.rules-copy > p { color: #d3d9e2; }
.ops-list { display: grid; gap: 12px; margin: 28px 0 12px; padding: 0; list-style: none; }
.ops-list li { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.ops-note { margin: 0; color: #bcc5d3; font-size: .86rem; }
.mini-cell, .guide-cell {
  display: grid;
  place-items: center;
  border: 1px solid rgb(39 54 78 / 22%);
  background: var(--board-fill);
  overflow: hidden;
}
.mini-cell { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.mini-cell img, .guide-cell img { width: 108%; height: 108%; object-fit: contain; }
.guide-cross {
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.rule-boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rule-boards li {
  padding: 18px 14px 16px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 22px;
  background: rgb(255 255 255 / 7%);
  text-align: center;
}
.guide-board { display: grid; grid-template-columns: repeat(3, 44px); gap: 3px; justify-content: center; margin: 0 auto 14px; }
.guide-cell { width: 44px; height: 44px; border-radius: 10px; }
.rule-boards p { margin: 0; font-size: .92rem; font-weight: 800; }

.journey { position: relative; overflow: hidden; background: var(--paper-warm); }
.journey-grid { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: 56px; }
.journey-points { margin: 28px 0 0; padding-left: 1.15em; color: var(--brown-soft); }
.journey-points li + li { margin-top: 8px; }
.journey-visual {
  position: relative;
  display: grid;
  place-items: end center;
  margin: 0;
  min-height: 500px;
  overflow: hidden;
  padding: 28px 20px 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 12%, rgb(244 196 77 / 26%), transparent 14rem),
    radial-gradient(circle at 18% 22%, rgb(255 253 246 / 14%), transparent 12rem),
    linear-gradient(180deg, #1f2c41 0%, #27364e 46%, #fff8ee 100%);
  box-shadow: var(--shadow);
}
.journey-constellation {
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(78%, 340px);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}
.journey-marmot {
  position: relative;
  z-index: 1;
  width: min(72%, 300px);
  height: auto;
  margin-bottom: -18px;
  filter: drop-shadow(0 16px 28px rgb(31 44 65 / 28%));
}

.faq { background: #fffdf8; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 84px; }
.faq-intro { max-width: 340px; color: var(--brown-soft); }
.contact-button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 1px solid var(--brass); border-radius: 14px; background: var(--yellow); box-shadow: 0 8px 20px rgb(176 138 62 / 18%); font-weight: 900; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.contact-button:hover, .contact-button:focus-visible { background: #f7d77c; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); transition: background-color 180ms ease; }
.faq-list details[open] { background: rgb(249 232 198 / 24%); }
.faq-list summary { position: relative; padding: 24px 48px 24px 0; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 22px; right: 4px; content: "+"; color: var(--brass); font-size: 1.5rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-bottom: 24px; padding-right: 34px; color: var(--brown-soft); }

footer { padding: 34px 0; background: var(--blue-deep); color: white; }
.footer-inner, .footer-brand { display: flex; align-items: center; }
.footer-inner { justify-content: space-between; gap: 32px; }
.footer-brand { gap: 14px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { letter-spacing: .08em; }
.footer-brand small { margin-top: 2px; color: #bcc5d3; font-size: .7rem; }
footer nav { flex-wrap: wrap; justify-content: flex-end; }
footer nav a:hover, footer nav a:focus-visible { color: #f7d77c; }
footer nav a:focus-visible { outline-color: #f7d77c; }
.mobile-only { display: none; }

@media (max-width: 920px) {
  .primary-nav { display: none; }
  .nav-drawer { display: block; }
  .hero-grid, .rules-grid, .journey-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .header-inner { min-height: 68px; }
  .hero { padding: 112px 0 56px; }
  .hero-copy { text-align: center; }
  h1 { font-size: clamp(2.3rem, 11.5vw, 4.3rem); }
  .hero-actions, .trust-list { justify-content: center; }
  .hero-art { max-height: 480px; }
  .intro, .rules, .journey, .faq { padding: 82px 0; }
  .feature-grid, .rule-boards { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-fact { min-height: 78px; }
  .ops-list { justify-items: center; }
  .rule-boards li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; text-align: left; }
  .guide-board { margin: 0; }
  .journey-visual { min-height: 420px; }
  .footer-inner { align-items: flex-start; }
  footer nav { display: grid; gap: 8px; text-align: right; }
  .mobile-only { display: initial; }
}

@media (max-width: 520px) {
  .brand img { width: 38px; height: 38px; }
  .hero-actions { flex-direction: column; }
  .wide-only { display: none; }
  .hero-art { max-height: 360px; border-radius: 24px; }
  .floating-note { left: 12px; bottom: 12px; font-size: .7rem; }
  .guide-board { grid-template-columns: repeat(3, 38px); }
  .guide-cell { width: 38px; height: 38px; }
  .footer-inner { display: grid; }
  footer nav { text-align: left; }
}

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

@media (hover: hover) {
  .feature-card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
  .feature-card:hover { transform: translateY(-6px); border-color: rgb(176 138 62 / 52%); box-shadow: 0 22px 50px rgb(94 59 43 / 12%); }
  .contact-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgb(176 138 62 / 24%); }
}

.subpage-header { position: relative; background: rgb(255 253 246 / 92%); }
body.subpage { display: flex; min-height: 100vh; flex-direction: column; }
body.subpage > main { flex: 1; }
.legal-main { padding: 82px 0 112px; background: linear-gradient(180deg, var(--cream), var(--paper-warm)); }
.legal-shell { max-width: 860px; }
.legal-heading { margin-bottom: 40px; text-align: center; }
.legal-heading h1 { margin-bottom: 14px; font-size: clamp(2.5rem, 7vw, 4.3rem); }
.legal-heading > p:last-child { color: var(--brown-soft); font-size: .85rem; }
.legal-document { padding: 56px 64px; border: 1px solid var(--border); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.legal-document > p:first-child { margin-bottom: 42px; font-weight: 600; }
.legal-document section + section { margin-top: 44px; }
.app-hub { display: grid; gap: 22px; }
.app-list-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.app-list-card h2 { margin-bottom: 8px; font-size: 1.8rem; }
.app-list-card p { color: var(--brown-soft); }
.app-list-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; }
.app-list-meta li { padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: .8rem; font-weight: 700; }
.app-list-meta .app-list-status { background: var(--paper-warm); }
.app-list-icon { border-radius: 22px; box-shadow: 0 12px 30px rgb(94 59 43 / 16%); }

@media (max-width: 520px) {
  .app-list-card { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .app-list-icon { margin-inline: auto; }
  .app-list-meta { justify-content: center; }
  .app-list-card .contact-button { justify-content: center; }
}
.legal-document h2 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 1.35rem; letter-spacing: -.02em; }
.legal-document p, .legal-document li { color: var(--brown-soft); }
.legal-document ul { margin: 14px 0 0; padding-left: 1.4em; }
.legal-document li + li { margin-top: 7px; }
.legal-document .contact-button { color: var(--brown); }
.back-link { display: inline-flex; gap: 10px; margin-top: 34px; color: #9c4e1d; font-weight: 800; text-underline-offset: 5px; }

.not-found-page { display: grid; min-height: 100vh; place-items: center; padding: 32px; text-align: center; }
.not-found-page main { max-width: 620px; }
.not-found-page img { margin: 0 auto 28px; border-radius: 28px; box-shadow: var(--shadow); }
.not-found-page h1 { margin-bottom: 18px; font-size: clamp(2.3rem, 8vw, 4rem); }
.not-found-page p:not(.section-kicker) { margin-bottom: 28px; color: var(--brown-soft); }

@media (max-width: 760px) {
  .legal-main { padding: 58px 0 82px; }
  .legal-document { padding: 36px 26px; border-radius: 24px; }
}

@media (max-width: 520px) {
  .legal-heading h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); white-space: nowrap; }
  .legal-document .contact-button { width: 100%; justify-content: center; gap: 6px; padding-inline: 8px; font-size: .88rem; white-space: nowrap; }
}

/* 触って理解する、最後の一手の説明用盤面 */
.hero-actions .contact-button { min-height: 58px; }
.hero-actions .coming-soon { min-width: auto; min-height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-actions .coming-soon strong { font-size: .85rem; }
.hero-actions .coming-soon small { margin-top: 4px; }
.play-preview { padding: 96px 0; background: var(--paper); }
.preview-layout { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "copy card" "help card"; gap: 24px 88px; align-items: start; }
.preview-copy { grid-area: copy; align-self: end; }
.preview-help { grid-area: help; }
.preview-copy > p:not(.section-kicker), .preview-help > p { max-width: 440px; color: var(--brown-soft); }
.preview-copy > p:last-child { margin-bottom: 0; }
.preview-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.preview-legend li { padding: 4px 12px; border-radius: 6px; color: var(--blue-deep); font-size: .8rem; font-weight: 700; }
.area-a { background: #f2c4be; }
.area-b { background: #b8d4ec; }
.area-c { background: #c8dcc0; }
.area-d { background: #f6dda2; }
.preview-note { font-size: .85rem; }
.preview-card { grid-area: card; padding: 28px; border: 1px solid var(--border); border-radius: 28px; background: #f5eddd; box-shadow: 0 24px 60px rgb(94 59 43 / 10%); transition: background-color 700ms ease, color 700ms ease; }
.preview-card-heading { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 22px; font-size: .85rem; font-weight: 800; }
#preview-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview-board-wrap { position: relative; width: 100%; max-width: 392px; margin-inline: auto; }
.preview-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--blue); }
.preview-cell { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; cursor: pointer; color: var(--blue-deep); font: inherit; touch-action: manipulation; transition: opacity 600ms ease, background-color 200ms ease; }
.preview-cell > span { position: absolute; top: 2px; left: 5px; font-size: .65rem; font-weight: 800; }
.preview-cell img { width: 76%; height: 76%; object-fit: contain; }
.preview-cell:disabled { cursor: default; opacity: 1; }
.preview-cell:focus-visible { outline: 3px solid white; outline-offset: -5px; box-shadow: 0 0 0 3px var(--blue); z-index: 2; }
.preview-cell.is-mistake { border-color: #8a3528; }
.preview-cell.is-hint { border: 3px dashed var(--blue-deep); }
.preview-cell.is-hint::after { position: absolute; content: 'ここ'; font-size: .85rem; font-weight: 900; }
.preview-status { min-height: 5.25em; margin: 22px 0 12px; font-size: .92rem; font-weight: 650; }
.preview-next { margin: 0 0 24px; padding-top: 20px; border-top: 1px solid #8290a5; }
.preview-next h3 { margin-bottom: 8px; font-size: 1.2rem; }
.preview-next h3 span { display: inline-block; }
.preview-next p { margin-bottom: 16px; color: #d3d9e2; font-size: .85rem; }
.preview-next .contact-button { color: var(--brown); font-size: .92rem; }
.preview-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.preview-controls[hidden] { display: none; }
.preview-controls button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--brown-soft); border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.preview-controls button:disabled { opacity: .5; cursor: default; }
.preview-caption { margin: 16px 0 0; font-size: .72rem; color: var(--brown-soft); }
.preview-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.preview-stars path { fill: none; stroke: #f4c44d; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.preview-stars circle { fill: #fff8ee; stroke: #f4c44d; stroke-width: 2; }
.preview-card.is-complete { background: var(--blue-deep); color: var(--paper); }
.is-complete .preview-cell { opacity: .18; cursor: default; }
.is-complete .preview-cell:focus-visible { opacity: .7; }
.is-complete .preview-stars { opacity: 1; transition: opacity 600ms ease; }
.is-complete .preview-stars path { stroke-dashoffset: 0; transition: stroke-dashoffset 1300ms ease; }
.is-complete .preview-controls button { border-color: #c4cddb; }
.is-complete .preview-caption { color: #c4cddb; }
.preview-card :focus-visible, .rules :focus-visible { outline-color: #a6531d; }
.preview-card.is-complete :focus-visible, .rules :focus-visible { outline-color: #f4c44d; }
.closing-invite { padding: 56px 0; background: var(--paper-warm); }
.closing-inner { display: flex; gap: 30px; align-items: center; }
.closing-inner > img { width: 100px; height: 100px; object-fit: contain; }
.closing-inner > div { flex: 1; }
.closing-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.closing-inner p { margin-bottom: 8px; }
.closing-inner .contact-button { flex-shrink: 0; }
@media (hover: hover) {
  .preview-cell:not(:disabled):not([aria-disabled]):hover { border-color: var(--brown-soft); }
  .preview-controls button:not(:disabled):hover { background: rgb(176 138 62 / 15%); }
}
@media (max-width: 920px) {
  .preview-layout { column-gap: 36px; }
  .closing-inner { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .play-preview { padding: 32px 0 56px; }
  .preview-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "card" "help"; gap: 24px; }
  .preview-copy, .preview-help { width: min(100%, 480px); margin-inline: auto; }
  .preview-copy .section-kicker { margin-bottom: 10px; }
  .preview-copy h2 { margin-bottom: 12px; }
  .preview-copy > p:not(.section-kicker), .preview-help > p { max-width: none; }
  .preview-card { width: min(100%, 480px); margin-inline: auto; }
  .hero { padding-top: 100px; }
  .hero-grid { gap: 28px; }
  .hero-art { max-height: 340px; }
  .closing-inner { justify-content: center; text-align: center; gap: 20px; }
  .closing-inner > div { flex-basis: 100%; }
  .closing-inner > img { width: 80px; height: 80px; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .contact-button { font-size: .9rem; }
  .hero-art { max-height: 280px; }
  .preview-card { padding: 20px 16px; }
  .preview-copy h2 { font-size: 1.75rem; }
  .preview-copy > p:not(.section-kicker) { font-size: .92rem; }
  .preview-card-heading { margin-bottom: 16px; }
  .preview-cell > span { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-card, .preview-cell, .preview-stars, .preview-stars path { transition: none !important; }
}
