[hidden]{display:none!important}

/* ========== CSS 変数 ========== */
:root {
  --bg-primary:    #0a0a12;
  --bg-surface:    #14141f;
  --bg-card:       #f4f0ea;
  --amber-main:    #c17e3a;
  --amber-light:   #e8a955;
  --snow-white:    #f0f4f8;
  --slot-green:    #2d5a3f;
  --slot-green-l:  #3d7a55;
  --text-primary:  #eeeae3;
  --text-sub:      #9a9080;
  --text-dark:     #1a1410;
  --danger:        #c0392b;

  --serif: 'Noto Serif JP', 'YuMincho', serif;
  --sans:  'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --garamond: 'Cormorant Garamond', serif;

  --shadow-card: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-drag: 0 12px 32px rgba(0,0,0,0.65);
  --ease-app:    cubic-bezier(.22,.61,.36,1);
}

/* ========== Reset ========== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ol, ul { list-style: none; }

:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 3px; }

/* ========== 法定ヘッダー ========== */
.legal-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(240,244,248,0.7);
  border-bottom: 1px solid rgba(193,126,58,0.18);
  letter-spacing: 0.02em;
}
.legal-bar__sub { font-size: 9px; opacity: 0.7; }
@media (max-width: 600px) {
  .legal-bar { flex-direction: column; gap: 2px; padding: 4px 12px; font-size: 9px; }
  .legal-bar__sub { font-size: 8.5px; }
}

/* ========== Screen 共通 ========== */
.screen {
  min-height: 100vh;
  padding-top: 48px;
  position: relative;
}
@media (max-width: 600px) {
  .screen { padding-top: 56px; }
}

/* ========== HERO ========== */
.screen--hero { padding-bottom: 64px; }
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(10,10,18,0.78) 0%,
    rgba(10,10,18,0.55) 30%,
    rgba(10,10,18,0.85) 70%,
    rgba(10,10,18,0.95) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 24px;
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber-light);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  color: var(--snow-white);
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero__subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: rgba(238,234,227,0.92);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero__voice {
  background: rgba(20,20,31,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 2px solid var(--amber-main);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 auto 40px;
  max-width: 540px;
  text-align: left;
  line-height: 1.8;
}
.hero__voice-em {
  color: var(--amber-light);
  font-weight: 500;
}

.mode__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
  color: var(--snow-white);
}
.mode__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto 16px;
}
@media (min-width: 720px) {
  .mode__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 760px;
    gap: 16px;
  }
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  background: rgba(20,20,31,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(193,126,58,0.42);
  border-radius: 12px;
  padding: 22px 18px 18px;
  transition: transform .25s var(--ease-app), border-color .25s var(--ease-app), box-shadow .25s var(--ease-app);
}
.mode-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber-light);
  box-shadow: 0 8px 28px rgba(193,126,58,0.28);
}
.mode-card__rank {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--amber-light);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.mode-card__num {
  font-family: var(--garamond);
  font-style: italic;
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--snow-white);
  line-height: 1;
  margin-bottom: 12px;
}
.mode-card__num small { font-size: 0.4em; opacity: 0.7; margin-left: 4px; }
.mode-card__desc {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.65;
  flex: 1;
}
.mode-card__desc small {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(240,244,248,0.62);
  line-height: 1.5;
}
.mode-card__btn {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--amber-light);
  padding: 10px;
  border-top: 1px solid rgba(193,126,58,0.3);
  letter-spacing: 0.06em;
}

.mode__note {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-sub);
  margin: 12px 0 28px;
  letter-spacing: 0.04em;
}

.hero__non-official {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(154,144,128,0.85);
  line-height: 1.7;
  margin: 24px auto 0;
  max-width: 520px;
  padding: 12px 16px;
  background: rgba(20,20,31,0.5);
  border-radius: 6px;
}

/* ========== GAME ========== */
.screen--game {
  position: relative;
  padding-bottom: 80px;
  min-height: 100vh;
}
.game__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/game-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.33;
  filter: blur(6px);
}
.screen--game::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(10,10,18,0.7) 0%,
    rgba(10,10,18,0.55) 40%,
    rgba(10,10,18,0.85) 100%);
}
.game__head, .game__layout, .game__hint, .game__actions {
  position: relative;
  z-index: 2;
}
.game__head {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 18px 8px;
  text-align: center;
}
.game__phase-label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--snow-white);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.game__meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-sub);
}
.game__meta .dot { margin: 0 6px; opacity: 0.6; }

