/* ===== Landing Override - Premium Dark & Gold Theme ===== */

/* === Base Overrides === */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #020208;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  padding-top: 56px;
  position: relative;
}

.landing {
  position: relative;
  background: #020208;
  overflow: hidden;
  max-width: 100vw;
  width: 100%;
}

/* === Nebula / Galaxy Layers === */
.galaxy-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Nebula color clouds */
.galaxy-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(80, 20, 140, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 15%, rgba(20, 60, 160, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 700px 350px at 70% 65%, rgba(140, 30, 80, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 400px 600px at 25% 75%, rgba(20, 80, 140, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 40%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 800px 400px at 50% 50%, rgba(60, 10, 80, 0.15) 0%, transparent 80%);
  animation: nebula-drift 40s ease-in-out infinite alternate;
}

/* Galaxy spiral / milky way band */
.galaxy-bg::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background:
    radial-gradient(ellipse 1200px 200px at 50% 35%, rgba(120, 80, 200, 0.12) 0%, transparent 80%),
    radial-gradient(ellipse 1000px 120px at 45% 38%, rgba(180, 150, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 800px 80px at 55% 33%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  transform: rotate(-15deg);
  animation: galaxy-rotate 120s linear infinite;
}

@keyframes nebula-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -1%) scale(1.02); }
  66% { transform: translate(-1%, 2%) scale(0.98); }
  100% { transform: translate(1%, -1%) scale(1.01); }
}

@keyframes galaxy-rotate {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(345deg); }
}

/* Nebula pulse glow spots */
.nebula-glow-1,
.nebula-glow-2,
.nebula-glow-3 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.nebula-glow-1 {
  width: 500px; height: 500px;
  top: 10%; left: 5%;
  background: radial-gradient(circle, rgba(100, 40, 200, 0.2) 0%, transparent 70%);
  animation: nebula-pulse-1 12s ease-in-out infinite alternate;
}
.nebula-glow-2 {
  width: 600px; height: 400px;
  top: 50%; right: 0;
  background: radial-gradient(circle, rgba(200, 50, 100, 0.15) 0%, transparent 70%);
  animation: nebula-pulse-2 15s ease-in-out infinite alternate;
}
.nebula-glow-3 {
  width: 400px; height: 500px;
  bottom: 10%; left: 30%;
  background: radial-gradient(circle, rgba(30, 100, 200, 0.18) 0%, transparent 70%);
  animation: nebula-pulse-3 18s ease-in-out infinite alternate;
}

@keyframes nebula-pulse-1 {
  0% { opacity: 0.4; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.7; transform: scale(1.15) translate(20px, -10px); }
  100% { opacity: 0.5; transform: scale(1.05) translate(-10px, 15px); }
}
@keyframes nebula-pulse-2 {
  0% { opacity: 0.3; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.6; transform: scale(1.1) translate(-15px, 10px); }
  100% { opacity: 0.4; transform: scale(0.95) translate(10px, -20px); }
}
@keyframes nebula-pulse-3 {
  0% { opacity: 0.3; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.55; transform: scale(1.2) translate(10px, 15px); }
  100% { opacity: 0.35; transform: scale(1.05) translate(-15px, -10px); }
}

/* === Particle Canvas === */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === CSS Variables Extended === */
:root {
  --gold: #d4a843;
  --gold-light: #f0d78c;
  --gold-dark: #a07c2e;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  background: rgba(2, 2, 8, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav.scrolled {
  padding: 0.75rem 5%;
  background: rgba(2, 2, 8, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav::after {
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.4), transparent);
}

.logo {
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.3));
  margin-right: 2rem;
}
.logo-img:hover { transform: scale(1.05); }

/* PC はロゴ横にページリンクをインライン表示（スマホでは非表示、≡ の中だけ）。
   1行に収まらない幅では client.tsx が .is-clipped を付けて隠す（≡ には常にある）。 */
.nav-inline {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-right: 1rem;
  padding: 6px 0;  /* room for the hover underline (bottom: -5px) inside the clip */
  overflow: hidden;
}
.nav-inline .nav-links {
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav-inline .nav-links a {
  white-space: nowrap;
}
.nav-inline.is-clipped .nav-links {
  visibility: hidden;
}

/* 言語・ログインボタン（右端。ログイン中はログインボタンが消える） */
.nav-auth-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  order: 10;
}

/* メニューは PC・スマホとも ≡ ひとつ（オーナー 2026-10-29）。中身はアカウント欄
   ＋ページリンクで同じ。PC では ≡ の下に開くドロップダウン、スマホでは全幅。 */
.hamburger {
  display: flex;
  flex-shrink: 0;
  margin-left: 1rem;
  order: 11;
}

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 5%;
  width: 320px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: stretch;
  background: rgba(5, 5, 16, 0.98);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding-bottom: 0.5rem;
}
.nav-panel.active {
  display: flex;
}

.nav-panel .nav-links {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: center;
  padding: 0.5rem 0 0;
}
.nav-panel .nav-links a {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-panel .nav-links a:last-child {
  border-bottom: none;
}
.nav-panel .nav-links a::after {
  display: none;
}

.hamburger span {
  background: var(--gold);
  box-shadow: 0 0 5px rgba(212, 168, 67, 0.3);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-links a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.nav-links a::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 8px rgba(212, 168, 67, 0.4);
  height: 1px;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--gold-light);
  text-shadow: none;
}

/* === Hero === */
.hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(20, 5, 50, 0.6) 0%, transparent 70%);
  padding-top: 14px;
  padding-bottom: 2rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 67, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  padding: 4rem 2rem 2rem;
}

/* 3D Chip (Three.js canvas) */
.chip-3d-wrapper {
  width: 280px;
  height: 280px;
  overflow: hidden;
}
#chip-3d-canvas {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* Glitch Text */
.glitch-text { position: relative; }
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-size: inherit; font-weight: inherit;
  letter-spacing: inherit; text-transform: inherit;
  font-family: inherit;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 60%, var(--gold-light) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
}
.glitch-text::before {
  animation: glitch-1 5s infinite linear;
  left: -2px;
  filter: drop-shadow(2px 0 rgba(0, 255, 255, 0.7));
}
.glitch-text::after {
  animation: glitch-2 5s infinite linear;
  left: 2px;
  filter: drop-shadow(-2px 0 rgba(255, 0, 255, 0.7));
}

@keyframes glitch-1 {
  0%, 89%, 100% { transform: none; opacity: 0; }
  90% { transform: translate(-3px, 1px) skew(0.8deg); opacity: 0.8; }
  91% { transform: translate(3px, -1px) skew(-0.8deg); opacity: 0.8; }
  92% { transform: none; opacity: 0; }
}
@keyframes glitch-2 {
  0%, 93%, 100% { transform: none; opacity: 0; }
  94% { transform: translate(3px, -1px) skew(-0.8deg); opacity: 0.8; }
  95% { transform: translate(-3px, 1px) skew(0.8deg); opacity: 0.8; }
  96% { transform: none; opacity: 0; }
}

.hero-content h1 {
  font-family: 'Audiowide', 'Orbitron', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #fff8e1 0%,
    #f0d78c 15%,
    #d4a843 35%,
    #a07c2e 50%,
    #d4a843 65%,
    #f0d78c 85%,
    #fff8e1 100%
  );
  background-size: 100% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(212, 168, 67, 0.25));
  text-shadow: none;
  line-height: 1.15;
}

@keyframes gold-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subheadline {
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  line-height: 1.8;
}

/* Highlights */
.hero-highlights { gap: 2rem; }

.highlight-item {
  padding: 1.5rem 2.5rem;
  background: rgba(212, 168, 67, 0.04);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  /* overflow stays visible so the info tooltip can escape the card */
  overflow: visible;
}
.highlight-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(212, 168, 67, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.highlight-item:hover::before { opacity: 1; }
.highlight-item:hover {
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.15), inset 0 1px 0 rgba(212, 168, 67, 0.2);
  transform: translateY(-4px);
}

.highlight-value {
  font-size: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold-light);
  text-shadow: none;
  animation: none;
  line-height: 1;
}

.highlight-unit {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold);
}

.highlight-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
  font-family: 'Orbitron', sans-serif;
  margin-top: 0.25rem;
}

/* Keep the number and its unit (%, B) together on one line as "80%" / "1B" */
.highlight-figure {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
}

/* Info icon next to the 80% figure */
.highlight-info {
  position: relative;
  align-self: flex-start;
  margin-left: 0.4rem;
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: none;
  background: none;
  color: rgba(212, 168, 67, 0.6);
  cursor: pointer;
  transition: color 0.2s;
  flex: none;
}
.highlight-info svg { width: 100%; height: 100%; display: block; }
.highlight-info:hover,
.highlight-info:focus-visible { color: var(--gold-light); outline: none; }

.highlight-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 12, 8, 0.97);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 30;
  pointer-events: none;
}
.highlight-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(212, 168, 67, 0.35);
}
.highlight-info:hover .highlight-tooltip,
.highlight-info:focus .highlight-tooltip,
.highlight-info:focus-visible .highlight-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Buttons */
.hero-buttons { margin-bottom: 3rem; }

/* Buy / Deposit $WSOG — a smaller row tucked under the hero buttons (owner 2026-10-28) */
.hero-token-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin: -1.75rem 0 3rem; }
.btn-token {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light)); color: #0a0a0a;
  text-decoration: none; box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-token:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, 0.4); color: #0a0a0a; }
.btn-token-ghost { background: rgba(10, 10, 20, 0.55); color: var(--gold-light); border: 1.5px solid var(--gold); box-shadow: none; }
.btn-token-ghost:hover { color: var(--gold-light); box-shadow: 0 0 18px rgba(212, 175, 55, 0.3); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 200%;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  animation: gold-shimmer 3s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(212, 168, 67, 0.4), 0 0 20px rgba(212, 168, 67, 0.2);
  color: #0a0a0a;
}