.game__layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 900px) {
  .game__layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
  }
}

/* カードプール */
.pool {
  background: rgba(20,20,31,0.62);
  border: 1px solid rgba(240,244,248,0.08);
  border-radius: 12px;
  padding: 12px;
  min-height: 200px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

/* タイムライン */
.timeline {
  background: rgba(20,20,31,0.62);
  border: 1px solid rgba(240,244,248,0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 64px;
}
.slot__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--amber-light);
  background: rgba(193,126,58,0.16);
  border-radius: 8px;
}
.slot__drop {
  flex: 1;
  min-height: 76px;
  border: 1.5px dashed rgba(240,244,248,0.22);
  border-radius: 8px;
  background: rgba(20,20,31,0.4);
  padding: 4px;
  transition: border-color .2s var(--ease-app), background .2s var(--ease-app);
  display: flex;
  align-items: center;
}
.slot__drop:hover,
.slot__drop.is-over {
  border-color: var(--slot-green-l);
  background: rgba(45,90,63,0.18);
}

/* カード本体 */
.card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: var(--shadow-card);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: background .4s var(--ease-app), box-shadow .4s var(--ease-app);
  position: relative;
}
.card:active { cursor: grabbing; }

.card__thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #2d5a3f 0%, #14141f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__thumb svg {
  width: 28px; height: 28px;
  stroke: var(--amber-main);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__name {
  flex: 1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-dark);
}
.card__name small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: rgba(26,20,16,0.65);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.card__grip {
  flex: 0 0 16px;
  color: rgba(26,20,16,0.4);
  font-size: 14px;
  line-height: 1;
}

/* Sortable 状態 */
.card--chosen {
  box-shadow: var(--shadow-drag) !important;
  transform: rotate(2deg) scale(1.02);
  z-index: 50;
}
.card--ghost {
  opacity: 0.4;
}
.card--locked {
  background: linear-gradient(135deg, var(--amber-main) 0%, var(--amber-light) 100%);
  box-shadow: 0 0 18px rgba(232,169,85,0.55), 0 2px 8px rgba(0,0,0,0.3);
  cursor: not-allowed;
  animation: glow 1s var(--ease-app);
}
.card--locked .card__name,
.card--locked .card__name small {
  color: #1a1410;
  font-weight: 700;
}
.card--locked .card__grip { opacity: 0; }
.card--locked .card__thumb {
  background: rgba(26,20,16,0.18);
}
.card--locked .card__thumb svg {
  stroke: #1a1410;
}
.card--wrong {
  animation: shake 0.35s var(--ease-app);
}
.card--final-wrong {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

@keyframes glow {
  0%   { box-shadow: 0 0 0 rgba(232,169,85,0); }
  50%  { box-shadow: 0 0 28px rgba(232,169,85,0.8), 0 2px 8px rgba(0,0,0,0.3); }
  100% { box-shadow: 0 0 18px rgba(232,169,85,0.55), 0 2px 8px rgba(0,0,0,0.3); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.game__hint {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 8px;
  padding: 14px 18px;
  background: rgba(193,126,58,0.12);
  border-left: 3px solid var(--amber-main);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.7;
  animation: fadeIn 0.5s var(--ease-app);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.game__actions {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 600px) {
  .game__actions { flex-direction: row; justify-content: center; }
  .game__actions .btn { flex: 1; max-width: 240px; }
}

.btn {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 52px;
  transition: all .2s var(--ease-app);
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}
.btn--tentative {
  background: transparent;
  color: var(--amber-light);
  border: 1.5px solid var(--amber-main);
}
.btn--tentative:hover:not(:disabled) {
  background: rgba(193,126,58,0.18);
  box-shadow: 0 4px 16px rgba(193,126,58,0.28);
}
.btn--final {
  background: linear-gradient(135deg, var(--amber-main) 0%, var(--amber-light) 100%);
  color: #0a0a12;
  border: none;
  box-shadow: 0 4px 16px rgba(193,126,58,0.42);
}
.btn--final:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(193,126,58,0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid rgba(240,244,248,0.18);
}
.btn--ghost:hover { color: var(--text-primary); border-color: rgba(240,244,248,0.36); }

.mute {
  position: fixed;
  bottom: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(20,20,31,0.82);
  color: var(--amber-light);
  border: 1px solid rgba(193,126,58,0.35);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: all .2s var(--ease-app);
}
.mute.is-muted { color: var(--text-sub); }

/* ========== REVEAL ========== */
.reveal__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  text-align: center;
}
.reveal__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--amber-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.reveal__rank {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--snow-white);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-shadow: 0 2px 18px rgba(193,126,58,0.5);
}
.reveal__sub {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 48px;
  font-style: italic;
}
.reveal__mode-tag {
  display: inline-block;
  margin: 4px auto 18px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber-light);
  border: 1px solid rgba(193,126,58,0.42);
  border-radius: 14px;
  background: rgba(193,126,58,0.08);
}
.reveal__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--amber-light);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(193,126,58,0.3);
}