.btn-glow { box-shadow: 0 0 20px rgba(212, 168, 67, 0.2); }

.btn-secondary {
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary::before {
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.15), transparent);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.15);
  transform: translateY(-3px);
  text-shadow: none;
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.scroll-indicator span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'Orbitron', sans-serif;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1px solid rgba(212, 168, 67, 0.4);
  border-bottom: 1px solid rgba(212, 168, 67, 0.4);
  transform: rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* === Section Common === */
section h2 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
}

.section-description {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.section-subheadline {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.7);
}

/* === Games Section === */
.games-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 5, 32, 0.4) 50%, transparent 100%);
  z-index: 1;
  overflow: hidden;
}
.games-section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.games-section h2 {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.15));
}

.game-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 168, 67, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.game-card:hover::before,
.game-card:hover::after { opacity: 1; }
.game-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.04);
  transform: translateY(-8px);
  border-color: rgba(212, 168, 67, 0.2);
}

.game-card.game-live {
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.03);
  box-shadow: none;
}
.game-card.game-live:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 255, 136, 0.06);
}

.game-card.game-coming {
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.7;
}

/* Clickable game cards (e.g. SUSANOO → susanoo.wsog.net) — an <a> using the
   same box as the plain informational <div> cards. */
a.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.game-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyber-green);
  transition: gap 0.3s;
}
.game-card-cta::after { content: "›"; font-size: 1.1em; line-height: 1; }
a.game-card:hover .game-card-cta { gap: 0.6rem; }

.game-badge {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Orbitron', sans-serif;
}
.game-live .game-badge {
  background: rgba(0, 255, 136, 0.15);
  color: var(--cyber-green);
  border-color: rgba(0, 255, 136, 0.3);
  text-shadow: none;
}

.game-card h3 {
  font-family: 'Orbitron', sans-serif;
}
.game-card p {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.btn-game {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.btn-game:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.btn-game-secondary {
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.btn-game-secondary:hover {
  background: rgba(212, 168, 67, 0.08);
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.15);
}

/* === Platform Section === */
.platform-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 26, 0.4) 50%, transparent 100%);
  z-index: 1;
  overflow: hidden;
}
.platform-section h2 {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}
.platform-section .section-description {
  color: rgba(255, 255, 255, 0.5);
}

.platform-features { max-width: 640px; }
.platform-features ul { gap: 0.75rem; }
.platform-features li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.platform-features li:hover {
  border-color: rgba(212, 168, 67, 0.3);
  background: rgba(212, 168, 67, 0.03);
  transform: translateX(8px);
  box-shadow: none;
}
.platform-features li::before {
  color: var(--gold);
  text-shadow: none;
}

.platform-tagline { color: rgba(255, 255, 255, 0.7); }
.platform-tagline strong {
  color: var(--gold-light);
  text-shadow: none;
}

/* === Return Section === */
.return-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 5, 32, 0.4) 50%, transparent 100%);
  z-index: 1;
  overflow: hidden;
}
.return-section::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.return-section h2 {
  background: linear-gradient(135deg, var(--cyber-pink), var(--cyber-purple));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

.return-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.return-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.return-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-purple), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.return-card:hover::before { opacity: 1; }
.return-card:hover {
  border-color: rgba(153, 69, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(153, 69, 255, 0.05);
  transform: translateY(-8px);
}

.return-percent {
  font-family: 'JetBrains Mono', monospace;
  text-shadow: none;
}
.return-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.return-card p {
  color: rgba(255, 255, 255, 0.5);
}

.return-note { color: rgba(255, 255, 255, 0.7); }
.return-note strong {
  color: var(--gold-light);
  text-shadow: none;
}

/* === Sustainability Section === */
.sustainability-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 21, 16, 0.4) 50%, transparent 100%);
  z-index: 1;
  overflow: hidden;
}
.sustainability-section h2 {
  background: linear-gradient(135deg, var(--cyber-green), #00cc88);
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

.sustainability-list { max-width: 640px; gap: 0.75rem; }
.sustainability-item {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sustainability-item:hover {
  border-color: rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.03);
  transform: translateX(8px);
  box-shadow: none;
}

.sustainability-tagline { color: rgba(255, 255, 255, 0.7); }
.sustainability-tagline strong { text-shadow: none; }

/* === Tokenomics Section === */
.tokenomics-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 5, 32, 0.4) 50%, transparent 100%);
  z-index: 1;
  overflow: hidden;
}
.tokenomics-section h2 {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}
.tokenomics-section .section-subheadline {
  color: rgba(255, 255, 255, 0.6);
}

/* Pie Chart */
.tokenomics-chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.tokenomics-chart {
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}
.pie-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(212,168,67,0.15));
}
.pie-chart text {
  transform: rotate(90deg);
  transform-origin: 100px 100px;
}
.pie-segment {
  transition: opacity 0.3s;
}
.pie-segment:hover {
  opacity: 0.7;
}

/* Pie chart draw-in animation */
@keyframes pie-draw {
  from { stroke-dashoffset: 502.65; opacity: 0; }
  to { opacity: 1; }
}
.pie-seg-1 { animation: pie-draw 1.2s cubic-bezier(0.4,0,0.2,1) 0.2s both; }
.pie-seg-2 { animation: pie-draw 1.0s cubic-bezier(0.4,0,0.2,1) 0.6s both; }
.pie-seg-3 { animation: pie-draw 0.8s cubic-bezier(0.4,0,0.2,1) 0.9s both; }
.pie-seg-4 { animation: pie-draw 0.6s cubic-bezier(0.4,0,0.2,1) 1.1s both; }

.tokenomics-legend {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.legend-dot-empty {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: none;
}
.legend-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
}

.tokenomics-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.tokenomics-card:hover {
  border-color: rgba(153, 69, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px);
}

.tokenomics-card.tokenomics-main {
  background: rgba(255, 0, 255, 0.03);
  border: 1px solid rgba(255, 0, 255, 0.15);
  box-shadow: none;
}
.tokenomics-card.tokenomics-main:hover {
  border-color: rgba(255, 0, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 0, 255, 0.05);
}

.tokenomics-card.tokenomics-zero {
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.15);
  box-shadow: none;
}
.tokenomics-card.tokenomics-zero:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.05);
}

.tokenomics-percent {
  font-family: 'JetBrains Mono', monospace;
  text-shadow: none;
}
.tokenomics-main .tokenomics-percent { text-shadow: none; }
.tokenomics-zero .tokenomics-percent { text-shadow: none; }

.tokenomics-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.tokenomics-card p {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.tokenomics-sub {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tokenomics-sub li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.tokenomics-sub li strong {
  flex-shrink: 0;
  min-width: 2.6em;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: rgba(212, 168, 67, 0.95);
}

.tokenomics-principles {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.tokenomics-principles h4 {
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}
.tokenomics-principles li {
  color: rgba(255, 255, 255, 0.6);
}

/* === Roadmap Section === */
.roadmap-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 26, 0.4) 50%, transparent 100%);
  z-index: 1;
  overflow: hidden;
}
.roadmap-section h2 {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

.roadmap-timeline { padding-left: 40px; }
.roadmap-timeline::before {
  left: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(212, 168, 67, 0.2), transparent);
  box-shadow: none;
}

.roadmap-item { transition: all 0.3s; }
.roadmap-item:hover { transform: translateX(4px); }

.roadmap-marker {
  left: -40px;
  width: 16px; height: 16px;
  background: #020208;
  border: 2px solid rgba(212, 168, 67, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.roadmap-item:hover .roadmap-marker {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.3);
}
.roadmap-active .roadmap-marker {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.4);
}

.roadmap-content h3 {
  color: var(--gold-light);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.roadmap-content p {
  color: rgba(255, 255, 255, 0.5);
}

.roadmap-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* === Footer === */
.footer {
  background: rgba(3, 3, 8, 0.8);
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  z-index: 1;
}
.footer-brand p {
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-shadow: none;
}
.footer-disclaimer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-disclaimer p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-copyright p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.25);
  background: rgba(212, 168, 67, 0.05);
  color: var(--gold);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-link:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.2);
}
.social-link svg {
  display: block;
}