.reveal__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.card-info {
  background: rgba(20,20,31,0.85);
  border: 1px solid rgba(193,126,58,0.28);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: left;
  backdrop-filter: blur(4px);
}
.card-info__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--amber-light);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.card-info p {
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.85;
}

.card-info--small {
  padding: 16px 18px;
}
.card-info--small h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--amber-light);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.card-info--small p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
}

.reveal__details {
  margin: 16px 0 32px;
  text-align: left;
}
.reveal__details summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-sub);
  padding: 12px 16px;
  background: rgba(20,20,31,0.6);
  border-radius: 6px;
  list-style: none;
  letter-spacing: 0.06em;
  text-align: center;
  transition: color .2s, background .2s;
}
.reveal__details summary::-webkit-details-marker { display: none; }
.reveal__details summary::before { content: '▸ '; color: var(--amber-light); margin-right: 4px; }
.reveal__details[open] summary::before { content: '▾ '; }
.reveal__details summary:hover { color: var(--text-primary); background: rgba(20,20,31,0.85); }
.reveal__details-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.card-summary {
  position: relative;
  min-height: 320px;
  margin: 24px 0 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(193,126,58,0.3);
}
.card-summary__bg {
  position: absolute; inset: 0;
  background-image: url('assets/reveal-kura.jpg');
  background-size: cover;
  background-position: center;
}
.card-summary__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,18,0.5) 0%, rgba(10,10,18,0.85) 100%);
}
.card-summary__inner {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  text-align: center;
}
.card-summary__num {
  font-family: var(--garamond);
  font-style: italic;
  font-weight: 700;
  font-size: 4rem;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
}
.card-summary__num small { font-size: 0.35em; opacity: 0.7; }
.card-summary__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--snow-white);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.card-summary__body {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.85;
}

.non-official {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(154,144,128,0.85);
  line-height: 1.7;
  margin: 32px auto 24px;
  max-width: 480px;
  padding: 12px 16px;
  background: rgba(20,20,31,0.5);
  border-radius: 6px;
}

/* ========== RESULT ========== */
.screen--result {
  position: relative;
  padding-bottom: 64px;
}
.result__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/result-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.33;
  filter: blur(8px);
}
.result__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,18,0.85) 0%, rgba(10,10,18,0.92) 60%, rgba(10,10,18,0.98) 100%);
}
.result__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  text-align: center;
}
.result__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--amber-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.result__rank {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  color: var(--snow-white);
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 4px 28px rgba(193,126,58,0.4);
}
.result__rank-line {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.result__score {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(20,20,31,0.7);
  border: 1px solid rgba(193,126,58,0.3);
  border-radius: 8px;
  margin-bottom: 32px;
}
.result__score-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-sub);
}
.result__score-num {
  font-family: var(--garamond);
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--amber-light);
  line-height: 1;
}
.result__score-best {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.grid8 {
  display: grid;
  grid-template-columns: repeat(4, 56px);
  gap: 8px;
  justify-content: center;
  margin: 0 auto 12px;
}
.grid8 .cell {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}
.grid8 .cell--ok {
  background: linear-gradient(135deg, var(--amber-main) 0%, var(--amber-light) 100%);
  box-shadow: 0 0 12px rgba(232,169,85,0.45);
}
.grid8 .cell--ng {
  background: rgba(240,244,248,0.08);
  border: 1px solid rgba(240,244,248,0.28);
}
.grid8 .cell--empty {
  background: transparent;
  border: 1px dashed rgba(240,244,248,0.18);
}
.grid8__caption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}