/* === Responsive === */
@media (max-width: 768px) {
  /* Nav */
  .nav {
    padding: 0.75rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
  .logo-img { height: 28px; margin-right: 0; }

  /* モバイルでもログインボタンを nav 上に表示。ハンバーガー内に隠さない。 */
  .nav-auth-desktop {
    display: flex !important;
    margin-left: auto;
    margin-right: 0.5rem;
    order: 4;
    gap: 0.4rem;
    align-items: center;
  }

  /* ハンバーガーは右端 */
  .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: 0;
    order: 5;
  }

  /* ページリンクは ≡ の中だけ */
  .nav-inline {
    display: none;
  }
  .nav-panel .nav-links {
    padding: 0.5rem 0;
  }
  .nav-panel .nav-links a {
    padding: 1rem;
  }

  /* ≡ のパネルはスマホでは全幅 */
  .nav-panel {
    left: 0;
    right: 0;
    width: 100%;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 1rem;
  }

  /* モバイルメニュー内のリンク */
  .nav-links {
    display: flex;
    position: static;
    flex-direction: column;
    gap: 0;
    text-align: center;
    padding: 0.5rem 0;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero { padding-top: 56px; }
  .hero-content { padding: 1.5rem 1.25rem 2rem; }
  .hero-content h1 {
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }
  .hero-subheadline { font-size: 1rem; margin-bottom: 1rem; }
  .hero-description { font-size: 0.9rem; margin-bottom: 2rem; line-height: 1.7; }
  .hero-buttons {
    flex-direction: column;
    padding: 0 0.5rem;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .hero-buttons a { width: 100%; text-align: center; padding: 0.875rem 1.5rem; }
  .hero-token-cta { margin: -1rem 0 2rem; padding: 0 0.5rem; }
  .hero-token-cta .btn-token { flex: 1 1 0; min-width: 0; padding: 0.7rem 0.75rem; font-size: 0.85rem; }

  /* 3D Chip */
  .chip-3d-wrapper { height: 200px; width: 200px; }

  /* Highlights */
  .hero-highlights {
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.5rem;
  }
  .highlight-item {
    padding: 0.875rem 1.25rem;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }
  .highlight-value { font-size: 1.75rem; }
  .highlight-unit { font-size: 1.1rem; }
  .highlight-label { font-size: 0.65rem; margin-top: 0; }
  .highlight-info { width: 0.9rem; height: 0.9rem; margin-left: 0.3rem; margin-top: 0; align-self: center; }
  .highlight-tooltip { max-width: 200px; font-size: 0.68rem; }

  /* Section common */
  section h2 { font-size: 1.5rem; }
  .section-description { font-size: 0.9rem; margin-bottom: 2rem; }
  .section-subheadline { font-size: 1rem; }
  .section-container { padding: 0 1.25rem; }

  .games-section,
  .platform-section,
  .return-section,
  .sustainability-section,
  .tokenomics-section,
  .roadmap-section {
    padding: 3.5rem 0;
  }

  /* Games */
  .game-card { padding: 1.5rem; }
  .game-card h3 { font-size: 1.1rem; }
  .game-card p { font-size: 0.85rem; }

  /* Platform */
  .platform-features { max-width: 100%; }
  .platform-features li { font-size: 0.9rem; padding: 1rem; }
  .platform-tagline { font-size: 1rem; }

  /* Return */
  .return-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .return-card { padding: 1.25rem; }
  .return-percent { font-size: 1.75rem; }
  .return-card h3 { font-size: 0.8rem; }
  .return-card p { font-size: 0.75rem; }
  .return-note { font-size: 0.9rem; }

  /* Sustainability */
  .sustainability-list { max-width: 100%; }
  .sustainability-item { padding: 1rem; font-size: 0.9rem; }
  .sustainability-tagline { font-size: 1rem; }

  /* Tokenomics */
  .tokenomics-chart-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  .tokenomics-chart { width: 200px; height: 200px; }
  .tokenomics-legend { align-items: center; }
  .legend-label { font-size: 0.85rem; }
  .tokenomics-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .tokenomics-card { padding: 1.25rem; }
  .tokenomics-percent { font-size: 1.75rem; }
  .tokenomics-card h3 { font-size: 0.85rem; }
  .tokenomics-card p { font-size: 0.8rem; }
  .tokenomics-principles { padding: 1.25rem; }
  .tokenomics-principles h4 { font-size: 0.85rem; }
  .tokenomics-principles li { font-size: 0.85rem; }

  /* Roadmap */
  .roadmap-timeline { padding-left: 35px; }
  .roadmap-content h3 { font-size: 0.9rem; }
  .roadmap-content p { font-size: 0.85rem; }
  .roadmap-tagline { font-size: 1rem; }

  /* Footer */
  .footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-brand p { font-size: 0.75rem; letter-spacing: 0.1em; }
  .footer-disclaimer { padding: 1.25rem; }
  .footer-disclaimer p { font-size: 0.75rem; }

  .scroll-indicator { display: none; }
}

/* Very small phones */
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 1.4rem;
    letter-spacing: 0.02em;
  }
  .hero-subheadline { font-size: 0.9rem; }
  .chip-3d-wrapper { height: 170px; width: 170px; }
  .highlight-value { font-size: 1.5rem; }
  .return-grid { grid-template-columns: 1fr; }
}

/* ===== Login Button Styles ===== */
.nav-auth {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.login-loading {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.login-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-mock-login,
.btn-google-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-mock-login {
  background: rgba(212, 168, 67, 0.1);
  color: rgba(212, 168, 67, 0.9);
}

.btn-mock-login:hover {
  background: rgba(212, 168, 67, 0.2);
  border-color: rgba(212, 168, 67, 0.3);
}

.btn-google-login {
  background: #fff;
  color: #333;
}

.btn-google-login:hover {
  background: #f5f5f5;
}

.login-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ≡ の先頭のアカウント欄（PC・スマホ共通。.nav-account 内） */
.login-menu {
  margin: 0.75rem 1.25rem 0.25rem;
  padding: 0.85rem 0.9rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 67, 0.18);
  border-radius: 12px;
}

.login-menu-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.login-menu-head .login-avatar {
  width: 32px;
  height: 32px;
}

.login-menu-name {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-menu-logout {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 100, 100, 0.35);
  border-radius: 999px;
  color: rgba(255, 120, 120, 0.95);
  font-size: 0.75rem;
  cursor: pointer;
}

/* ログアウトは確認してから（誤タップ対策） */
.login-menu-confirm {
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.login-menu-confirm-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.login-menu-cancel,
.login-menu-logout-yes {
  padding: 0.55rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.login-menu-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.login-menu-logout-yes {
  background: rgba(220, 60, 60, 0.9);
  border: 1px solid rgba(255, 120, 120, 0.9);
  color: #fff;
}

.login-menu-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

.login-menu-logout-yes:hover {
  background: rgba(235, 75, 75, 1);
}

.login-menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.login-menu-link {
  display: block;
  padding: 0.65rem 0.5rem;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.login-menu-link:active {
  background: rgba(212, 168, 67, 0.2);
}

.login-menu-build {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ===== MyPage Styles ===== */
.mypage {
  min-height: calc(100vh - 56px);
  padding: 2rem;
  background: #020208;
}

.mypage-container {
  max-width: 600px;
  margin: 0 auto;
}

.mypage-header {
  margin-bottom: 2rem;
}

.mypage-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: rgba(212, 168, 67, 0.9);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.user-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 168, 67, 0.3);
}

.user-info h2 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.user-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.user-role {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(212, 168, 67, 0.1);
  color: rgba(212, 168, 67, 0.9);
  font-size: 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mypage-actions {
  display: flex;
  gap: 1rem;
}

.btn-home,
.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-home {
  background: rgba(212, 168, 67, 0.1);
  color: rgba(212, 168, 67, 0.9);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.btn-home:hover {
  background: rgba(212, 168, 67, 0.2);
}

.btn-logout {
  background: rgba(255, 100, 100, 0.1);
  color: rgba(255, 100, 100, 0.9);
  border: 1px solid rgba(255, 100, 100, 0.2);
}

.btn-logout:hover {
  background: rgba(255, 100, 100, 0.2);
}

/* ===== Auth Error Banner ===== */
.auth-error-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92%;
  width: 480px;
  z-index: 2000;
  background: linear-gradient(135deg, rgba(80, 20, 20, 0.95), rgba(120, 30, 30, 0.95));
  border: 1px solid rgba(255, 120, 120, 0.4);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: auth-error-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-error-slide-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.auth-error-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.auth-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 200, 200, 0.95);
  color: rgba(120, 30, 30, 1);
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.auth-error-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: rgba(255, 240, 240, 0.95);
  font-size: 0.875rem;
  line-height: 1.4;
}

.auth-error-code {
  color: rgba(255, 200, 200, 0.6);
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
}

.auth-error-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 240, 240, 0.9);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.auth-error-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Mobile styles for login — keep button compact but readable */
@media (max-width: 768px) {
  .btn-mock-login,
  .btn-google-login {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .btn-google-login svg,
  .btn-mock-login svg {
    width: 14px;
    height: 14px;
  }
}

/* === Mini Games Section === */
.minigames-section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.minigames-section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(54, 216, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.minigames-section h2 {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.15));
}
.minigames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.minigame-card {
  /* "← WSOG" in a game links to /play#game-<slug>: land below the fixed nav */
  scroll-margin-top: 96px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s, box-shadow 0.45s;
}
.minigame-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 67, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 36px rgba(54, 216, 255, 0.07);
}
.minigame-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0a0e1c;
  overflow: hidden;
}
.minigame-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.minigame-card:hover .minigame-thumb img { transform: scale(1.06); }
.minigame-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 24, 0.85) 100%);
  pointer-events: none;
}
.minigame-meta {
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}
.minigame-meta h3 {
  margin: 0 0 0.35rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.minigame-meta p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}
.minigame-play {
  position: absolute;
  top: 0.7rem; right: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s, transform 0.4s;
}
.minigame-card:hover .minigame-play { opacity: 1; transform: translateY(0); }

/* Staged post-launch opening (app/lib/maintenance.ts GAME_LAUNCH_MODE):
   games not yet reopened wear a COMING SOON chip over their thumbnail
   (text localized via data-i18n="landing.comingSoon"). The chip scales
   with the card width (cqi) so it reads big on every grid; the fixed
   font-size is the fallback for browsers without container units. */
.minigame-thumb, .featured-game-media { container-type: inline-size; }
.minigame-soon {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-size: clamp(0.7rem, 8cqi, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  max-width: 94%;
  color: var(--gold-light);
  background: rgba(7, 10, 24, 0.88);
  border: 2px solid rgba(245, 184, 61, 0.8);
  border-radius: 999px;
  padding: 0.55em 1.1em;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 18px rgba(245, 184, 61, 0.3);
  pointer-events: none;
}
/* SUSANOO's wide banner wears the same chip as the cards (no corner badge
   until it opens); the banner is wider, so cap the scale a little lower. */
.featured-game-media .minigame-soon { font-size: clamp(0.8rem, 6cqi, 1.6rem); }

@media (max-width: 560px) {
  .minigames-section { padding: 5rem 0; }
  .minigames-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
  .minigame-meta h3 { font-size: 0.9rem; }
  .minigame-meta p { font-size: 0.75rem; }
  .minigame-soon { letter-spacing: 0.04em; }
}

/* === Roadmap: reversed timeline (Phase 13 → 1) ===
   Line & markers share one x via CSS vars so alignment holds at EVERY
   breakpoint (the old fixed left:-40px drifted when mobile media queries
   changed the padding). The current phase's marker is a small rocket
   riding the line; reached phases sit at the bottom, so the line's glow
   rises from them. */
.roadmap-timeline { --tl-pad: 40px; --tl-x: 8.5px; padding-left: var(--tl-pad); }
@media (max-width: 768px) { .roadmap-timeline { --tl-pad: 35px; } }
.roadmap-timeline::before {
  left: calc(var(--tl-x) - 0.5px);
  background: linear-gradient(0deg, var(--gold), rgba(212, 168, 67, 0.2), transparent);
}
.roadmap-marker {
  left: calc(var(--tl-x) - var(--tl-pad));
  transform: translateX(-50%);
}
.roadmap-current .roadmap-marker {
  width: 30px;
  height: 51px; /* asset is 378x640 */
  top: 1rem;
  background: transparent url('/static/roadmap-rocket.png') center / contain no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(212, 168, 67, 0.55));
}
.roadmap-current:hover .roadmap-marker { border: none; box-shadow: none; }