.result__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--amber-light);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  padding-top: 16px;
  border-top: 1px solid rgba(193,126,58,0.22);
}
.result__heading-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.lookup {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  background: rgba(20,20,31,0.7);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--sans);
}
.lookup thead {
  background: rgba(193,126,58,0.18);
}
.lookup th {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12px;
  color: var(--amber-light);
  padding: 10px 6px;
  letter-spacing: 0.08em;
}
.lookup td {
  font-size: 12.5px;
  color: var(--text-primary);
  padding: 8px 6px;
  border-top: 1px solid rgba(240,244,248,0.08);
  text-align: center;
}
.lookup td:first-child {
  text-align: left;
  padding-left: 12px;
}
.lookup tr.is-correct {
  background: rgba(193,126,58,0.12);
}
.lookup tr.is-wrong {
  background: rgba(192,57,43,0.12);
}
.lookup tr.is-wrong td:first-child::before {
  content: '✕ '; color: var(--danger); font-weight: 700;
}
.lookup tr.is-correct td:first-child::before {
  content: '✓ '; color: var(--amber-light); font-weight: 700;
}
.lookup__note {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta__heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--amber-light);
  letter-spacing: 0.1em;
  margin: 24px 0 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(193,126,58,0.22);
}

.cta__replay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .cta__replay { flex-direction: row; justify-content: center; }
  .cta__replay .btn { flex: 1; max-width: 280px; }
}

.cta {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14.5px;
  text-align: center;
  background: rgba(20,20,31,0.85);
  border: 1px solid rgba(240,244,248,0.2);
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  transition: all .2s var(--ease-app);
}
.cta:hover {
  border-color: var(--amber-light);
  color: var(--amber-light);
  transform: translateY(-1px);
}
.cta--buy {
  background: linear-gradient(135deg, rgba(193,126,58,0.18) 0%, rgba(232,169,85,0.12) 100%);
  border-color: rgba(193,126,58,0.5);
  color: var(--amber-light);
}
.cta__legal {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-sub);
  margin: 8px 0 4px;
  letter-spacing: 0.04em;
}
.cta__note {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-sub);
  margin: 0 0 18px;
  line-height: 1.7;
}

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(240,244,248,0.08);
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(154,144,128,0.7);
  line-height: 1.7;
}
.footer p + p { margin-top: 4px; }

/* ========== SHARE ========== */
.share__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
}
.share__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--amber-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.share__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--snow-white);
  margin-bottom: 32px;
  letter-spacing: 0.08em;
}
.share__preview {
  width: 100%;
  min-height: 240px;
  padding: 16px;
  background: rgba(20,20,31,0.7);
  border-radius: 12px;
  border: 1px solid rgba(193,126,58,0.2);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share__preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.share__loading {
  font-family: var(--sans);
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.share__inner .btn,
.share__inner a.btn {
  margin-bottom: 10px;
}

/* 隠しシェアカード DOM */
.share-canvas {
  position: fixed;
  left: -99999px;
  top: -99999px;
  width: 1080px;
  height: 1920px;
  pointer-events: none;
}
.share-card {
  position: relative;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.share-card__bg {
  position: absolute; inset: 0;
  background-image: url('assets/game-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(8px);
}
.share-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,18,0.86) 0%, rgba(10,10,18,0.72) 50%, rgba(10,10,18,0.96) 100%);
}
.share-card__inner {
  position: relative;
  z-index: 2;
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
.share-card__brand {
  font-family: var(--garamond);
  font-style: italic;
  font-weight: 700;
  font-size: 64px;
  color: var(--amber-light);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  line-height: 1;
}
.share-card__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 88px;
  color: var(--snow-white);
  line-height: 1.3;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  text-shadow: 0 6px 32px rgba(0,0,0,0.7);
}
.share-card__sub {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  margin-bottom: 96px;
}
.share-card__grid {
  display: grid;
  grid-template-columns: repeat(4, 160px);
  gap: 24px;
  margin-bottom: 72px;
}
.share-card__grid .cell {
  width: 160px;
  height: 160px;
  border-radius: 18px;
}
.share-card__grid .cell--ok {
  background: linear-gradient(135deg, var(--amber-main) 0%, var(--amber-light) 100%);
  box-shadow: 0 0 36px rgba(232,169,85,0.45);
}
.share-card__grid .cell--ng {
  background: rgba(240,244,248,0.08);
  border: 3px solid rgba(240,244,248,0.35);
}
.share-card__meta {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  color: var(--amber-light);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.share-card__voice {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 60px;
  font-style: italic;
  max-width: 880px;
}
.share-card__legal {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 22px;
  color: rgba(154,144,128,0.85);
  letter-spacing: 0.1em;
}

/* ========== prefers-reduced-motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .card--chosen { transform: none !important; }
}