/* whitepaper variant (wp-roadmap base styles live in styles.css) */
.wp-roadmap-current .wp-roadmap-marker {
  left: calc(0.25rem + 1px); /* line center (1.25rem+1px) minus the item's 1rem offset */
  transform: translateX(-50%);
  width: 24px;
  height: 41px;
  top: 1.1rem;
  background: transparent url('/static/roadmap-rocket.png') center / contain no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* === Slot games: 2 wide columns, landscape key art shown in full === */
.minigames-grid.slots-grid { grid-template-columns: repeat(2, 1fr); }
.minigames-grid.slots-grid .minigame-thumb { aspect-ratio: 16 / 9; }
.minigames-grid.slots-grid .minigame-meta h3 { font-size: 1.15rem; }
@media (max-width: 640px) {
  .minigames-grid.slots-grid { grid-template-columns: 1fr; }
}

/* === Hero a touch shorter so "Play Now" is reachable with minimal scroll === */
.hero { min-height: 84vh; }

/* === Play Now (flagship + minigames, right under the hero) === */
.play-section {
  padding: 4.5rem 0 6rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.play-section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 520px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.play-section h2 {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.15));
}

/* Featured flagship card (Marble Planet) */
.featured-game {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  margin: 2.25rem 0 1rem;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s, border-color 0.45s;
}
.featured-game:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 46px rgba(0,255,136,0.07);
}
.featured-game-media {
  position: relative;
  display: block;
  min-height: 250px;
  background: #0a0e1c;
  overflow: hidden;
}
/* Blurred fill of the same art so the full (uncropped) wide title can sit on
   top without leaving empty letterbox bars. */
.featured-game-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/mp-title.webp') center / cover no-repeat;
  filter: blur(26px) brightness(0.45) saturate(1.1);
  transform: scale(1.15);
  z-index: 0;
}
.featured-game-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
  z-index: 1;
  display: block;
}
/* SUSANOO's key art is a full 16:9 banner rather than a transparent title logo,
   so it blurs its own art behind itself (the media cell is wider than 16:9) and
   drops the padding so the banner reaches the top and bottom edges. Cropping to
   fill instead would cut the wordmark and the feature callouts. */
.featured-game-media.is-banner::before { background-image: url('/static/thumbs/susanoo-wide.webp'); }
.featured-game-media.is-banner img { padding: 0; }

.featured-game-badge {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.12em;
  color: var(--cyber-green, #00ff88);
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.featured-game-body {
  padding: 2rem 2.25rem;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-game-body h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  color: #fff;
}
.featured-game-body p {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.featured-game-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.play-subhead {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin: 3rem 0 0.4rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}
.play-subdesc {
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 0 0 0.25rem;
}

/* "Enter the Game Center" CTA on the landing Play section */
.play-cta { margin: 1.6rem 0 0.5rem; }
.btn-arcade {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #1a1300;
  background: linear-gradient(135deg, var(--gold-light, #ffe7a3), var(--gold, #d4a843));
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(212,168,67,0.25), 0 0 0 1px rgba(212,168,67,0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-arcade:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(212,168,67,0.38);
}

/* Dedicated /play Game Center hub: clear the fixed nav so the grid sits high */
.play-hub { padding-top: 6.5rem; }
.play-back { margin-top: 2.5rem; text-align: center; }
.play-back a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.95rem; }
.play-back a:hover { color: var(--gold-light, #ffe7a3); }
@media (max-width: 760px) {
  .play-hub { padding-top: 5.5rem; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .featured-game { grid-template-columns: 1fr; }
  .featured-game-media { min-height: 175px; }
  .featured-game-body { padding: 1.4rem 1.25rem; }
  .featured-game-body h3 { font-size: 1.35rem; }
  .play-section { padding: 3rem 0 4rem; }
}

/* ─── Achievements (My Page) ─────────────────────────────────── */
.ach-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ach-points {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: linear-gradient(135deg, #fff3d6, #f5b83d);
  color: #5a3d00; border-radius: 999px; padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(212,168,67,0.3);
}
.ach-points-val { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 20px; line-height: 1; }
.ach-points-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ach-sub { color: #666; font-size: 13px; line-height: 1.6; margin: 8px 0 16px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ach-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px;
  padding: 16px 14px 12px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ach-card.ach-granted { border-color: rgba(212,168,67,0.5); background: #fffdf6; box-shadow: 0 2px 12px rgba(212,168,67,0.12); }
.ach-card.ach-claimable { border-color: #c7d2fe; background: #f5f7ff; }
.ach-badge { position: relative; width: 64px; height: 64px; margin-bottom: 8px; }
.ach-badge img { width: 64px; height: 64px; display: block; }
.ach-card.ach-locked .ach-badge img { filter: grayscale(1) brightness(0.85); opacity: 0.55; }
.ach-lock { position: absolute; right: -2px; bottom: -2px; font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.ach-title { font-weight: 700; font-size: 14px; color: #1f2937; }
.ach-count { color: #b9831f; font-weight: 800; }
.ach-desc { font-size: 12px; color: #6b7280; line-height: 1.45; margin-top: 3px; min-height: 32px; }
.ach-progress { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; }
.ach-progress-track { flex: 1; height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.ach-progress-bar { height: 100%; background: linear-gradient(90deg, #f5b83d, #ffd97a); border-radius: 999px; }
.ach-progress-txt { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.ach-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 10px; }
.ach-pts { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 13px; color: #b9831f; }
.ach-state { font-size: 11px; font-weight: 600; }
.ach-state-done { color: #10b981; }
.ach-state-locked { color: #9ca3af; }
.ach-claim-btn { padding: 5px 14px; border-radius: 999px; border: none; background: #5b6cff; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; }
.ach-claim-btn:hover { background: #4858e8; }
.ach-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15,18,30,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ach-modal-card { background: #fff; border-radius: 12px; padding: 20px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
@media (max-width: 560px) {
  /* Reclaim the wasted side gutter on phones: .mypage had 2rem AND the
     container an inline 24px, leaving cards (and the achievements grid)
     badly starved. Pull everything in tight so the grid uses the full width. */
  .mypage { padding: 0.5rem; }
  .mypage-container { padding: 0 !important; max-width: 100% !important; }
  .ach-section { padding-left: 10px !important; padding-right: 10px !important; }
  /* Compact cards → 3 columns on 360–414px phones (cards stay legible). */
  .ach-grid { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
  .ach-card { padding: 10px 6px 8px; }
  .ach-badge, .ach-badge img { width: 46px; height: 46px; }
  .ach-lock { font-size: 14px; }
  .ach-title { font-size: 11.5px; line-height: 1.25; }
  .ach-desc { font-size: 10px; line-height: 1.35; min-height: 0; }
  .ach-pts { font-size: 11px; }
  .ach-foot { gap: 4px; margin-top: 8px; }
  .ach-state { font-size: 10px; }
  .ach-claim-btn { padding: 4px 9px; font-size: 11px; }
  .ach-progress-txt { font-size: 10px; }
}

/* === Mobile readability: the 768px block above shrank body text too far === */
@media (max-width: 768px) {
  .nav-links a { font-size: 0.95rem; }
  .hero-description { font-size: 1rem; }
  .highlight-label { font-size: 0.75rem; }
  .highlight-tooltip { font-size: 0.78rem; max-width: 230px; }
  .section-description { font-size: 1rem; line-height: 1.75; }
  .play-subdesc { font-size: 0.95rem; }
  .featured-game-body p { font-size: 0.95rem; }
  .game-card h3 { font-size: 1.15rem; }
  .game-card p { font-size: 0.95rem; }
  .platform-features li { font-size: 1rem; }
  .platform-tagline { font-size: 1.05rem; }
  .return-card h3 { font-size: 0.9rem; }
  .return-card p { font-size: 0.85rem; }
  .return-note { font-size: 1rem; }
  .sustainability-item { font-size: 1rem; }
  .sustainability-tagline { font-size: 1.05rem; }
  .legend-label { font-size: 0.95rem; }
  .tokenomics-card h3 { font-size: 0.95rem; }
  .tokenomics-card p { font-size: 0.9rem; }
  .tokenomics-principles h4 { font-size: 0.95rem; }
  .tokenomics-principles li { font-size: 0.95rem; }
  .roadmap-content h3 { font-size: 1.05rem; }
  .roadmap-content p { font-size: 0.95rem; }
  .roadmap-tagline { font-size: 1.05rem; }
  .footer-disclaimer p { font-size: 0.85rem; }
}
@media (max-width: 560px) {
  .minigame-meta h3 { font-size: 1rem; }
  .minigame-meta p { font-size: 0.85rem; }
}

/* The card you came back from (/play#game-<slug>) glows briefly. */
.minigame-card:target {
  animation: wsogCardBack 1.6s ease-out 1;
}
@keyframes wsogCardBack {
  0%, 35% { box-shadow: 0 0 0 2px rgba(245, 184, 61, 0.95), 0 0 26px rgba(245, 184, 61, 0.55); }
  100% { box-shadow: 0 0 0 2px rgba(245, 184, 61, 0), 0 0 26px rgba(245, 184, 61, 0); }
}
