:root {
  --bg: #050705;
  --paper: #101411;
  --paper-soft: #151a16;
  --text: #f5f7f4;
  --muted: #96a097;
  --line: #263429;
  --line-strong: #3d553f;
  --accent: #6bd34f;
  --accent-soft: #112414;
  --accent-dark: #9df57d;
  --gold: #f2b93b;
  --red: #ff5f55;
  --blue: #7da7ff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -160px, rgba(107, 211, 79, 0.13), transparent 320px),
    radial-gradient(circle at 8% 24%, rgba(242, 185, 59, 0.06), transparent 240px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.8;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.site-header {
  background: rgba(5, 7, 5, 0.9);
  border-bottom: 1px solid rgba(107, 211, 79, 0.24);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand-name {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
  font-size: 14px;
}

.nav a {
  white-space: nowrap;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.main-column,
.side-column {
  min-width: 0;
}

.hero,
.card,
.tool-card,
.article-card,
.ad-box,
.side-card {
  background: linear-gradient(135deg, rgba(19, 26, 20, 0.96), rgba(8, 10, 9, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  margin-bottom: 20px;
  border-color: rgba(107, 211, 79, 0.34);
  background:
    radial-gradient(circle at 88% 20%, rgba(107, 211, 79, 0.18), transparent 220px),
    radial-gradient(circle at 0 0, rgba(242, 185, 59, 0.08), transparent 220px),
    linear-gradient(135deg, rgba(20, 30, 22, 0.98), rgba(7, 9, 8, 0.98));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-game-page {
  max-width: 1160px;
}

.game-lobby {
  position: relative;
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(242, 185, 59, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 22%, rgba(107, 211, 79, 0.2), transparent 310px),
    radial-gradient(circle at 88% 8%, rgba(242, 185, 59, 0.16), transparent 220px),
    linear-gradient(180deg, rgba(13, 17, 14, 0.98), rgba(5, 7, 5, 0.98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.game-lobby::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(242, 185, 59, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px);
  opacity: 0.38;
}

.game-lobby > * {
  position: relative;
  z-index: 1;
}

.lobby-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lobby-top h1 {
  margin: 0;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(44px, 9vw, 86px);
  font-weight: 950;
  letter-spacing: 4px;
  line-height: 0.95;
  text-shadow:
    0 0 20px rgba(242, 185, 59, 0.28),
    0 3px 0 rgba(0, 0, 0, 0.72);
}

.lobby-top p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.lobby-rank-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(242, 185, 59, 0.58);
  border-radius: 18px;
  background: rgba(10, 12, 10, 0.82);
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.lobby-rank-button:hover {
  text-decoration: none;
  border-color: var(--gold);
}

.lobby-status,
.lobby-ranking-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(107, 211, 79, 0.24);
  border-radius: 18px;
  background: rgba(7, 9, 8, 0.76);
  overflow: hidden;
}

.lobby-status span,
.lobby-ranking-strip span {
  display: grid;
  gap: 2px;
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-status span:last-child,
.lobby-ranking-strip span:last-child {
  border-right: 0;
}

.lobby-status b,
.lobby-ranking-strip .strip-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lobby-status strong {
  color: var(--gold);
  font-size: 20px;
  line-height: 1.25;
}

.lobby-status span:nth-child(4) strong {
  color: var(--accent-dark);
}

.lobby-ranking-strip {
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  border-color: rgba(242, 185, 59, 0.28);
}

.lobby-ranking-strip .strip-title {
  place-content: center;
  color: var(--gold);
  letter-spacing: 1.2px;
}

.lobby-ranking-strip b {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.lobby-ranking-strip strong {
  color: var(--accent-dark);
  font-size: 13px;
}

.featured-battle {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(242, 185, 59, 0.62);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 50%, rgba(107, 211, 79, 0.2), transparent 260px),
    linear-gradient(135deg, rgba(32, 22, 8, 0.95), rgba(8, 10, 9, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 32px rgba(242, 185, 59, 0.1);
}

.featured-crown {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(242, 185, 59, 0.4);
  border-radius: 24px;
  background: rgba(242, 185, 59, 0.1);
  color: var(--gold);
  font-size: 46px;
  line-height: 1;
}

.battle-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.featured-battle h2 {
  margin: 2px 0 6px;
  color: #fff4bf;
  font-size: clamp(28px, 5vw, 48px);
  text-shadow: 0 0 20px rgba(242, 185, 59, 0.24);
}

.featured-battle p {
  max-width: 620px;
  color: #d6dbd4;
  font-weight: 700;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(107, 211, 79, 0.35);
  border-radius: 999px;
  background: rgba(107, 211, 79, 0.11);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.play-button {
  display: grid;
  place-items: center;
  width: 168px;
  aspect-ratio: 1;
  border: 4px solid rgba(173, 255, 142, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(145deg, #75d955, #0d531b 72%);
  color: #fff;
  box-shadow:
    0 0 0 12px rgba(107, 211, 79, 0.14),
    0 0 46px rgba(107, 211, 79, 0.56),
    inset 0 -18px 28px rgba(0, 0, 0, 0.35);
}

.play-button:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.play-button span {
  margin-top: 28px;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.play-button small {
  margin-top: -34px;
  font-size: 13px;
  font-weight: 900;
}

.mode-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mode-card {
  display: grid;
  gap: 8px;
  min-height: 184px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 20, 19, 0.96), rgba(6, 8, 7, 0.96));
  color: var(--text);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.mode-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.mode-card .mode-icon {
  color: currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 18px currentColor;
}

.mode-card strong {
  font-size: 21px;
  line-height: 1.25;
}

.mode-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mode-card b {
  align-self: end;
  justify-self: start;
  min-width: 94px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: currentColor;
  font-size: 12px;
  text-align: center;
}

.mode-juggle {
  color: #b36bff;
  border-color: rgba(179, 107, 255, 0.55);
}

.mode-319 {
  color: #ff6c55;
  border-color: rgba(255, 108, 85, 0.55);
}

.mode-8192 {
  color: var(--gold);
  border-color: rgba(242, 185, 59, 0.55);
}

.mode-choice {
  color: #7da7ff;
  border-color: rgba(125, 167, 255, 0.55);
}

.home-page .game-lobby {
  max-width: 760px;
  margin-inline: auto;
  gap: 18px;
}

.home-page .lobby-top {
  align-items: center;
}

.home-page .lobby-top h1 {
  margin-top: 4px;
  font-family: var(--font);
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0;
  line-height: 1.12;
}

.home-page .lobby-top p {
  max-width: 540px;
  line-height: 1.75;
}

.home-page .lobby-rank-button {
  min-height: 46px;
  border-radius: 999px;
}

.home-page .mode-select {
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-page .mode-card {
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 4px 16px;
  min-height: 122px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 50%, rgba(107, 211, 79, 0.11), transparent 140px),
    linear-gradient(160deg, rgba(18, 22, 19, 0.98), rgba(5, 8, 6, 0.98));
}

.home-page .mode-card .mode-icon {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid currentColor;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 21px;
  letter-spacing: 0;
}

.home-page .mode-card strong {
  grid-column: 2;
  align-self: end;
  font-size: 22px;
}

.home-page .mode-card small {
  grid-column: 2;
  align-self: start;
  font-size: 14px;
}

.home-page .mode-card b {
  grid-column: 3;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: end;
  min-width: 0;
  padding: 0;
  border: 0;
  color: currentColor;
  font-size: 34px;
  line-height: 1;
}

.home-page .mode-card .mode-rank {
  grid-column: 2;
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid rgba(107, 211, 79, 0.18);
  border-radius: 12px;
  background: rgba(5, 9, 6, 0.6);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.home-page .mode-card .mode-rank span {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  align-items: center;
}

.home-page .mode-card .mode-rank b {
  all: unset;
  color: currentColor;
  font-size: 10px;
  font-weight: 950;
  opacity: 0.78;
  white-space: nowrap;
}

.home-page .mode-card .mode-rank strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-cz {
  color: #6bd34f;
  border-color: rgba(107, 211, 79, 0.55);
}

.mode-lt {
  color: #ff9a3d;
  border-color: rgba(255, 154, 61, 0.55);
}

.lobby-footer-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mission-card {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid rgba(107, 211, 79, 0.24);
  border-radius: 18px;
  background: rgba(10, 13, 11, 0.86);
  color: var(--text);
}

.mission-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.mission-card span {
  color: var(--muted);
  font-size: 13px;
}

.mission-card em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.mission-card.bonus em {
  color: var(--accent-dark);
}

.lobby-ad {
  margin: 0;
  min-height: 72px;
  border-color: rgba(242, 185, 59, 0.22);
}

.section-lead {
  max-width: 760px;
  color: var(--muted);
  font-weight: 700;
}

.priority-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.priority-list a {
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(242, 185, 59, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 185, 59, 0.12), transparent 130px),
    rgba(10, 12, 10, 0.88);
  color: var(--text);
}

.priority-list a:hover {
  text-decoration: none;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.priority-list b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 185, 59, 0.42);
  border-radius: 50%;
  color: var(--gold);
  font-size: 15px;
}

.priority-list strong {
  color: #fff4bf;
  font-size: 18px;
  line-height: 1.25;
}

.priority-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
}

h2 {
  font-size: 24px;
  margin-top: 4px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 780px;
}

.hero-actions,
.tool-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 20, 17, 0.96);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 45% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, #69d44d, #176225);
  color: #fff;
  box-shadow: 0 0 28px rgba(107, 211, 79, 0.24);
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.button:disabled {
  cursor: default;
  opacity: 0.55;
}

.button.save-ready {
  border-color: var(--gold);
  background: rgba(242, 185, 59, 0.14);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 185, 59, 0.12);
}

.save-preview {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 185, 59, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(242, 185, 59, 0.14), transparent 170px),
    rgba(15, 18, 15, 0.94);
}

.save-preview[hidden] {
  display: none;
}

.save-preview span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.save-preview strong {
  min-width: 0;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.save-preview small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.save-preview.is-saved {
  border-color: rgba(107, 211, 79, 0.5);
  background:
    radial-gradient(circle at 0 0, rgba(107, 211, 79, 0.16), transparent 170px),
    rgba(12, 18, 13, 0.96);
}

.save-preview.is-saved span,
.save-preview.is-saved strong {
  color: var(--accent-dark);
}

.save-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}

.save-preview-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  min-width: 0;
  border: 1px solid rgba(107, 211, 79, 0.46);
  border-radius: 999px;
  background: rgba(107, 211, 79, 0.13);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.save-preview-actions a:first-child {
  border-color: rgba(242, 185, 59, 0.5);
  background: rgba(242, 185, 59, 0.12);
  color: var(--gold);
}

.save-preview-actions a:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.button.danger {
  border-color: rgba(255, 95, 85, 0.4);
  color: var(--red);
}

.grid {
  display: grid;
  gap: 16px;
}

.tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-stack {
  display: grid;
  gap: 22px;
}

.tool-category {
  display: grid;
  gap: 12px;
}

.category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(107, 211, 79, 0.18);
}

.category-head span {
  font-size: 18px;
  font-weight: 900;
}

.category-head small {
  color: var(--muted);
  font-size: 13px;
}

.tool-link {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0, rgba(107, 211, 79, 0.1), transparent 140px),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.tool-link:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(107, 211, 79, 0.12);
  transform: translateY(-1px);
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.tool-badge.free {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 24px;
}

.tool-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 3px;
}

.tool-desc {
  color: var(--muted);
  font-size: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  color: var(--text);
}

.quick-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
}

.mini-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.mini-guide div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.mini-guide span {
  color: var(--muted);
  font-size: 13px;
}

.next-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.next-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  color: var(--text);
  font-weight: 700;
}

.next-links a::after {
  content: "→";
  color: var(--muted);
}

.next-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.tool-card {
  padding: 22px;
  margin-bottom: 20px;
}

.tool-card {
  position: relative;
  border-color: rgba(242, 185, 59, 0.28);
  background:
    radial-gradient(circle at 86% 8%, rgba(107, 211, 79, 0.14), transparent 250px),
    radial-gradient(circle at 0 0, rgba(242, 185, 59, 0.12), transparent 220px),
    linear-gradient(155deg, rgba(18, 22, 19, 0.98), rgba(6, 8, 7, 0.98));
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(242, 185, 59, 0.06), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 68px);
  opacity: 0.42;
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card > h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff4bf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tool-card > h2::after {
  content: "BATTLE";
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(242, 185, 59, 0.34);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
}

.one-tap-tool .control-grid,
.one-tap-tool .preset-strip,
.one-tap-tool .fixed-condition-guide,
.one-tap-tool .record-name-field {
  display: none;
}

.one-tap-tool > .small-note {
  margin: -4px 0 10px;
  color: #c8d0c7;
  font-weight: 800;
  text-align: center;
}

.one-tap-tool .tool-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  justify-items: stretch;
  margin: 10px 0 16px;
}

.one-tap-tool .tool-actions .button.primary {
  justify-self: center;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: min(210px, 54vw);
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 4px solid rgba(173, 255, 142, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(145deg, #78dd56, #0d531b 72%);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(28px, 8vw, 46px);
  font-weight: 950;
  letter-spacing: 1px;
  line-height: 1;
  box-shadow:
    0 0 0 12px rgba(107, 211, 79, 0.14),
    0 0 46px rgba(107, 211, 79, 0.56),
    inset 0 -18px 28px rgba(0, 0, 0, 0.35);
}

.one-tap-tool .tool-actions .button.primary:disabled {
  opacity: 0.86;
  filter: grayscale(0.18) brightness(0.92);
}

.one-tap-tool .tool-actions .button:not(.primary) {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
}

.one-tap-tool .result-grid {
  margin-top: 8px;
}

.one-tap-center {
  display: grid;
  place-items: center;
  margin: 8px 0 16px;
}

.one-tap-start {
  display: grid;
  place-items: center;
  width: min(220px, 58vw);
  aspect-ratio: 1;
  border: 4px solid rgba(173, 255, 142, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(145deg, #78dd56, #0d531b 72%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 0 0 12px rgba(107, 211, 79, 0.14),
    0 0 46px rgba(107, 211, 79, 0.56),
    inset 0 -18px 28px rgba(0, 0, 0, 0.35);
}

.one-tap-start span {
  margin-top: 30px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(30px, 9vw, 48px);
  font-weight: 950;
  line-height: 1;
}

.one-tap-start small {
  margin-top: -34px;
  font-size: 14px;
  font-weight: 900;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--paper-soft);
  color: var(--text);
  font: inherit;
}

.field input[type="text"] {
  font-weight: 700;
}

.field input[type="range"] {
  min-height: 44px;
  padding: 0;
  accent-color: var(--accent);
}

.record-name-field {
  max-width: 360px;
  margin-top: 14px;
}

.fixed-condition-guide {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(242, 185, 59, 0.38);
  border-radius: 10px;
  background: rgba(242, 185, 59, 0.1);
}

.fixed-condition-guide h3 {
  margin: 0;
  font-size: 15px;
}

.fixed-condition-guide div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fixed-condition-guide span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(242, 185, 59, 0.12);
  border: 1px solid rgba(242, 185, 59, 0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.fixed-condition-guide p {
  margin: 0;
  color: #d8bb79;
  font-size: 13px;
}

.preset-strip {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.preset-strip h3 {
  margin: 0;
  font-size: 15px;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.preset-button:hover {
  border-color: var(--accent);
}

.speed-field label {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#speedLabel {
  color: var(--accent);
  font-weight: 800;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tool-card .result-grid {
  padding: 12px;
  border: 1px solid rgba(107, 211, 79, 0.18);
  border-radius: 18px;
  background: rgba(5, 7, 5, 0.46);
}

.choice-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.choice-effect {
  min-height: 0;
  height: 0;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}

.choice-effect.show {
  height: auto;
  margin: 6px 0 0;
  animation: choice-success 760ms ease-out both;
}

.choice-effect.legend {
  color: var(--gold);
}

.choice-effect.miss {
  color: #ff665c;
}

.choice-effect::before,
.choice-effect::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 35%);
}

.choice-effect.legend::before,
.choice-effect.legend::after {
  background: var(--gold);
}

.choice-effect.miss::before,
.choice-effect.miss::after {
  background: #ff665c;
  box-shadow: 0 0 18px rgba(255, 102, 92, 0.55);
}

.choice-button {
  min-height: 140px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper-soft);
  color: var(--text);
  font: inherit;
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.choice-button:hover {
  border-color: var(--accent);
}

.choice-button.good {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.choice-button.bad {
  border-color: rgba(255, 95, 85, 0.85);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 95, 85, 0.2), transparent 90px),
    rgba(255, 95, 85, 0.12);
  color: var(--red);
  box-shadow:
    0 0 0 3px rgba(255, 95, 85, 0.13),
    0 0 22px rgba(255, 95, 85, 0.18);
}

.choice-button:disabled {
  cursor: default;
  opacity: 0.9;
}

.choice-stage.success-pulse .choice-button {
  animation: choice-button-pop 520ms ease-out;
}

.choice-simple-stage {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
  align-items: stretch;
}

.choice-simple-stage .simple-title-line,
.choice-simple-stage .simple-status-card,
.choice-simple-stage .choice-effect,
.choice-simple-stage .simple-rank-link,
.choice-simple-stage .simple-sub-actions,
.choice-simple-stage .record-name-field,
.choice-simple-stage .simple-log,
.choice-simple-stage .simple-ad {
  grid-column: 1 / -1;
}

.choice-simple-stage .simple-result-card {
  grid-column: 1;
  grid-row: 3;
}

.choice-simple-stage .choice-stage {
  grid-column: 2;
  grid-row: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 100%;
  margin: 0;
}

.choice-simple-stage .choice-button {
  min-height: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(107, 211, 79, 0.16), transparent 90px),
    rgba(12, 16, 13, 0.94);
}

.choice-simple-stage.is-missed .simple-status-card {
  border-color: rgba(255, 95, 85, 0.72);
  background:
    radial-gradient(circle at 0 0, rgba(255, 95, 85, 0.14), transparent 180px),
    linear-gradient(135deg, rgba(26, 12, 12, 0.96), rgba(7, 9, 8, 0.96));
}

.choice-simple-stage.is-missed .simple-status-card strong {
  color: #ff665c;
}

.choice-simple-stage.is-missed .status-dot {
  background: #ff665c;
  box-shadow: 0 0 18px rgba(255, 102, 92, 0.72);
}

.choice-simple-stage.is-missed .simple-result-card {
  border-color: rgba(255, 95, 85, 0.58);
}

.choice-restart-button {
  border-color: rgba(107, 211, 79, 0.54);
}

.choice-simple-stage.is-missed .choice-restart-button {
  border-color: var(--accent);
  background: rgba(107, 211, 79, 0.18);
  color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(107, 211, 79, 0.12);
}

@keyframes choice-success {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  25% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@keyframes choice-button-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.03);
    border-color: var(--accent);
  }
  100% {
    transform: scale(1);
  }
}

.result-box {
  background:
    radial-gradient(circle at 100% 0, rgba(107, 211, 79, 0.1), transparent 110px),
    var(--paper-soft);
  border: 1px solid rgba(107, 211, 79, 0.18);
  border-radius: 14px;
  padding: 14px;
}

.result-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 900;
}

.result-value {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.result-value.good {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(107, 211, 79, 0.28);
}

.result-value.bad {
  color: var(--red);
  text-shadow: 0 0 16px rgba(255, 95, 85, 0.24);
}

.log-box {
  min-height: 92px;
  max-height: 210px;
  overflow: auto;
  margin-top: 14px;
  padding: 12px;
  background: rgba(5, 7, 5, 0.92);
  color: #dbe7dc;
  border: 1px solid rgba(107, 211, 79, 0.16);
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.result-guide {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(107, 211, 79, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(107, 211, 79, 0.12), transparent 160px),
    rgba(8, 12, 9, 0.88);
}

.result-guide h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.result-guide ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 13px;
}

.article-card {
  padding: 24px;
  margin-bottom: 20px;
}

.compact-card {
  padding-top: 20px;
  padding-bottom: 20px;
}

.article-card ul,
.article-card ol {
  padding-left: 1.4em;
}

.article-card li + li {
  margin-top: 6px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
}

.note {
  background: rgba(242, 185, 59, 0.1);
  border: 1px solid rgba(242, 185, 59, 0.34);
  border-radius: 10px;
  color: #d8bb79;
  padding: 14px;
}

code,
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-box {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  overflow-x: auto;
  white-space: nowrap;
}

.small-note {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.ad-box {
  min-height: 96px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 0, rgba(107, 211, 79, 0.16), transparent 220px),
    linear-gradient(135deg, rgba(16, 22, 17, 0.96), rgba(8, 10, 9, 0.98));
  color: var(--muted);
  font-size: 14px;
  border-color: rgba(107, 211, 79, 0.22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.ad-box[data-ad-placeholder="true"] {
  display: none;
  pointer-events: none;
  user-select: none;
}

.ad-box::before {
  content: "";
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.ad-label {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 2px;
}

.ad-title {
  color: var(--muted);
  font-weight: 700;
}

.ad-note {
  color: var(--muted);
  font-size: 12px;
}

.ad-box-wide {
  min-height: 112px;
}

.ad-box-sidebar {
  min-height: 260px;
  margin: 0;
}

.ad-box-footer {
  max-width: 1120px;
  margin: 24px auto 0;
  min-height: 100px;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border: 1px solid rgba(107, 211, 79, 0.36);
  border-radius: 999px;
  background: rgba(7, 11, 8, 0.94);
  color: var(--text);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-bottom-nav {
  display: none;
}

.side-column {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  font-size: 16px;
}

.side-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.side-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}

.ranking-table th,
.ranking-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.ranking-table th {
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 13px;
}

.ranking-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 12px 0 4px;
}

.ranking-controls label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ranking-controls select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 36px 0 14px;
  background: var(--paper-soft);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mini-button.danger {
  border-color: rgba(255, 95, 85, 0.42);
  color: var(--red);
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 12px 4px;
  white-space: normal;
}

.empty-state strong {
  color: var(--text);
}

.empty-state span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state-link {
  justify-self: start;
  margin-top: 4px;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  margin-top: 30px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toc {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
}

.toc a {
  font-weight: 700;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  border-color: rgba(242, 185, 59, 0.36);
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 185, 59, 0.18), transparent 260px),
    radial-gradient(circle at 0 0, rgba(107, 211, 79, 0.12), transparent 260px),
    linear-gradient(145deg, rgba(22, 17, 9, 0.98), rgba(5, 7, 5, 0.98));
}

.ranking-summary {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid rgba(242, 185, 59, 0.38);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(242, 185, 59, 0.2), transparent 130px),
    rgba(5, 7, 5, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-align: center;
}

.ranking-summary span,
.status-pill {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ranking-summary strong {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 42px;
  line-height: 1.1;
  text-shadow: 0 0 22px rgba(242, 185, 59, 0.34);
}

.ranking-summary small,
.rank-category small,
.podium-card small {
  color: var(--muted);
}

.rank-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ranking-tabs {
  position: sticky;
  top: 76px;
  z-index: 6;
  padding: 8px;
  border: 1px solid rgba(107, 211, 79, 0.18);
  border-radius: 18px;
  background: rgba(5, 9, 6, 0.92);
  backdrop-filter: blur(14px);
}

.ranking-panel {
  display: none;
}

.ranking-panel.active {
  display: block;
}

.ranking-winner-card {
  margin: 16px 0;
}

.winner-card-layout {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(180px, 0.65fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(242, 185, 59, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 50%, rgba(242, 185, 59, 0.18), transparent 150px),
    linear-gradient(135deg, rgba(28, 20, 8, 0.98), rgba(5, 8, 6, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 38px rgba(0, 0, 0, 0.3);
}

.winner-crown {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(242, 185, 59, 0.55);
  border-radius: 18px;
  background: rgba(242, 185, 59, 0.08);
}

.winner-crown span {
  font-size: 26px;
  line-height: 1;
}

.winner-crown b {
  color: var(--gold);
  font-size: 12px;
}

.winner-main,
.winner-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.winner-main small {
  color: var(--gold);
  font-weight: 900;
}

.winner-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-main b {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  text-shadow: 0 0 22px rgba(242, 185, 59, 0.28);
}

.winner-meta {
  justify-items: end;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.winner-meta span {
  overflow-wrap: anywhere;
}

.winner-meta small {
  color: var(--muted);
  font-size: 12px;
}

.winner-empty {
  grid-template-columns: 1fr;
  justify-items: start;
}

.winner-empty span {
  color: var(--gold);
  font-weight: 900;
}

.winner-empty strong {
  color: var(--text);
  font-size: 22px;
}

.winner-empty small {
  color: var(--muted);
}

.winner-empty a {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid rgba(107, 211, 79, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 900;
}

.ranking-play-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ranking-play-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon title action"
    "icon desc action";
  gap: 4px 12px;
  align-items: center;
  min-height: 92px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(107, 211, 79, 0.1), transparent 140px),
    linear-gradient(155deg, rgba(18, 20, 19, 0.96), rgba(6, 8, 7, 0.96));
  color: var(--text);
}

.ranking-play-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ranking-play-card.primary {
  border-color: rgba(242, 185, 59, 0.46);
  background:
    radial-gradient(circle at 100% 0, rgba(242, 185, 59, 0.16), transparent 140px),
    linear-gradient(155deg, rgba(28, 23, 12, 0.96), rgba(6, 8, 7, 0.96));
}

.ranking-play-card span {
  grid-area: icon;
  min-width: 0;
  font-size: 24px;
}

.ranking-play-card strong {
  grid-area: title;
  min-width: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ranking-play-card small {
  grid-area: desc;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ranking-play-card b {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(107, 211, 79, 0.5);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
}

.record-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.record-summary-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(107, 211, 79, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(107, 211, 79, 0.12), transparent 140px),
    rgba(13, 17, 14, 0.94);
}

.record-summary-card span,
.record-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.record-summary-card strong {
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(107, 211, 79, 0.24);
}

.rank-category {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(242, 185, 59, 0.1), transparent 140px),
    linear-gradient(155deg, rgba(18, 20, 19, 0.96), rgba(6, 8, 7, 0.96));
}

.rank-category:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 18px 38px rgba(107, 211, 79, 0.1);
}

.rank-category.active {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 100% 0, rgba(107, 211, 79, 0.16), transparent 150px),
    linear-gradient(155deg, rgba(16, 35, 18, 0.94), rgba(6, 8, 7, 0.96));
}

.rank-category span {
  font-size: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.section-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  white-space: nowrap;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.podium-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px;
  min-height: 154px;
  border: 1px solid rgba(242, 185, 59, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(242, 185, 59, 0.12), transparent 150px),
    rgba(10, 12, 10, 0.94);
  text-align: center;
}

.podium-card.first {
  min-height: 178px;
  border-color: rgba(242, 185, 59, 0.58);
  background:
    radial-gradient(circle at 50% 0, rgba(242, 185, 59, 0.24), transparent 170px),
    linear-gradient(180deg, rgba(40, 27, 8, 0.98), rgba(8, 10, 9, 0.96));
  box-shadow: 0 0 30px rgba(242, 185, 59, 0.12);
}

.podium-card b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  line-height: 1.1;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(242, 185, 59, 0.1);
  color: var(--gold);
  border: 1px solid rgba(242, 185, 59, 0.36);
  font-weight: 800;
}

.podium-card.first .rank-badge {
  width: 48px;
  height: 48px;
  border-color: var(--gold);
  background: rgba(242, 185, 59, 0.14);
  box-shadow: 0 0 20px rgba(242, 185, 59, 0.16);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
  }

  .tool-grid,
  .control-grid,
  .quick-grid,
  .mini-guide,
  .ranking-play-grid,
  .record-summary-grid,
  .rank-category-grid,
  .podium-grid,
  .ranking-hero,
  .featured-battle,
  .mode-select {
    grid-template-columns: 1fr;
  }

  .lobby-status,
  .lobby-ranking-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-ranking-strip .strip-title {
    grid-column: 1 / -1;
  }

  .featured-crown {
    display: none;
  }

  .play-button {
    justify-self: center;
  }

  .podium-card.first {
    order: 1;
  }

  .podium-card.second {
    order: 2;
  }

  .podium-card.third {
    order: 3;
  }

  .section-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body {
    background:
      radial-gradient(circle at 50% -120px, rgba(31, 122, 85, 0.14), transparent 260px),
      var(--bg);
  }

  .site-header {
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--paper), transparent 8%);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .page {
    padding: 16px 12px 28px;
  }

  .home-game-page {
    padding-top: 10px;
  }

  .game-lobby {
    gap: 10px;
    margin: -2px 0 18px;
    padding: 14px;
    border-radius: 22px;
  }

  .lobby-top {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .lobby-top h1 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: 2px;
  }

  .lobby-top p {
    display: none;
  }

  .lobby-rank-button {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 15px;
    font-size: 13px;
  }

  .lobby-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 15px;
  }

  .lobby-status span {
    padding: 9px 11px;
  }

  .lobby-status strong {
    font-size: 16px;
  }

  .lobby-ranking-strip {
    grid-template-columns: 54px repeat(3, minmax(0, 1fr));
    border-radius: 15px;
  }

  .lobby-ranking-strip span {
    padding: 9px 8px;
    font-size: 11px;
  }

  .lobby-ranking-strip .strip-title {
    grid-column: auto;
    font-size: 10px;
  }

  .lobby-ranking-strip b {
    font-size: 16px;
  }

  .featured-battle {
    grid-template-columns: 1fr 126px;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .featured-battle > div:nth-child(2) {
    min-width: 0;
  }

  .featured-battle h2 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .featured-battle p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.55;
  }

  .featured-tags {
    gap: 5px;
  }

  .featured-tags span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .play-button {
    width: 116px;
    border-width: 3px;
    box-shadow:
      0 0 0 8px rgba(107, 211, 79, 0.12),
      0 0 32px rgba(107, 211, 79, 0.46),
      inset 0 -14px 22px rgba(0, 0, 0, 0.35);
  }

  .play-button span {
    margin-top: 20px;
    font-size: 25px;
  }

  .play-button small {
    margin-top: -24px;
    font-size: 11px;
  }

  .mode-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mode-card {
    min-height: 132px;
    padding: 13px;
    border-radius: 16px;
  }

  .mode-card .mode-icon {
    font-size: 24px;
  }

  .mode-card strong {
    font-size: 16px;
  }

  .priority-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0 18px;
  }

  .priority-list a {
    min-height: 104px;
    padding: 13px;
    border-radius: 16px;
  }

  .priority-list strong {
    font-size: 15px;
  }

  .mode-card small {
    font-size: 11px;
    line-height: 1.45;
  }

  .mode-card b {
    min-width: 72px;
    padding: 5px 10px;
    font-size: 10px;
  }

  .lobby-footer-panels {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mission-card {
    padding: 12px;
    border-radius: 15px;
  }

  .mission-card span,
  .mission-card em {
    font-size: 12px;
  }

  .lobby-ad {
    min-height: 52px;
  }

  .hero,
  .tool-card,
  .article-card {
    padding: 16px;
    border-radius: 16px;
  }

  .tool-card {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .tool-card .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 10px;
  }

  .tool-card .speed-field,
  .tool-card .record-name-field {
    grid-column: 1 / -1;
  }

  .tool-card .small-note {
    margin-bottom: 10px;
  }

  .one-tap-tool {
    padding-top: 14px;
  }

  .one-tap-tool > h2 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .one-tap-tool > .small-note {
    margin: -2px 0 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  .one-tap-tool .tool-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 6px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .one-tap-tool .tool-actions .button.primary {
    width: min(154px, 42vw);
    border-width: 3px;
    font-size: clamp(24px, 8vw, 34px);
    box-shadow:
      0 0 0 8px rgba(107, 211, 79, 0.14),
      0 0 32px rgba(107, 211, 79, 0.5),
      inset 0 -14px 22px rgba(0, 0, 0, 0.35);
  }

  .one-tap-tool .tool-actions .button:not(.primary) {
    min-height: 36px;
    padding: 0 8px;
    font-size: 11px;
  }

  .one-tap-start {
    width: min(160px, 44vw);
    border-width: 3px;
    box-shadow:
      0 0 0 8px rgba(107, 211, 79, 0.14),
      0 0 32px rgba(107, 211, 79, 0.5),
      inset 0 -14px 22px rgba(0, 0, 0, 0.35);
  }

  .one-tap-start span {
    margin-top: 22px;
    font-size: clamp(26px, 8vw, 36px);
  }

  .one-tap-start small {
    margin-top: -26px;
    font-size: 12px;
  }

  .result-grid {
    order: 20;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .result-grid .result-box:first-child {
    grid-column: 1 / -1;
    border-color: color-mix(in srgb, var(--accent), var(--line) 55%);
    background: linear-gradient(135deg, var(--accent-soft), var(--paper));
  }

  .log-box {
    order: 30;
    min-height: 74px;
    max-height: 128px;
    margin-top: 10px;
  }

  .result-guide {
    order: 32;
    margin-top: 10px;
  }

  .preset-strip {
    order: 12;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--paper-soft), var(--paper));
  }

  .preset-strip h3 {
    font-size: 14px;
  }

  .preset-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .preset-button {
    flex: 0 0 auto;
    min-height: 38px;
    scroll-snap-align: start;
    box-shadow: 0 6px 16px rgba(31, 41, 51, 0.06);
  }

  .tool-actions {
    order: 14;
    position: static;
    z-index: auto;
    margin: 8px 0 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--paper), var(--paper-soft));
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
  }

  .hero-actions,
  .share-actions {
    display: grid;
  }

  .tool-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tool-actions .button.primary {
    grid-column: 1 / -1;
    min-height: 54px;
    font-size: 17px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent), transparent 78%);
  }

  .tool-actions .button.save-ready {
    grid-column: 1 / -1;
    min-height: 50px;
  }

  .tool-actions .button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .save-preview {
    order: 13;
    margin: 8px 0 2px;
  }

  .button {
    width: 100%;
  }

  .result-value {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .field label {
    font-size: 12px;
  }

  .field input,
  .field select {
    border-radius: 10px;
    background: var(--paper);
  }

  .choice-stage {
    order: 18;
    gap: 10px;
  }

  .record-name-field {
    order: 35;
    max-width: none;
    margin-top: 10px;
  }

  .choice-button {
    min-height: 110px;
  }

  .field input,
  .field select {
    font-size: 16px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .ranking-table th {
    white-space: nowrap;
  }

  .table-wrap {
    margin: 0 -2px;
    border: 1px solid rgba(107, 211, 79, 0.14);
    background: rgba(5, 7, 5, 0.36);
  }

  .ranking-table {
    min-width: 680px;
  }

  .ranking-table td:first-child,
  .ranking-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--paper-soft);
  }

  .ranking-table td:first-child {
    color: var(--gold);
    font-weight: 900;
  }

  .ranking-controls {
    justify-content: stretch;
  }

  .ranking-controls select {
    width: 100%;
  }

  .save-preview-actions {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .section-actions {
    justify-content: flex-start;
  }

  .ranking-play-card {
    min-height: 84px;
    padding: 14px;
  }

  .tool-link {
    grid-template-columns: 44px 1fr;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--paper), var(--paper-soft));
  }

  .tool-icon {
    width: 44px;
    height: 44px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 82%);
  }

  .code-box {
    font-size: 13px;
  }

  .ad-box-sidebar {
    display: none;
  }

  .ad-box,
  .ad-box-footer {
    min-height: 56px;
    margin: 14px 0;
    border-radius: 16px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(107, 211, 79, 0.28);
    border-radius: 22px;
    background: rgba(6, 8, 7, 0.92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a {
    display: grid;
    gap: 1px;
    place-items: center;
    min-height: 44px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-bottom-nav a span {
    font-size: 17px;
    line-height: 1;
  }

  .mobile-bottom-nav a b {
    font: inherit;
  }

  .mobile-bottom-nav a.active {
    background: rgba(107, 211, 79, 0.14);
    color: var(--accent-dark);
  }

  .juggle-simple-page .mobile-bottom-nav {
    border-radius: 0;
    border: 2px solid rgba(100, 255, 74, 0.34);
    background:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      rgba(5, 10, 6, 0.94);
    background-size: 100% 4px, auto;
    box-shadow:
      inset 0 0 0 2px rgba(0, 0, 0, 0.62),
      0 18px 44px rgba(0, 0, 0, 0.45),
      0 0 22px rgba(100, 255, 74, 0.14);
  }

  .juggle-simple-page .mobile-bottom-nav a {
    border-radius: 0;
  }

  .juggle-simple-page .mobile-bottom-nav a.active {
    color: var(--pixel-green);
    background: rgba(100, 255, 74, 0.12);
    box-shadow: inset 0 -3px 0 rgba(100, 255, 74, 0.78);
  }
}

@media (max-width: 420px) {
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-box {
    padding: 11px;
  }

  .result-label {
    font-size: 11px;
  }

  .result-value {
    font-size: 18px;
  }

  .brand-name {
    font-size: 20px;
  }

  .tool-title {
    font-size: 16px;
  }
}

.juggle-simple-page {
  --bg: #050705;
  --paper: #101411;
  --paper-soft: #151a16;
  --text: #f5f7f4;
  --muted: #8f9a91;
  --line: #263429;
  --line-strong: #3d553f;
  --accent: #6bd34f;
  --accent-soft: #112414;
  --accent-dark: #9df57d;
  --gold: #f2b93b;
  --pixel-green: #64ff4a;
  --pixel-dark: #071207;
  --pixel-gold: #ffd94a;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 70%, rgba(107, 211, 79, 0.11), transparent 260px),
    radial-gradient(circle at 50% 0, rgba(242, 185, 59, 0.06), transparent 260px),
    #050705;
  background-size: 100% 4px, auto, auto, auto;
}

.juggle-simple-page .site-header {
  position: static;
  padding-top: env(safe-area-inset-top);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(100, 255, 74, 0.12), transparent 24rem),
    linear-gradient(180deg, #081608, #020602 86%);
  background-size: 100% 4px, auto, auto;
  border-bottom: 2px solid rgba(100, 255, 74, 0.34);
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, 0.26),
    0 14px 32px rgba(0, 0, 0, 0.34);
}

.juggle-simple-page .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(100, 255, 74, 0.14), transparent) 50% calc(100% - 3px) / 72% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 217, 74, 0.18), transparent) 50% calc(100% - 9px) / 54% 2px no-repeat;
}

.juggle-simple-page .site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(100, 255, 74, 0.72);
  box-shadow: 0 0 18px rgba(100, 255, 74, 0.5);
}

.juggle-simple-page .brand-name,
.juggle-simple-page .nav a {
  color: var(--text);
}

.juggle-simple-page .brand-name {
  color: #eaffdf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(34px, 9vw, 62px);
  letter-spacing: 0.08em;
  text-shadow:
    2px 0 0 rgba(100, 255, 74, 0.16),
    0 2px 0 rgba(100, 255, 74, 0.12),
    0 0 16px rgba(100, 255, 74, 0.28);
}

.juggle-simple-page .brand {
  position: relative;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.juggle-simple-page .brand::before,
.juggle-simple-page .brand::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 32px;
  height: 52px;
  opacity: 0.78;
  background:
    linear-gradient(135deg, transparent 0 44%, var(--pixel-green) 44% 52%, transparent 52%) 0 0 / 16px 16px repeat-y;
  filter: drop-shadow(0 0 8px rgba(100, 255, 74, 0.38));
}

.juggle-simple-page .brand::before {
  left: -44px;
}

.juggle-simple-page .brand::after {
  right: -44px;
  transform: scaleX(-1);
}

.juggle-simple-page .brand-sub {
  color: var(--pixel-green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(20px, 5.8vw, 32px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(100, 255, 74, 0.38);
}

.juggle-simple-page .header-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  padding: 16px 18px 14px;
}

.juggle-simple-page .nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(440px, 100%);
  gap: 0;
}

.juggle-simple-page .nav a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 2px solid rgba(100, 255, 74, 0.38);
  clip-path: polygon(0 10px, 10px 10px, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px, 100% 100%, 0 100%);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(7, 16, 7, 0.9);
  background-size: 100% 4px, auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
  text-decoration: none;
}

.juggle-simple-page .nav a:first-child {
  color: #fff8d4;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19, 67, 22, 0.96), rgba(8, 26, 8, 0.96));
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 -4px 0 rgba(100, 255, 74, 0.58),
    inset 0 0 18px rgba(100, 255, 74, 0.12);
}

.simple-page {
  max-width: 520px;
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 24px 18px 18px;
  overflow-x: hidden;
}

.simple-info-section {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 22px;
}

.simple-info-section h2 {
  margin: 0;
  font-size: clamp(22px, 6vw, 30px);
}

.simple-info-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.simple-info-grid {
  display: grid;
  gap: 10px;
}

.simple-info-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(107, 211, 79, 0.2);
  border-radius: 14px;
  background: rgba(8, 14, 9, 0.72);
}

.simple-info-grid strong {
  color: var(--text);
  font-size: 15px;
}

.simple-info-grid span {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.juggle-simple-stage {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: calc(100svh - 112px);
}

.juggle-simple-page .juggle-simple-stage {
  position: relative;
  padding: 12px;
  border: 3px solid rgba(100, 255, 74, 0.26);
  clip-path: polygon(
    0 18px,
    18px 18px,
    18px 0,
    calc(100% - 18px) 0,
    calc(100% - 18px) 18px,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    18px calc(100% - 18px),
    0 calc(100% - 18px)
  );
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 36%, rgba(100, 255, 74, 0.08), transparent 250px),
    rgba(2, 7, 3, 0.42);
  background-size: 100% 4px, 28px 100%, auto, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.54),
    inset 0 0 0 5px rgba(100, 255, 74, 0.04),
    inset 0 0 38px rgba(100, 255, 74, 0.07);
}

.juggle-simple-page .juggle-simple-stage::before,
.juggle-simple-page .juggle-simple-stage::after {
  content: "";
  position: absolute;
  right: 12px;
  left: 12px;
  height: 5px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 4%, var(--pixel-green) 4% 96%, transparent 96%);
  opacity: 0.48;
  filter: drop-shadow(0 0 10px rgba(100, 255, 74, 0.32));
}

.juggle-simple-page .juggle-simple-stage::before {
  top: 8px;
}

.juggle-simple-page .juggle-simple-stage::after {
  bottom: 8px;
}

.pixel-cabinet-row {
  display: grid;
  grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border: 3px solid rgba(100, 255, 74, 0.5);
  clip-path: polygon(
    0 16px,
    16px 16px,
    16px 0,
    calc(100% - 16px) 0,
    calc(100% - 16px) 16px,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 16px) calc(100% - 16px),
    calc(100% - 16px) 100%,
    16px 100%,
    16px calc(100% - 16px),
    0 calc(100% - 16px)
  );
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(8, 22, 8, 0.96), rgba(3, 7, 3, 0.98));
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 0 5px rgba(100, 255, 74, 0.05),
    0 0 24px rgba(100, 255, 74, 0.18);
}

.pixel-cabinet-row::before,
.pixel-cabinet-row::after,
.juggle-simple-page .simple-rule-row::before,
.juggle-simple-page .simple-result-card::after {
  pointer-events: none;
}

.pixel-slot-machine {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  min-height: 126px;
  padding: 8px;
  border: 2px solid rgba(180, 190, 178, 0.42);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #111811, #050705 58%, #151515);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.68),
    inset 0 -12px 0 rgba(0, 0, 0, 0.22),
    0 0 18px rgba(100, 255, 74, 0.14);
}

.pixel-slot-title {
  display: grid;
  place-items: center;
  min-height: 22px;
  color: #fff7df;
  background: linear-gradient(180deg, #b92828, #5d1010);
  border: 2px solid rgba(255, 255, 255, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.pixel-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: #e9eee4;
  border: 2px solid rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.pixel-reels span {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: #d91d17;
  background: linear-gradient(180deg, #fff, #c9d1c5);
  border: 1px solid rgba(0, 0, 0, 0.36);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.pixel-slot-lights {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pixel-slot-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f24a36;
  box-shadow: 0 0 10px rgba(242, 74, 54, 0.7);
}

.pixel-lamp {
  display: block;
  aspect-ratio: 1;
  max-width: 46px;
  min-width: 28px;
  margin: 0 auto;
  border: 3px solid rgba(255, 217, 74, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle, rgba(255, 217, 74, 0.22), rgba(54, 30, 5, 0.92) 64%);
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.34);
}

.pixel-lamp.is-active,
.juggle-simple-stage:not(.is-running):not(.is-finished):not(.is-big-hit):not(.is-missed) .pixel-lamp:first-child {
  border-color: rgba(156, 255, 124, 0.8);
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.48), transparent 22%),
    radial-gradient(circle, #96ff66, #1b8f1e 66%);
  box-shadow:
    0 0 22px rgba(100, 255, 74, 0.62),
    inset 0 -5px 8px rgba(0, 0, 0, 0.24);
}

.juggle-simple-stage.is-running .pixel-lamp {
  border-color: rgba(255, 217, 74, 0.42);
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.24), transparent 22%),
    radial-gradient(circle, #ffdc4a, #754907 66%);
  box-shadow:
    0 0 18px rgba(255, 217, 74, 0.44),
    inset 0 -5px 8px rgba(0, 0, 0, 0.28);
}

.juggle-simple-stage.is-running .pixel-lamp:first-child,
.juggle-simple-stage.is-finished .pixel-lamp:first-child,
.juggle-simple-stage.is-big-hit .pixel-lamp:first-child,
.juggle-simple-stage.is-missed .pixel-lamp:first-child {
  border-color: rgba(255, 217, 74, 0.22);
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle, rgba(255, 217, 74, 0.22), rgba(54, 30, 5, 0.92) 64%);
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.34);
}

.juggle-simple-stage.is-running .pixel-lamp:nth-child(2) {
  animation: status-blink 720ms ease-in-out infinite;
}

.juggle-simple-stage.is-finished .pixel-lamp:nth-child(3),
.juggle-simple-stage.is-big-hit .pixel-lamp:nth-child(3),
.juggle-simple-stage.is-missed .pixel-lamp:nth-child(3) {
  border-color: rgba(156, 255, 124, 0.8);
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.48), transparent 22%),
    radial-gradient(circle, #96ff66, #1b8f1e 66%);
  box-shadow:
    0 0 22px rgba(100, 255, 74, 0.62),
    inset 0 -5px 8px rgba(0, 0, 0, 0.24);
}

.simple-title-line {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
  margin-top: 0;
  text-align: center;
}

.simple-title-line span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.simple-title-line span:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.simple-title-line h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 44px);
  letter-spacing: 0;
}

.simple-status-card,
.simple-rule-row,
.simple-result-card,
.simple-rank-link,
.simple-next-row,
.simple-ad {
  border: 1px solid rgba(107, 211, 79, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19, 26, 20, 0.96), rgba(7, 9, 8, 0.96));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.juggle-simple-page .simple-status-card,
.juggle-simple-page .simple-rule-row,
.juggle-simple-page .simple-result-card,
.juggle-simple-page .simple-rank-link,
.juggle-simple-page .simple-sub-actions .button,
.juggle-simple-page .simple-log,
.juggle-simple-page .simple-ad {
  border-radius: 0;
  border: 2px solid rgba(100, 255, 74, 0.56);
  clip-path: polygon(
    0 12px,
    12px 12px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 12px,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    12px calc(100% - 12px),
    0 calc(100% - 12px)
  );
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(9, 23, 9, 0.98), rgba(4, 7, 5, 0.98));
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 0 4px rgba(100, 255, 74, 0.08),
    0 0 0 1px rgba(100, 255, 74, 0.08),
    0 12px 0 rgba(0, 0, 0, 0.28),
    0 0 26px rgba(100, 255, 74, 0.16);
}

.simple-rule-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  background: rgba(7, 9, 8, 0.88);
}

.juggle-simple-page .simple-rule-row {
  position: relative;
}

.juggle-simple-page .simple-rule-row::before {
  content: "";
  position: absolute;
  inset: -9px 18px auto;
  height: 4px;
  background: var(--pixel-green);
  box-shadow:
    0 -8px 0 rgba(100, 255, 74, 0.42),
    0 0 12px rgba(100, 255, 74, 0.34);
  opacity: 0.62;
}

.simple-rule-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(15, 20, 16, 0.78);
}

.juggle-simple-page .simple-rule-row {
  gap: 0;
  border-color: rgba(100, 255, 74, 0.48);
}

.juggle-simple-page .simple-rule-row span {
  border-right: 2px solid rgba(100, 255, 74, 0.18);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(5, 14, 6, 0.92);
  background-size: 100% 4px, auto;
}

.juggle-simple-page .simple-rule-row span:last-child {
  border-right: 0;
}

.simple-rule-row b {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.juggle-simple-page .simple-rule-row b,
.juggle-simple-page .simple-status-card p {
  color: #b7c4b6;
}

.simple-rule-row strong {
  color: #f2f7f1;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.juggle-simple-page .simple-rule-row strong {
  color: #f6fff1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(100, 255, 74, 0.22);
}

.simple-status-card {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  min-width: 0;
}

.juggle-simple-page .simple-status-card {
  position: relative;
  align-content: center;
  padding: 14px 18px;
}

.juggle-simple-page .simple-status-card::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 14px;
  width: 7px;
  height: calc(100% - 26px);
  background:
    linear-gradient(var(--pixel-green) 0 8px, transparent 8px 12px) 0 0 / 100% 12px repeat-y;
  opacity: 0.72;
  filter: drop-shadow(0 0 8px rgba(100, 255, 74, 0.7));
}

.simple-status-card strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.juggle-simple-page .simple-status-card strong {
  color: var(--pixel-green);
  text-shadow: 0 0 14px rgba(100, 255, 74, 0.38);
}

.simple-status-card p {
  margin: 0;
  color: #b7beb8;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(107, 211, 79, 0.7);
}

.simple-result-card {
  display: grid;
  gap: 2px;
  justify-items: center;
  position: relative;
  overflow: hidden;
  padding: 18px 14px;
  border-color: rgba(242, 185, 59, 0.65);
  text-align: center;
  min-width: 0;
}

.juggle-simple-page .simple-result-card {
  gap: 4px;
  padding: 18px 14px 16px;
  border: 3px solid rgba(255, 217, 74, 0.78);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(100, 255, 74, 0.12) 1px, transparent 1.4px),
    radial-gradient(circle at 50% 0, rgba(255, 217, 74, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(9, 13, 8, 0.98), rgba(4, 6, 4, 0.98));
  background-size: 100% 4px, 10px 10px, auto, auto;
  box-shadow:
    inset 0 0 0 2px #050705,
    inset 0 0 0 5px rgba(255, 217, 74, 0.14),
    0 0 0 2px rgba(0, 0, 0, 0.68),
    0 0 28px rgba(255, 217, 74, 0.22),
    0 12px 0 rgba(0, 0, 0, 0.34);
}

.juggle-simple-page .simple-result-card::before {
  content: "JUGGLE RANKING";
  display: block;
  width: min(260px, 82%);
  margin-bottom: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 217, 74, 0.32);
  color: var(--pixel-gold);
  background: rgba(44, 31, 4, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(255, 217, 74, 0.5);
}

.pixel-display-heading {
  display: block;
  width: min(300px, 92%);
  margin: 0 auto 4px;
  color: var(--pixel-green);
  font-size: clamp(18px, 5.4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(100, 255, 74, 0.42);
}

.simple-result-card::after {
  content: "";
  position: absolute;
  inset: -40% -80%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, 0.18), transparent 64%);
  opacity: 0;
  transform: translateX(-42%);
}

.simple-result-card span,
.simple-result-card small,
.simple-result-card em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.juggle-simple-page .simple-result-card > * {
  position: relative;
  z-index: 1;
}

.simple-result-card strong {
  max-width: 100%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 13vw, 88px);
  line-height: 1;
  text-shadow: 0 0 26px rgba(242, 185, 59, 0.55);
  overflow-wrap: anywhere;
}

.juggle-simple-page .simple-result-card strong {
  color: var(--pixel-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(38px, 11vw, 78px);
  letter-spacing: 0.06em;
  text-shadow:
    2px 0 0 rgba(255, 217, 74, 0.24),
    0 2px 0 rgba(255, 217, 74, 0.18),
    0 0 18px rgba(255, 217, 74, 0.52);
}

.simple-result-card b {
  max-width: 100%;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.juggle-simple-page .simple-result-card b {
  color: #f7fff5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-shadow: 0 0 10px rgba(100, 255, 74, 0.2);
}

.simple-result-card small {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.juggle-simple-page .simple-result-card small {
  color: var(--pixel-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.simple-result-card em {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.juggle-simple-page .simple-result-card em {
  margin-top: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 217, 74, 0.28);
  color: var(--pixel-gold);
  background: rgba(36, 27, 4, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.simple-result-card em span {
  display: inline-block;
}

.simple-money-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 74, 0.28);
  border-radius: 14px;
  background: rgba(100, 255, 74, 0.18);
}

.simple-money-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 10px;
  background: rgba(5, 12, 7, 0.96);
}

.simple-money-summary b {
  color: #9ba99e;
  font-size: 11px;
  line-height: 1.2;
}

.simple-money-summary strong {
  color: #f4fff0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.simple-money-summary span:first-child strong {
  color: var(--pixel-green, #64ff4a);
}

.simple-rank-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.juggle-simple-page .simple-rank-link {
  justify-content: flex-start;
  padding: 0 14px;
  color: #f5fff0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 217, 74, 0.08), rgba(8, 25, 8, 0.98));
  background-size: 100% 4px, auto;
}

.simple-rank-link::before {
  content: "🏆";
  margin-right: 10px;
}

.simple-rank-link::after {
  content: "›";
  margin-left: auto;
  padding-right: 20px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.simple-rank-link:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.simple-start-area {
  display: grid;
  justify-items: center;
  margin: 2px 0 0;
}

.simple-start-button {
  display: grid;
  place-items: center;
  width: min(54vw, 220px);
  aspect-ratio: 1;
  border: 4px solid rgba(173, 255, 142, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(145deg, #7bdc55, #0f571d 70%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 0 0 12px rgba(107, 211, 79, 0.18),
    0 0 52px rgba(107, 211, 79, 0.7),
    inset 0 -18px 28px rgba(0, 0, 0, 0.35);
}

.juggle-simple-page .simple-start-button {
  width: min(100%, 210px);
  aspect-ratio: 1.7 / 1;
  border: 3px solid rgba(255, 217, 74, 0.72);
  border-radius: 0;
  clip-path: polygon(
    0 16px,
    16px 16px,
    16px 0,
    calc(100% - 16px) 0,
    calc(100% - 16px) 16px,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 16px) calc(100% - 16px),
    calc(100% - 16px) 100%,
    16px 100%,
    16px calc(100% - 16px),
    0 calc(100% - 16px)
  );
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #8fff52 0%, #2a9227 48%, #0f4c16 100%);
  background-size: 100% 5px, auto, auto;
  box-shadow:
    0 0 0 6px rgba(6, 14, 6, 0.92),
    0 0 0 10px rgba(100, 255, 74, 0.16),
    0 0 38px rgba(100, 255, 74, 0.66),
    0 10px 0 rgba(0, 0, 0, 0.34),
    inset 0 -12px 0 rgba(0, 0, 0, 0.2);
}

.simple-start-button span {
  display: block;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.juggle-simple-page .simple-start-button span {
  color: #fffde2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-shadow:
    2px 0 0 rgba(0, 0, 0, 0.22),
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 0 14px rgba(255, 255, 255, 0.34);
}

.simple-start-button small {
  display: block;
  margin-top: -40px;
  font-size: 17px;
  font-weight: 900;
}

.juggle-simple-page .simple-start-button small {
  color: #f5fff0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.simple-start-button:disabled {
  cursor: default;
  filter: grayscale(0.25) brightness(0.88);
}

.juggle-simple-stage.is-running .simple-start-button {
  animation: simple-pulse 1.1s ease-in-out infinite;
}

.juggle-simple-page .juggle-simple-stage.is-running .simple-start-button {
  animation: pixel-simple-pulse 1.05s steps(2, end) infinite;
}

.juggle-simple-stage.is-running .simple-result-card::after {
  animation: result-scan 960ms linear infinite;
  opacity: 1;
}

.juggle-simple-stage.is-hit .simple-result-card {
  animation: simple-hit 520ms ease-out;
}

.juggle-simple-stage.is-finished .simple-status-card {
  border-color: rgba(242, 185, 59, 0.55);
}

.juggle-simple-stage.is-big-hit .simple-status-card,
.juggle-simple-stage.is-big-hit .simple-result-card {
  border-color: rgba(107, 211, 79, 0.8);
  box-shadow:
    0 0 0 1px rgba(107, 211, 79, 0.12),
    0 0 36px rgba(107, 211, 79, 0.28),
    0 16px 42px rgba(0, 0, 0, 0.28);
}

.juggle-simple-page .juggle-simple-stage.is-big-hit .simple-status-card,
.juggle-simple-page .juggle-simple-stage.is-big-hit .simple-result-card {
  border-color: rgba(100, 255, 74, 0.9);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 0 4px rgba(100, 255, 74, 0.12),
    0 0 0 1px rgba(100, 255, 74, 0.18),
    0 0 34px rgba(100, 255, 74, 0.34),
    0 12px 0 rgba(0, 0, 0, 0.28);
}

.juggle-simple-stage.is-missed .simple-status-card,
.juggle-simple-stage.is-missed .simple-result-card {
  border-color: rgba(255, 95, 85, 0.56);
}

.juggle-simple-page .juggle-simple-stage.is-missed .simple-status-card,
.juggle-simple-page .juggle-simple-stage.is-missed .simple-result-card {
  border-color: rgba(255, 95, 85, 0.72);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(255, 95, 85, 0.22),
    0 12px 0 rgba(0, 0, 0, 0.28);
}

.result-pop {
  animation: result-pop 520ms ease-out;
}

.number-rolling {
  color: #fff8c7 !important;
  text-shadow:
    0 0 10px rgba(242, 185, 59, 0.74),
    0 0 24px rgba(107, 211, 79, 0.26) !important;
  animation: number-flicker 240ms linear infinite;
}

.number-settle {
  animation: number-settle 360ms ease-out;
}

.simple-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.simple-sub-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.simple-sub-actions .button:first-child {
  grid-column: 1 / -1;
}

.simple-next-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  background: rgba(7, 9, 8, 0.9);
}

.simple-next-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  background: rgba(15, 20, 16, 0.72);
  color: #d7ded8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.simple-next-row a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.simple-log {
  min-height: 48px;
  max-height: 64px;
  margin-top: 0;
  background: rgba(6, 8, 7, 0.92);
  color: #b9c3ba;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.simple-ad {
  min-height: 58px;
  margin: 0;
  background: linear-gradient(135deg, rgba(19, 26, 20, 0.96), rgba(11, 13, 12, 0.96));
}

.juggle-simple-page .record-name-field {
  width: 100%;
  max-width: none;
  margin: 0;
}

.juggle-simple-page .record-name-field label {
  font-size: 12px;
}

.juggle-simple-page .record-name-field input {
  min-height: 42px;
  border-color: rgba(107, 211, 79, 0.32);
  border-radius: 14px;
  background: rgba(6, 8, 7, 0.72);
  text-align: center;
  font-weight: 900;
}

.juggle-simple-stage > .note {
  margin: 0;
  color: rgba(245, 247, 244, 0.5);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@keyframes simple-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 12px rgba(107, 211, 79, 0.16),
      0 0 52px rgba(107, 211, 79, 0.64),
      inset 0 -18px 28px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.025);
    box-shadow:
      0 0 0 16px rgba(107, 211, 79, 0.22),
      0 0 70px rgba(107, 211, 79, 0.85),
      inset 0 -18px 28px rgba(0, 0, 0, 0.35);
  }
}

@keyframes pixel-simple-pulse {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
    box-shadow:
      0 0 0 6px rgba(6, 14, 6, 0.92),
      0 0 0 10px rgba(100, 255, 74, 0.16),
      0 0 34px rgba(100, 255, 74, 0.58),
      0 10px 0 rgba(0, 0, 0, 0.34),
      inset 0 -12px 0 rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translateY(2px);
    filter: brightness(1.18);
    box-shadow:
      0 0 0 6px rgba(6, 14, 6, 0.92),
      0 0 0 12px rgba(100, 255, 74, 0.22),
      0 0 46px rgba(100, 255, 74, 0.84),
      0 6px 0 rgba(0, 0, 0, 0.34),
      inset 0 -9px 0 rgba(0, 0, 0, 0.2);
  }
}

@keyframes simple-hit {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 rgba(242, 185, 59, 0);
  }
  45% {
    transform: scale(1.02);
    box-shadow: 0 0 42px rgba(242, 185, 59, 0.32);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  }
}

@keyframes status-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@keyframes result-scan {
  0% {
    transform: translateX(-44%);
  }
  100% {
    transform: translateX(44%);
  }
}

@keyframes result-pop {
  0% {
    transform: scale(0.985);
  }
  44% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes number-flicker {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-1px);
    filter: brightness(1.25);
  }
}

@keyframes number-settle {
  0% {
    transform: scale(1.08);
    filter: brightness(1.3);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@media (max-width: 640px) {
  .simple-money-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-money-summary span:first-child {
    grid-column: 1 / -1;
  }

  .juggle-simple-page .site-header {
    position: static;
  }

  .juggle-simple-page .header-inner {
    gap: 8px;
    padding: 18px 12px 12px;
  }

  .juggle-simple-page .brand-name {
    font-size: clamp(30px, 10.5vw, 48px);
  }

  .juggle-simple-page .brand::before,
  .juggle-simple-page .brand::after {
    width: 24px;
    height: 40px;
  }

  .juggle-simple-page .brand::before {
    left: -30px;
  }

  .juggle-simple-page .brand::after {
    right: -30px;
  }

  .juggle-simple-page .brand-sub {
    font-size: clamp(16px, 5.2vw, 24px);
  }

  .juggle-simple-page .nav a {
    min-height: 42px;
    font-size: 13px;
  }

  .simple-page {
    min-height: calc(100svh - 82px);
    padding: 10px 12px 10px;
  }

  .juggle-simple-stage {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 38vw);
    gap: 8px;
    min-height: auto;
    align-items: stretch;
  }

  .juggle-simple-page .juggle-simple-stage {
    padding: 10px 8px;
    border-left: 0;
    border-right: 0;
  }

  .simple-title-line {
    display: none;
  }

  .pixel-cabinet-row {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    gap: 8px;
    padding: 10px 8px 8px;
  }

  .pixel-cabinet-row .simple-status-card {
    grid-column: auto;
    grid-row: auto;
  }

  .pixel-slot-machine {
    min-height: 102px;
    padding: 6px;
  }

  .pixel-slot-title {
    min-height: 18px;
    font-size: 9px;
  }

  .pixel-reels {
    gap: 2px;
    padding: 4px;
  }

  .pixel-reels span {
    min-height: 32px;
    font-size: 17px;
  }

  .pixel-lamp {
    max-width: 34px;
    min-width: 24px;
    border-width: 2px;
  }

  .simple-status-card,
  .simple-rule-row,
  .simple-rank-link,
  .simple-sub-actions,
  .simple-next-row,
  .save-preview,
  .simple-ad {
    grid-column: 1 / -1;
  }

  .simple-status-card {
    grid-row: 1;
  }

  .juggle-simple-stage > .simple-status-card {
    padding: 9px 12px;
    border-radius: 14px;
  }

  .simple-status-card strong {
    font-size: 15px;
  }

  .simple-status-card p {
    font-size: 12px;
  }

  .simple-rule-row {
    grid-row: 2;
    border-radius: 14px;
  }

  .simple-rule-row span {
    padding: 8px 9px;
  }

  .simple-rule-row b {
    font-size: 10px;
  }

  .simple-rule-row strong {
    font-size: 11px;
  }

  .simple-result-card {
    grid-column: 1;
    grid-row: 3;
    padding: 12px 10px;
    border-radius: 16px;
    min-height: 136px;
    align-content: center;
  }

  .simple-result-card strong {
    font-size: clamp(34px, 10.5vw, 58px);
  }

  .simple-result-card b {
    font-size: clamp(22px, 6.5vw, 32px);
  }

  .simple-result-card small,
  .simple-result-card em {
    font-size: 12px;
  }

  .pixel-display-heading {
    font-size: clamp(15px, 4.6vw, 20px);
  }

  .simple-start-button {
    width: min(34vw, 150px);
    border-width: 3px;
    box-shadow:
      0 0 0 8px rgba(107, 211, 79, 0.16),
      0 0 34px rgba(107, 211, 79, 0.62),
      inset 0 -14px 22px rgba(0, 0, 0, 0.35);
  }

  .simple-start-button span {
    margin-top: 8px;
    font-size: clamp(24px, 7vw, 34px);
  }

  .simple-start-button small {
    margin-top: -24px;
    font-size: 12px;
  }

  .simple-start-area {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    margin: 0;
  }

  .juggle-simple-page .simple-start-button {
    width: 100%;
    min-height: 92px;
    aspect-ratio: 1.25 / 1;
  }

  .choice-simple-stage {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 42vw);
    align-items: stretch;
  }

  .choice-simple-stage .simple-result-card {
    grid-column: 1;
    grid-row: 3;
  }

  .choice-simple-stage .choice-stage {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-self: stretch;
    min-height: 0;
    margin: 0;
  }

  .choice-simple-stage .choice-button {
    min-height: 0;
    padding: 0;
    border-radius: 16px;
    font-size: clamp(22px, 6vw, 30px);
  }

  .choice-simple-stage .choice-effect {
    grid-row: 4;
  }

  .choice-simple-stage .simple-rank-link {
    grid-row: 5;
  }

  .simple-sub-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .juggle-simple-stage > .simple-sub-actions {
    grid-row: 5;
  }

  .simple-sub-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .simple-sub-actions .button {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .simple-next-row {
    border-radius: 14px;
  }

  .simple-next-row a {
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
  }

  .simple-log {
    display: none;
  }

  .simple-ad {
    min-height: 48px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .simple-result-card strong {
    font-size: clamp(30px, 9.4vw, 50px);
  }

  .simple-result-card b {
    font-size: clamp(20px, 6vw, 28px);
  }

  .simple-start-button {
    width: min(32vw, 136px);
  }

  .choice-simple-stage {
    grid-template-columns: minmax(0, 1fr) minmax(136px, 40vw);
  }

  .choice-simple-stage .choice-button {
    font-size: clamp(20px, 6vw, 28px);
  }
}

@media (max-width: 720px) {
  .home-page .game-lobby {
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 22px;
  }

  .home-page .lobby-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .home-page .lobby-top h1 {
    font-size: clamp(30px, 8.4vw, 42px);
    letter-spacing: 0;
  }

  .home-page .lobby-top p {
    display: block;
    max-width: none;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.65;
  }

  .home-page .lobby-rank-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .home-page .mode-select {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-page .mode-card {
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    min-height: 108px;
    padding: 12px 13px;
    border-radius: 16px;
  }

  .home-page .mode-card .mode-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 16px;
  }

  .home-page .mode-card strong {
    font-size: 18px;
  }

  .home-page .mode-card small {
    font-size: 12px;
    line-height: 1.4;
  }

  .home-page .mode-card b {
    font-size: 26px;
  }

  .home-page .mode-card .mode-rank {
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 10px;
  }

  .home-page .mode-card .mode-rank span {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px;
  }

  .home-page .mode-card .mode-rank b,
  .home-page .mode-card .mode-rank strong {
    font-size: 10px;
  }

  .home-page .lobby-footer-panels {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .home-page .mission-card {
    min-height: 70px;
    padding: 12px;
  }

  .home-page .mission-card strong {
    font-size: 15px;
  }

  .home-page .mission-card span {
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .ranking-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .ranking-tabs .rank-category {
    flex: 0 0 148px;
    min-height: 88px;
    padding: 12px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .ranking-tabs .rank-category span {
    font-size: 18px;
  }

  .ranking-tabs .rank-category strong {
    font-size: 14px;
  }

  .ranking-tabs .rank-category small {
    display: none;
  }

  .winner-card-layout {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .winner-crown {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .winner-crown span {
    font-size: 20px;
  }

  .winner-main strong {
    font-size: 18px;
  }

  .winner-main b {
    font-size: 28px;
  }

  .winner-meta {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
    font-size: 13px;
  }

  .winner-empty {
    grid-template-columns: 1fr;
  }
}

/* Mobile final layout guard: keep controls, ads and browser UI from colliding. */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .page,
  .simple-page {
    width: 100%;
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: calc(138px + env(safe-area-inset-bottom));
  }

  .site-footer {
    margin-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    justify-content: center;
    padding: 22px 14px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 10px 14px;
  }

  .ad-box,
  .ad-box-footer,
  .simple-ad {
    min-height: 50px;
    max-width: 100%;
    margin: 12px 0;
    padding: 10px 12px;
  }

  .ad-box::before {
    width: 36px;
  }

  .juggle-simple-page {
    padding-bottom: calc(190px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .simple-page {
    padding-bottom: calc(210px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .simple-sub-actions {
    position: relative;
    z-index: 1;
    margin-bottom: calc(122px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .simple-ad {
    margin-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .mobile-bottom-nav {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .ad-note {
    display: none;
  }

  .home-page .game-lobby {
    max-width: none;
    padding: 14px;
  }

  .home-page .lobby-top {
    grid-template-columns: 1fr;
  }

  .home-page .lobby-rank-button {
    justify-self: start;
    min-height: 36px;
  }

  .home-page .mode-select {
    gap: 9px;
  }

  .home-page .mode-card {
    grid-template-columns: 50px minmax(0, 1fr) 20px;
    min-height: 92px;
    gap: 3px 12px;
    padding: 11px 12px;
  }

  .home-page .mode-card .mode-icon {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .home-page .mode-card strong {
    font-size: 17px;
  }

  .home-page .mode-card small {
    font-size: 11px;
  }

  .home-page .mode-card .mode-rank {
    max-width: 100%;
    padding: 5px 7px;
  }

  .home-page .lobby-footer-panels {
    grid-template-columns: 1fr;
  }

  .home-page .mission-card {
    min-height: 58px;
  }

  .article-card {
    margin-bottom: 14px;
  }

  .article-card,
  .article-card p,
  .article-card li,
  .faq-item,
  .faq-item p,
  code {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ranking-hero {
    gap: 12px;
  }

  .ranking-hero h1 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.2;
  }

  .hero-actions {
    gap: 8px;
  }

  .record-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .record-summary-card {
    padding: 12px 10px;
  }

  .record-summary-card strong {
    font-size: 18px;
  }

  .ranking-tabs {
    top: 82px;
    margin-inline: -4px;
    border-radius: 16px;
  }

  .ranking-tabs .rank-category {
    flex-basis: 132px;
    min-height: 74px;
  }

  .ranking-winner-card {
    margin: 12px 0;
  }

  .winner-card-layout {
    align-items: start;
    padding: 12px;
  }

  .winner-main b {
    font-size: clamp(24px, 8vw, 30px);
  }

  .table-wrap {
    margin-inline: -4px;
  }

  .ranking-table {
    min-width: 600px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 9px 7px;
  }

  .simple-page {
    min-height: auto;
    padding-top: 10px;
  }

  .juggle-simple-stage {
    gap: 8px;
    min-height: auto;
  }

  .simple-status-card,
  .simple-rule-row,
  .simple-result-card,
  .simple-rank-link,
  .simple-next-row,
  .simple-ad {
    border-radius: 14px;
  }

  .simple-rule-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-result-card {
    min-height: 120px;
    padding: 10px 8px;
  }

  .simple-start-button {
    width: min(31vw, 132px);
  }

  .simple-start-button span {
    font-size: clamp(22px, 6.8vw, 30px);
  }

  .simple-start-button small {
    margin-top: -22px;
    font-size: 11px;
  }

  .simple-sub-actions {
    gap: 6px;
  }

  .simple-sub-actions .button {
    min-height: 36px;
  }

  .simple-info-section {
    margin-top: 12px;
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .home-page .mode-card {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    min-height: 86px;
  }

  .home-page .mode-card .mode-icon {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .home-page .mode-card strong {
    font-size: 16px;
  }

  .ranking-tabs .rank-category {
    flex-basis: 122px;
  }

  .simple-result-card strong {
    font-size: clamp(28px, 9vw, 44px);
  }

  .simple-start-button {
    width: min(30vw, 122px);
  }
}

/* Mobile app home v116: typography-and-buttons only */
.mobile-app-home,
.mobile-app-bottom-nav,
.mobile-header-button { display: none; }

@media (max-width: 760px) {
  .home-page { padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important; background: #050706; }
  .home-page .site-header { position: sticky !important; z-index: 50; top: 0; border-bottom: 1px solid #202822; background: rgba(5, 7, 6, .96); backdrop-filter: blur(16px); }
  .home-page .header-inner { min-height: 62px; padding: 9px 14px; }
  .home-page .brand-name { color: #fff; font-size: 29px; line-height: 1; letter-spacing: -.02em; text-shadow: none; }
  .home-page .brand-sub,
  .home-page .nav { display: none !important; }
  .mobile-header-button { display: inline-grid; place-items: center; min-height: 42px; padding: 8px 12px; border: 1px solid #303a33; border-radius: 11px; color: #dce5de; background: #0b0f0c; font-size: 12px; font-weight: 900; }

  .home-page .home-game-page { gap: 0; padding: 14px 10px 28px !important; }
  .mobile-app-home { display: grid; gap: 14px; width: 100%; max-width: 620px; margin: 0 auto; }
  .mobile-app-heading { padding: 5px 3px 0; }
  .mobile-app-heading > span { color: #78ed61; font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
  .mobile-app-heading h1 { margin: 4px 0 3px; color: #fff; font-size: clamp(25px, 7.8vw, 34px); line-height: 1.08; letter-spacing: -.04em; }
  .mobile-app-heading p { margin: 0; color: #879088; font-size: 12px; }

  .mobile-app-search label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 58px; padding: 7px 7px 7px 14px; border: 1px solid #303a33; border-radius: 15px; background: #111512; box-shadow: inset 0 1px rgba(255,255,255,.025); }
  .mobile-app-search label > span { color: #f2f5f2; font-size: 31px; line-height: 1; transform: rotate(-18deg); }
  .mobile-app-search input { min-width: 0; min-height: 44px; padding: 8px 10px; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; }
  .mobile-app-search input::placeholder { color: #7d857f; }
  .mobile-app-search button { min-height: 42px; padding: 7px 12px; border: 1px solid #465149; border-radius: 10px; background: #1a201b; color: #dce4dd; font: inherit; font-size: 12px; font-weight: 900; }

  .mobile-app-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mobile-app-categories button,
  .mobile-app-categories a { display: grid; place-items: center; min-width: 0; min-height: 52px; padding: 8px 5px; border: 1px solid #303a33; border-radius: 13px; background: #111512; color: #f1f3f1; font: inherit; font-size: 14px; font-weight: 950; }
  .mobile-app-categories button[aria-pressed="true"] { border-color: #7df45e; background: #7df45e; color: #071006; box-shadow: 0 0 20px rgba(125,244,94,.12); }

  .mobile-featured-machine { padding: 16px; border: 1px solid #354139; border-radius: 18px; background: #0d110e; box-shadow: 0 12px 32px rgba(0,0,0,.24); }
  .mobile-featured-title { position: relative; display: grid; gap: 4px; padding: 0 28px 14px 0; border-bottom: 1px solid #2a332d; }
  .mobile-featured-title span { color: #efbd4e; font-size: 12px; font-weight: 900; }
  .mobile-featured-title strong { color: #fff; font-size: clamp(25px, 7.8vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
  .mobile-featured-title > b { position: absolute; top: 50%; right: 2px; color: #b5beb7; font-size: 34px; font-weight: 300; transform: translateY(-50%); }
  .mobile-featured-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; }
  .mobile-featured-stats div { display: grid; gap: 4px; min-width: 0; padding: 4px 7px; border-right: 1px solid #313a34; text-align: center; }
  .mobile-featured-stats div:last-child { border-right: 0; }
  .mobile-featured-stats span { color: #929b94; font-size: 10px; font-weight: 800; }
  .mobile-featured-stats strong { overflow-wrap: anywhere; color: #fff; font-size: clamp(17px, 5vw, 22px); }
  .mobile-featured-start { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 10px 16px; border: 1px solid #85fa68; border-radius: 14px; background: #82f663; color: #071006; font-size: clamp(14px, 4.4vw, 18px); font-weight: 950; text-align: center; box-shadow: 0 8px 25px rgba(88,214,65,.15); }
  .mobile-featured-start > span { font-size: 20px; }
  .mobile-featured-start > b { font-size: 27px; }

  .mobile-popular-machines { display: grid; gap: 10px; }
  .mobile-app-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 0; }
  .mobile-app-section-head h2 { margin: 0; color: #fff; font-size: 20px; }
  .mobile-app-section-head h2 span { color: #cdd4ce; }
  .mobile-app-section-head > a { color: #aab2ac; font-size: 12px; font-weight: 850; }
  .mobile-app-section-head > button { min-height: 34px; padding: 6px 10px; border: 1px solid #303a33; border-radius: 10px; background: #101411; color: #aab2ac; font: inherit; font-size: 11px; font-weight: 850; }
  .mobile-app-section-head > small { color: #8e978f; font-size: 11px; font-weight: 850; }

  .mobile-personal-machines { display: grid; gap: 9px; }
  .mobile-machine-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(155px, 46%); gap: 8px; overflow-x: auto; padding: 1px 1px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .mobile-machine-shelf::-webkit-scrollbar { display: none; }
  .mobile-shelf-card { position: relative; min-width: 0; min-height: 118px; border: 1px solid #2e3731; border-radius: 14px; background: #0e120f; scroll-snap-align: start; }
  .mobile-shelf-card.is-slot { border-left: 3px solid #6aafff; }
  .mobile-shelf-card.is-pachinko { border-left: 3px solid #ff7864; }
  .mobile-shelf-card > a { display: grid; align-content: center; gap: 6px; min-height: 116px; padding: 14px 36px 14px 12px; color: #f4f7f4; }
  .mobile-shelf-card > a > span { color: #8dc3ff; font: 900 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
  .mobile-shelf-card.is-pachinko > a > span { color: #ff9586; }
  .mobile-shelf-card > a > strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
  .mobile-shelf-card > a > small { color: #8f9891; font-size: 10px; line-height: 1.45; }
  .mobile-shelf-card > button { position: absolute; top: 8px; right: 7px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #39423c; border-radius: 50%; background: #151a16; color: #9aa39c; font-size: 20px; line-height: 1; }
  .mobile-shelf-card > button[aria-pressed="true"] { border-color: #e9b943; color: #ffd66e; background: rgba(233,185,67,.1); }
  .mobile-machine-empty { margin: 0; padding: 13px; border: 1px dashed #354039; border-radius: 13px; color: #8e978f; background: #0b0f0c; font-size: 11px; line-height: 1.6; }
  .mobile-popular-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mobile-popular-grid > a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 9px; min-width: 0; min-height: 122px; padding: 13px; border: 1px solid #2e3731; border-radius: 14px; background: #0e120f; }
  .mobile-popular-grid > a > span { grid-row: 1 / 3; align-self: start; color: #efbd4e; font-size: 29px; font-weight: 950; line-height: 1; }
  .mobile-popular-grid > a:nth-child(2) > span { color: #71b4ff; }
  .mobile-popular-grid > a:nth-child(3) > span { color: #e6a64c; }
  .mobile-popular-grid > a:nth-child(4) > span { color: #aeb5b0; }
  .mobile-popular-grid strong { min-width: 0; overflow-wrap: anywhere; color: #fff; font-size: 14px; line-height: 1.3; }
  .mobile-popular-grid b { grid-column: 1 / -1; align-self: end; padding-top: 8px; border-top: 1px solid #283029; color: #dfe4e0; font-size: 12px; }
  .mobile-popular-grid small { grid-column: 1 / -1; color: #858e87; font-size: 10px; }

  .home-page .home-intro,
  .home-page .home-jump-nav,
  .home-page .editorial-hero,
  .home-page .community-entry-banner,
  .home-page #recentMachines { display: none !important; }
  .home-page #popularMachines { margin-top: 18px; padding: 15px 0 0; border: 0; border-top: 1px solid #242b26; border-radius: 0; background: transparent; box-shadow: none; }
  .home-page #popularMachines > .machine-section-label,
  .home-page #popularMachines > .section-lead,
  .home-page #popularMachines > .machine-find-tools { display: none !important; }
  .home-page #popularMachines > h2 { margin: 0 0 11px; font-size: 21px; }
  .home-page #popularMachines .machine-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-page #popularMachines .machine-index-grid a { min-height: 132px; padding: 12px 11px; border-radius: 13px; background: #0d110e; }
  .home-page #popularMachines .machine-index-grid a > span { font-size: 8px; }
  .home-page #popularMachines .machine-index-grid strong { font-size: 14px; line-height: 1.3; }
  .home-page #popularMachines .machine-index-grid small { font-size: 10px; line-height: 1.4; }
  .home-page #popularMachines .machine-index-grid a > div { grid-template-columns: 1fr; gap: 3px; margin-top: auto; }
  .home-page #popularMachines .machine-index-grid a > div b { font-size: 10px; }

  .mobile-app-bottom-nav { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: calc(66px + env(safe-area-inset-bottom)); padding: 5px 5px env(safe-area-inset-bottom); border-top: 1px solid #273029; background: rgba(7, 10, 8, .97); backdrop-filter: blur(18px); box-shadow: 0 -12px 30px rgba(0,0,0,.35); }
  .mobile-app-bottom-nav a { display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; min-height: 56px; border-radius: 10px; color: #a9b1ab; }
  .mobile-app-bottom-nav a > span { font-size: 25px; font-weight: 500; line-height: 1; }
  .mobile-app-bottom-nav a > b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-app-bottom-nav a.is-active { color: #7df45e; }
  .home-page .site-footer { padding-bottom: 12px; }
}

@media (max-width: 360px) {
  .mobile-app-search button { padding-inline: 9px; }
  .mobile-app-categories button,
  .mobile-app-categories a { font-size: 12px; }
  .mobile-featured-machine { padding: 13px; }
  .mobile-popular-grid > a { padding: 11px; }
  .mobile-app-bottom-nav a > b { font-size: 9px; }
}

/* Popular machine archive v99 */
.machine-library-page { --machine-accent: #6bd34f; background: #050706; }
.machine-detail-shell { max-width: 1180px; }
.machine-archive-hero,
.machine-intro,
.machine-simulator,
.machine-article,
.machine-side-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 24, 20, .98), rgba(7, 9, 8, .98));
  box-shadow: var(--shadow);
}
.machine-archive-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; padding: 38px; overflow: hidden; border-color: color-mix(in srgb, var(--machine-accent) 45%, var(--line)); background: radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--machine-accent) 24%, transparent), transparent 310px), linear-gradient(145deg, rgba(18, 24, 20, .98), rgba(7, 9, 8, .98)); }
.machine-archive-hero.theme-crimson { --machine-accent: #ff4f5f; }
.machine-archive-hero.theme-aqua { --machine-accent: #42d6e8; }
.machine-archive-hero.theme-violet { --machine-accent: #b783ff; }
.machine-archive-hero.theme-ice { --machine-accent: #8fdbff; }
.machine-archive-hero.theme-ember { --machine-accent: #ff7a45; }
.machine-archive-hero.theme-gold { --machine-accent: #f2b93b; }
.machine-archive-hero.theme-magenta { --machine-accent: #ff4db8; }
.machine-archive-hero.theme-sakura { --machine-accent: #ff91b8; }
.machine-archive-hero.theme-ocean { --machine-accent: #39c9f0; }
.machine-archive-hero.theme-flame { --machine-accent: #ff6b35; }
.machine-archive-hero h1 { max-width: 850px; margin: 7px 0 10px; font-size: clamp(36px, 6vw, 68px); line-height: 1.04; letter-spacing: -2px; }
.machine-archive-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; font-weight: 750; }
.machine-kind,
.machine-section-label { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; }
.machine-archive-hero dl { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); min-width: 330px; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .28); }
.machine-archive-hero dl div { padding: 13px; border-right: 1px solid var(--line); }
.machine-archive-hero dl div:last-child { border-right: 0; }
.machine-archive-hero dt { color: var(--muted); font-size: 10px; }
.machine-archive-hero dd { margin: 4px 0 0; font-weight: 900; }
.machine-quick-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.machine-quick-nav a,
.machine-quick-nav button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #090c0a; color: var(--muted); font: inherit; font-size: 12px; font-weight: 850; }
.machine-quick-nav a:hover,
.machine-quick-nav button:hover { border-color: var(--blue); color: var(--blue); }
.machine-quick-nav .machine-favorite-button[aria-pressed="true"] { border-color: #efbd4e; color: #ffd66e; background: rgba(239, 189, 78, .1); }
.machine-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; padding: 28px; }
.machine-intro h2,
.machine-sim-head h2,
.machine-article h2 { margin: 3px 0 10px; }
.machine-intro p { color: var(--muted); }
.machine-intro ul { padding-left: 20px; }
.machine-intro li { margin: 7px 0; }
.machine-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.machine-spec-grid div { display: grid; align-content: center; min-height: 84px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .24); }
.machine-spec-grid span { color: var(--muted); font-size: 11px; }
.machine-spec-grid strong { margin-top: 3px; font-size: 18px; }
.machine-simulator { margin-top: 20px; padding: 28px; border-color: rgba(125, 167, 255, .36); }
.machine-sim-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.machine-sim-badge { padding: 5px 10px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 900; }
.machine-sim-note { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.machine-sim-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; }
.machine-sim-controls,
.machine-result { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .25); }
.machine-control,
.machine-control-grid { display: grid; gap: 7px; }
.machine-control-grid { grid-template-columns: 1fr 1fr; }
.machine-control { align-content: start; }
.machine-control span { font-size: 12px; font-weight: 900; }
.machine-control input { width: 100%; min-height: 48px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: #080b09; color: var(--text); font: inherit; font-size: 18px; font-weight: 900; }
.machine-control small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.machine-average-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 14px 0; }
.machine-average-grid div { min-height: 68px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
.machine-average-grid span { display: block; color: var(--muted); font-size: 10px; }
.machine-average-grid strong { display: block; margin-top: 3px; font-size: 15px; }
.machine-start-anchor { height: 1px; }
.machine-start-button { width: 100%; min-height: 64px; border: 1px solid var(--accent); border-radius: 14px; background: linear-gradient(180deg, var(--accent), #2c9223); color: #041003; cursor: pointer; }
.machine-start-button span { display: block; font-size: 25px; font-weight: 950; letter-spacing: 1px; }
.machine-start-button small { display: block; font-weight: 850; }
.machine-start-button.is-sticky {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(500px, calc(100vw - 32px));
  min-height: 68px;
  transform: translateX(-50%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .68), 0 0 0 3px rgba(107, 211, 79, .14);
}
.machine-start-button.is-result-position {
  display: block;
  width: min(100%, 480px);
  min-height: 60px;
  margin: 18px auto 12px;
}
body.has-machine-sticky-start { padding-bottom: 96px; }
.machine-result { display: grid; align-content: center; min-height: 360px; text-align: center; }
.machine-result > span { color: var(--blue); font: 900 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.5px; }
.machine-result > strong { margin: 5px 0; font-size: clamp(29px, 5vw, 48px); }
.machine-result > p { margin: 0; color: var(--muted); }
.machine-result.has-result { border-color: var(--accent); box-shadow: 0 0 28px rgba(107, 211, 79, .08); }
.machine-result.is-complete {
  border-color: #ffd75a;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 215, 90, .22), transparent 42%),
    linear-gradient(145deg, rgba(35, 29, 9, .96), rgba(8, 11, 8, .98));
  box-shadow: 0 0 42px rgba(255, 215, 90, .2), inset 0 0 0 1px rgba(255, 245, 190, .08);
}
.machine-result.is-complete > span { color: #ffd75a; letter-spacing: 2.2px; }
.machine-result.is-complete > strong {
  color: #fff3b2;
  text-shadow: 0 0 22px rgba(255, 215, 90, .55);
}
.machine-result.is-complete .machine-result-stats div:first-child {
  border-color: rgba(255, 215, 90, .55);
  background: rgba(255, 215, 90, .1);
}
.machine-result.is-complete .machine-result-stats div:first-child span,
.machine-result.is-complete .machine-result-stats div:first-child strong { color: #ffe788; }
.machine-result.is-complete .machine-flow span:last-child {
  border-color: rgba(255, 215, 90, .65);
  background: rgba(255, 215, 90, .12);
  color: #fff0a0;
}
.machine-result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 15px 0; }
.machine-result-stats div { padding: 9px; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.machine-result-stats span { display: block; color: var(--muted); font-size: 10px; }
.machine-result-stats strong { display: block; margin-top: 2px; }
.machine-flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 10px 0; }
.machine-flow span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: #080b09; font-size: 11px; font-weight: 850; }
.machine-flow b { color: var(--muted); }
.machine-ranking-name { display: grid; gap: 5px; min-width: 0; margin: 0; text-align: left; }
.machine-ranking-name span { color: var(--muted); font-size: 11px; font-weight: 850; }
.machine-ranking-name input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #080b09; color: var(--text); font: inherit; }
.machine-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.machine-result-actions .button { min-height: 52px; padding-inline: 12px; }
.machine-ranking-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 10px; padding: 12px; border: 1px solid rgba(107, 211, 79, .25); border-radius: 12px; background: rgba(107, 211, 79, .045); }
.machine-ranking-entry > .button { min-width: 180px; min-height: 48px; }
.machine-ranking { margin-top: 20px; padding: 28px; border: 1px solid rgba(236, 192, 84, .32); border-radius: 16px; background: radial-gradient(circle at 90% 0, rgba(236, 192, 84, .08), transparent 36%), var(--panel); }
.machine-ranking-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.machine-ranking-head h2 { margin: 4px 0 6px; }
.machine-ranking-head p { margin: 0; color: var(--muted); font-size: 12px; }
.machine-ranking-mode { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(236, 192, 84, .35); border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 900; }
.machine-ranking-self { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 20px 0 10px; padding: 15px 17px; border: 1px solid rgba(107, 211, 79, .28); border-radius: 13px; background: rgba(107, 211, 79, .055); }
.machine-ranking-self > span { color: var(--accent); font: 900 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }
.machine-ranking-self > strong { font-size: 20px; }
.machine-ranking-self > small { color: var(--muted); text-align: right; }
.machine-ranking-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.machine-ranking-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto minmax(160px, auto); gap: 12px; align-items: center; min-height: 58px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, .22); }
.machine-ranking-list li > b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(236, 192, 84, .11); color: var(--gold); }
.machine-ranking-list li > span { overflow: hidden; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.machine-ranking-list li > strong { color: var(--accent); font-size: 18px; }
.machine-ranking-list li > small { color: var(--muted); text-align: right; }
.machine-ranking-list li.is-empty { display: block; padding: 22px; color: var(--muted); text-align: center; }
.machine-ranking-notice { margin: 11px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.machine-ranking-head .machine-ranking-rules { max-width: 760px; margin-top: 9px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--machine-accent, var(--accent)) 28%, var(--line)); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 10px; line-height: 1.55; }
.machine-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; margin-top: 20px; }
.machine-article,
.machine-side-list { padding: 24px; }
.machine-article h3 { margin-top: 25px; }
.machine-article p { color: var(--muted); line-height: 1.85; }
.machine-article-section {
  margin-top: 25px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.machine-article-section h3 { color: #f3f7f3; }
.machine-article-section ul { padding-left: 20px; }
.machine-article-section li { margin-top: 8px; color: #c2cbc4; line-height: 1.75; }
.machine-article .next-links { margin-top: 13px; }
.machine-sources { padding-left: 20px; }
.machine-sources li { margin: 8px 0; }
.machine-side-list { display: grid; gap: 8px; align-content: start; }
.machine-side-list > strong { margin-bottom: 4px; }
.machine-side-list a { display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-weight: 800; }
.machine-side-list a span { color: var(--blue); font-size: 9px; letter-spacing: 1px; }
.machine-index-section { margin: 20px 0; }
.machine-index-section > h2 { margin: 4px 0 7px; }
.machine-index-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.machine-index-grid a { display: grid; align-content: center; min-height: 116px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(16, 22, 18, .95), rgba(5, 8, 6, .96)); color: var(--text); }
.machine-index-grid a:hover { border-color: var(--blue); transform: translateY(-2px); }
.machine-index-grid span { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.machine-index-grid strong { margin: 5px 0 2px; font-size: 16px; }
.machine-index-grid small { color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
  .machine-archive-hero,
  .machine-intro,
  .machine-sim-layout,
  .machine-article-layout { grid-template-columns: 1fr; }
  .machine-archive-hero dl { min-width: 0; }
  .machine-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .machine-archive-hero,
  .machine-intro,
  .machine-simulator,
  .machine-ranking,
  .machine-article,
  .machine-side-list { padding: 18px; }
  .machine-archive-hero h1 { letter-spacing: -1px; }
  .machine-archive-hero dl,
  .machine-spec-grid,
  .machine-control-grid,
  .machine-result-stats { grid-template-columns: 1fr 1fr; }
  .machine-archive-hero dl div:nth-child(2) { border-right: 0; }
  .machine-archive-hero dl div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .machine-result-actions { display: grid; grid-template-columns: 1fr; }
  .machine-ranking-head { display: grid; }
  .machine-ranking-mode { justify-self: start; }
  .machine-ranking-self { grid-template-columns: 1fr; gap: 4px; }
  .machine-ranking-self > small { text-align: left; }
  .machine-ranking-list li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; }
  .machine-ranking-list li > small { grid-column: 2 / -1; text-align: left; }
  .machine-index-grid { grid-template-columns: 1fr; }
}

/* Juggle page rebuild: make the challenge feel like one arcade screen. */
.juggle-simple-page > .site-header {
  display: none;
}

.juggle-simple-page .simple-page {
  max-width: 520px;
  min-height: 100svh;
  padding: max(10px, env(safe-area-inset-top)) 10px calc(28px + env(safe-area-inset-bottom));
}

.juggle-simple-page .pixel-arcade-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-height: auto;
  padding: 10px;
  border: 4px solid rgba(100, 255, 74, 0.42);
  clip-path: polygon(0 20px, 20px 20px, 20px 0, calc(100% - 20px) 0, calc(100% - 20px) 20px, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 20px calc(100% - 20px), 0 calc(100% - 20px));
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 28%, rgba(100, 255, 74, 0.13), transparent 16rem),
    linear-gradient(180deg, rgba(4, 13, 4, 0.98), rgba(1, 4, 1, 0.98));
  background-size: 100% 4px, 18px 100%, auto, auto;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    inset 0 0 0 7px rgba(100, 255, 74, 0.06),
    inset 0 0 60px rgba(100, 255, 74, 0.12),
    0 0 36px rgba(100, 255, 74, 0.18);
}

.juggle-simple-page .pixel-arcade-screen::before,
.juggle-simple-page .pixel-arcade-screen::after {
  right: 18px;
  left: 18px;
  height: 4px;
}

.pixel-arcade-marquee {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 106px;
  padding: 12px 10px 10px;
  border: 3px solid rgba(100, 255, 74, 0.58);
  clip-path: polygon(0 16px, 16px 16px, 16px 0, calc(100% - 16px) 0, calc(100% - 16px) 16px, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 16px calc(100% - 16px), 0 calc(100% - 16px));
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(255, 217, 74, 0.09), transparent 72%),
    rgba(3, 10, 3, 0.95);
  background-size: 100% 4px, 18px 100%, auto, auto;
  text-align: center;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.62),
    inset 0 -8px 0 rgba(0, 0, 0, 0.32),
    0 0 22px rgba(100, 255, 74, 0.18);
}

.pixel-arcade-marquee::before,
.pixel-arcade-marquee::after {
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  height: 4px;
  pointer-events: none;
  background: rgba(100, 255, 74, 0.72);
  filter: drop-shadow(0 0 8px rgba(100, 255, 74, 0.5));
}

.pixel-arcade-marquee::before {
  top: 8px;
}

.pixel-arcade-marquee::after {
  bottom: 8px;
}

.pixel-arcade-marquee strong {
  display: block;
  color: #a4ff6f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(42px, 14vw, 72px);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-shadow:
    3px 0 0 rgba(37, 99, 30, 0.72),
    0 3px 0 rgba(37, 99, 30, 0.72),
    0 0 18px rgba(100, 255, 74, 0.7);
}

.pixel-arcade-marquee small {
  display: block;
  margin-top: 4px;
  color: #eaffdf;
  font-size: clamp(19px, 6.2vw, 31px);
  font-weight: 1000;
  line-height: 1.05;
  text-shadow:
    2px 0 0 rgba(37, 99, 30, 0.62),
    0 2px 0 rgba(37, 99, 30, 0.62),
    0 0 14px rgba(100, 255, 74, 0.42);
}

.pixel-laurel,
.pixel-trophy {
  position: relative;
  display: grid;
  place-items: center;
  height: 62px;
  color: var(--pixel-gold);
  filter: drop-shadow(0 0 8px rgba(100, 255, 74, 0.42));
}

.pixel-laurel {
  background:
    linear-gradient(135deg, transparent 0 42%, var(--pixel-green) 42% 56%, transparent 56%) 0 2px / 14px 14px repeat-y,
    linear-gradient(45deg, transparent 0 42%, rgba(255, 217, 74, 0.64) 42% 54%, transparent 54%) 12px 9px / 14px 14px repeat-y;
}

.pixel-trophy {
  width: 42px;
  justify-self: center;
}

.pixel-trophy::before {
  content: "";
  width: 34px;
  height: 34px;
  background:
    linear-gradient(90deg, transparent 0 4px, #5b3600 4px 8px, transparent 8px 26px, #5b3600 26px 30px, transparent 30px) 0 8px / 34px 12px no-repeat,
    linear-gradient(90deg, transparent 0 6px, #ffd447 6px 28px, transparent 28px) 0 2px / 34px 16px no-repeat,
    linear-gradient(90deg, transparent 0 10px, #d58a12 10px 24px, transparent 24px) 0 17px / 34px 8px no-repeat,
    linear-gradient(90deg, transparent 0 14px, #ffd447 14px 20px, transparent 20px) 0 24px / 34px 6px no-repeat,
    linear-gradient(90deg, transparent 0 8px, #9d5f00 8px 26px, transparent 26px) 0 30px / 34px 4px no-repeat;
  clip-path: polygon(0 20%, 18% 20%, 18% 0, 82% 0, 82% 20%, 100% 20%, 100% 52%, 82% 52%, 74% 68%, 58% 68%, 58% 88%, 82% 88%, 82% 100%, 18% 100%, 18% 88%, 42% 88%, 42% 68%, 26% 68%, 18% 52%, 0 52%);
  filter:
    drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 8px rgba(255, 217, 74, 0.58));
}

.pixel-trophy::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #fff1a6;
  box-shadow:
    -12px -8px 0 -1px rgba(255, 241, 166, 0.72),
    6px 14px 0 -2px rgba(255, 241, 166, 0.6);
}

.pixel-arcade-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.pixel-arcade-tabs a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 2px solid rgba(100, 255, 74, 0.52);
  color: #f3fff0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(5, 16, 5, 0.95);
  background-size: 100% 4px, auto;
  font-weight: 1000;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(100, 255, 74, 0.26);
}

.pixel-arcade-tabs a:first-child {
  color: #fff8d4;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19, 67, 22, 0.98), rgba(7, 22, 7, 0.98));
  background-size: 100% 4px, auto;
}

.juggle-simple-page .pixel-top-panel {
  grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(rgba(100, 255, 74, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(3, 18, 4, 0.98), rgba(1, 6, 2, 0.98));
  background-size: 100% 4px, auto;
  border: 3px solid rgba(100, 255, 74, 0.68);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    inset 0 0 0 7px rgba(100, 255, 74, 0.12),
    0 0 18px rgba(100, 255, 74, 0.16);
  image-rendering: pixelated;
}

.juggle-simple-page .pixel-slot-machine,
.juggle-simple-page .simple-status-card {
  min-height: 116px;
}

.pixel-core-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(136px, 38%);
  gap: 12px;
  align-items: center;
}

.pixel-core-panel .simple-result-card {
  grid-column: auto;
  grid-row: auto;
  min-height: 236px;
}

.juggle-simple-page .simple-rank-link {
  min-height: 54px;
}

.juggle-simple-page .simple-sub-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.juggle-simple-page .simple-sub-actions .button:first-child {
  grid-column: 1 / -1;
}

.juggle-simple-page .simple-ad {
  margin-bottom: 0;
}

.juggle-simple-page .mobile-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  .juggle-simple-page .simple-page {
    padding: max(8px, env(safe-area-inset-top)) 0 calc(20px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .pixel-arcade-screen {
    gap: 8px;
    padding: 8px;
    border-right: 0;
    border-left: 0;
    clip-path: none;
  }

  .pixel-arcade-marquee {
    min-height: 90px;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    padding: 8px 6px 7px;
  }

  .pixel-arcade-marquee strong {
    font-size: clamp(38px, 13vw, 58px);
  }

  .pixel-arcade-marquee small {
    font-size: clamp(18px, 5.8vw, 26px);
  }

  .pixel-laurel,
  .pixel-trophy {
    height: 48px;
  }

  .pixel-trophy {
    font-size: 26px;
  }

  .pixel-arcade-tabs a {
    min-height: 42px;
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    padding: 8px;
  }

  .juggle-simple-page .pixel-slot-machine,
  .juggle-simple-page .simple-status-card {
    min-height: 106px;
  }

  .pixel-core-panel {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 38vw);
    gap: 8px;
  }

  .pixel-core-panel .simple-result-card {
    min-height: 216px;
  }

  .juggle-simple-page .simple-sub-actions {
    grid-row: auto;
  }
}

@media (max-width: 420px) {
  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 7px;
  }

  .juggle-simple-page .simple-status-card {
    padding: 10px 12px;
  }

  .pixel-core-panel {
    grid-template-columns: minmax(0, 1fr) 122px;
  }

  .pixel-core-panel .simple-result-card {
    min-height: 202px;
  }

}

/* Pixel reel polish: replace emoji-like symbols with arcade parts. */
.juggle-simple-page .pixel-slot-machine {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #171717 0%, #050505 100%);
  background-size: 100% 4px, auto;
  border-color: rgba(100, 255, 74, 0.6);
  box-shadow:
    inset 0 0 0 3px #050705,
    inset 0 0 0 6px rgba(100, 255, 74, 0.1),
    0 0 18px rgba(100, 255, 74, 0.18);
}

.juggle-simple-page .pixel-slot-title {
  color: #fff4e7;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #c2242b 0%, #741016 100%);
  background-size: 100% 4px, auto;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.34),
    0 0 12px rgba(255, 95, 85, 0.24);
}

.juggle-simple-page .pixel-reels {
  gap: 3px;
  padding: 4px;
  border: 3px solid #3c443a;
  background:
    linear-gradient(180deg, #eef4ec, #bfc9bd);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.24),
    0 3px 0 rgba(0, 0, 0, 0.42);
}

.juggle-simple-page .pixel-reels .reel-symbol {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfffa, #d8ded5);
  background-size: 100% 4px, auto;
  color: #d81720;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 1000;
  line-height: 1;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.juggle-simple-page .reel-seven {
  font-size: 30px;
  text-shadow:
    2px 0 0 rgba(255, 255, 255, 0.82),
    0 2px 0 rgba(0, 0, 0, 0.12),
    0 0 8px rgba(216, 23, 32, 0.36);
}

.juggle-simple-page .reel-cherry {
  grid-template-columns: repeat(2, 13px);
  gap: 2px;
  padding-top: 7px;
}

.juggle-simple-page .reel-cherry i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 48% 50%, #ff3345, #b70713 68%);
  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.32),
    0 0 5px rgba(255, 51, 69, 0.28);
}

.juggle-simple-page .reel-cherry::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 16px;
  height: 10px;
  border-radius: 80% 0;
  background: #3aa84f;
  box-shadow:
    4px -2px 0 #76d66f,
    0 0 5px rgba(58, 168, 79, 0.34);
  transform: translateX(-45%) rotate(-24deg);
}

.juggle-simple-page .reel-bell i {
  display: block;
  width: 28px;
  height: 24px;
  background:
    linear-gradient(180deg, #fff2a5 0%, #ffd34a 28%, #d28b0b 74%, #7b4500 100%);
  clip-path: polygon(26% 18%, 74% 18%, 86% 66%, 96% 78%, 4% 78%, 14% 66%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.28),
    0 0 9px rgba(255, 211, 74, 0.42);
}

.juggle-simple-page .reel-bell::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 8px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: #5a3000;
  transform: translateX(-50%);
}

.juggle-simple-page .pixel-slot-lights {
  gap: 12px;
}

.juggle-simple-page .pixel-slot-lights i {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 95, 85, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, #fff1ef, transparent 22%),
    radial-gradient(circle, #ff493c, #9b130c 68%);
  box-shadow:
    0 0 10px rgba(255, 95, 85, 0.48),
    inset 0 -3px 0 rgba(0, 0, 0, 0.24);
}

.juggle-simple-page .pixel-top-panel .pixel-slot-machine,
.juggle-simple-page .pixel-top-panel .simple-status-card {
  border-color: rgba(100, 255, 74, 0.48);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.62),
    0 0 12px rgba(100, 255, 74, 0.14);
}

.juggle-simple-page .pixel-top-panel .pixel-lamp {
  opacity: 0.92;
}

.juggle-simple-stage.is-running .pixel-reels .reel-symbol {
  animation: pixel-reel-shake 120ms steps(2, end) infinite;
}

.juggle-simple-stage.is-running .pixel-slot-lights i {
  animation: pixel-light-chase 480ms steps(1, end) infinite;
}

.juggle-simple-stage.is-running .pixel-slot-lights i:nth-child(2) {
  animation-delay: 160ms;
}

.juggle-simple-stage.is-running .pixel-slot-lights i:nth-child(3) {
  animation-delay: 320ms;
}

.juggle-simple-stage.is-big-hit .pixel-arcade-marquee,
.juggle-simple-stage.is-hit .pixel-slot-machine {
  animation: pixel-win-flash 640ms steps(2, end) 3;
}

.juggle-simple-page .pixel-core-panel {
  position: relative;
}

.juggle-simple-page .pixel-core-panel::before,
.juggle-simple-page .pixel-core-panel::after {
  content: "";
  position: absolute;
  top: -8px;
  height: 4px;
  background: rgba(255, 217, 74, 0.72);
  filter: drop-shadow(0 0 8px rgba(255, 217, 74, 0.34));
}

.juggle-simple-page .pixel-core-panel::before {
  left: 18px;
  width: min(46%, 230px);
}

.juggle-simple-page .pixel-core-panel::after {
  right: 18px;
  width: min(34%, 170px);
}

@keyframes pixel-reel-shake {
  0% { transform: translateY(-2px); filter: blur(0.4px); }
  50% { transform: translateY(2px); filter: blur(0); }
  100% { transform: translateY(-1px); filter: blur(0.4px); }
}

@keyframes pixel-light-chase {
  0%, 100% {
    filter: brightness(1.6);
    box-shadow: 0 0 16px rgba(255, 95, 85, 0.72);
  }
  50% {
    filter: brightness(0.55);
    box-shadow: 0 0 4px rgba(255, 95, 85, 0.22);
  }
}

@keyframes pixel-win-flash {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.28) saturate(1.35);
  }
}

@media (max-width: 420px) {
  .juggle-simple-page .pixel-reels {
    padding: 3px;
  }

  .juggle-simple-page .pixel-reels .reel-symbol {
    min-height: 32px;
  }

  .juggle-simple-page .reel-seven {
    font-size: 23px;
  }

  .juggle-simple-page .reel-cherry {
    grid-template-columns: repeat(2, 10px);
    padding-top: 6px;
  }

  .juggle-simple-page .reel-cherry i {
    width: 10px;
    height: 10px;
  }

  .juggle-simple-page .reel-cherry::before {
    top: 4px;
    width: 12px;
    height: 8px;
  }

  .juggle-simple-page .reel-bell i {
    width: 22px;
    height: 19px;
  }
}

/* Juggle arcade rebuild v5: match the reference single-screen cabinet order. */
.juggle-simple-page .simple-page {
  max-width: 414px;
  padding: max(5px, env(safe-area-inset-top)) 6px calc(156px + env(safe-area-inset-bottom));
}

.juggle-simple-page .pixel-arcade-screen {
  gap: 6px;
  padding: 6px;
  background:
    linear-gradient(rgba(98, 255, 72, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 255, 72, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 12%, rgba(91, 255, 78, 0.13), transparent 34%),
    #030703;
  background-size: 100% 4px, 26px 26px, auto, auto;
}

.juggle-simple-page .pixel-arcade-marquee {
  min-height: 98px;
  padding: 10px 7px 8px;
}

.juggle-simple-page .pixel-arcade-marquee strong {
  font-size: clamp(38px, 13.8vw, 62px);
}

.juggle-simple-page .pixel-arcade-marquee small {
  font-size: clamp(18px, 5.8vw, 27px);
}

.juggle-simple-page .pixel-laurel,
.juggle-simple-page .pixel-trophy {
  height: 54px;
}

.juggle-simple-page .pixel-arcade-tabs {
  gap: 0;
  border: 2px solid rgba(100, 255, 74, 0.62);
  background: rgba(0, 0, 0, 0.46);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.78),
    0 7px 0 rgba(255, 210, 52, 0.28);
}

.juggle-simple-page .pixel-arcade-tabs a {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.juggle-simple-page .pixel-arcade-tabs a + a {
  border-left: 2px solid rgba(100, 255, 74, 0.48);
}

.juggle-simple-page .pixel-top-panel {
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 124px;
  padding: 7px;
  gap: 7px;
}

.juggle-simple-page .pixel-slot-machine {
  min-height: 108px;
}

.juggle-simple-page .simple-status-card {
  min-height: 108px;
  padding: 7px;
}

.juggle-simple-page .pixel-state-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.juggle-simple-page .pixel-state {
  min-width: 0;
  padding: 6px 4px;
}

.juggle-simple-page .pixel-state p,
.juggle-simple-page .pixel-state strong {
  overflow-wrap: anywhere;
}

.juggle-simple-page .simple-rule-row {
  min-height: 58px;
}

.juggle-simple-page .simple-rule-row strong#simpleRuleGame,
.juggle-simple-page .simple-rule-row strong#simpleRuleChain {
  color: var(--accent-blue);
}

.juggle-simple-page .pixel-core-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 5px;
}

.juggle-simple-page .pixel-core-panel::before,
.juggle-simple-page .pixel-core-panel::after {
  display: none;
}

.juggle-simple-page .pixel-core-panel .simple-result-card {
  min-height: 226px;
  padding: 14px 12px 13px;
  border-color: rgba(100, 255, 74, 0.74);
}

.juggle-simple-page .simple-result-card::before {
  inset: 63px 20px 68px;
  opacity: 0.78;
}

.juggle-simple-page .simple-result-card .pixel-display-heading {
  margin-bottom: 13px;
}

.juggle-simple-page .simple-result-card strong {
  min-height: 50px;
  font-size: clamp(42px, 16vw, 68px);
}

.juggle-simple-page .simple-result-card b {
  margin-top: 2px;
}

.juggle-simple-page .pixel-action-row {
  order: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-width: 0;
  margin-top: -1px;
}

.juggle-simple-page .pixel-action-row .simple-start-area {
  width: 100%;
  min-height: 112px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 6px 10px;
  border: 3px solid rgba(255, 217, 74, 0.74);
  background:
    linear-gradient(rgba(100, 255, 74, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(106, 255, 70, 0.2), transparent 58%),
    rgba(4, 15, 5, 0.82);
  background-size: 100% 4px, auto, auto;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.66),
    inset 0 0 0 7px rgba(100, 255, 74, 0.08),
    0 0 26px rgba(100, 255, 74, 0.18);
}

.juggle-simple-page .pixel-action-row .simple-start-button {
  width: min(100%, 384px);
  max-width: none;
  aspect-ratio: 2084 / 755;
  min-height: 0;
  background: url("assets/juggle/start-button-v3.png") center / contain no-repeat;
  filter: saturate(1.12) contrast(1.08);
  box-shadow:
    0 9px 0 rgba(0, 0, 0, 0.38),
    0 0 32px rgba(100, 255, 74, 0.3);
}

.juggle-simple-page .pixel-action-row .simple-start-button span {
  font-size: clamp(42px, 13.6vw, 64px);
  line-height: 0.9;
}

.juggle-simple-page .pixel-action-row .simple-start-button small {
  margin-top: 2px;
  font-size: clamp(12px, 3.7vw, 16px);
}

.juggle-simple-page .simple-rank-link {
  order: 7;
  min-height: 58px;
  margin: 0;
}

.juggle-simple-page .simple-sub-actions {
  order: 8;
}

.juggle-simple-page .simple-log {
  order: 9;
}

.juggle-simple-page .simple-ad {
  order: 10;
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-arcade-marquee {
    min-height: 94px;
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 118px;
  }

  .juggle-simple-page .pixel-slot-machine,
  .juggle-simple-page .simple-status-card {
    min-height: 102px;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 214px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 106px;
  }
}

@media (max-width: 360px) {
  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 100px;
    padding-inline: 8px;
  }
}

/* Juggle arcade rebuild v7: override old mobile grid placement. */
.juggle-simple-page .pixel-arcade-marquee {
  order: 1;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .pixel-arcade-tabs {
  order: 2;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .pixel-top-panel {
  order: 3;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .simple-rule-row {
  order: 4;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .pixel-core-panel {
  order: 5;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .pixel-action-row {
  order: 6;
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr);
}

.juggle-simple-page .pixel-action-row .simple-start-area {
  grid-column: 1 / -1;
  grid-row: auto;
  width: 100%;
  justify-self: stretch;
}

.juggle-simple-page .pixel-action-row .simple-start-button {
  width: min(100%, 384px);
  min-height: 0;
  aspect-ratio: 2032 / 774;
}

.juggle-simple-page .simple-rank-link {
  order: 7;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .save-preview {
  order: 8;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .simple-sub-actions {
  order: 9;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .simple-log {
  order: 10;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .simple-ad {
  order: 11;
  grid-column: 1 / -1;
  grid-row: auto;
}

.juggle-simple-page .pixel-top-panel .pixel-slot-machine,
.juggle-simple-page .pixel-top-panel .simple-status-card {
  height: 112px;
  min-height: 112px;
  max-height: 112px;
}

.juggle-simple-page .pixel-top-panel .pixel-slot-machine {
  grid-template-rows: 20px 52px 12px;
}

.juggle-simple-page .pixel-top-panel .pixel-reels {
  height: 52px;
  max-height: 52px;
}

.juggle-simple-page .pixel-top-panel .pixel-reels .reel-symbol {
  min-height: 38px;
  height: 38px;
  aspect-ratio: auto;
}

.juggle-simple-page .pixel-top-panel .simple-status-card {
  align-content: center;
}

.juggle-simple-page .pixel-top-panel .pixel-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  height: 94px;
}

.juggle-simple-page .pixel-top-panel .pixel-state {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  height: 94px;
}

.juggle-simple-page .pixel-top-panel .pixel-state .pixel-lamp {
  width: min(9vw, 34px);
  min-width: 24px;
  max-width: 34px;
}

.juggle-simple-page .pixel-top-panel .pixel-state p,
.juggle-simple-page .pixel-top-panel .pixel-state strong {
  font-size: clamp(10px, 3.2vw, 15px);
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-top-panel {
    min-height: 128px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-slot-machine,
  .juggle-simple-page .pixel-top-panel .simple-status-card {
    height: 104px;
    min-height: 104px;
    max-height: 104px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-slot-machine {
    grid-template-rows: 18px 48px 11px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-reels {
    height: 48px;
    max-height: 48px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-reels .reel-symbol {
    min-height: 34px;
    height: 34px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-state-grid,
  .juggle-simple-page .pixel-top-panel .pixel-state {
    height: 86px;
  }
}

/* Juggle arcade polish v8: tighten copy, button face, and result feedback. */
.juggle-simple-page .pixel-top-panel .pixel-state p,
.juggle-simple-page .pixel-top-panel .pixel-state strong {
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: 0;
}

.juggle-simple-page .pixel-top-panel .pixel-state p {
  max-width: 6.5em;
  font-size: clamp(9px, 2.65vw, 13px);
}

.juggle-simple-page .pixel-top-panel .pixel-state p span {
  display: block;
  white-space: nowrap;
}

.juggle-simple-page .pixel-top-panel .pixel-state strong {
  font-size: clamp(12px, 3.9vw, 17px);
}

.juggle-simple-page .pixel-state-main .pixel-lamp {
  box-shadow:
    0 0 0 2px rgba(154, 255, 112, 0.35),
    0 0 16px rgba(106, 255, 70, 0.72),
    inset -5px -6px 0 rgba(19, 80, 17, 0.36);
}

.juggle-simple-page .juggle-simple-stage.is-running .pixel-state-main .pixel-lamp {
  animation: pixelLampPulse 0.34s steps(2, end) infinite;
}

.juggle-simple-page .simple-result-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.juggle-simple-page .juggle-simple-stage.is-hit .simple-result-card {
  border-color: rgba(255, 217, 74, 0.86);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.66),
    inset 0 0 36px rgba(255, 217, 74, 0.12),
    0 0 24px rgba(255, 217, 74, 0.22);
  animation: pixelResultPop 0.28s steps(2, end);
}

.juggle-simple-page .pixel-action-row .simple-start-button {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0 0 6px;
  transform: translateZ(0);
}

.juggle-simple-page .pixel-action-row .simple-start-button span {
  transform: translateY(-1px);
  text-shadow:
    0 3px 0 #4e3500,
    0 0 12px rgba(255, 217, 74, 0.7);
}

.juggle-simple-page .pixel-action-row .simple-start-button small {
  transform: translateY(-2px);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
}

.juggle-simple-page .pixel-action-row .simple-start-button:active {
  transform: translateY(3px);
  filter: saturate(1.24) brightness(1.08);
}

@keyframes pixelLampPulse {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.42);
  }
}

@keyframes pixelResultPop {
  0% {
    transform: scale(0.992);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-top-panel .pixel-state p {
    max-width: 5.8em;
    font-size: clamp(8px, 2.45vw, 12px);
  }

  .juggle-simple-page .pixel-top-panel .pixel-state strong {
    font-size: clamp(11px, 3.7vw, 15px);
  }

  .juggle-simple-page .pixel-action-row .simple-start-button span {
    font-size: clamp(40px, 12.4vw, 56px);
  }
}

/* Juggle arcade polish v9: correct lamp states and tighten cabinet finish. */
.juggle-simple-page .pixel-arcade-screen {
  border: 1px solid rgba(100, 255, 74, 0.28);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.75),
    inset 0 0 42px rgba(100, 255, 74, 0.08),
    0 0 26px rgba(0, 0, 0, 0.42);
}

.juggle-simple-page .pixel-arcade-marquee {
  border-color: rgba(100, 255, 74, 0.76);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 0 22px rgba(100, 255, 74, 0.13),
    0 0 18px rgba(100, 255, 74, 0.15);
}

.juggle-simple-page .pixel-arcade-marquee strong {
  text-shadow:
    0 3px 0 #123c0f,
    3px 0 0 rgba(169, 255, 104, 0.24),
    0 0 16px rgba(128, 255, 93, 0.44);
}

.juggle-simple-page .pixel-top-panel {
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.7),
    inset 0 0 18px rgba(100, 255, 74, 0.08);
}

.juggle-simple-page .pixel-top-panel .pixel-state .pixel-lamp {
  border-color: rgba(255, 217, 74, 0.25);
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle, rgba(255, 217, 74, 0.18), rgba(48, 28, 5, 0.94) 66%);
  box-shadow:
    inset 0 -5px 8px rgba(0, 0, 0, 0.38),
    0 0 6px rgba(255, 217, 74, 0.14);
}

.juggle-simple-page .juggle-simple-stage:not(.is-running):not(.is-finished):not(.is-big-hit):not(.is-missed) .pixel-state:nth-child(1) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-hit .pixel-state:nth-child(1) .pixel-lamp {
  border-color: rgba(156, 255, 124, 0.92);
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.58), transparent 20%),
    radial-gradient(circle, #a7ff78, #1f9b24 66%);
  box-shadow:
    0 0 24px rgba(100, 255, 74, 0.76),
    inset 0 -5px 8px rgba(0, 0, 0, 0.24);
}

.juggle-simple-page .juggle-simple-stage.is-running .pixel-state:nth-child(2) .pixel-lamp {
  border-color: rgba(255, 217, 74, 0.72);
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.44), transparent 20%),
    radial-gradient(circle, #ffe267, #8b5c08 68%);
  box-shadow:
    0 0 20px rgba(255, 217, 74, 0.62),
    inset 0 -5px 8px rgba(0, 0, 0, 0.27);
  animation: status-blink 620ms steps(2, end) infinite;
}

.juggle-simple-page .juggle-simple-stage.is-finished .pixel-state:nth-child(3) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-big-hit .pixel-state:nth-child(3) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-missed .pixel-state:nth-child(3) .pixel-lamp {
  border-color: rgba(156, 255, 124, 0.92);
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.58), transparent 20%),
    radial-gradient(circle, #a7ff78, #1f9b24 66%);
  box-shadow:
    0 0 24px rgba(100, 255, 74, 0.76),
    inset 0 -5px 8px rgba(0, 0, 0, 0.24);
}

.juggle-simple-page .pixel-top-panel .pixel-state p {
  color: rgba(235, 244, 226, 0.9);
}

.juggle-simple-page .simple-rule-row {
  border-color: rgba(100, 255, 74, 0.55);
  background:
    linear-gradient(rgba(100, 255, 74, 0.05) 1px, transparent 1px),
    rgba(3, 11, 4, 0.88);
  background-size: 100% 4px, auto;
}

.juggle-simple-page .pixel-core-panel .simple-result-card {
  border-width: 3px;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    inset 0 0 22px rgba(255, 217, 74, 0.08),
    0 0 18px rgba(100, 255, 74, 0.12);
}

.juggle-simple-page .simple-result-card .pixel-display-heading {
  color: #73ff68;
  text-shadow: 0 0 10px rgba(100, 255, 74, 0.35);
}

.juggle-simple-page .simple-result-card b,
.juggle-simple-page .simple-result-card small {
  text-shadow: 0 0 10px rgba(255, 217, 74, 0.32);
}

.juggle-simple-page .simple-rank-link {
  border-color: rgba(100, 255, 74, 0.54);
  background:
    linear-gradient(rgba(100, 255, 74, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 217, 74, 0.06), transparent 28%, rgba(100, 255, 74, 0.08)),
    rgba(4, 14, 5, 0.9);
  background-size: 100% 4px, auto, auto;
}

.juggle-simple-page .simple-rank-link::after {
  color: #7dff65;
  text-shadow: 0 0 12px rgba(100, 255, 74, 0.6);
}

.juggle-simple-page .pixel-action-row .simple-start-area {
  border-color: rgba(255, 217, 74, 0.84);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    inset 0 0 0 7px rgba(100, 255, 74, 0.1),
    0 0 28px rgba(100, 255, 74, 0.2);
}

.juggle-simple-page .pixel-action-row .simple-start-button {
  filter: saturate(1.22) contrast(1.11) brightness(1.02);
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-arcade-screen {
    gap: 5px;
    padding: 5px;
  }

  .juggle-simple-page .pixel-top-panel {
    gap: 5px;
    padding: 5px;
  }

  .juggle-simple-page .simple-rule-row {
    min-height: 54px;
  }
}

/* Juggle arcade polish v10: force one active status lamp per state. */
.juggle-simple-page .juggle-simple-stage .pixel-top-panel .pixel-state .pixel-lamp,
.juggle-simple-page .juggle-simple-stage:not(.is-running):not(.is-finished):not(.is-big-hit):not(.is-missed) .pixel-state:not(:nth-child(1)) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-running .pixel-state:not(:nth-child(2)) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-finished .pixel-state:not(:nth-child(3)) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-big-hit .pixel-state:not(:nth-child(3)) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-missed .pixel-state:not(:nth-child(3)) .pixel-lamp {
  border-color: rgba(255, 217, 74, 0.25) !important;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle, rgba(255, 217, 74, 0.18), rgba(48, 28, 5, 0.94) 66%) !important;
  box-shadow:
    inset 0 -5px 8px rgba(0, 0, 0, 0.38),
    0 0 6px rgba(255, 217, 74, 0.14) !important;
}

.juggle-simple-page .juggle-simple-stage:not(.is-running):not(.is-finished):not(.is-big-hit):not(.is-missed) .pixel-state:nth-child(1) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-hit .pixel-state:nth-child(1) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-finished .pixel-state:nth-child(3) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-big-hit .pixel-state:nth-child(3) .pixel-lamp,
.juggle-simple-page .juggle-simple-stage.is-missed .pixel-state:nth-child(3) .pixel-lamp {
  border-color: rgba(156, 255, 124, 0.92) !important;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.58), transparent 20%),
    radial-gradient(circle, #a7ff78, #1f9b24 66%) !important;
  box-shadow:
    0 0 24px rgba(100, 255, 74, 0.76),
    inset 0 -5px 8px rgba(0, 0, 0, 0.24) !important;
}

.juggle-simple-page .juggle-simple-stage.is-running .pixel-state:nth-child(2) .pixel-lamp {
  border-color: rgba(255, 217, 74, 0.72) !important;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.44), transparent 20%),
    radial-gradient(circle, #ffe267, #8b5c08 68%) !important;
  box-shadow:
    0 0 20px rgba(255, 217, 74, 0.62),
    inset 0 -5px 8px rgba(0, 0, 0, 0.27) !important;
}

/* Juggle generated asset pass v1. */
.juggle-simple-page .pixel-core-panel .simple-result-card {
  min-height: 228px;
  padding: 17px 18px 18px;
  border: 0;
  background:
    url("assets/juggle/result-panel-v2.png") center / 100% 100% no-repeat,
    linear-gradient(rgba(100, 255, 74, 0.04) 1px, transparent 1px),
    #030703;
  background-size: 100% 100%, 100% 4px, auto;
  box-shadow:
    0 0 18px rgba(100, 255, 74, 0.16),
    0 12px 0 rgba(0, 0, 0, 0.34);
}

.juggle-simple-page .pixel-core-panel .simple-result-card::before {
  margin-top: 2px;
  margin-bottom: 10px;
  background: rgba(26, 22, 5, 0.66);
}

.juggle-simple-page .simple-result-card strong {
  min-height: 46px;
  margin-top: 4px;
  font-size: clamp(34px, 9.8vw, 54px);
}

.juggle-simple-page .simple-result-card b {
  margin-top: 4px;
  font-size: clamp(27px, 7vw, 36px);
  line-height: 1;
}

.juggle-simple-page .simple-result-card small {
  font-size: 16px;
  line-height: 1.15;
}

.juggle-simple-page .simple-result-card em {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.25;
}

.juggle-simple-page .simple-result-card .pixel-display-heading {
  font-size: clamp(18px, 5.1vw, 25px);
  line-height: 1.1;
}

.juggle-simple-page .pixel-action-row .simple-start-area {
  min-height: 124px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.juggle-simple-page .pixel-action-row .simple-start-button {
  position: relative;
  display: block;
  width: min(88%, 340px);
  aspect-ratio: 2084 / 755;
  padding: 0;
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: url("assets/juggle/start-button-v3.png") center / contain no-repeat;
  box-shadow: none;
  filter: saturate(1.1) contrast(1.04) brightness(1.02);
}

.juggle-simple-page .pixel-action-row .simple-start-button span {
  opacity: 0;
}

.juggle-simple-page .pixel-action-row .simple-start-button small {
  position: absolute;
  left: 50%;
  bottom: 21%;
  margin: 0;
  color: #fff8cc;
  font-size: clamp(10px, 3vw, 13px);
  transform: translateX(-50%);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.92),
    0 0 8px rgba(255, 217, 74, 0.48);
  white-space: nowrap;
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 196px;
    padding: 13px 14px 14px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 112px;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card::before {
    margin-bottom: 6px;
    padding-block: 2px;
  }

  .juggle-simple-page .simple-result-card .pixel-display-heading {
    font-size: clamp(17px, 5vw, 24px);
  }

  .juggle-simple-page .simple-result-card strong {
    min-height: 38px;
    font-size: clamp(34px, 10.5vw, 58px);
  }
}

/* Juggle generated asset pass v2: closer arcade cabinet finish. */
.juggle-simple-page .pixel-arcade-screen {
  background:
    linear-gradient(rgba(100, 255, 74, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 8%, rgba(103, 255, 67, 0.14), transparent 34%),
    radial-gradient(circle at 48% 52%, rgba(255, 217, 74, 0.055), transparent 38%),
    #020602;
  background-size: 100% 3px, 25px 25px, auto, auto, auto;
}

.juggle-simple-page .pixel-arcade-marquee {
  min-height: 124px;
  padding: 17px 18px 13px;
  border: 0;
  background: url("assets/juggle/marquee-frame-v4.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.juggle-simple-page .pixel-arcade-marquee::before,
.juggle-simple-page .pixel-arcade-marquee::after,
.juggle-simple-page .pixel-laurel,
.juggle-simple-page .pixel-trophy {
  display: none;
}

.juggle-simple-page .pixel-arcade-marquee > div {
  display: grid;
  justify-items: center;
  gap: 2px;
  transform: translateX(-3%);
}

.juggle-simple-page .pixel-arcade-marquee strong {
  font-size: clamp(38px, 13.5vw, 60px);
  line-height: 0.9;
  color: #91ff59;
  text-shadow:
    0 4px 0 #0d2b0c,
    3px 0 0 rgba(197, 255, 114, 0.34),
    0 0 18px rgba(116, 255, 66, 0.62);
}

.juggle-simple-page .pixel-arcade-marquee small {
  color: #edffe3;
  font-size: clamp(18px, 5.9vw, 27px);
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.84),
    0 0 12px rgba(127, 255, 82, 0.42);
}

.juggle-simple-page .pixel-arcade-tabs {
  min-height: 50px;
  border-color: rgba(111, 255, 83, 0.78);
  background:
    linear-gradient(rgba(100, 255, 74, 0.075) 1px, transparent 1px),
    rgba(0, 10, 2, 0.86);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.84),
    0 7px 0 rgba(255, 217, 74, 0.22),
    0 0 16px rgba(100, 255, 74, 0.14);
}

.juggle-simple-page .pixel-arcade-tabs a {
  min-height: 48px;
  font-size: 15px;
  color: rgba(238, 255, 230, 0.72);
}

.juggle-simple-page .pixel-arcade-tabs a:first-child {
  color: #fffbd8;
  background:
    linear-gradient(rgba(100, 255, 74, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 79, 22, 0.84), rgba(4, 24, 7, 0.82));
  background-size: 100% 4px, auto;
}

.juggle-simple-page .pixel-arcade-tabs a:first-child::before {
  content: "♛";
  margin-right: 8px;
  color: var(--pixel-gold);
}

.juggle-simple-page .pixel-top-panel {
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 124px;
  padding: 7px 8px;
  border: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.04) 1px, transparent 1px),
    rgba(3, 11, 4, 0.92);
  background-size: 100% 4px, 20px 20px, auto;
  box-shadow:
    inset 0 0 0 3px rgba(100, 255, 74, 0.4),
    inset 0 0 0 7px rgba(0, 0, 0, 0.62),
    0 0 20px rgba(100, 255, 74, 0.13);
}

.juggle-simple-page .pixel-slot-machine {
  min-height: 108px;
  border: 0;
  background: url("assets/juggle/slot-machine-v4.png") center / contain no-repeat;
  box-shadow: none;
}

.juggle-simple-page .pixel-slot-machine > * {
  opacity: 0;
}

.juggle-simple-page .simple-status-card {
  border: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.075) 1px, transparent 1px),
    rgba(0, 9, 2, 0.78);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(100, 255, 74, 0.36),
    inset 0 0 0 6px rgba(0, 0, 0, 0.54);
}

.juggle-simple-page .pixel-top-panel .pixel-state .pixel-lamp {
  width: 36px;
  height: 36px;
}

.juggle-simple-page .simple-rule-row {
  min-height: 62px;
  border: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.06) 1px, transparent 1px),
    rgba(2, 10, 3, 0.9);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(100, 255, 74, 0.48),
    inset 0 0 0 6px rgba(0, 0, 0, 0.5);
}

.juggle-simple-page .simple-rank-link {
  min-height: 74px;
  padding: 0 68px 0 58px;
  border: 0;
  background: url("assets/juggle/rank-button-v4.png") center / 100% 100% no-repeat;
  box-shadow: none;
  color: #fffef3;
  font-size: clamp(19px, 5.5vw, 25px);
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.78),
    0 0 10px rgba(100, 255, 74, 0.28);
}

.juggle-simple-page .simple-rank-link::before,
.juggle-simple-page .simple-rank-link::after {
  content: "";
}

.juggle-simple-page .simple-sub-actions .button,
.juggle-simple-page .simple-log,
.juggle-simple-page .simple-ad {
  background:
    linear-gradient(rgba(100, 255, 74, 0.05) 1px, transparent 1px),
    rgba(3, 10, 4, 0.82);
  background-size: 100% 4px, auto;
  border-color: rgba(100, 255, 74, 0.34);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.62),
    0 0 14px rgba(100, 255, 74, 0.08);
}

.juggle-simple-page .mobile-bottom-nav {
  border: 2px solid rgba(100, 255, 74, 0.52);
  background:
    linear-gradient(rgba(100, 255, 74, 0.055) 1px, transparent 1px),
    rgba(1, 8, 2, 0.94);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(100, 255, 74, 0.18);
}

.juggle-simple-page .mobile-bottom-nav a {
  border-radius: 0;
}

.juggle-simple-page .mobile-bottom-nav a.active {
  background:
    linear-gradient(rgba(100, 255, 74, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 79, 19, 0.9), rgba(9, 46, 12, 0.9));
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 -4px 0 rgba(100, 255, 74, 0.75),
    inset 0 0 18px rgba(100, 255, 74, 0.08);
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-arcade-marquee {
    min-height: 116px;
    padding-top: 15px;
  }

  .juggle-simple-page .pixel-arcade-marquee strong {
    font-size: clamp(40px, 14vw, 58px);
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 124px;
  }

  .juggle-simple-page .pixel-slot-machine,
  .juggle-simple-page .simple-status-card {
    min-height: 106px;
  }

  .juggle-simple-page .simple-rank-link {
    min-height: 68px;
    padding-left: 50px;
    padding-right: 56px;
  }
}

/* Shared ranking arcade finish v1. */
.ranking-arcade-page {
  --arcade-green: #78ff59;
  --arcade-green-soft: rgba(120, 255, 89, 0.24);
  --arcade-green-dim: rgba(120, 255, 89, 0.13);
  --arcade-gold: #ffd64a;
  --arcade-red: #ff6658;
  --arcade-cyan: #49e9ff;
  color: #f5ffe9;
  background:
    linear-gradient(rgba(104, 255, 78, 0.046) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 255, 78, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(104, 255, 78, 0.14), transparent 36%),
    #020602;
  background-size: 100% 4px, 28px 28px, auto, auto;
}

.ranking-arcade-page .site-header,
.challenge-arcade-page .site-header {
  border-bottom: 2px solid rgba(120, 255, 89, 0.25);
  background:
    linear-gradient(rgba(104, 255, 78, 0.06) 1px, transparent 1px),
    rgba(0, 7, 2, 0.96);
  background-size: 100% 4px, auto;
}

.ranking-arcade-page .brand-name,
.challenge-arcade-page .brand-name {
  color: #91ff59;
  text-shadow:
    0 3px 0 #0b2609,
    0 0 16px rgba(120, 255, 89, 0.42);
}

.ranking-arcade-page .nav a,
.challenge-arcade-page .nav a {
  color: rgba(244, 255, 235, 0.78);
}

.ranking-arcade-page .nav a:hover,
.challenge-arcade-page .nav a:hover {
  color: var(--arcade-green);
}

.ranking-arcade-page .page {
  max-width: 1180px;
  padding-top: 24px;
}

.ranking-arcade-page .hero,
.ranking-arcade-page .article-card,
.ranking-arcade-page .side-card,
.ranking-arcade-page .ad-box,
.ranking-arcade-page .ranking-summary {
  border: 2px solid rgba(120, 255, 89, 0.28);
  border-radius: 0;
  background:
    linear-gradient(rgba(104, 255, 78, 0.055) 1px, transparent 1px),
    rgba(2, 12, 4, 0.86);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.76),
    0 0 22px rgba(120, 255, 89, 0.09);
}

.ranking-arcade-page .hero {
  align-items: stretch;
  gap: 20px;
  padding: 26px;
}

.ranking-arcade-page .kicker {
  color: var(--arcade-green);
  letter-spacing: 0.14em;
}

.ranking-arcade-page h1,
.ranking-arcade-page h2 {
  color: #fffdea;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.8),
    0 0 12px rgba(120, 255, 89, 0.2);
}

.ranking-arcade-page .lead,
.ranking-arcade-page .section-lead,
.ranking-arcade-page .small-note,
.ranking-arcade-page .article-card p,
.ranking-arcade-page .article-card li,
.ranking-arcade-page .side-list a {
  color: rgba(234, 246, 229, 0.78);
}

.ranking-arcade-page .hero-actions {
  gap: 10px;
}

.ranking-arcade-page .button,
.ranking-arcade-page .mini-button {
  border: 2px solid rgba(120, 255, 89, 0.42);
  border-radius: 0;
  color: #f7ffe9;
  background:
    linear-gradient(rgba(104, 255, 78, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 61, 15, 0.94), rgba(3, 20, 5, 0.94));
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 -4px 0 rgba(120, 255, 89, 0.19),
    0 0 16px rgba(120, 255, 89, 0.08);
}

.ranking-arcade-page .button.primary,
.ranking-arcade-page .ranking-play-card.primary {
  border-color: rgba(255, 214, 74, 0.64);
  color: #fff3bb;
  background:
    linear-gradient(rgba(255, 214, 74, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(83, 61, 6, 0.94), rgba(18, 12, 0, 0.96));
  background-size: 100% 4px, auto;
}

.ranking-arcade-page .button.danger {
  border-color: rgba(255, 102, 88, 0.46);
  color: #ffd5cf;
}

.ranking-arcade-page .ranking-summary {
  min-width: min(100%, 280px);
  display: grid;
  place-content: center;
  text-align: center;
}

.ranking-arcade-page .ranking-summary span,
.ranking-arcade-page .ranking-summary small {
  color: rgba(234, 246, 229, 0.72);
}

.ranking-arcade-page .ranking-summary strong {
  color: var(--arcade-cyan);
  font-size: clamp(34px, 5vw, 58px);
  text-shadow: 0 0 14px rgba(73, 233, 255, 0.32);
}

.ranking-arcade-page .ranking-play-grid,
.ranking-arcade-page .rank-category-grid {
  gap: 14px;
}

.ranking-arcade-page .ranking-play-card,
.ranking-arcade-page .rank-category,
.ranking-arcade-page .record-summary-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(120, 255, 89, 0.26);
  border-radius: 0;
  background:
    linear-gradient(rgba(104, 255, 78, 0.055) 1px, transparent 1px),
    rgba(1, 8, 2, 0.86);
  background-size: 100% 4px, auto;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.74);
}

.ranking-arcade-page .ranking-play-card::after,
.ranking-arcade-page .rank-category::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--arcade-green);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.ranking-arcade-page .ranking-play-card span,
.ranking-arcade-page .rank-category span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 0;
  color: var(--arcade-gold);
  background: rgba(0, 0, 0, 0.35);
  font-size: 22px;
  box-shadow: inset 0 0 14px rgba(255, 214, 74, 0.1);
}

.ranking-arcade-page .ranking-play-card strong,
.ranking-arcade-page .rank-category strong {
  color: #fffdea;
  font-size: clamp(18px, 2.4vw, 24px);
}

.ranking-arcade-page .ranking-play-card small,
.ranking-arcade-page .rank-category small,
.ranking-arcade-page .record-summary-card span,
.ranking-arcade-page .record-summary-card small {
  color: rgba(234, 246, 229, 0.66);
}

.ranking-arcade-page .ranking-play-card b {
  color: var(--arcade-gold);
}

.ranking-arcade-page .rank-category.active {
  border-color: rgba(255, 214, 74, 0.68);
  background:
    linear-gradient(rgba(255, 214, 74, 0.085) 1px, transparent 1px),
    rgba(22, 14, 0, 0.9);
  background-size: 100% 4px, auto;
}

.ranking-arcade-page .record-summary-card strong {
  color: var(--arcade-cyan);
  text-shadow: 0 0 10px rgba(73, 233, 255, 0.22);
}

.ranking-arcade-page .section-head {
  align-items: start;
  gap: 14px;
}

.ranking-arcade-page .status-pill {
  border: 1px solid rgba(120, 255, 89, 0.5);
  color: var(--arcade-green);
  background: rgba(10, 45, 10, 0.52);
}

.ranking-arcade-page .ranking-winner-card {
  border: 2px solid rgba(255, 214, 74, 0.38);
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 214, 74, 0.055) 1px, transparent 1px),
    rgba(16, 10, 0, 0.82);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(255, 214, 74, 0.1);
}

.ranking-arcade-page .winner-crown span,
.ranking-arcade-page .winner-main strong,
.ranking-arcade-page .winner-main b {
  color: var(--arcade-gold);
}

.ranking-arcade-page .winner-meta {
  color: rgba(234, 246, 229, 0.74);
}

.ranking-arcade-page .ranking-controls {
  border: 1px solid rgba(120, 255, 89, 0.24);
  background: rgba(0, 0, 0, 0.24);
  padding: 10px;
}

.ranking-arcade-page .ranking-controls label {
  color: var(--arcade-green);
}

.ranking-arcade-page .ranking-controls select {
  border: 1px solid rgba(120, 255, 89, 0.42);
  color: #f5ffe9;
  background: #031005;
}

.ranking-arcade-page .table-wrap {
  border: 2px solid rgba(120, 255, 89, 0.22);
  border-radius: 0;
  background:
    linear-gradient(rgba(104, 255, 78, 0.045) 1px, transparent 1px),
    rgba(0, 6, 2, 0.86);
  background-size: 100% 4px, auto;
}

.ranking-arcade-page .ranking-table th {
  color: var(--arcade-green);
  background: rgba(6, 35, 7, 0.76);
}

.ranking-arcade-page .ranking-table td {
  color: rgba(245, 255, 233, 0.86);
  border-color: rgba(120, 255, 89, 0.17);
}

.ranking-arcade-page .ranking-table td:first-child {
  color: var(--arcade-gold);
  font-weight: 900;
}

.ranking-arcade-page .side-list a {
  border-bottom-color: rgba(120, 255, 89, 0.18);
}

.ranking-arcade-page .ad-box {
  color: rgba(234, 246, 229, 0.58);
}

.ranking-arcade-page .ad-label {
  color: var(--arcade-green);
}

.challenge-arcade-page .simple-page {
  max-width: 430px;
  padding-top: 14px;
}

.challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
  gap: 12px;
  border: 2px solid rgba(120, 255, 89, 0.32);
  border-radius: 0;
  background:
    linear-gradient(rgba(104, 255, 78, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 255, 78, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 8%, rgba(104, 255, 78, 0.14), transparent 34%),
    #020602;
  background-size: 100% 4px, 25px 25px, auto, auto;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.75),
    0 0 22px rgba(120, 255, 89, 0.11);
}

.challenge-arcade-page .simple-title-line {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 92px;
  place-items: center;
  padding: 12px 20px;
  border: 0;
  background: url("assets/juggle/marquee-frame-v4.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.challenge-arcade-page .simple-title-line span {
  display: none;
}

.challenge-arcade-page .simple-title-line h1 {
  width: 100%;
  margin: 0;
  color: #91ff59;
  font-size: clamp(25px, 8.2vw, 42px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow:
    0 4px 0 #0d2b0c,
    0 0 18px rgba(116, 255, 66, 0.56);
}

.challenge-arcade-page .simple-status-card,
.challenge-arcade-page .simple-rule-row,
.challenge-arcade-page .simple-result-card,
.challenge-arcade-page .choice-effect,
.challenge-arcade-page .choice-stage,
.challenge-arcade-page .record-name-field,
.challenge-arcade-page .simple-log,
.challenge-arcade-page .simple-info-section,
.challenge-arcade-page .simple-ad {
  border: 2px solid rgba(120, 255, 89, 0.28);
  border-radius: 0;
  background:
    linear-gradient(rgba(104, 255, 78, 0.052) 1px, transparent 1px),
    rgba(1, 8, 2, 0.82);
  background-size: 100% 4px, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 14px rgba(120, 255, 89, 0.08);
}

.challenge-arcade-page .simple-status-card strong {
  color: #8eff69;
}

.challenge-arcade-page .status-dot {
  box-shadow:
    0 0 0 4px rgba(120, 255, 89, 0.14),
    0 0 20px rgba(120, 255, 89, 0.55);
}

.challenge-arcade-page .simple-rule-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.challenge-arcade-page .simple-rule-row span {
  min-height: 62px;
  padding: 10px 12px;
  border-right: 1px solid rgba(120, 255, 89, 0.2);
}

.challenge-arcade-page .simple-rule-row span:last-child {
  border-right: 0;
}

.challenge-arcade-page .simple-rule-row b {
  color: rgba(169, 255, 148, 0.75);
}

.challenge-arcade-page .simple-rule-row strong {
  color: #fffdea;
  font-size: clamp(14px, 4vw, 18px);
}

.challenge-arcade-page .simple-result-card {
  padding: 18px 16px;
  border-color: rgba(255, 214, 74, 0.46);
  background:
    linear-gradient(rgba(255, 214, 74, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(255, 214, 74, 0.12), transparent 42%),
    rgba(8, 7, 0, 0.9);
  background-size: 100% 4px, auto, auto;
}

.challenge-arcade-page .simple-result-card strong {
  color: #ffd64a;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.78),
    0 0 18px rgba(255, 214, 74, 0.3);
}

.challenge-arcade-page .simple-result-card b {
  color: #49e9ff;
}

.challenge-arcade-page .simple-result-card small,
.challenge-arcade-page .simple-result-card em {
  color: rgba(245, 255, 233, 0.74);
}

.challenge-arcade-page .simple-rank-link {
  min-height: 68px;
  padding: 0 62px 0 56px;
  border: 0;
  border-radius: 0;
  color: #fffef3;
  background: url("assets/juggle/rank-button-v4.png") center / 100% 100% no-repeat;
  box-shadow: none;
  font-size: clamp(18px, 5vw, 22px);
}

.challenge-arcade-page .simple-rank-link::before,
.challenge-arcade-page .simple-rank-link::after {
  content: "";
}

.challenge-arcade-page .simple-start-area {
  min-height: 126px;
  display: grid;
  place-items: center;
}

.challenge-arcade-page .simple-start-button {
  width: min(100%, 320px);
  min-height: 112px;
  border: 0;
  border-radius: 0;
  color: #fff6bc;
  background: url("assets/juggle/start-button-v3.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

.challenge-arcade-page .simple-start-button span {
  color: #ffe46a;
  font-size: clamp(34px, 9vw, 48px);
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.72),
    0 0 14px rgba(255, 214, 74, 0.34);
}

.challenge-arcade-page .simple-start-button small {
  color: #f7ffe9;
  font-size: 14px;
}

.challenge-arcade-page .simple-sub-actions {
  gap: 8px;
}

.challenge-arcade-page .simple-sub-actions .button,
.challenge-arcade-page .simple-next-row a {
  border: 1px solid rgba(120, 255, 89, 0.34);
  border-radius: 0;
  color: #f7ffe9;
  background:
    linear-gradient(rgba(104, 255, 78, 0.055) 1px, transparent 1px),
    rgba(1, 8, 2, 0.84);
  background-size: 100% 4px, auto;
}

.challenge-arcade-page .simple-next-row {
  display: none;
}

.challenge-arcade-page .record-name-field input {
  border-radius: 0;
  border-color: rgba(120, 255, 89, 0.34);
  color: #f7ffe9;
  background: rgba(0, 0, 0, 0.5);
}

.challenge-arcade-page .simple-info-section {
  margin-top: 18px;
}

.challenge-arcade-page .simple-info-section h2 {
  color: #fffdea;
}

.challenge-arcade-page .choice-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.challenge-arcade-page .choice-button {
  min-height: 72px;
  border: 2px solid rgba(120, 255, 89, 0.42);
  border-radius: 0;
  color: #fffdea;
  background:
    linear-gradient(rgba(104, 255, 78, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 79, 22, 0.94), rgba(4, 24, 7, 0.94));
  background-size: 100% 4px, auto;
  font-size: 26px;
}

.challenge-arcade-page .choice-button.bad {
  border-color: rgba(255, 102, 88, 0.6);
  color: #ffd5cf;
}

@media (max-width: 760px) {
  .ranking-arcade-page .page {
    padding: 16px 12px 118px;
  }

  .ranking-arcade-page .hero {
    padding: 18px 14px;
  }

  .ranking-arcade-page .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-arcade-page .hero-actions .danger {
    grid-column: 1 / -1;
  }

  .ranking-arcade-page .ranking-play-grid,
  .ranking-arcade-page .rank-category-grid,
  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: 1fr;
  }

  .ranking-arcade-page .ranking-play-card,
  .ranking-arcade-page .rank-category {
    min-height: 92px;
    padding-right: 48px;
  }

  .ranking-arcade-page .section-head {
    grid-template-columns: 1fr;
  }

  .ranking-arcade-page .section-actions {
    justify-content: stretch;
  }

  .ranking-arcade-page .section-actions .mini-button,
  .ranking-arcade-page .section-actions .status-pill {
    flex: 1;
    justify-content: center;
  }

  .ranking-arcade-page .table-wrap {
    overflow-x: auto;
  }

  .ranking-arcade-page .ranking-table {
    min-width: 680px;
  }

  .ranking-arcade-page .mobile-bottom-nav {
    border: 2px solid rgba(120, 255, 89, 0.52);
    border-radius: 0;
    background:
      linear-gradient(rgba(104, 255, 78, 0.055) 1px, transparent 1px),
      rgba(1, 8, 2, 0.95);
    background-size: 100% 4px, auto;
  }

  .challenge-arcade-page .simple-page {
    padding-inline: 10px;
    padding-bottom: 118px;
  }

  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
    padding: 10px;
  }

  .challenge-arcade-page .simple-title-line {
    min-height: 82px;
  }

  .challenge-arcade-page .simple-status-card {
    padding: 14px;
  }

  .challenge-arcade-page .simple-rule-row span {
    padding: 9px 8px;
  }

  .challenge-arcade-page .simple-result-card {
    min-height: 186px;
  }

  .challenge-arcade-page .simple-start-area {
    min-height: 116px;
  }

  .challenge-arcade-page .simple-start-button {
    min-height: 104px;
  }
}

/* New-machine community and slot zone lab v98 */
.community-entry-banner,
.community-hero,
.machine-community-nav,
.community-feed,
.post-composer,
.slot-lab-hero,
.zone-card,
.zone-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(19, 26, 20, 0.98), rgba(7, 9, 8, 0.98));
  box-shadow: var(--shadow);
}

.community-entry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 22px 26px;
  border-color: rgba(125, 167, 255, 0.4);
  background:
    radial-gradient(circle at 90% 10%, rgba(125, 167, 255, 0.18), transparent 230px),
    linear-gradient(145deg, rgba(19, 24, 32, 0.98), rgba(7, 9, 8, 0.98));
}

.community-entry-banner > div > span,
.community-section-head > div > span,
.community-eyebrow {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.community-entry-banner h2 { margin: 3px 0 2px; }
.community-entry-banner p { max-width: 690px; margin: 0; color: var(--muted); }
.community-entry-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.community-shell,
.slot-lab-shell { max-width: 1180px; }

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: 24px;
  padding: 34px;
  border-color: rgba(125, 167, 255, 0.4);
  background:
    radial-gradient(circle at 85% 15%, rgba(125, 167, 255, 0.22), transparent 290px),
    radial-gradient(circle at 10% 100%, rgba(107, 211, 79, 0.12), transparent 250px),
    linear-gradient(145deg, rgba(19, 24, 32, 0.98), rgba(7, 9, 8, 0.98));
}

.community-hero h1,
.slot-lab-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.community-hero p,
.slot-lab-hero p { max-width: 680px; margin: 0; color: var(--muted); font-weight: 700; }

.community-status {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.community-status .status-dot { grid-row: 1 / 3; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px currentColor; }
.community-status strong { line-height: 1.4; }
.community-status small { color: var(--muted); line-height: 1.4; }
.community-status.is-online .status-dot { background: var(--accent); }
.community-status.is-error .status-dot { background: var(--red); }

.machine-community-nav {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
}

.machine-community-nav label { font-weight: 900; }
.machine-community-nav select,
.post-composer input,
.post-composer select,
.post-composer textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #090c0a;
  color: var(--text);
  font: inherit;
}

.post-composer textarea { resize: vertical; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.community-feed,
.post-composer { padding: 22px; }
.composer-sticky { position: sticky; top: 92px; }
.community-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.community-section-head h2,
.post-composer h2 { margin: 0; }
.community-filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.community-filters button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #090c0a; color: var(--muted); cursor: pointer; }
.community-filters button.is-active { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.community-notice { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--blue); border-radius: 10px; background: rgba(125, 167, 255, 0.1); }
.community-notice[data-tone="success"] { border-color: var(--accent); background: var(--accent-soft); }
.community-notice[data-tone="error"] { border-color: var(--red); background: rgba(255, 95, 85, 0.1); }
.post-list { display: grid; gap: 12px; }
.community-post { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 10, 8, 0.7); }
.post-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.post-topline time { margin-left: auto; color: var(--muted); font-size: 12px; }
.post-type { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 900; }
.post-type-result { background: rgba(242, 185, 59, 0.12); color: var(--gold); }
.post-type-simulation { background: rgba(125, 167, 255, 0.12); color: var(--blue); }
.post-rating { color: var(--gold); letter-spacing: 1px; }
.community-post h3 { margin: 10px 0 2px; font-size: 20px; }
.post-author { margin: 0; color: var(--muted); font-size: 13px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-balance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.post-balance span { display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }
.post-balance b { color: var(--text); font-size: 15px; }
.post-balance .is-plus b { color: var(--accent-dark); }
.post-balance .is-minus b { color: var(--red); }
.post-media,
.image-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.post-media img,
.image-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.media-preview-item,
.video-preview-item { position: relative; min-width: 0; }
.media-preview-item button,
.video-preview-item button { min-height: 34px; padding: 6px 10px; border: 1px solid rgba(255, 95, 85, .55); border-radius: 8px; background: rgba(20, 4, 4, .88); color: #ff9c95; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.media-preview-item button { position: absolute; right: 6px; bottom: 6px; }
.video-preview-item button { width: 100%; margin-top: 7px; }
.post-video-player,
.video-preview video { display: block; width: 100%; max-height: 420px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.post-video-link { display: inline-flex; margin-top: 10px; font-weight: 800; }
.post-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.post-actions button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.post-actions button.is-danger { color: var(--red); }
.post-actions button:disabled { opacity: 0.45; cursor: wait; }
.empty-posts { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty-posts strong { display: block; color: var(--text); font-size: 20px; }
.post-composer form { display: grid; gap: 12px; }
.composer-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.26); }
.composer-switch button { min-height: 44px; padding: 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.composer-switch button.is-active { border-color: rgba(125, 167, 255, 0.55); background: rgba(125, 167, 255, 0.13); color: var(--blue); }
.composer-panel { margin-top: 14px; }
.composer-panel[hidden] { display: none !important; }
.composer-intro { margin: 0 0 12px; padding: 9px 10px; border-left: 3px solid var(--blue); background: rgba(125, 167, 255, 0.08); color: var(--muted); font-size: 12px; line-height: 1.65; }
.simulation-return-link { width: 100%; text-align: center; }
.balance-fields[hidden],
.empty-posts[hidden],
.community-notice[hidden] { display: none !important; }
.post-composer .field { display: grid; gap: 4px; }
.post-composer .field label { font-weight: 800; font-size: 13px; }
.post-composer .field small { color: var(--muted); text-align: right; }
.post-composer .field small.field-hint { text-align: left; }
.post-composer input:disabled { opacity: .5; cursor: not-allowed; }
.composer-draft { display: grid; gap: 7px; padding: 12px; border: 1px solid rgba(125, 167, 255, .32); border-radius: 12px; background: rgba(125, 167, 255, .055); }
.composer-draft[hidden] { display: none !important; }
.composer-draft > span { color: var(--blue); font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.composer-draft > h3 { margin: 0; font-size: 16px; }
.composer-draft-card { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #080b09; }
.composer-draft-card > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.composer-draft-card > div:first-child b { color: var(--accent-dark); font-size: 11px; }
.composer-draft-card > div:first-child em { color: var(--gold); font-size: 11px; font-style: normal; }
.composer-draft-card > strong { overflow-wrap: anywhere; }
.composer-draft-card > small,
.composer-draft-card > footer { color: var(--muted); font-size: 11px; }
.composer-draft-card > p { margin: 3px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; }
.draft-balance { padding: 7px; border-radius: 7px; background: rgba(242, 185, 59, .08); color: var(--gold); font-size: 11px; }
.draft-balance[hidden] { display: none !important; }
.balance-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.community-agree { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.6; }
.community-agree input { width: auto; min-height: auto; margin-top: 4px; }
.community-submit { width: 100%; min-height: 52px; }
.composer-note { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.community-admin-shell { display: grid; gap: 18px; }
.admin-hero,
.admin-login-card,
.admin-panel,
.admin-toolbar,
.admin-stats > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 20, 16, 0.96), rgba(5, 8, 6, 0.96));
  box-shadow: var(--shadow);
}
.admin-hero { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 28px; }
.admin-hero h1 { margin: 3px 0 7px; }
.admin-hero p { max-width: 700px; margin: 0; color: var(--muted); }
.admin-login-card { width: min(520px, 100%); margin: 20px auto; padding: 26px; }
.admin-login-card h2 { margin: 3px 0 8px; }
.admin-login-card > p { color: var(--muted); }
.admin-login-card form { display: grid; gap: 14px; margin-top: 18px; }
.admin-login-card .field { display: grid; gap: 5px; }
.admin-login-card label { font-size: 13px; font-weight: 900; }
.admin-login-card input,
.admin-panel select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #070a08;
  color: var(--text);
}
.admin-login-note { margin-bottom: 0; font-size: 12px; line-height: 1.7; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 22px; }
.admin-toolbar h2 { margin: 2px 0 0; }
.admin-toolbar-actions { display: flex; gap: 8px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.admin-stats > div { display: grid; gap: 4px; padding: 16px; }
.admin-stats span { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-stats strong { color: var(--accent-dark); font-size: 28px; }
.admin-panel { margin-top: 14px; padding: 22px; }
.admin-panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.admin-panel-head span { color: var(--accent-dark); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.admin-panel-head h2 { margin: 2px 0 0; }
.admin-panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-panel-head label { display: grid; gap: 4px; min-width: 150px; color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-card-list { display: grid; gap: 10px; }
.admin-item-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 8, 6, 0.8); }
.admin-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.admin-item-top time { color: var(--muted); font-size: 11px; }
.admin-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-status-badge,
.admin-report-badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.admin-status-badge.is-published { color: var(--accent-dark); background: var(--accent-soft); }
.admin-status-badge.is-review { color: var(--gold); background: rgba(242, 185, 59, 0.12); }
.admin-status-badge.is-hidden { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.admin-report-badge { color: var(--red); background: rgba(255, 95, 85, 0.12); }
.admin-item-card h3 { margin: 10px 0 3px; }
.admin-item-meta { margin: 0; color: var(--muted); font-size: 12px; }
.admin-item-body { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.admin-item-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.admin-item-actions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #090c0a; color: var(--text); cursor: pointer; font-weight: 800; }
.admin-item-actions button:hover { border-color: var(--accent); }
.admin-item-actions button.is-danger { border-color: rgba(255, 95, 85, 0.45); color: var(--red); }
.admin-item-actions button:disabled { opacity: 0.45; cursor: wait; }
.admin-ranking-score { display: block; margin: 8px 0 0; color: var(--gold); font-size: 24px; }
.admin-empty { margin: 0; padding: 22px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }

.slot-lab-hero { padding: 34px; border-color: rgba(242, 185, 59, 0.42); background: radial-gradient(circle at 85% 20%, rgba(242, 185, 59, 0.18), transparent 270px), linear-gradient(145deg, rgba(27, 23, 14, 0.98), rgba(7, 9, 8, 0.98)); }
.slot-lab-hero .community-eyebrow { color: var(--gold); }
.demo-warning { display: inline-flex; margin-top: 16px; padding: 5px 10px; border: 1px solid rgba(242, 185, 59, 0.4); border-radius: 999px; color: var(--gold); font-size: 12px; font-weight: 900; }
.zone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.zone-card { position: relative; overflow: hidden; padding: 22px; }
.zone-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.zone-special::before { background: var(--gold); }
.zone-upper::before { background: var(--blue); }
.zone-card > span { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 900; letter-spacing: 1px; }
.zone-special > span { color: var(--gold); }
.zone-upper > span { color: var(--blue); }
.zone-card h2 { margin: 2px 0; }
.zone-card p { min-height: 58px; margin-top: 4px; color: var(--muted); }
.zone-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0; }
.zone-card dl div { display: grid; text-align: center; border-right: 1px solid var(--line); }
.zone-card dl div:last-child { border-right: 0; }
.zone-card dt { color: var(--muted); font-size: 11px; }
.zone-card dd { margin: 0; font-weight: 900; }
.zone-start { width: 100%; min-height: 54px; border: 1px solid var(--accent); border-radius: 12px; background: linear-gradient(180deg, var(--accent), #319428); color: #071007; font: inherit; font-weight: 950; cursor: pointer; }
.zone-special .zone-start { border-color: var(--gold); background: linear-gradient(180deg, #ffd061, #b2740a); }
.zone-upper .zone-start { border-color: var(--blue); background: linear-gradient(180deg, #a7c0ff, #526fc6); }
.zone-result { padding: 28px; text-align: center; }
.zone-result > strong { display: block; margin-top: 5px; font-size: clamp(28px, 5vw, 48px); }
.zone-result.has-result { border-color: var(--accent); box-shadow: var(--shadow), 0 0 30px rgba(107, 211, 79, 0.1); }
.zone-result-log { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-width: 760px; margin: 14px auto; }
.zone-result-log span { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0, 0, 0, 0.25); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.zone-result-actions { display: flex; justify-content: center; gap: 8px; }
.slot-flow-explanation { margin-top: 18px; }

@media (max-width: 860px) {
  .community-layout { grid-template-columns: 1fr; }
  .composer-sticky { position: static; }
  .zone-grid { grid-template-columns: 1fr; }
  .zone-card p { min-height: auto; }
}

@media (max-width: 680px) {
  .community-entry-banner,
  .community-hero { display: grid; grid-template-columns: 1fr; padding: 20px; }
  .community-entry-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .machine-community-nav { grid-template-columns: 1fr; }
  .community-section-head { display: grid; align-items: start; }
  .community-filters { justify-content: flex-start; }
  .community-feed,
  .post-composer,
  .slot-lab-hero,
  .zone-result { padding: 16px; }
  .post-balance { grid-template-columns: 1fr; }
  .admin-hero,
  .admin-toolbar,
  .admin-panel-head { display: grid; align-items: start; }
  .admin-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-panel { padding: 17px; }
  .admin-item-top { align-items: start; }
  .zone-result-log { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 390px) {
  .ranking-arcade-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .challenge-arcade-page .simple-title-line h1 {
    font-size: clamp(22px, 7.6vw, 34px);
  }

  .challenge-arcade-page .simple-rule-row strong {
    font-size: 13px;
  }

  .challenge-arcade-page .simple-rank-link {
    min-height: 62px;
    padding-left: 48px;
    padding-right: 52px;
  }
}

/* Generic ranking battles: isolate from Juggle-only generated layout. */
.challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
  display: flex;
  flex-direction: column;
}

.challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen)::before,
.challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen)::after {
  left: 20px;
  right: 20px;
}

.challenge-arcade-page .simple-title-line,
.challenge-arcade-page .simple-status-card,
.challenge-arcade-page .simple-rule-row,
.challenge-arcade-page .simple-result-card,
.challenge-arcade-page .choice-effect,
.challenge-arcade-page .choice-stage,
.challenge-arcade-page .simple-rank-link,
.challenge-arcade-page .simple-start-area,
.challenge-arcade-page .simple-sub-actions,
.challenge-arcade-page .record-name-field,
.challenge-arcade-page .simple-log,
.challenge-arcade-page .simple-ad,
.challenge-arcade-page .note {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
}

.challenge-arcade-page .simple-title-line { order: 1; }
.challenge-arcade-page .simple-status-card { order: 2; }
.challenge-arcade-page .simple-rule-row { order: 3; }
.challenge-arcade-page .simple-result-card { order: 4; }
.challenge-arcade-page .choice-effect { order: 5; }
.challenge-arcade-page .choice-stage { order: 6; }
.challenge-arcade-page .simple-start-area { order: 7; }
.challenge-arcade-page .simple-rank-link { order: 8; }
.challenge-arcade-page .simple-sub-actions { order: 9; }
.challenge-arcade-page .record-name-field { order: 10; }
.challenge-arcade-page .simple-log { order: 11; }
.challenge-arcade-page .simple-ad { order: 12; }
.challenge-arcade-page .note { order: 13; }

.challenge-arcade-page .simple-title-line {
  margin-top: 6px;
}

.challenge-arcade-page .simple-status-card {
  min-height: auto;
  padding: 15px 16px;
}

.challenge-arcade-page .simple-status-card::after,
.challenge-arcade-page .simple-result-card::before,
.challenge-arcade-page .simple-result-card::after {
  display: none;
}

.challenge-arcade-page .simple-result-card > * {
  position: relative;
  z-index: 1;
}

.challenge-arcade-page .simple-result-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 214px;
  gap: 6px;
}

.challenge-arcade-page .simple-result-card strong {
  min-height: 0;
  font-size: clamp(46px, 14vw, 74px);
  overflow-wrap: anywhere;
}

.challenge-arcade-page .simple-result-card b {
  font-size: clamp(26px, 8vw, 40px);
}

.challenge-arcade-page .simple-result-card em {
  width: min(100%, 290px);
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 214, 74, 0.33);
  background: rgba(0, 0, 0, 0.38);
}

.challenge-arcade-page .simple-start-area {
  margin: 0;
  padding: 8px;
  border: 2px solid rgba(255, 214, 74, 0.54);
  background:
    linear-gradient(rgba(104, 255, 78, 0.055) 1px, transparent 1px),
    rgba(1, 8, 2, 0.74);
  background-size: 100% 4px, auto;
}

.challenge-arcade-page .simple-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.challenge-arcade-page .simple-sub-actions > :first-child {
  grid-column: 1 / -1;
}

.challenge-arcade-page .record-name-field {
  display: grid;
  gap: 0;
  padding: 0;
}

.challenge-arcade-page .record-name-field label {
  padding: 8px 10px;
  color: rgba(169, 255, 148, 0.75);
}

.challenge-arcade-page .record-name-field input {
  min-height: 54px;
  border-width: 1px 0 0;
  text-align: center;
}

@media (max-width: 390px) {
  .challenge-arcade-page .simple-result-card {
    min-height: 190px;
  }

  .challenge-arcade-page .simple-result-card strong {
    font-size: clamp(38px, 13vw, 58px);
  }

  .challenge-arcade-page .simple-status-card p {
    font-size: 14px;
  }
}

/* Juggle sizing pass: tighten height, scale, and position. */
.juggle-simple-page .pixel-arcade-screen {
  width: min(100%, 376px);
  gap: 3px;
  padding: 7px 8px 9px;
}

.juggle-simple-page .pixel-arcade-marquee {
  min-height: 98px;
  padding: 12px 16px 8px;
}

.juggle-simple-page .pixel-arcade-marquee > div {
  transform: translate(-1%, -2px) scale(0.96);
}

.juggle-simple-page .pixel-arcade-marquee strong {
  font-size: clamp(32px, 12vw, 52px);
}

.juggle-simple-page .pixel-arcade-marquee small {
  margin-top: 0;
  font-size: clamp(16px, 5vw, 22px);
}

.juggle-simple-page .pixel-top-panel {
  grid-template-columns: 106px minmax(0, 1fr);
  min-height: 104px;
  gap: 5px;
  padding: 5px 6px;
}

.juggle-simple-page .pixel-slot-machine,
.juggle-simple-page .pixel-top-panel .simple-status-card {
  min-height: 92px;
}

.juggle-simple-page .pixel-top-panel .pixel-state .pixel-lamp {
  width: 30px;
  height: 30px;
}

.juggle-simple-page .pixel-top-panel .pixel-state {
  padding-inline: 1px;
}

.juggle-simple-page .pixel-core-panel {
  margin-top: 2px;
}

.juggle-simple-page .pixel-core-panel .simple-result-card {
  min-height: 202px;
  padding: 10px 12px 9px;
}

.juggle-simple-page .simple-result-card .pixel-display-heading {
  margin-bottom: 8px;
}

.juggle-simple-page .simple-result-card strong {
  min-height: 36px;
  font-size: clamp(34px, 10.6vw, 54px);
}

.juggle-simple-page .simple-result-card b {
  margin-top: 0;
}

.juggle-simple-page .simple-result-card em {
  min-height: 30px;
}

.juggle-simple-page .pixel-action-row {
  margin-top: -10px;
}

.juggle-simple-page .pixel-action-row .simple-start-area {
  min-height: 96px;
  padding: 0 8px 2px;
}

.juggle-simple-page .pixel-action-row .simple-start-button {
  width: min(86%, 308px);
}

.juggle-simple-page .pixel-action-row .simple-start-button small {
  bottom: 16%;
}

.juggle-simple-page .simple-rank-link {
  min-height: 58px;
  margin-top: -6px;
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-arcade-screen {
    width: min(100%, 368px);
    padding-inline: 7px;
  }

  .juggle-simple-page .pixel-arcade-marquee {
    min-height: 94px;
    padding-top: 11px;
  }

  .juggle-simple-page .pixel-arcade-marquee strong {
    font-size: clamp(32px, 12.2vw, 48px);
  }

  .juggle-simple-page .pixel-arcade-marquee small {
    font-size: clamp(16px, 4.9vw, 20px);
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 102px minmax(0, 1fr);
    min-height: 100px;
  }

  .juggle-simple-page .pixel-slot-machine,
  .juggle-simple-page .pixel-top-panel .simple-status-card {
    min-height: 88px;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 194px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 90px;
  }

  .juggle-simple-page .simple-rank-link {
    min-height: 56px;
  }
}

/* Juggle rule row: closer to the reference segmented meter. */
.juggle-simple-page .simple-rule-row {
  min-height: 54px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.035) 1px, transparent 1px),
    rgba(1, 9, 3, 0.96);
  background-size: 100% 4px, 24px 24px, auto;
  box-shadow:
    inset 0 2px 0 rgba(100, 255, 74, 0.46),
    inset 0 -2px 0 rgba(100, 255, 74, 0.42),
    inset 0 0 0 1px rgba(0, 0, 0, 0.82);
}

.juggle-simple-page .simple-rule-row::before {
  display: none;
}

.juggle-simple-page .simple-rule-row span {
  align-content: center;
  gap: 5px;
  min-height: 52px;
  padding: 6px 6px 6px 15px;
  border-right: 2px solid rgba(100, 255, 74, 0.36);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.025) 1px, transparent 1px),
    rgba(3, 12, 4, 0.82);
  background-size: 100% 4px, 24px 24px, auto;
}

.juggle-simple-page .simple-rule-row span:last-child {
  border-right: 0;
}

.juggle-simple-page .simple-rule-row b {
  color: rgba(224, 238, 221, 0.76);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.76);
}

.juggle-simple-page .simple-rule-row strong {
  color: #fbfff1;
  max-width: 100%;
  font-size: clamp(10px, 3.12vw, 13px);
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: visible;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.84),
    0 0 8px rgba(100, 255, 74, 0.16);
}

.juggle-simple-page .simple-rule-row strong#simpleRuleGame,
.juggle-simple-page .simple-rule-row strong#simpleRuleChain {
  color: #fbfff1;
}

/* Juggle tabs: slimmer arcade tabs. */
.juggle-simple-page .pixel-arcade-tabs {
  min-height: 34px;
  border-width: 2px;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.84),
    0 4px 0 rgba(255, 217, 74, 0.18),
    0 0 14px rgba(100, 255, 74, 0.12);
}

.juggle-simple-page .pixel-arcade-tabs a {
  min-height: 32px;
  padding: 3px 8px 2px;
  font-size: 13px;
  line-height: 1;
}

.juggle-simple-page .pixel-arcade-tabs a:first-child::before {
  margin-right: 6px;
  font-size: 12px;
}

/* Juggle final arcade density pass: closer mobile proportions. */
.juggle-simple-page .pixel-arcade-screen {
  gap: 5px;
  padding: 6px 8px 10px;
}

.juggle-simple-page .pixel-arcade-marquee {
  min-height: 90px;
  padding: 10px 14px 7px;
}

.juggle-simple-page .pixel-arcade-marquee > div {
  transform: translateY(-3px) scale(0.88);
}

.juggle-simple-page .pixel-arcade-marquee strong {
  font-size: clamp(28px, 9.8vw, 42px);
}

.juggle-simple-page .pixel-arcade-marquee small {
  font-size: clamp(14px, 4.25vw, 19px);
}

.juggle-simple-page .pixel-top-panel {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 98px;
  padding: 4px 6px;
}

.juggle-simple-page .pixel-slot-machine,
.juggle-simple-page .pixel-top-panel .simple-status-card {
  min-height: 88px;
}

.juggle-simple-page .pixel-top-panel .pixel-state-grid {
  min-height: 86px;
}

.juggle-simple-page .pixel-top-panel .pixel-state {
  min-height: 82px;
}

.juggle-simple-page .pixel-top-panel .pixel-state .pixel-lamp {
  width: 28px;
  height: 28px;
}

.juggle-simple-page .pixel-top-panel .pixel-state strong {
  font-size: clamp(13px, 3.8vw, 18px);
}

.juggle-simple-page .pixel-top-panel .pixel-state p {
  font-size: clamp(10px, 3.05vw, 13px);
}

.juggle-simple-page .simple-rule-row {
  min-height: 46px;
}

.juggle-simple-page .simple-rule-row span {
  min-height: 44px;
  gap: 4px;
  padding: 5px 5px 5px 13px;
}

.juggle-simple-page .simple-rule-row b {
  font-size: 10px;
}

.juggle-simple-page .simple-rule-row strong {
  font-size: clamp(10px, 3vw, 12px);
}

.juggle-simple-page .pixel-core-panel {
  margin-top: 4px;
}

.juggle-simple-page .pixel-core-panel .simple-result-card {
  min-height: 188px;
  padding: 9px 12px 8px;
}

.juggle-simple-page .simple-result-card .pixel-display-heading {
  margin-bottom: 6px;
  font-size: clamp(15px, 4.6vw, 22px);
}

.juggle-simple-page .simple-result-card strong {
  min-height: 34px;
  font-size: clamp(32px, 10.2vw, 52px);
}

.juggle-simple-page .simple-result-card b {
  font-size: clamp(25px, 7.8vw, 38px);
}

.juggle-simple-page .simple-result-card small {
  font-size: clamp(15px, 4.4vw, 21px);
}

.juggle-simple-page .simple-result-card em {
  min-height: 28px;
  padding: 5px 10px;
  font-size: clamp(13px, 3.9vw, 18px);
}

.juggle-simple-page .pixel-action-row {
  margin-top: -4px;
}

.juggle-simple-page .pixel-action-row .simple-start-area {
  min-height: 102px;
  padding: 2px 6px 0;
}

.juggle-simple-page .pixel-action-row .simple-start-button {
  width: min(94%, 334px);
  min-height: 98px;
  transform: translateY(-1px);
  filter:
    drop-shadow(0 0 10px rgba(100, 255, 74, 0.34))
    drop-shadow(0 10px 0 rgba(0, 0, 0, 0.42));
  transition:
    filter 0.16s ease,
    transform 0.16s ease;
}

.juggle-simple-page .pixel-action-row .simple-start-button span {
  top: 35%;
  font-size: clamp(31px, 9vw, 44px);
}

.juggle-simple-page .pixel-action-row .simple-start-button small {
  bottom: 17%;
  font-size: 12px;
}

.juggle-simple-page .pixel-action-row .simple-start-button:active {
  transform: translateY(2px) scale(0.985);
  filter:
    drop-shadow(0 0 15px rgba(255, 222, 72, 0.46))
    drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5));
}

.juggle-simple-page .juggle-simple-stage:not(.is-running):not(.is-finished):not(.is-big-hit):not(.is-missed) .pixel-action-row .simple-start-button {
  animation: arcadeStartGlow 1.8s ease-in-out infinite;
}

.juggle-simple-page .juggle-simple-stage.is-running .pixel-action-row .simple-start-button {
  animation: arcadeStartRun 0.5s steps(2, end) infinite;
  filter:
    drop-shadow(0 0 18px rgba(255, 216, 68, 0.54))
    drop-shadow(0 8px 0 rgba(0, 0, 0, 0.5));
}

.juggle-simple-page .juggle-simple-stage.is-finished .pixel-action-row .simple-start-button,
.juggle-simple-page .juggle-simple-stage.is-big-hit .pixel-action-row .simple-start-button,
.juggle-simple-page .juggle-simple-stage.is-missed .pixel-action-row .simple-start-button {
  animation: none;
}

.juggle-simple-page .simple-rank-link {
  min-height: 54px;
  margin-top: -2px;
  font-size: clamp(17px, 4.8vw, 23px);
}

.juggle-simple-page .simple-sub-actions {
  gap: 6px;
}

.juggle-simple-page .simple-sub-actions .button {
  min-height: 42px;
  font-size: 13px;
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-arcade-screen {
    width: min(100%, 362px);
    padding-inline: 6px;
  }

  .juggle-simple-page .pixel-arcade-marquee {
    min-height: 86px;
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 94px;
  }

  .juggle-simple-page .pixel-slot-machine,
  .juggle-simple-page .pixel-top-panel .simple-status-card {
    min-height: 84px;
  }

  .juggle-simple-page .simple-rule-row span {
    padding-left: 10px;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 178px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 96px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-button {
    width: min(96%, 326px);
    min-height: 92px;
  }
}

.juggle-simple-page .juggle-simple-stage.is-running .pixel-core-panel .simple-result-card {
  box-shadow:
    inset 0 0 0 2px rgba(255, 216, 68, 0.28),
    0 0 22px rgba(255, 216, 68, 0.16);
}

.juggle-simple-page .juggle-simple-stage.is-big-hit .pixel-core-panel .simple-result-card,
.juggle-simple-page .juggle-simple-stage.is-finished .pixel-core-panel .simple-result-card {
  box-shadow:
    inset 0 0 0 2px rgba(255, 216, 68, 0.42),
    0 0 30px rgba(255, 216, 68, 0.22),
    0 0 42px rgba(100, 255, 74, 0.14);
}

.juggle-simple-page .juggle-simple-stage.is-missed .pixel-core-panel .simple-result-card {
  filter: saturate(0.82);
  box-shadow:
    inset 0 0 0 2px rgba(255, 102, 88, 0.26),
    0 0 20px rgba(255, 102, 88, 0.13);
}

@keyframes arcadeStartGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 9px rgba(100, 255, 74, 0.3))
      drop-shadow(0 10px 0 rgba(0, 0, 0, 0.42));
  }

  50% {
    filter:
      drop-shadow(0 0 18px rgba(100, 255, 74, 0.52))
      drop-shadow(0 10px 0 rgba(0, 0, 0, 0.42));
  }
}

@keyframes arcadeStartRun {
  0% {
    transform: translateY(-1px) scale(1);
  }

  100% {
    transform: translateY(-1px) scale(1.015);
  }
}

/* Ranking arcade final pass: match Juggle cabinet tone and improve mobile records. */
.ranking-arcade-page .page {
  max-width: 1160px;
}

.ranking-arcade-page .ranking-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(120, 255, 89, 0.42);
  background:
    linear-gradient(rgba(104, 255, 78, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(120, 255, 89, 0.17), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 214, 74, 0.12), transparent 32%),
    rgba(1, 9, 3, 0.92);
  background-size: 100% 4px, auto, auto, auto;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.76),
    inset 0 0 34px rgba(120, 255, 89, 0.08),
    0 0 24px rgba(120, 255, 89, 0.12);
}

.ranking-arcade-page .ranking-hero::after {
  content: "RANKING";
  position: absolute;
  right: 18px;
  bottom: 10px;
  color: rgba(120, 255, 89, 0.08);
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.ranking-arcade-page .ranking-hero > * {
  position: relative;
  z-index: 1;
}

.ranking-arcade-page .ranking-play-card,
.ranking-arcade-page .rank-category {
  min-height: 112px;
  align-items: center;
  border-color: rgba(120, 255, 89, 0.34);
  background:
    linear-gradient(rgba(104, 255, 78, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 255, 78, 0.03) 1px, transparent 1px),
    rgba(1, 8, 2, 0.9);
  background-size: 100% 4px, 24px 24px, auto;
}

.ranking-arcade-page .ranking-play-card:hover,
.ranking-arcade-page .rank-category:hover {
  border-color: rgba(120, 255, 89, 0.68);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(120, 255, 89, 0.16);
}

.ranking-arcade-page .ranking-play-card:nth-child(1) span,
.ranking-arcade-page .rank-category:nth-child(1) span {
  color: #bd63ff;
}

.ranking-arcade-page .ranking-play-card:nth-child(2) span,
.ranking-arcade-page .rank-category:nth-child(6) span {
  color: #72a7ff;
}

.ranking-arcade-page .ranking-play-card:nth-child(3) span,
.ranking-arcade-page .rank-category:nth-child(4) span {
  color: #ffd64a;
}

.ranking-arcade-page .ranking-play-card:nth-child(4) span,
.ranking-arcade-page .rank-category:nth-child(2) span {
  color: #ff6658;
}

.ranking-arcade-page .ranking-play-card:nth-child(5) span,
.ranking-arcade-page .rank-category:nth-child(3) span {
  color: #f5ffe9;
}

.ranking-arcade-page .ranking-play-card:nth-child(6) span,
.ranking-arcade-page .rank-category:nth-child(5) span {
  color: #7dff70;
}

.ranking-arcade-page .rank-category.active {
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 26px rgba(255, 214, 74, 0.12),
    0 0 22px rgba(255, 214, 74, 0.12);
}

.ranking-arcade-page .record-summary-card {
  min-height: 92px;
  border-color: rgba(73, 233, 255, 0.22);
}

.ranking-arcade-page .ranking-panel.active {
  display: grid;
  gap: 16px;
}

.ranking-arcade-page .ranking-winner-card {
  overflow: hidden;
  border-color: rgba(255, 214, 74, 0.52);
  background:
    linear-gradient(rgba(255, 214, 74, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 214, 74, 0.16), transparent 44%),
    rgba(16, 10, 0, 0.86);
  background-size: 100% 4px, auto, auto;
}

.ranking-arcade-page .winner-card-layout {
  align-items: center;
  gap: 16px;
}

.ranking-arcade-page .winner-crown {
  display: grid;
  min-width: 72px;
  place-items: center;
}

.ranking-arcade-page .winner-crown span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(255, 214, 74, 0.56);
  background: rgba(0, 0, 0, 0.38);
}

.ranking-arcade-page .winner-main b {
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1;
}

.ranking-arcade-page .table-wrap {
  overflow: hidden;
}

.ranking-arcade-page .ranking-table {
  border-collapse: separate;
  border-spacing: 0;
}

.ranking-arcade-page .ranking-table tr:nth-child(even) td {
  background: rgba(120, 255, 89, 0.025);
}

@media (max-width: 760px) {
  .ranking-arcade-page .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .ranking-arcade-page .page {
    max-width: 430px;
    padding: 12px 10px 118px;
  }

  .ranking-arcade-page .layout {
    gap: 14px;
  }

  .ranking-arcade-page .ranking-hero {
    gap: 14px;
    padding: 16px 12px;
  }

  .ranking-arcade-page .ranking-hero h1 {
    font-size: clamp(25px, 8vw, 36px);
    line-height: 1.15;
  }

  .ranking-arcade-page .ranking-hero .lead {
    font-size: 13px;
    line-height: 1.75;
  }

  .ranking-arcade-page .ranking-summary {
    min-height: 96px;
  }

  .ranking-arcade-page .article-card {
    padding: 16px 12px;
  }

  .ranking-arcade-page .ranking-play-grid,
  .ranking-arcade-page .rank-category-grid {
    gap: 10px;
  }

  .ranking-arcade-page .ranking-play-card,
  .ranking-arcade-page .rank-category {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 84px;
    gap: 12px;
    padding: 12px 38px 12px 12px;
  }

  .ranking-arcade-page .ranking-play-card span,
  .ranking-arcade-page .rank-category span {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .ranking-arcade-page .ranking-play-card strong,
  .ranking-arcade-page .rank-category strong {
    font-size: clamp(19px, 6vw, 26px);
    line-height: 1.15;
  }

  .ranking-arcade-page .ranking-play-card small,
  .ranking-arcade-page .rank-category small {
    font-size: 12px;
  }

  .ranking-arcade-page .ranking-play-card b {
    font-size: 11px;
    color: rgba(255, 214, 74, 0.86);
  }

  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ranking-arcade-page .record-summary-card {
    min-height: 78px;
    padding: 10px;
  }

  .ranking-arcade-page .record-summary-card strong {
    font-size: clamp(18px, 6vw, 24px);
  }

  .ranking-arcade-page .ranking-panel {
    padding: 16px 12px;
  }

  .ranking-arcade-page .section-head h2 {
    font-size: clamp(23px, 7vw, 31px);
  }

  .ranking-arcade-page .ranking-winner-card {
    padding: 12px;
  }

  .ranking-arcade-page .winner-card-layout {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-arcade-page .winner-crown {
    min-width: 0;
  }

  .ranking-arcade-page .winner-crown span {
    width: 48px;
    height: 48px;
  }

  .ranking-arcade-page .winner-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 214, 74, 0.18);
  }

  .ranking-arcade-page .ranking-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .ranking-arcade-page .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .ranking-arcade-page .ranking-table,
  .ranking-arcade-page .ranking-table tbody,
  .ranking-arcade-page .ranking-table tr,
  .ranking-arcade-page .ranking-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .ranking-arcade-page .ranking-table thead {
    display: none;
  }

  .ranking-arcade-page .ranking-table tbody {
    display: grid;
    gap: 10px;
  }

  .ranking-arcade-page .ranking-table tr {
    position: relative;
    overflow: hidden;
    padding: 12px 12px 12px 66px;
    border: 2px solid rgba(120, 255, 89, 0.3);
    background:
      linear-gradient(rgba(104, 255, 78, 0.055) 1px, transparent 1px),
      rgba(1, 8, 2, 0.88);
    background-size: 100% 4px, auto;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.72);
  }

  .ranking-arcade-page .ranking-table tr:nth-child(1) {
    border-color: rgba(255, 214, 74, 0.5);
  }

  .ranking-arcade-page .ranking-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    border: 0;
    color: rgba(245, 255, 233, 0.9);
    text-align: right;
  }

  .ranking-arcade-page .ranking-table td::before {
    flex: 0 0 auto;
    color: rgba(169, 255, 148, 0.7);
    font-size: 11px;
    font-weight: 900;
    text-align: left;
  }

  .ranking-arcade-page .ranking-table td:first-child {
    position: absolute;
    left: 12px;
    top: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 2px solid rgba(255, 214, 74, 0.48);
    color: var(--arcade-gold);
    background: rgba(0, 0, 0, 0.36);
    font-size: 18px;
    text-align: center;
  }

  .ranking-arcade-page .ranking-table td:first-child::before,
  .ranking-arcade-page .ranking-table td[colspan]::before {
    content: "";
    display: none;
  }

  .ranking-arcade-page .ranking-table td:nth-child(2) {
    color: #fffdea;
    font-size: 17px;
    font-weight: 900;
  }

  .ranking-arcade-page .ranking-table td:nth-child(3) {
    color: var(--arcade-gold);
    font-size: 18px;
    font-weight: 1000;
  }

  .ranking-arcade-page .ranking-table td:last-child {
    padding-top: 10px;
  }

  .ranking-arcade-page .ranking-table td[colspan] {
    display: block;
    padding: 18px 12px;
    text-align: center;
  }

  .ranking-arcade-page .record-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ranking-arcade-page .record-actions .mini-button {
    min-height: 38px;
    justify-content: center;
  }

  #juggleRankingBody td:nth-child(2)::before,
  #pachinkoRankingBody td:nth-child(2)::before,
  #tokyoGhoulRankingBody td:nth-child(2)::before,
  #rare8192RankingBody td:nth-child(2)::before,
  #hamariRankingBody td:nth-child(2)::before,
  #twoChoiceRankingBody td:nth-child(2)::before {
    content: "名前";
  }

  #juggleRankingBody td:nth-child(3)::before { content: "連数"; }
  #juggleRankingBody td:nth-child(4)::before { content: "内訳"; }
  #juggleRankingBody td:nth-child(5)::before { content: "差枚"; }
  #juggleRankingBody td:nth-child(6)::before { content: "保存日時"; }
  #juggleRankingBody td:nth-child(7)::before { content: "操作"; }

  #pachinkoRankingBody td:nth-child(3)::before { content: "総出玉"; }
  #pachinkoRankingBody td:nth-child(4)::before { content: "連チャン"; }
  #pachinkoRankingBody td:nth-child(5)::before { content: "差玉"; }
  #pachinkoRankingBody td:nth-child(6)::before { content: "保存日時"; }
  #pachinkoRankingBody td:nth-child(7)::before { content: "操作"; }

  #tokyoGhoulRankingBody td:nth-child(3)::before { content: "総出玉"; }
  #tokyoGhoulRankingBody td:nth-child(4)::before { content: "連チャン"; }
  #tokyoGhoulRankingBody td:nth-child(5)::before { content: "ルート"; }
  #tokyoGhoulRankingBody td:nth-child(6)::before { content: "差玉"; }
  #tokyoGhoulRankingBody td:nth-child(7)::before { content: "保存日時"; }
  #tokyoGhoulRankingBody td:nth-child(8)::before { content: "操作"; }

  #rare8192RankingBody td:nth-child(3)::before { content: "当選回転"; }
  #rare8192RankingBody td:nth-child(4)::before { content: "分母比"; }
  #rare8192RankingBody td:nth-child(5)::before { content: "当選率"; }
  #rare8192RankingBody td:nth-child(6)::before { content: "保存日時"; }
  #rare8192RankingBody td:nth-child(7)::before { content: "操作"; }

  #hamariRankingBody td:nth-child(3)::before { content: "回転数"; }
  #hamariRankingBody td:nth-child(4)::before { content: "条件"; }
  #hamariRankingBody td:nth-child(5)::before { content: "到達目安"; }
  #hamariRankingBody td:nth-child(6)::before { content: "保存日時"; }
  #hamariRankingBody td:nth-child(7)::before { content: "操作"; }

  #twoChoiceRankingBody td:nth-child(3)::before { content: "連続正解"; }
  #twoChoiceRankingBody td:nth-child(4)::before { content: "挑戦回数"; }
  #twoChoiceRankingBody td:nth-child(5)::before { content: "到達確率"; }
  #twoChoiceRankingBody td:nth-child(6)::before { content: "保存日時"; }
  #twoChoiceRankingBody td:nth-child(7)::before { content: "操作"; }
}

@media (max-width: 390px) {
  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: 1fr;
  }

  .ranking-arcade-page .hero-actions {
    gap: 8px;
  }

  .ranking-arcade-page .ranking-play-card,
  .ranking-arcade-page .rank-category {
    min-height: 78px;
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }
}

/* Ranking mobile final override: keep battle entries readable as vertical arcade cards. */
@media (max-width: 760px) {
  .ranking-arcade-page .ranking-hero {
    padding: 14px 12px;
  }

  .ranking-arcade-page .ranking-hero .hero-actions {
    grid-template-columns: 1fr;
  }

  .ranking-arcade-page .ranking-summary {
    min-height: 84px;
  }

  .ranking-arcade-page .ranking-tabs {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ranking-arcade-page .ranking-tabs .rank-category {
    width: 100%;
    min-height: 80px;
    flex: none;
    flex-basis: auto;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px 38px 12px 12px;
  }

  .ranking-arcade-page .ranking-tabs .rank-category span {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .ranking-arcade-page .ranking-tabs .rank-category strong {
    overflow-wrap: anywhere;
    font-size: clamp(18px, 5.6vw, 24px);
  }

  .ranking-arcade-page .ranking-tabs .rank-category small {
    overflow-wrap: anywhere;
  }

  .ranking-arcade-page .ranking-table .ranking-empty-row {
    padding: 0;
  }

  .ranking-arcade-page .ranking-table .ranking-empty-row td {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
  }

  .ranking-arcade-page .ranking-empty-card {
    display: grid;
    gap: 8px;
    min-height: 120px;
    place-items: center;
    padding: 22px 14px;
    border: 2px solid rgba(120, 255, 89, 0.26);
    background:
      linear-gradient(rgba(104, 255, 78, 0.055) 1px, transparent 1px),
      rgba(1, 8, 2, 0.9);
    background-size: 100% 4px, auto;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.72);
    text-align: center;
  }
}

@media (max-width: 390px) {
  .ranking-arcade-page .ranking-tabs .rank-category {
    min-height: 76px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
}

/* Juggle mobile compact pass: keep result readable without pushing START into browser UI. */
@media (max-width: 640px) {
  .juggle-simple-page .simple-page {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .juggle-simple-stage {
    grid-template-columns: minmax(0, 1fr) minmax(98px, 29vw);
    gap: 7px;
  }

  .juggle-simple-page .simple-status-card {
    min-height: 76px;
    padding: 10px 14px;
  }

  .juggle-simple-page .simple-status-card strong {
    font-size: 17px;
  }

  .juggle-simple-page .simple-status-card p {
    font-size: 12px;
    line-height: 1.35;
  }

  .juggle-simple-page .simple-status-card::after {
    top: 10px;
    right: 11px;
    height: calc(100% - 20px);
  }

  .juggle-simple-page .simple-rule-row span {
    min-height: 58px;
    padding: 7px 8px;
  }

  .juggle-simple-page .simple-rule-row b {
    font-size: 10px;
  }

  .juggle-simple-page .simple-rule-row strong {
    font-size: 12px;
    line-height: 1.25;
  }

  .juggle-simple-page .simple-result-card {
    min-height: 96px;
    padding: 8px 8px 8px;
    gap: 1px;
  }

  .juggle-simple-page .simple-result-card::before {
    width: min(200px, 82%);
    margin-bottom: 1px;
    padding: 2px 7px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .juggle-simple-page .simple-result-card strong {
    font-size: clamp(28px, 8.6vw, 40px);
    line-height: 0.98;
  }

  .juggle-simple-page .simple-result-card b {
    font-size: clamp(18px, 5.4vw, 25px);
    line-height: 1;
  }

  .juggle-simple-page .simple-result-card small {
    font-size: 12px;
  }

  .juggle-simple-page .simple-result-card em {
    margin-top: 3px;
    padding: 3px 9px;
    font-size: 11px;
  }

  .juggle-simple-page .simple-start-area {
    align-self: start;
    padding-top: 0;
    transform: translateY(-8px);
  }

  .juggle-simple-page .simple-start-button {
    width: min(28vw, 108px);
    transform: translateY(-4px);
  }

  .juggle-simple-page .simple-start-button span {
    font-size: clamp(19px, 5.7vw, 26px);
  }

  .juggle-simple-page .simple-start-button small {
    margin-top: -21px;
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .juggle-simple-page .juggle-simple-stage {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 27vw);
  }

  .juggle-simple-page .simple-status-card {
    min-height: 70px;
  }

  .juggle-simple-page .simple-rule-row span {
    min-height: 54px;
    padding: 6px 7px;
  }

  .juggle-simple-page .simple-rule-row strong {
    font-size: 11px;
  }

  .juggle-simple-page .simple-result-card {
    min-height: 92px;
  }

  .juggle-simple-page .simple-result-card strong {
    font-size: clamp(26px, 8.2vw, 36px);
  }

  .juggle-simple-page .simple-start-button {
    width: min(27vw, 100px);
  }
}

/* Juggle no-overlap final pass: target the image-based START row directly. */
@media (max-width: 640px) {
  .juggle-simple-page .juggle-simple-stage {
    padding-bottom: calc(170px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .pixel-core-panel {
    margin-top: 1px;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 148px;
    padding: 7px 10px 6px;
  }

  .juggle-simple-page .simple-result-card .pixel-display-heading {
    margin-bottom: 2px;
    font-size: clamp(14px, 4vw, 18px);
  }

  .juggle-simple-page .simple-result-card strong {
    min-height: 27px;
    font-size: clamp(28px, 8vw, 38px);
  }

  .juggle-simple-page .simple-result-card b {
    font-size: clamp(20px, 5.8vw, 28px);
  }

  .juggle-simple-page .simple-result-card small {
    font-size: clamp(12px, 3.8vw, 16px);
  }

  .juggle-simple-page .simple-result-card em {
    min-height: 24px;
    padding: 3px 8px;
    font-size: clamp(11px, 3.3vw, 14px);
  }

  .juggle-simple-page .pixel-action-row {
    margin-top: -12px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 76px;
    padding: 0 22px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-button {
    width: min(78%, 268px);
    min-height: 74px;
    transform: translateY(-8px);
  }

  .juggle-simple-page .pixel-action-row .simple-start-button span {
    top: 34%;
    font-size: clamp(25px, 7.3vw, 34px);
  }

  .juggle-simple-page .pixel-action-row .simple-start-button small {
    bottom: 14%;
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 140px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 70px;
    padding-inline: 28px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-button {
    width: min(76%, 250px);
    min-height: 68px;
  }
}

/* Juggle balance pass: reduce stacked height and stabilize mobile spacing. */
.juggle-simple-page .simple-page {
  padding-top: 14px;
}

.juggle-simple-page .pixel-arcade-screen {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  box-sizing: border-box;
  max-width: calc(100vw - 18px);
}

.juggle-simple-page .pixel-arcade-tabs {
  margin-bottom: 2px;
}

.juggle-simple-page .simple-rank-link {
  margin-top: 0;
}

.juggle-simple-page .simple-sub-actions,
.juggle-simple-page .simple-log,
.juggle-simple-page .simple-ad {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .juggle-simple-page .header-inner {
    padding: 11px 14px 9px;
    gap: 7px;
  }

  .juggle-simple-page .brand-name {
    font-size: clamp(28px, 8.4vw, 42px);
  }

  .juggle-simple-page .brand-sub {
    font-size: clamp(14px, 4.2vw, 20px);
  }

  .juggle-simple-page .nav a {
    min-height: 36px;
    font-size: 13px;
  }

  .juggle-simple-page .simple-page {
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
    padding: 9px 9px calc(170px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .juggle-simple-page .juggle-simple-stage {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 360px);
    max-width: calc(100svw - 18px);
    margin-inline: auto;
    overflow: hidden;
    gap: 4px;
    padding: 5px 7px calc(158px + env(safe-area-inset-bottom));
  }

  .juggle-simple-page .pixel-arcade-marquee {
    min-height: 78px;
    padding: 8px 12px 5px;
  }

  .juggle-simple-page .pixel-arcade-marquee > div {
    transform: translateY(-2px) scale(0.82);
  }

  .juggle-simple-page .pixel-arcade-tabs {
    min-height: 30px;
  }

  .juggle-simple-page .pixel-arcade-tabs a {
    min-height: 28px;
    font-size: 12px;
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 86px;
    gap: 4px;
    padding: 4px 5px;
  }

  .juggle-simple-page .pixel-slot-machine,
  .juggle-simple-page .pixel-top-panel .simple-status-card {
    min-height: 76px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-state-grid {
    min-height: 74px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-state {
    min-height: 70px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-state .pixel-lamp {
    width: 24px;
    height: 24px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-state strong {
    font-size: clamp(12px, 3.55vw, 16px);
  }

  .juggle-simple-page .pixel-top-panel .pixel-state p {
    font-size: clamp(9px, 2.9vw, 12px);
    line-height: 1.35;
  }

  .juggle-simple-page .simple-rule-row {
    min-height: 40px;
  }

  .juggle-simple-page .simple-rule-row span {
    min-height: 38px;
    gap: 3px;
    padding: 4px 5px 4px 10px;
  }

  .juggle-simple-page .simple-rule-row b {
    font-size: 9px;
  }

  .juggle-simple-page .simple-rule-row strong {
    font-size: clamp(10px, 2.9vw, 12px);
  }

  .juggle-simple-page .pixel-core-panel {
    margin-top: 3px;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 132px;
    padding: 7px 10px 6px;
  }

  .juggle-simple-page .simple-result-card .pixel-display-heading {
    margin-bottom: 2px;
    font-size: clamp(13px, 3.8vw, 17px);
  }

  .juggle-simple-page .simple-result-card strong {
    min-height: 26px;
    font-size: clamp(27px, 7.8vw, 36px);
  }

  .juggle-simple-page .simple-result-card b {
    font-size: clamp(20px, 5.6vw, 27px);
  }

  .juggle-simple-page .simple-result-card small {
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .juggle-simple-page .simple-result-card em {
    min-height: 22px;
    margin-top: 2px;
    padding: 3px 8px;
    font-size: clamp(11px, 3.1vw, 13px);
  }

  .juggle-simple-page .pixel-action-row {
    margin-top: 8px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 72px;
    padding: 0 30px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-button {
    width: min(74%, 244px);
    min-height: 66px;
    transform: translateY(-1px);
  }

  .juggle-simple-page .pixel-action-row .simple-start-button span {
    top: 34%;
    font-size: clamp(24px, 6.8vw, 31px);
  }

  .juggle-simple-page .pixel-action-row .simple-start-button small {
    bottom: 14%;
    font-size: 9px;
  }

  .juggle-simple-page .simple-rank-link {
    min-height: 46px;
    font-size: clamp(15px, 4.3vw, 19px);
  }

  .juggle-simple-page .simple-sub-actions {
    gap: 5px;
  }

  .juggle-simple-page .simple-sub-actions .button {
    min-height: 38px;
    font-size: 12px;
  }

  .juggle-simple-page .simple-log {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .juggle-simple-page .simple-ad {
    min-height: 52px;
  }
}

@media (max-width: 390px) {
  .juggle-simple-page .pixel-arcade-marquee {
    min-height: 72px;
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 82px;
  }

  .juggle-simple-page .pixel-slot-machine,
  .juggle-simple-page .pixel-top-panel .simple-status-card {
    min-height: 72px;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card {
    min-height: 126px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-area {
    min-height: 68px;
    padding-inline: 34px;
  }

  .juggle-simple-page .pixel-action-row .simple-start-button {
    width: min(72%, 232px);
    min-height: 62px;
  }
}

/* Juggle final micro spacing: center result text and calm lower controls. */
@media (max-width: 640px) {
  .juggle-simple-page .pixel-top-panel .pixel-state-grid {
    align-items: center;
  }

  .juggle-simple-page .pixel-top-panel .pixel-state {
    align-content: center;
    gap: 5px;
  }

  .juggle-simple-page .pixel-top-panel .pixel-state p {
    max-width: 8em;
    margin-inline: auto;
    text-align: center;
  }

  .juggle-simple-page .pixel-core-panel .simple-result-card {
    align-content: center;
    gap: 3px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .juggle-simple-page .simple-result-card .pixel-display-heading {
    line-height: 1.1;
  }

  .juggle-simple-page .simple-result-card strong,
  .juggle-simple-page .simple-result-card b,
  .juggle-simple-page .simple-result-card small,
  .juggle-simple-page .simple-result-card em {
    transform: translateY(-1px);
  }

  .juggle-simple-page .pixel-action-row {
    margin-top: 10px;
  }

  .juggle-simple-page .simple-rank-link {
    margin-top: 5px;
    margin-bottom: 4px;
  }

  .juggle-simple-page .simple-sub-actions {
    margin-top: 4px;
  }

  .juggle-simple-page .simple-sub-actions .button {
    align-content: center;
    padding-block: 7px;
  }

  .juggle-simple-page .simple-log {
    margin-top: 5px;
  }
}

/* Whole-site finish pass: mobile containment, bottom clearance, and readable cards. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  .page,
  .simple-page {
    width: 100%;
    max-width: 100%;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: calc(144px + env(safe-area-inset-bottom));
  }

  body:not(.juggle-simple-page) .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(7, 9, 8, 0.96);
    backdrop-filter: blur(14px);
  }

  body:not(.juggle-simple-page) .header-inner {
    gap: 12px;
    padding: 13px 12px;
  }

  body:not(.juggle-simple-page) .brand-name {
    font-size: clamp(25px, 8vw, 36px);
    line-height: 1;
  }

  body:not(.juggle-simple-page) .brand-sub {
    font-size: 12px;
  }

  body:not(.juggle-simple-page) .nav {
    display: flex;
    gap: 14px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body:not(.juggle-simple-page) .nav::-webkit-scrollbar {
    display: none;
  }

  body:not(.juggle-simple-page) .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .article-card,
  .side-card,
  .hero,
  .game-lobby {
    max-width: 100%;
  }

  .article-card {
    padding: 17px 14px;
  }

  .article-card h1 {
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.16;
  }

  .article-card h2 {
    font-size: clamp(21px, 6.4vw, 28px);
    line-height: 1.22;
  }

  .article-card p,
  .article-card li {
    line-height: 1.78;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ranking-table {
    min-width: 620px;
  }

  .home-game-page {
    padding-top: 12px;
  }

  .home-page .game-lobby {
    gap: 14px;
    padding: 16px 12px;
  }

  .home-page .lobby-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-page .lobby-rank-button {
    width: 100%;
    min-height: 48px;
  }

  .home-page .mode-select {
    gap: 10px;
  }

  .home-page .mode-card {
    min-height: 84px;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 13px 12px;
  }

  .home-page .mode-card .mode-icon {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .home-page .mode-card strong {
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.14;
  }

  .home-page .mode-card small,
  .home-page .mode-card .mode-rank {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-page .lobby-footer-panels {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ranking-arcade-page .page {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .ranking-arcade-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ranking-arcade-page .ranking-play-card,
  .ranking-arcade-page .rank-category {
    align-items: center;
  }

  .ranking-arcade-page .ranking-play-card::after,
  .ranking-arcade-page .rank-category::after {
    right: 12px;
  }

  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-arcade-page .section-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .ranking-arcade-page .section-actions > * {
    min-width: 0;
  }

  .ranking-arcade-page .table-wrap {
    border-radius: 0;
    overflow-x: auto;
  }

  .challenge-arcade-page .simple-page {
    max-width: 430px;
    margin-inline: auto;
    padding-top: 10px;
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
    width: min(100%, 410px);
    max-width: calc(100svw - 20px);
    margin-inline: auto;
    gap: 9px;
    padding: 9px;
  }

  .challenge-arcade-page .simple-title-line {
    min-height: 74px;
    margin-top: 0;
    padding: 10px 16px;
  }

  .challenge-arcade-page .simple-status-card {
    padding: 12px 13px;
  }

  .challenge-arcade-page .simple-status-card strong {
    font-size: 18px;
  }

  .challenge-arcade-page .simple-status-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .challenge-arcade-page .simple-rule-row span {
    min-height: 54px;
    padding: 8px 7px;
  }

  .challenge-arcade-page .simple-rule-row b {
    font-size: 11px;
  }

  .challenge-arcade-page .simple-result-card {
    min-height: 174px;
    padding: 15px 12px;
  }

  .challenge-arcade-page .simple-result-card strong {
    font-size: clamp(36px, 12vw, 58px);
  }

  .challenge-arcade-page .simple-result-card b {
    font-size: clamp(24px, 7vw, 34px);
  }

  .challenge-arcade-page .simple-start-area {
    min-height: 100px;
    padding: 8px 14px;
  }

  .challenge-arcade-page .simple-start-button {
    width: min(100%, 292px);
    min-height: 92px;
  }

  .challenge-arcade-page .simple-start-button span {
    font-size: clamp(30px, 8vw, 42px);
  }

  .challenge-arcade-page .simple-start-button small {
    font-size: 12px;
  }

  .challenge-arcade-page .simple-rank-link {
    min-height: 58px;
    padding-inline: 48px;
    font-size: clamp(17px, 4.8vw, 21px);
  }

  .challenge-arcade-page .simple-sub-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .challenge-arcade-page .simple-sub-actions > :first-child {
    grid-column: auto;
  }

  .challenge-arcade-page .record-name-field input {
    min-height: 50px;
  }

  .challenge-arcade-page .simple-info-section {
    width: min(100%, 410px);
    margin: 14px auto 0;
    padding: 16px 13px;
  }

  .challenge-arcade-page .choice-stage {
    gap: 8px;
    padding: 8px;
  }

  .challenge-arcade-page .choice-button {
    min-height: 66px;
    font-size: 24px;
  }

  .ad-box,
  .ad-box-footer,
  .simple-ad {
    width: 100%;
    max-width: 100%;
    min-height: 54px;
  }

  .site-footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .site-toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 390px) {
  .page,
  .simple-page {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }

  .home-page .mode-card {
    min-height: 78px;
    padding: 12px 10px;
  }

  .home-page .mode-card strong {
    font-size: clamp(18px, 5.8vw, 23px);
  }

  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: 1fr;
  }

  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
    max-width: calc(100svw - 16px);
    padding: 8px;
  }

  .challenge-arcade-page .simple-title-line {
    min-height: 66px;
  }

  .challenge-arcade-page .simple-result-card {
    min-height: 162px;
  }

  .challenge-arcade-page .simple-start-area {
    min-height: 92px;
  }

  .challenge-arcade-page .simple-start-button {
    min-height: 84px;
  }
}

/* Final mobile width lock: prevent centered 430px layouts from clipping on narrow screens. */
@media (max-width: 760px) {
  .home-page .page,
  .ranking-arcade-page .page,
  .juggle-simple-page .simple-page,
  .challenge-arcade-page .simple-page {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .juggle-simple-page .juggle-simple-stage,
  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen),
  .juggle-simple-page .pixel-arcade-screen {
    width: 100%;
    max-width: 100%;
  }

  .home-page .game-lobby,
  .ranking-arcade-page .hero,
  .ranking-arcade-page .article-card,
  .challenge-arcade-page .simple-info-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .home-page .lobby-top p,
  .ranking-arcade-page .ranking-hero .lead {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .home-page .lobby-top h1,
  .ranking-arcade-page .ranking-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ranking-arcade-page .ranking-hero h1 {
    font-size: clamp(25px, 7.2vw, 31px);
  }

  .juggle-simple-page .simple-start-button span,
  .challenge-arcade-page .simple-start-button span {
    color: transparent !important;
    text-shadow: none !important;
  }
}

/* Home arcade lobby: pixel-art TOP screen. */
.home-page {
  --home-pixel-green: #76ff4e;
  --home-pixel-green-dark: #103911;
  --home-pixel-gold: #ffd64a;
  --home-pixel-cyan: #49e9ff;
  --home-pixel-purple: #c06cff;
  background:
    linear-gradient(rgba(100, 255, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -80px, rgba(100, 255, 74, 0.2), transparent 310px),
    #010501;
  background-size: 100% 4px, 28px 28px, auto, auto;
  color: #f6ffe8;
}

.home-page .site-header {
  border-bottom: 2px solid rgba(118, 255, 78, 0.28);
  background:
    linear-gradient(rgba(100, 255, 74, 0.06) 1px, transparent 1px),
    rgba(0, 7, 2, 0.96);
  background-size: 100% 4px, auto;
}

.home-page .brand-name {
  color: var(--home-pixel-green);
  letter-spacing: 3px;
  text-shadow:
    0 3px 0 #092409,
    0 0 16px rgba(118, 255, 78, 0.44);
}

.home-page .nav a {
  color: rgba(246, 255, 232, 0.78);
  font-weight: 900;
}

.home-page .nav a:hover {
  color: var(--home-pixel-green);
  text-decoration: none;
}

.home-page .home-game-page {
  max-width: 980px;
}

.home-page .game-lobby {
  max-width: 780px;
  border: 3px solid rgba(118, 255, 78, 0.48);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 6%, rgba(118, 255, 78, 0.13), transparent 42%),
    rgba(1, 8, 2, 0.94);
  background-size: 100% 4px, 24px 24px, auto, auto;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.75),
    inset 0 0 34px rgba(118, 255, 78, 0.07),
    0 0 34px rgba(118, 255, 78, 0.12);
}

.home-page .game-lobby::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 214, 74, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 5px);
  opacity: 0.45;
}

.home-page .game-lobby::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(118, 255, 78, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.62),
    inset 0 0 28px rgba(118, 255, 78, 0.08);
}

.home-page .lobby-top {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border: 2px solid rgba(118, 255, 78, 0.42);
  border-radius: 0;
  background:
    linear-gradient(rgba(118, 255, 78, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 214, 74, 0.12), transparent 46%),
    rgba(0, 8, 2, 0.82);
  background-size: 100% 4px, auto, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.68),
    0 0 20px rgba(118, 255, 78, 0.08);
  text-align: center;
}

.home-page .lobby-top .kicker {
  margin: 0;
  color: var(--home-pixel-green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(34px, 8vw, 68px);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-shadow:
    0 4px 0 #0b2b08,
    0 0 16px rgba(118, 255, 78, 0.62),
    0 0 28px rgba(255, 214, 74, 0.22);
}

.home-page .lobby-top h1 {
  margin: 2px 0 0;
  color: #eaffdc;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: clamp(20px, 4.8vw, 30px);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow: 0 2px 0 #0a2408, 0 0 12px rgba(118, 255, 78, 0.34);
}

.home-page .lobby-top p {
  max-width: 520px;
  margin: 4px auto 0;
  color: rgba(246, 255, 232, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.home-page .lobby-rank-button {
  min-height: 44px;
  border: 2px solid rgba(255, 214, 74, 0.58);
  border-radius: 0;
  color: var(--home-pixel-gold);
  background:
    linear-gradient(rgba(255, 214, 74, 0.07) 1px, transparent 1px),
    rgba(16, 10, 0, 0.8);
  background-size: 100% 4px, auto;
}

.home-page .mode-select {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-page .mode-card {
  position: relative;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(34px, auto);
  gap: 7px 11px;
  min-height: 148px;
  padding: 12px 11px 11px;
  border: 2px solid rgba(118, 255, 78, 0.34);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(118, 255, 78, 0.12), transparent 120px),
    rgba(0, 7, 2, 0.88);
  background-size: 100% 4px, auto, auto;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(118, 255, 78, 0.08);
  overflow: hidden;
}

.home-page .mode-card::after {
  content: "›";
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: currentColor;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
}

.home-page .mode-card:hover {
  transform: translateY(-1px);
  border-color: currentColor;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 22px color-mix(in srgb, currentColor, transparent 72%);
}

.home-page .mode-card .mode-icon {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  border: 2px solid currentColor;
  border-radius: 0;
  color: currentColor;
  background:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    rgba(0, 0, 0, 0.38);
  background-size: 100% 4px, auto;
  font-size: 16px;
  text-shadow: 0 0 12px currentColor;
}

.home-page .mode-card strong {
  grid-column: 2;
  align-self: end;
  color: currentColor;
  font-size: clamp(19px, 3.2vw, 25px);
  line-height: 1.12;
  text-shadow: 0 0 10px currentColor;
}

.home-page .mode-card small {
  grid-column: 2;
  align-self: start;
  color: rgba(246, 255, 232, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

.home-page .mode-card b {
  display: none;
}

.home-page .mode-card .mode-rank {
  grid-column: 1 / -1;
  margin: 2px 20px 0 0;
  padding: 6px 8px;
  border: 1px solid rgba(118, 255, 78, 0.22);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.045) 1px, transparent 1px),
    rgba(0, 0, 0, 0.36);
  background-size: 100% 4px, auto;
}

.home-page .mode-card .mode-rank span {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 6px;
}

.home-page .mode-card .mode-rank b {
  display: block;
}

.home-page .mode-juggle {
  color: var(--home-pixel-purple);
  border-color: rgba(192, 108, 255, 0.52);
}

.home-page .mode-choice {
  color: #78a8ff;
  border-color: rgba(120, 168, 255, 0.52);
}

.home-page .mode-319 {
  color: #ff7364;
  border-color: rgba(255, 115, 100, 0.52);
}

.home-page .mode-8192 {
  color: var(--home-pixel-gold);
  border-color: rgba(255, 214, 74, 0.58);
}

.home-page .lobby-footer-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-page .mission-card {
  border: 2px solid rgba(118, 255, 78, 0.28);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.052) 1px, transparent 1px),
    rgba(0, 7, 2, 0.84);
  background-size: 100% 4px, auto;
}

.home-page .mission-card strong {
  color: #fffde8;
}

.home-page .mission-card em {
  color: var(--home-pixel-gold);
}

.home-page .lobby-ad,
.home-page .ad-box {
  border: 2px solid rgba(118, 255, 78, 0.22);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.045) 1px, transparent 1px),
    rgba(0, 7, 2, 0.82);
  background-size: 100% 4px, auto;
}

.home-page .article-card,
.home-page .side-card {
  border: 2px solid rgba(118, 255, 78, 0.22);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.045) 1px, transparent 1px),
    rgba(1, 8, 2, 0.86);
  background-size: 100% 4px, auto;
}

@media (max-width: 760px) {
  .home-page .home-game-page {
    padding-top: 8px;
  }

  .home-page .game-lobby {
    gap: 11px;
    padding: 10px;
    border-width: 2px;
  }

  .home-page .game-lobby::after {
    inset: 6px;
  }

  .home-page .lobby-top {
    padding: 14px 10px 12px;
  }

  .home-page .lobby-top .kicker {
    font-size: clamp(38px, 13vw, 56px);
  }

  .home-page .lobby-top h1 {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .home-page .lobby-top p {
    display: block;
    font-size: 11px;
    line-height: 1.55;
  }

  .home-page .lobby-rank-button {
    width: 100%;
    min-height: 38px;
  }

  .home-page .mode-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-page .mode-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 132px;
    gap: 6px 8px;
    padding: 10px 9px 9px;
  }

  .home-page .mode-card .mode-icon {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  .home-page .mode-card strong {
    font-size: clamp(17px, 5.2vw, 21px);
  }

  .home-page .mode-card small {
    font-size: 11px;
  }

  .home-page .mode-card .mode-rank {
    margin-right: 18px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .home-page .mode-card .mode-rank span {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .home-page .mode-card::after {
    right: 8px;
    bottom: 7px;
    font-size: 24px;
  }

  .home-page .lobby-footer-panels {
    grid-template-columns: 1fr;
  }

  .home-page .mission-card {
    min-height: 64px;
    padding: 11px 12px;
  }

}

@media (max-width: 390px) {
  .home-page .game-lobby {
    padding: 8px;
  }

  .home-page .lobby-top .kicker {
    font-size: clamp(34px, 12vw, 48px);
    letter-spacing: 0.06em;
  }

  .home-page .mode-card {
    min-height: 124px;
    padding: 9px 8px;
  }

  .home-page .mode-card strong {
    font-size: clamp(16px, 5vw, 19px);
  }
}

/* Home pixel lobby width guard. */
@media (max-width: 760px) {
  .home-page {
    overflow-x: hidden;
  }

  .home-page .page,
  .home-page .home-game-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-page .game-lobby {
    width: min(calc(100vw - 28px), 370px);
    max-width: min(calc(100vw - 28px), 370px);
    margin-left: 10px;
    margin-right: auto;
    overflow: hidden;
  }

  .home-page .lobby-top .kicker {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 44px);
    letter-spacing: 0.045em;
    white-space: nowrap;
  }

  .home-page .mode-select,
  .home-page .mode-card {
    min-width: 0;
  }

  .home-page .mode-select {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .mode-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 5px 6px;
    padding: 9px 7px 8px;
  }

  .home-page .mode-card .mode-icon {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .home-page .mode-card strong,
  .home-page .mode-card small,
  .home-page .mode-card .mode-rank {
    min-width: 0;
  }

  .home-page .mode-card strong,
  .home-page .mode-card small {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-page .mode-card strong {
    font-size: clamp(14px, 4.3vw, 18px);
  }

  .home-page .mode-card small {
    font-size: 10px;
  }

  .home-page .mode-card .mode-rank {
    margin-right: 12px;
    padding: 4px 5px;
  }

  .home-page .mode-card .mode-rank span {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px;
  }

}

@media (max-width: 390px) {
  .home-page .game-lobby {
    width: min(calc(100vw - 18px), 372px);
    max-width: min(calc(100vw - 18px), 372px);
  }

  .home-page .lobby-top .kicker {
    font-size: clamp(30px, 10vw, 38px);
  }

  .home-page .mode-card {
    min-height: 118px;
  }

  .home-page .mode-card .mode-rank span {
    display: block;
  }

  .home-page .mode-card .mode-rank span + span {
    margin-top: 2px;
  }
}

/* Final layout pass: stable home lobby, unified battle pages, compact ranking. */
.home-page .home-game-page {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.home-page .game-lobby {
  width: min(100%, 780px);
  margin-inline: auto;
}

.home-page .mode-card {
  isolation: isolate;
}

.home-page .mode-card strong,
.home-page .mode-card small,
.home-page .mode-card .mode-rank {
  overflow-wrap: anywhere;
}

.challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
  position: relative;
  width: min(100%, 440px);
  max-width: calc(100vw - 18px);
  margin-inline: auto;
  padding: 12px;
  border: 2px solid rgba(100, 255, 74, 0.46);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 74, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 8%, rgba(100, 255, 74, 0.12), transparent 45%),
    rgba(1, 7, 2, 0.96);
  background-size: 100% 4px, 24px 24px, auto, auto;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(100, 255, 74, 0.14);
}

.challenge-arcade-page .simple-title-line {
  min-height: 56px;
  margin: 0;
  padding: 10px 8px;
  border: 2px solid rgba(100, 255, 74, 0.38);
  border-radius: 0;
  background:
    linear-gradient(rgba(100, 255, 74, 0.06) 1px, transparent 1px),
    rgba(0, 10, 2, 0.84);
  background-size: 100% 4px, auto;
}

.challenge-arcade-page .simple-title-line h1 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 7vw, 34px);
  letter-spacing: 0.04em;
  color: var(--pixel-green);
  text-shadow: 0 3px 0 #082308, 0 0 16px rgba(100, 255, 74, 0.55);
}

.challenge-arcade-page .simple-status-card {
  min-height: 58px;
  padding: 10px 12px;
}

.challenge-arcade-page .simple-rule-row {
  min-height: 68px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenge-arcade-page .simple-rule-row span {
  min-width: 0;
  padding: 10px 8px;
}

.challenge-arcade-page .simple-rule-row strong {
  overflow-wrap: anywhere;
}

.challenge-arcade-page .simple-result-card {
  min-height: 190px;
  padding: 16px 12px;
  border-color: rgba(255, 217, 74, 0.52);
}

.challenge-arcade-page .simple-result-card strong {
  font-size: clamp(32px, 12vw, 58px);
}

.challenge-arcade-page .simple-result-card b {
  font-size: clamp(26px, 9vw, 42px);
}

.challenge-arcade-page .simple-result-card em {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.challenge-arcade-page .simple-start-area {
  margin: 8px 0 4px;
}

.challenge-arcade-page .simple-start-button {
  width: min(100%, 326px);
  min-height: 84px;
}

.challenge-arcade-page .simple-rank-link {
  min-height: 48px;
  margin-top: 8px;
}

.challenge-arcade-page .simple-sub-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.challenge-arcade-page .simple-sub-actions .button {
  min-height: 42px;
}

.challenge-arcade-page .simple-next-row {
  gap: 6px;
  margin-top: 8px;
}

.challenge-arcade-page .simple-next-row a {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.choice-simple-page .choice-stage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-simple-page .choice-button {
  min-height: 92px;
  font-size: clamp(26px, 9vw, 40px);
}

.ranking-arcade-page .ranking-hero,
.ranking-arcade-page .article-card {
  border-radius: 0;
}

.ranking-arcade-page .ranking-play-card,
.ranking-arcade-page .rank-category,
.ranking-arcade-page .record-summary-card {
  border-radius: 0;
}

@media (max-width: 760px) {
  .home-page .home-game-page {
    padding-inline: 8px;
  }

  .home-page .game-lobby {
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
    padding: 9px;
  }

  .home-page .lobby-top {
    padding-inline: 8px;
  }

  .home-page .lobby-top .kicker {
    font-size: clamp(31px, 10.5vw, 42px);
  }

  .home-page .mode-select {
    gap: 7px;
  }

  .home-page .mode-card {
    min-height: 116px;
    padding: 8px 7px;
  }

  .home-page .mode-card .mode-rank {
    min-height: 38px;
  }

  .challenge-arcade-page .simple-page {
    padding-inline: 8px;
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
    gap: 9px;
    padding: 9px;
  }

  .challenge-arcade-page .simple-result-card {
    min-height: 168px;
  }

  .challenge-arcade-page .simple-start-button {
    min-height: 76px;
  }

  .challenge-arcade-page .simple-sub-actions {
    grid-template-columns: 1fr 1fr;
  }

  .challenge-arcade-page .record-name-field {
    margin-top: 8px;
  }

  .ranking-arcade-page .page {
    padding-inline: 10px;
  }

  .ranking-arcade-page .ranking-play-grid,
  .ranking-arcade-page .rank-category-grid {
    gap: 8px;
  }

  .ranking-arcade-page .ranking-play-card,
  .ranking-arcade-page .rank-category {
    min-height: 74px;
    padding: 12px;
  }

  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .home-page .game-lobby {
    max-width: calc(100vw - 18px);
  }

  .home-page .mode-card strong {
    font-size: clamp(13px, 4.6vw, 17px);
  }

  .challenge-arcade-page .simple-rule-row b {
    font-size: 10px;
  }

  .challenge-arcade-page .simple-rule-row strong {
    font-size: 13px;
  }

  .challenge-arcade-page .simple-sub-actions .button {
    font-size: 12px;
  }
}

/* Mobile hard lock: final guard against old wide desktop rules. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 760px) {
  .home-page .home-game-page,
  .home-page .game-lobby,
  .ranking-arcade-page .page,
  .juggle-simple-page .simple-page,
  .challenge-arcade-page .simple-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .home-page .home-game-page {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .home-page .game-lobby {
    padding-left: 8px !important;
    padding-right: 8px !important;
    overflow: hidden;
  }

  .home-page .mode-select,
  .home-page .quick-grid,
  .home-page .priority-list {
    grid-template-columns: 1fr !important;
  }

  .home-page .mode-card,
  .home-page .mission-card,
  .home-page .quick-card,
  .home-page .priority-list a {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .juggle-simple-page .pixel-arcade-screen,
  .juggle-simple-page .juggle-simple-stage,
  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen),
  .challenge-arcade-page .simple-info-section,
  .ranking-arcade-page .ranking-hero,
  .ranking-arcade-page .article-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .juggle-simple-page .pixel-arcade-screen {
    overflow: hidden;
  }

  .juggle-simple-page .pixel-arcade-marquee strong {
    font-size: clamp(26px, 12vw, 44px) !important;
  }

  .juggle-simple-page .pixel-arcade-marquee small {
    font-size: clamp(16px, 5.6vw, 24px) !important;
  }

  .juggle-simple-page .simple-sub-actions {
    grid-template-columns: 1fr !important;
  }

  .juggle-simple-page .simple-sub-actions .button {
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }

  .juggle-simple-page .pixel-top-panel,
  .juggle-simple-page .simple-rule-row,
  .challenge-arcade-page .simple-rule-row,
  .ranking-arcade-page .record-summary-grid {
    width: 100%;
    max-width: 100%;
  }

  .ranking-arcade-page .ranking-hero h1,
  .ranking-arcade-page .article-card h1,
  .home-page .lobby-top h1,
  .home-page .lobby-top p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ranking-arcade-page .ranking-hero h1,
  .ranking-arcade-page .article-card h1 {
    font-size: clamp(24px, 6.7vw, 30px) !important;
    line-height: 1.22;
  }

  .ranking-arcade-page .ranking-hero .lead,
  .ranking-arcade-page .article-card p,
  .ranking-arcade-page .section-lead {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .juggle-simple-page .pixel-arcade-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .juggle-simple-page .pixel-arcade-tabs a {
    min-width: 0;
    padding-inline: 4px !important;
    overflow: hidden;
    font-size: 11px !important;
  }
}

@media (max-width: 390px) {
  .home-page .mode-card {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
  }

  .juggle-simple-page .pixel-top-panel {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .juggle-simple-page .pixel-slot-machine {
    transform: scale(0.92);
    transform-origin: left center;
  }
}

/* Arcade design system v94: polished lobby, battle cabinets, and records. */
:where(a, button, input, select):focus-visible {
  outline: 3px solid #fff4a8;
  outline-offset: 3px;
}

.home-page .game-lobby {
  gap: 14px;
  padding: 14px;
  border-color: rgba(125, 255, 90, 0.66);
  box-shadow:
    inset 0 0 0 3px #001800,
    inset 0 0 0 5px rgba(125, 255, 90, 0.14),
    inset 0 0 42px rgba(125, 255, 90, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.58),
    0 0 30px rgba(125, 255, 90, 0.12);
}

.home-page .lobby-top {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  align-content: center;
  border-color: rgba(255, 216, 74, 0.58);
}

.home-page .lobby-top::before,
.home-page .lobby-top::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 8px;
  border-block: 4px solid #76ff4e;
  background: repeating-linear-gradient(180deg, #76ff4e 0 6px, transparent 6px 12px);
  opacity: 0.75;
}

.home-page .lobby-top::before { left: 14px; }
.home-page .lobby-top::after { right: 14px; }

.home-page .lobby-top .kicker {
  color: #a4ff62;
  text-shadow:
    3px 0 0 #2d751e,
    0 4px 0 #092b0b,
    0 0 20px rgba(125, 255, 90, 0.7);
}

.home-page .lobby-rank-button {
  position: relative;
  z-index: 1;
  width: min(100%, 310px);
  letter-spacing: 0.08em;
  box-shadow: inset 0 -4px 0 rgba(255, 216, 74, 0.12);
}

.home-page .mode-card {
  --mode-accent: #7dff5b;
  color: var(--mode-accent);
  border-color: color-mix(in srgb, var(--mode-accent), transparent 48%);
  box-shadow:
    inset 5px 0 0 color-mix(in srgb, var(--mode-accent), transparent 18%),
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 18px color-mix(in srgb, var(--mode-accent), transparent 88%);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.home-page .mode-card::before {
  content: "PLAY";
  position: absolute;
  top: 7px;
  right: 9px;
  color: color-mix(in srgb, var(--mode-accent), transparent 52%);
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
}

.home-page .mode-card:hover,
.home-page .mode-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--mode-accent);
  box-shadow:
    inset 5px 0 0 var(--mode-accent),
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 0 24px color-mix(in srgb, var(--mode-accent), transparent 70%);
}

.home-page .mode-card .mode-icon {
  color: var(--mode-accent);
  border-color: var(--mode-accent);
  box-shadow:
    inset 0 0 14px color-mix(in srgb, var(--mode-accent), transparent 86%),
    0 0 12px color-mix(in srgb, var(--mode-accent), transparent 80%);
}

.home-page .mode-card strong {
  color: #fffdea;
  text-shadow: 0 2px 0 #000, 0 0 10px color-mix(in srgb, var(--mode-accent), transparent 70%);
}

.home-page .mode-card .mode-rank {
  border-color: color-mix(in srgb, var(--mode-accent), transparent 70%);
  color: color-mix(in srgb, var(--mode-accent), #ffffff 22%);
}

.home-page .mode-juggle { --mode-accent: #83ff58; }
.home-page .mode-choice { --mode-accent: #55c7ff; }
.home-page .mode-ghoul { --mode-accent: #ff5a88; }
.home-page .mode-319 { --mode-accent: #ff6a5a; }
.home-page .mode-8192 { --mode-accent: #ffd64a; }
.home-page .mode-hamari { --mode-accent: #ff9f43; }

.home-page .mission-card {
  min-height: 72px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.72);
}

.home-page .mission-card:hover {
  border-color: #7dff5b;
  background-color: rgba(8, 31, 8, 0.92);
}

.challenge-arcade-page {
  --battle-accent: #7dff5b;
  --battle-accent-rgb: 125, 255, 91;
  --battle-secondary: #ffd84a;
  background:
    linear-gradient(rgba(var(--battle-accent-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--battle-accent-rgb), 0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(var(--battle-accent-rgb), 0.16), transparent 390px),
    #010401;
  background-size: 100% 4px, 24px 24px, auto, auto;
}

.battle-theme-choice {
  --battle-accent: #58c9ff;
  --battle-accent-rgb: 88, 201, 255;
  --battle-secondary: #a8e9ff;
}

.battle-theme-ghoul {
  --battle-accent: #ff5b8d;
  --battle-accent-rgb: 255, 91, 141;
  --battle-secondary: #f2a8ff;
}

.battle-theme-319 {
  --battle-accent: #ff6858;
  --battle-accent-rgb: 255, 104, 88;
  --battle-secondary: #ffe15b;
}

.battle-theme-8192 {
  --battle-accent: #ffd64a;
  --battle-accent-rgb: 255, 214, 74;
  --battle-secondary: #fff2a4;
}

.battle-theme-hamari {
  --battle-accent: #ff9f43;
  --battle-accent-rgb: 255, 159, 67;
  --battle-secondary: #ffe173;
}

.challenge-arcade-page .site-header {
  border-bottom-color: rgba(var(--battle-accent-rgb), 0.34);
}

.challenge-arcade-page .brand-name,
.challenge-arcade-page .nav a:hover {
  color: var(--battle-accent);
  text-shadow: 0 3px 0 #071507, 0 0 14px rgba(var(--battle-accent-rgb), 0.46);
}

.challenge-arcade-page .simple-page {
  width: min(100%, 720px);
  margin-inline: auto;
  padding-top: 18px;
}

.challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
  width: min(100%, 500px);
  padding: 14px;
  gap: 10px;
  border-color: rgba(var(--battle-accent-rgb), 0.62);
  background:
    linear-gradient(rgba(var(--battle-accent-rgb), 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--battle-accent-rgb), 0.032) 1px, transparent 1px),
    radial-gradient(circle at 50% 5%, rgba(var(--battle-accent-rgb), 0.13), transparent 44%),
    rgba(1, 6, 2, 0.97);
  background-size: 100% 4px, 22px 22px, auto, auto;
  box-shadow:
    inset 0 0 0 3px #000,
    inset 0 0 0 5px rgba(var(--battle-accent-rgb), 0.1),
    0 18px 48px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(var(--battle-accent-rgb), 0.12);
}

.challenge-arcade-page .simple-title-line {
  min-height: 66px;
  border-color: rgba(var(--battle-accent-rgb), 0.56);
  box-shadow: inset 0 0 0 2px #000, inset 0 -5px 0 rgba(var(--battle-accent-rgb), 0.08);
}

.challenge-arcade-page .simple-title-line h1 {
  color: var(--battle-accent);
  text-shadow: 0 3px 0 #111, 0 0 18px rgba(var(--battle-accent-rgb), 0.52);
}

.challenge-arcade-page .simple-status-card {
  border-color: rgba(var(--battle-accent-rgb), 0.42);
  background:
    linear-gradient(rgba(var(--battle-accent-rgb), 0.06) 1px, transparent 1px),
    rgba(0, 8, 2, 0.9);
  background-size: 100% 4px, auto;
  box-shadow: inset 0 0 0 2px #000;
}

.challenge-arcade-page .simple-status-card strong {
  color: var(--battle-accent);
}

.challenge-arcade-page .status-dot {
  background: var(--battle-accent);
  box-shadow: 0 0 16px rgba(var(--battle-accent-rgb), 0.82);
}

.challenge-arcade-page .simple-rule-row {
  border-color: rgba(var(--battle-accent-rgb), 0.44);
  background: rgba(0, 7, 2, 0.92);
  box-shadow: inset 0 0 0 2px #000;
}

.challenge-arcade-page .simple-rule-row span + span {
  border-left-color: rgba(var(--battle-accent-rgb), 0.22);
}

.challenge-arcade-page .simple-rule-row b {
  color: color-mix(in srgb, var(--battle-accent), #ffffff 16%);
}

.challenge-arcade-page .simple-result-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 3px solid rgba(var(--battle-accent-rgb), 0.52);
  background:
    radial-gradient(circle, rgba(var(--battle-accent-rgb), 0.12) 0 1px, transparent 1.5px) 0 0 / 8px 8px,
    radial-gradient(circle at 50% 50%, rgba(var(--battle-accent-rgb), 0.09), transparent 58%),
    #020502;
  box-shadow:
    inset 0 0 0 4px #000,
    inset 0 0 34px rgba(var(--battle-accent-rgb), 0.08),
    0 0 18px rgba(var(--battle-accent-rgb), 0.11);
}

.challenge-arcade-page .simple-result-card::before {
  content: "BATTLE RESULT";
  display: block;
  min-width: 170px;
  margin-bottom: 10px;
  padding: 4px 12px;
  border: 1px solid rgba(var(--battle-accent-rgb), 0.42);
  color: var(--battle-accent);
  font: 900 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-align: center;
}

.challenge-arcade-page .simple-result-card strong {
  color: var(--battle-secondary);
  text-shadow: 0 3px 0 #241700, 0 0 18px rgba(var(--battle-accent-rgb), 0.34);
}

.challenge-arcade-page .simple-result-card b {
  color: #f8fff2;
}

.challenge-arcade-page .simple-result-card em {
  color: color-mix(in srgb, var(--battle-accent), #ffffff 22%);
}

.challenge-arcade-page .simple-start-area {
  min-height: 112px;
  margin-top: 10px;
}

.challenge-arcade-page .simple-start-button {
  width: min(88%, 340px);
  min-height: 102px;
  transition: transform 100ms ease, filter 100ms ease;
}

.challenge-arcade-page .simple-start-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  filter: saturate(1.25) brightness(1.08);
}

.challenge-arcade-page .simple-start-button:active:not(:disabled) {
  transform: translateY(2px) scale(0.985);
}

.challenge-arcade-page .simple-rank-link,
.challenge-arcade-page .simple-sub-actions .button,
.challenge-arcade-page .simple-next-row,
.challenge-arcade-page .record-name-field input,
.challenge-arcade-page .simple-log {
  border-color: rgba(var(--battle-accent-rgb), 0.36);
}

.challenge-arcade-page .simple-rank-link:hover,
.challenge-arcade-page .simple-sub-actions .button:hover,
.challenge-arcade-page .simple-next-row a:hover {
  border-color: var(--battle-accent);
  color: #ffffff;
}

.choice-simple-page .choice-button {
  border-color: rgba(var(--battle-accent-rgb), 0.64);
  color: #effaff;
  background:
    linear-gradient(rgba(var(--battle-accent-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 70, 94, 0.96), rgba(2, 17, 28, 0.98));
  background-size: 100% 4px, auto;
  box-shadow: inset 0 -6px 0 rgba(var(--battle-accent-rgb), 0.14), 0 0 18px rgba(var(--battle-accent-rgb), 0.12);
}

.choice-simple-page .choice-button:hover:not(:disabled) {
  border-color: #d7f5ff;
  box-shadow: inset 0 -6px 0 rgba(var(--battle-accent-rgb), 0.2), 0 0 24px rgba(var(--battle-accent-rgb), 0.28);
}

.ranking-arcade-page .ranking-play-card,
.ranking-arcade-page .rank-category {
  --rank-tone: #78ff59;
  border-color: color-mix(in srgb, var(--rank-tone), transparent 58%);
  box-shadow:
    inset 5px 0 0 color-mix(in srgb, var(--rank-tone), transparent 22%),
    inset 0 0 0 2px #000;
}

.ranking-arcade-page .rank-tone-juggle { --rank-tone: #83ff58; }
.ranking-arcade-page .rank-tone-choice { --rank-tone: #58c9ff; }
.ranking-arcade-page .rank-tone-ghoul { --rank-tone: #ff5b8d; }
.ranking-arcade-page .rank-tone-319 { --rank-tone: #ff6858; }
.ranking-arcade-page .rank-tone-8192 { --rank-tone: #ffd64a; }
.ranking-arcade-page .rank-tone-hamari { --rank-tone: #ff9f43; }

.ranking-arcade-page .ranking-play-card span,
.ranking-arcade-page .rank-category span {
  color: var(--rank-tone);
  border-color: var(--rank-tone);
  font: 950 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-shadow: 0 0 10px color-mix(in srgb, var(--rank-tone), transparent 35%);
}

.ranking-arcade-page .ranking-play-card::after,
.ranking-arcade-page .rank-category::after {
  color: var(--rank-tone);
}

.ranking-arcade-page .ranking-play-card:hover,
.ranking-arcade-page .rank-category:hover,
.ranking-arcade-page .rank-category.active {
  border-color: var(--rank-tone);
  box-shadow:
    inset 5px 0 0 var(--rank-tone),
    inset 0 0 0 2px #000,
    0 0 20px color-mix(in srgb, var(--rank-tone), transparent 78%);
}

.ranking-arcade-page .record-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-arcade-page .record-summary-card {
  min-height: 92px;
  justify-content: center;
  border-top-color: rgba(255, 214, 74, 0.46);
}

@media (max-width: 760px) {
  .home-page .site-header,
  .challenge-arcade-page .site-header,
  .ranking-arcade-page .site-header {
    position: static;
  }

  .home-page .header-inner,
  .challenge-arcade-page .header-inner,
  .ranking-arcade-page .header-inner {
    gap: 10px;
    padding-block: 10px;
  }

  .home-page .nav,
  .challenge-arcade-page .nav,
  .ranking-arcade-page .nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .home-page .nav::-webkit-scrollbar,
  .challenge-arcade-page .nav::-webkit-scrollbar,
  .ranking-arcade-page .nav::-webkit-scrollbar {
    display: none;
  }

  .home-page .game-lobby {
    gap: 10px;
    padding: 8px !important;
  }

  .home-page .lobby-top {
    min-height: 144px;
    padding-inline: 22px;
  }

  .home-page .mode-select {
    gap: 7px;
  }

  .home-page .mode-card {
    grid-template-columns: 48px minmax(0, 1fr) 16px !important;
    grid-template-rows: auto auto;
    min-height: 86px;
    padding: 11px 9px 10px 12px;
    gap: 3px 9px;
  }

  .home-page .mode-card .mode-icon {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    font-size: 12px;
  }

  .home-page .mode-card strong {
    align-self: end;
    font-size: clamp(17px, 5.3vw, 21px);
  }

  .home-page .mode-card small {
    font-size: 11px;
  }

  .home-page .mode-card .mode-rank {
    position: absolute;
    right: 25px;
    bottom: 7px;
    max-width: 44%;
    margin: 0;
    padding: 2px 5px;
    border: 0;
    background: transparent;
    font-size: 9px;
    text-align: right;
  }

  .home-page .mode-card .mode-rank span {
    display: inline !important;
  }

  .home-page .mode-card .mode-rank span + span {
    margin-left: 4px;
  }

  .home-page .mode-card::after {
    right: 8px;
    bottom: 27px;
  }

  .challenge-arcade-page .simple-page {
    padding: 10px 7px 40px;
  }

  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
    padding: 8px;
    gap: 7px;
  }

  .challenge-arcade-page .simple-title-line {
    min-height: 54px;
    padding: 7px;
  }

  .challenge-arcade-page .simple-status-card {
    min-height: 54px;
    padding: 8px 10px;
  }

  .challenge-arcade-page .simple-rule-row {
    min-height: 60px;
  }

  .challenge-arcade-page .simple-rule-row span {
    padding: 8px 5px;
  }

  .challenge-arcade-page .simple-result-card {
    min-height: 176px;
    padding: 12px 9px;
  }

  .challenge-arcade-page .simple-result-card::before {
    margin-bottom: 6px;
  }

  .challenge-arcade-page .simple-start-area {
    min-height: 96px;
    margin-top: 7px;
  }

  .challenge-arcade-page .simple-start-button {
    width: min(88%, 310px);
    min-height: 88px;
  }

  .challenge-arcade-page .simple-sub-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-arcade-page .simple-sub-actions > :first-child,
  .challenge-arcade-page .simple-sub-actions > :last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ranking-arcade-page .record-summary-card {
    min-height: 76px;
    padding: 9px;
  }

  .ranking-arcade-page .ranking-play-card,
  .ranking-arcade-page .ranking-tabs .rank-category {
    min-height: 76px;
    padding-block: 10px;
  }
}

@media (max-width: 390px) {
  .home-page .lobby-top .kicker {
    font-size: clamp(30px, 10.7vw, 42px) !important;
  }

  .home-page .lobby-top h1 {
    font-size: 20px;
  }

  .home-page .lobby-top p {
    font-size: 10px;
  }

  .home-page .mode-card .mode-rank {
    display: none;
  }

  .challenge-arcade-page .simple-title-line h1 {
    font-size: clamp(21px, 7vw, 28px);
  }

  .challenge-arcade-page .simple-rule-row strong {
    font-size: 12px;
  }

  .challenge-arcade-page .simple-sub-actions .button {
    padding-inline: 7px;
    font-size: 11px;
  }
}

/* Mobile layout v95: compact controls without fixed navigation overlap. */
@media (max-width: 760px) {
  body,
  .juggle-simple-page {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .site-header,
  body:not(.juggle-simple-page) .site-header,
  .home-page .site-header,
  .challenge-arcade-page .site-header,
  .ranking-arcade-page .site-header {
    position: static !important;
  }

  .header-inner,
  body:not(.juggle-simple-page) .header-inner,
  .home-page .header-inner,
  .challenge-arcade-page .header-inner,
  .ranking-arcade-page .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 11px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  }

  .brand {
    min-width: 0;
  }

  .brand-name,
  body:not(.juggle-simple-page) .brand-name {
    font-size: clamp(22px, 7.4vw, 30px);
    line-height: 1;
  }

  .brand-sub {
    margin-top: 4px;
    font-size: 10px;
  }

  .nav,
  body:not(.juggle-simple-page) .nav,
  .home-page .nav,
  .challenge-arcade-page .nav,
  .ranking-arcade-page .nav {
    width: 100%;
    max-width: 100%;
    gap: 7px;
    overflow-x: auto;
    padding: 0 0 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 38px;
    align-items: center;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .page,
  .simple-page,
  .ranking-arcade-page .page,
  .juggle-simple-page .simple-page,
  .challenge-arcade-page .simple-page {
    padding-bottom: calc(34px + env(safe-area-inset-bottom)) !important;
  }

  .article-card,
  .side-card,
  .hero {
    padding: 15px 13px;
  }

  .article-card h1,
  .ranking-arcade-page .ranking-hero h1 {
    font-size: clamp(24px, 7.4vw, 31px) !important;
    overflow-wrap: anywhere;
  }

  .article-card h2 {
    font-size: clamp(20px, 6vw, 25px);
  }

  .article-card p,
  .article-card li,
  .section-lead,
  .lead {
    line-height: 1.68;
    word-break: normal !important;
    overflow-wrap: anywhere;
  }

  .button,
  .mini-button,
  button,
  select,
  input {
    min-height: 44px;
  }

  input,
  select {
    max-width: 100%;
    font-size: 16px;
  }

  .home-page .home-game-page {
    padding: 8px 8px 34px !important;
  }

  .home-page .game-lobby {
    gap: 9px;
    padding: 8px !important;
  }

  .home-page .lobby-top {
    min-height: 132px;
    padding: 13px 20px 11px;
  }

  .home-page .mode-card {
    min-height: 84px;
  }

  .challenge-arcade-page .juggle-simple-stage:not(.pixel-arcade-screen) {
    width: 100%;
    max-width: 430px;
    gap: 7px;
    padding: 8px;
  }

  .challenge-arcade-page .simple-title-line {
    min-height: 52px;
    padding: 7px 10px;
  }

  .challenge-arcade-page .simple-title-line h1 {
    font-size: clamp(20px, 6.8vw, 27px);
  }

  .challenge-arcade-page .simple-status-card {
    min-height: 58px;
    padding: 9px 10px;
  }

  .challenge-arcade-page .simple-rule-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .challenge-arcade-page .simple-rule-row span {
    min-width: 0;
    min-height: 52px;
    padding: 7px 4px;
  }

  .challenge-arcade-page .simple-rule-row strong {
    font-size: clamp(11px, 3.5vw, 14px);
    overflow-wrap: anywhere;
  }

  .challenge-arcade-page .simple-result-card {
    min-height: 164px;
    padding: 11px 8px;
  }

  .challenge-arcade-page .simple-result-card strong {
    font-size: clamp(34px, 11vw, 50px);
  }

  .challenge-arcade-page .simple-result-card b {
    font-size: clamp(22px, 7vw, 30px);
  }

  .challenge-arcade-page .simple-rank-link {
    min-height: 46px;
    margin-block: 5px;
  }

  .challenge-arcade-page .simple-start-area {
    min-height: 86px;
    margin-top: 6px;
  }

  .challenge-arcade-page .simple-start-button {
    width: min(92%, 310px);
    min-height: 82px;
  }

  .challenge-arcade-page .simple-sub-actions {
    gap: 7px;
  }

  .choice-simple-page .simple-sub-actions > :first-child,
  .choice-simple-page .simple-sub-actions > :nth-child(2) {
    grid-column: 1 / -1;
  }

  .challenge-arcade-page .simple-info-section {
    margin-top: 12px;
  }

  .ranking-arcade-page .ranking-hero,
  .ranking-arcade-page .article-card {
    padding: 14px 11px;
  }

  .ranking-arcade-page .ranking-summary {
    width: 100%;
  }

  .ranking-arcade-page .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-arcade-page .section-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .ranking-arcade-page .ranking-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .ranking-arcade-page .ranking-controls select {
    width: 100%;
  }

  .ranking-arcade-page .ranking-table {
    min-width: 0;
  }

  body:not(.ranking-arcade-page) .article-card .ranking-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  body:not(.ranking-arcade-page) .article-card .ranking-table th,
  body:not(.ranking-arcade-page) .article-card .ranking-table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
  }

  .ad-box,
  .ad-box-footer,
  .simple-ad {
    position: static !important;
    min-height: 52px;
    margin: 11px 0;
    padding: 9px 10px;
  }

  .site-footer {
    margin-bottom: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .footer-inner {
    padding: 19px 13px;
  }

  .site-toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .home-page .mode-card .mode-rank {
    display: none;
  }

  .ranking-arcade-page .record-summary-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .ranking-arcade-page .record-summary-card {
    min-height: 72px;
  }
}

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

/* Mobile challenge controls v96: keep shared ranking START buttons compact. */
@media (max-width: 760px) {
  .challenge-arcade-page .simple-start-area {
    min-height: 110px;
    margin-top: 6px;
  }

  .challenge-arcade-page .simple-start-area .simple-start-button {
    width: min(88%, 300px);
    height: auto;
    min-height: 0;
    max-height: 112px;
    aspect-ratio: 1200 / 434;
  }

  .challenge-arcade-page .simple-start-area .simple-start-button span {
    margin-top: 2px;
    font-size: clamp(30px, 9vw, 42px);
  }

  .challenge-arcade-page .simple-start-area .simple-start-button small {
    margin-top: 1px;
    font-size: 11px;
  }
}

/* Initial Gundam Unicorn article and simulator v98 */
.mode-unicorn {
  --mode-color: #59e5ff;
  background:
    radial-gradient(circle at 20% 15%, rgba(89, 229, 255, 0.18), transparent 90px),
    radial-gradient(circle at 85% 90%, rgba(255, 55, 89, 0.15), transparent 120px),
    linear-gradient(145deg, rgba(14, 25, 33, 0.98), rgba(6, 8, 12, 0.98));
}

.unicorn-page {
  background:
    linear-gradient(rgba(89, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 229, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% -100px, rgba(89, 229, 255, 0.12), transparent 430px),
    #05070a;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.unicorn-shell { max-width: 1180px; }
.unicorn-hero {
  position: relative;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(89, 229, 255, 0.38);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(9, 16, 23, 0.98), rgba(13, 16, 22, 0.96) 55%, rgba(24, 8, 13, 0.96));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.unicorn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 46%, rgba(255, 255, 255, 0.045) 46.2%, transparent 46.7%);
}

.unicorn-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  border-right: 1px solid rgba(89, 229, 255, 0.18);
  background: radial-gradient(circle, rgba(89, 229, 255, 0.14), transparent 55%);
}

.unicorn-visual::before,
.unicorn-visual::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 230px;
  top: 40px;
  background: linear-gradient(#e9feff, #59e5ff 45%, transparent);
  box-shadow: 0 0 18px #59e5ff;
  transform-origin: bottom;
}
.unicorn-visual::before { transform: rotate(-13deg); }
.unicorn-visual::after { transform: rotate(13deg); }
.unicorn-ring { position: absolute; border: 1px solid rgba(89, 229, 255, 0.3); border-radius: 50%; }
.ring-one { width: 280px; height: 280px; box-shadow: inset 0 0 40px rgba(89, 229, 255, 0.08), 0 0 30px rgba(89, 229, 255, 0.08); }
.ring-two { width: 390px; height: 390px; border-style: dashed; opacity: 0.45; }
.unicorn-visual b { z-index: 1; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(60px, 9vw, 112px); letter-spacing: -8px; line-height: 0.85; text-shadow: 0 0 35px rgba(89, 229, 255, 0.35); }
.unicorn-visual strong { z-index: 1; margin-top: 17px; color: #59e5ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 8px; }
.unicorn-visual small { z-index: 1; margin-top: 5px; color: #758c97; letter-spacing: 2px; }
.unicorn-intro { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 54px; }
.unicorn-kicker { color: #59e5ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 900; letter-spacing: 1.7px; }
.unicorn-intro h1 { margin: 8px 0 18px; color: #f8fbff; font-size: clamp(48px, 7vw, 82px); font-weight: 950; letter-spacing: -4px; line-height: 0.98; text-shadow: 0 0 28px rgba(89, 229, 255, 0.16); }
.unicorn-intro p { max-width: 620px; margin: 0; color: #b2c0c7; font-weight: 700; }
.unicorn-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.unicorn-meta span { padding: 4px 10px; border: 1px solid rgba(89, 229, 255, 0.27); border-radius: 999px; color: #a9eefa; background: rgba(89, 229, 255, 0.06); font-size: 12px; }
.unicorn-spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 16px 0; overflow: hidden; border: 1px solid rgba(89, 229, 255, 0.25); border-radius: 16px; background: rgba(89, 229, 255, 0.2); }
.unicorn-spec-strip div { display: grid; gap: 2px; padding: 15px; background: #0a0f14; text-align: center; }
.unicorn-spec-strip small { color: #71838d; font-weight: 800; }
.unicorn-spec-strip strong { color: #f5fbff; font-size: clamp(17px, 3vw, 26px); }

.unicorn-simulator { padding: 28px; border: 1px solid rgba(255, 55, 89, 0.38); border-radius: 22px; background: radial-gradient(circle at 100% 0, rgba(255, 55, 89, 0.16), transparent 310px), linear-gradient(140deg, #0c1218, #090a0d); box-shadow: var(--shadow); }
.unicorn-sim-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.unicorn-sim-head h2 { margin: 2px 0 0; font-size: clamp(25px, 5vw, 42px); }
.unicorn-sim-head p { max-width: 600px; margin: 6px 0 0; color: #8da0aa; font-size: 13px; }
.unicorn-start { flex: 0 0 150px; aspect-ratio: 1; border: 2px solid #ff3759; border-radius: 50%; background: radial-gradient(circle at 38% 28%, #ff8397, #d40f36 46%, #3c000c); color: #fff; font: inherit; font-size: 15px; font-weight: 800; line-height: 1.1; box-shadow: 0 0 0 7px rgba(255, 55, 89, 0.09), 0 0 35px rgba(255, 55, 89, 0.35), inset 0 0 22px rgba(255, 255, 255, 0.28); cursor: pointer; }
.unicorn-start strong { display: block; margin-top: 4px; font-size: 25px; }
.unicorn-start:disabled { cursor: wait; opacity: .72; }
.unicorn-start.is-running { animation: unicorn-start-pulse .8s ease-in-out infinite alternate; }
.unicorn-experience { margin-top: 18px; padding: 14px; border: 1px solid #293843; border-radius: 16px; background: #04070a; overflow: hidden; }
.unicorn-experience[hidden] { display: none !important; }
.has-unicorn-experience { overflow: hidden !important; }
.unicorn-experience.is-fullscreen { position: fixed; z-index: 500; inset: 0; display: grid; grid-template-rows: auto minmax(180px, 1fr) auto auto; gap: 10px; width: 100%; height: 100dvh; margin: 0; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); overflow-y: auto; border: 0; border-radius: 0; background: radial-gradient(circle at 50% 0, rgba(89,229,255,.1), transparent 42%), #020406; box-shadow: none; }
.unicorn-experience-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.unicorn-experience-head > span { color: #78909d; font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.unicorn-experience-head > div { display: flex; gap: 6px; }
.unicorn-experience-head button { min-height: 38px; padding: 7px 11px; border: 1px solid #354a56; border-radius: 9px; background: #0d151b; color: #b8cbd5; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.unicorn-experience-head button.is-on { border-color: #59e5ff; background: rgba(89,229,255,.11); color: #59e5ff; box-shadow: 0 0 14px rgba(89,229,255,.18); }
.unicorn-experience-head button[hidden] { display: none !important; }
.unicorn-experience-screen { position: relative; display: grid; place-items: center; align-content: center; min-height: 260px; padding: 24px 14px; overflow: hidden; border: 1px solid #1b2b34; border-radius: 13px; background: radial-gradient(circle at 50% 35%, rgba(89, 229, 255, .12), transparent 55%), #020406; text-align: center; isolation: isolate; }
.unicorn-experience-screen::before,
.unicorn-experience-screen::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.unicorn-experience-screen::before { inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px); }
.unicorn-experience-screen::after { width: 180px; height: 180px; border: 1px solid rgba(89, 229, 255, .22); transform: rotate(45deg); animation: unicorn-reticle 5s linear infinite; }
.unicorn-experience-screen > span { color: #59e5ff; font: 950 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.unicorn-experience-screen > strong { margin-top: 7px; color: #fff; font-size: clamp(28px, 7vw, 50px); line-height: 1.05; text-shadow: 0 0 22px currentColor; }
.unicorn-experience-screen > b { margin-top: 9px; color: #59e5ff; font-size: clamp(34px, 9vw, 65px); line-height: 1; }
.unicorn-experience-screen > p { margin: 10px 0 0; color: #8da0aa; font-size: 12px; }
.unicorn-expectation { display: grid; gap: 6px; width: min(520px, 92%); margin-top: 18px; padding: 10px 12px; border: 1px solid rgba(89,229,255,.25); border-radius: 10px; background: rgba(0,0,0,.4); text-align: left; }
.unicorn-expectation > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.unicorn-expectation > div:first-child > span { overflow: hidden; color: #59e5ff; font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-overflow: ellipsis; white-space: nowrap; }
.unicorn-expectation > div:first-child > strong { display: flex; align-items: baseline; gap: 7px; color: #fff; }
.unicorn-expectation > div:first-child small { color: #77909c; font-size: 9px; }
.unicorn-expectation > div:first-child b { color: #fff; font-size: 17px; line-height: 1; }
.unicorn-expectation-track { height: 7px; overflow: hidden; border-radius: 999px; background: #14222a; box-shadow: inset 0 0 0 1px #28414e; }
.unicorn-expectation-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #59e5ff, #ff3759); box-shadow: 0 0 14px #59e5ff; transition: width .36s ease; }
.unicorn-expectation > small { color: #617985; font-size: 8px; text-align: right; }
.unicorn-experience[data-tone="hit"] .unicorn-experience-screen { background: radial-gradient(circle, rgba(255, 55, 89, .3), transparent 64%), #140208; animation: unicorn-hit-flash .28s ease-in-out 3; }
.unicorn-experience[data-tone="hit"] .unicorn-experience-screen > span,
.unicorn-experience[data-tone="hit"] .unicorn-experience-screen > b { color: #ff6f88; }
.unicorn-experience[data-tone="judge"] .unicorn-experience-screen { background: radial-gradient(circle, rgba(242,185,59,.22), transparent 62%), #0d0902; }
.unicorn-experience[data-tone="judge"] .unicorn-experience-screen > span,
.unicorn-experience[data-tone="judge"] .unicorn-experience-screen > b { color: #ffd468; }
.unicorn-experience[data-tone="rush"] .unicorn-experience-screen { background: radial-gradient(circle, rgba(89,229,255,.25), transparent 64%), #021016; }
.unicorn-experience[data-tone="hyper"] .unicorn-experience-screen { background: radial-gradient(circle, rgba(190,111,255,.35), transparent 65%), linear-gradient(135deg, #10031a, #021016); animation: unicorn-hyper-shift .8s ease-in-out infinite alternate; }
.unicorn-experience[data-tone="hyper"] .unicorn-experience-screen > span,
.unicorn-experience[data-tone="hyper"] .unicorn-experience-screen > b { color: #d89aff; }
.unicorn-experience[data-tone="end"] .unicorn-experience-screen { background: radial-gradient(circle, rgba(255,255,255,.07), transparent 65%), #050607; }
.unicorn-experience-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 10px; }
.unicorn-experience-progress span { min-width: 0; padding: 7px 3px; border: 1px solid #24323a; border-radius: 7px; color: #586a74; font-size: 9px; font-weight: 900; text-align: center; }
.unicorn-experience-progress span.is-done { border-color: rgba(89,229,255,.35); color: #7ba6b8; }
.unicorn-experience-progress span.is-current { border-color: #ff3759; background: rgba(255,55,89,.1); color: #ff91a4; }
.unicorn-experience-actions { display: grid; gap: 9px; padding: 12px; border: 1px solid #293843; border-radius: 13px; background: rgba(7, 12, 15, .96); }
.unicorn-experience-actions[hidden] { display: none !important; }
.unicorn-experience-actions > div:first-child { display: grid; }
.unicorn-experience-actions > div:first-child span { color: #59e5ff; font: 900 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.unicorn-experience-actions > div:first-child strong { color: #fff; font-size: 16px; }
.unicorn-experience-main-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.unicorn-experience-main-actions .button { min-width: 0; min-height: 50px; padding: 9px; text-align: center; }
.unicorn-experience-rank { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.unicorn-experience-rank label { display: grid; gap: 3px; color: #8da0aa; font-size: 10px; font-weight: 900; }
.unicorn-experience-rank input { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #354a56; border-radius: 9px; background: #05090c; color: #fff; font: inherit; font-size: 16px; }
.unicorn-experience-rank .button { align-self: end; min-height: 44px; }
.unicorn-experience-return { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: #a8bbc5; font: inherit; font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes unicorn-start-pulse { to { transform: scale(.96); box-shadow: 0 0 0 10px rgba(255,55,89,.04), 0 0 48px rgba(255,55,89,.48); } }
@keyframes unicorn-reticle { to { transform: rotate(405deg); } }
@keyframes unicorn-hit-flash { 50% { filter: brightness(1.8); } }
@keyframes unicorn-hyper-shift { to { filter: hue-rotate(28deg) brightness(1.15); } }
.unicorn-result { margin-top: 18px; padding: 22px; border: 1px solid #263b48; border-radius: 16px; background: rgba(3, 7, 10, 0.72); }
.unicorn-cost-control { display: grid; grid-template-columns: repeat(3, minmax(0, 1.15fr)) repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.unicorn-cost-control > label,
.unicorn-cost-control > div { display: grid; padding: 10px; border: 1px solid #263b48; border-radius: 10px; background: rgba(3, 7, 10, .62); }
.unicorn-cost-control span,
.unicorn-cost-control label { color: #71838d; font-size: 11px; font-weight: 800; }
.unicorn-cost-control strong { margin-top: 3px; color: #fff; font-size: 16px; }
.unicorn-cost-control input { width: 100%; min-height: 38px; margin-top: 5px; padding: 6px 8px; border: 1px solid #263b48; border-radius: 7px; background: #05090c; color: #fff; font: inherit; font-weight: 900; }
.unicorn-result.has-result { border-color: rgba(89, 229, 255, 0.5); box-shadow: inset 0 0 28px rgba(89, 229, 255, 0.05); }
.unicorn-result-main { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 18px; padding-bottom: 16px; border-bottom: 1px solid #22313a; }
.unicorn-result-main span { grid-column: 1 / -1; color: #59e5ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.unicorn-result-main strong { font-size: clamp(45px, 9vw, 82px); line-height: 1; letter-spacing: -3px; }
.unicorn-result-main b { color: #ff6a83; font-size: clamp(20px, 4vw, 34px); }
.unicorn-result-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.unicorn-result-grid div { display: grid; padding: 10px; border: 1px solid #1e2b33; border-radius: 9px; background: rgba(255, 255, 255, 0.02); }
.unicorn-result-grid small { color: #71838d; }
.unicorn-result-grid strong { overflow-wrap: anywhere; }
.unicorn-result-grid .is-plus { color: #91ff81; }
.unicorn-result-grid .is-minus { color: #ff6a83; }
.unicorn-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 15px; }
.unicorn-flow span { padding: 5px 9px; border: 1px solid #263b48; border-radius: 7px; color: #8da0aa; font-size: 12px; font-weight: 800; }
.unicorn-flow span.is-current { border-color: #ff3759; color: #ff91a4; background: rgba(255, 55, 89, 0.08); }
.unicorn-flow b { color: #42535d; }
.unicorn-sim-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.unicorn-sim-actions.has-ranking { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.unicorn-retry { width: min(100%, 480px); min-height: 56px; margin: 16px auto 0; }
.unicorn-best { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 11px 14px; border: 1px solid #263b48; border-radius: 10px; }
.unicorn-best span { color: #71838d; font-size: 12px; font-weight: 900; }
.unicorn-best strong { color: #59e5ff; }
.unicorn-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin-top: 20px; align-items: start; }
.unicorn-article-body { display: grid; gap: 18px; }
.unicorn-article-body .article-card { margin: 0; }
.unicorn-spec-table { min-width: 0; }
.unicorn-spec-table th { width: 35%; color: #8da0aa; }
.unicorn-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.unicorn-points > div { padding: 16px; border: 1px solid #263b48; border-radius: 12px; background: rgba(4, 10, 14, 0.48); }
.unicorn-points b { color: #ff5572; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.unicorn-points strong { display: block; margin-top: 4px; font-size: 18px; }
.unicorn-points p { margin-bottom: 0; color: #97a6ae; font-size: 14px; }
.unicorn-side { display: grid; gap: 14px; }
.unicorn-side .side-card { display: grid; gap: 8px; padding: 16px; }
.unicorn-side .side-card a { padding: 8px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .unicorn-hero { grid-template-columns: 1fr; }
  .unicorn-visual { min-height: 300px; border-right: 0; border-bottom: 1px solid rgba(89, 229, 255, 0.18); }
  .unicorn-intro { padding: 30px; }
  .unicorn-intro h1 { font-size: clamp(46px, 12vw, 76px); }
  .unicorn-content-layout { grid-template-columns: 1fr; }
  .unicorn-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .unicorn-shell { padding-inline: 12px; }
  .unicorn-hero { border-radius: 20px; }
  .unicorn-visual { min-height: 240px; }
  .ring-one { width: 210px; height: 210px; }
  .ring-two { width: 290px; height: 290px; }
  .unicorn-visual::before,
  .unicorn-visual::after { height: 170px; top: 25px; }
  .unicorn-spec-strip { grid-template-columns: 1fr 1fr; }
  .unicorn-simulator { padding: 15px; }
  .unicorn-sim-head { align-items: flex-start; }
  .unicorn-start { flex-basis: 110px; }
  .unicorn-start strong { font-size: 19px; }
  .unicorn-experience { padding: 10px; }
  .unicorn-experience-screen { min-height: 230px; padding-inline: 9px; }
  .unicorn-experience-progress span { font-size: 8px; }
  .unicorn-experience.is-fullscreen { padding: max(9px, env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  .unicorn-experience.is-fullscreen .unicorn-experience-head { margin: 0; }
  .unicorn-experience.is-fullscreen .unicorn-experience-screen { min-height: 180px; }
  .unicorn-experience-actions { padding: 10px; }
  .unicorn-experience-main-actions { grid-template-columns: 1fr 1fr; }
  .unicorn-experience-main-actions a { grid-column: 1 / -1; }
  .unicorn-experience-rank { grid-template-columns: 1fr; }
  .unicorn-experience-rank .button { width: 100%; }
  .unicorn-result-main { grid-template-columns: 1fr; }
  .unicorn-result-main b { margin-top: 7px; }
  .unicorn-result-grid { grid-template-columns: 1fr 1fr; }
  .unicorn-cost-control { grid-template-columns: 1fr 1fr; }
  .unicorn-sim-actions,
  .unicorn-sim-actions.has-ranking { grid-template-columns: 1fr; }
  .unicorn-points { grid-template-columns: 1fr; }
  .unicorn-side { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .unicorn-start.is-running,
  .unicorn-experience-screen,
  .unicorn-experience-screen::after { animation: none !important; }
}

/* Home information hierarchy v100 */
.home-game-page {
  display: flex;
  flex-direction: column;
}

.home-intro {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 24px;
  align-items: center;
  min-height: 390px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(107, 211, 79, .36);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 15%, rgba(107, 211, 79, .2), transparent 300px),
    radial-gradient(circle at 95% 80%, rgba(125, 167, 255, .13), transparent 280px),
    linear-gradient(145deg, rgba(17, 25, 18, .99), rgba(5, 8, 6, .99));
  box-shadow: var(--shadow);
}

.home-eyebrow {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.home-intro h1 {
  max-width: 720px;
  margin: 9px 0 17px;
  font-size: clamp(46px, 7.2vw, 84px);
  letter-spacing: -.055em;
  line-height: 1.02;
}

.home-intro-copy > p {
  max-width: 650px;
  margin: 0;
  color: #b3bcb4;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.8;
}

.home-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.home-intro-guide {
  display: grid;
  gap: 8px;
}

.home-intro-guide a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(0, 0, 0, .24);
  color: var(--text);
}

.home-intro-guide a:hover {
  border-color: rgba(107, 211, 79, .5);
  text-decoration: none;
  transform: translateX(3px);
}

.home-intro-guide b {
  color: var(--accent);
  font: 900 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.home-intro-guide span,
.home-intro-guide strong,
.home-intro-guide small {
  display: block;
}

.home-intro-guide strong { font-size: 15px; }
.home-intro-guide small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.home-jump-nav {
  order: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}

.home-jump-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 55px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 15, 12, .9);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.home-jump-nav a:hover { border-color: var(--accent); text-decoration: none; }
.home-jump-nav span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(107, 211, 79, .11);
  color: var(--accent-dark);
  font-size: 11px;
}

.home-game-page > .machine-index-section { order: 3; margin: 12px 0; padding: 28px; }
.home-game-page > .recent-machine-section {
  border-color: rgba(107, 211, 79, .28);
  background: radial-gradient(circle at 82% 0, rgba(107, 211, 79, .10), transparent 34%), var(--panel);
}
.home-game-page > .community-entry-banner { order: 4; margin: 0 0 12px; }
.home-game-page > .home-information { order: 5; width: 100%; }

.home-game-page .machine-index-section > h2 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.2;
}

.home-game-page .machine-index-section > .section-lead {
  max-width: 760px;
  margin-top: 4px;
}

.home-game-page .machine-index-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-game-page .machine-index-grid a {
  position: relative;
  min-height: 150px;
  padding: 18px;
  overflow: hidden;
  border-radius: 15px;
}

.home-game-page .machine-index-grid a::after {
  content: "›";
  position: absolute;
  right: 17px;
  top: 50%;
  color: rgba(255, 255, 255, .22);
  font-size: 28px;
  transform: translateY(-50%);
}

.home-game-page .machine-index-grid a.is-slot { border-left: 3px solid var(--blue); }
.home-game-page .machine-index-grid a.is-pachinko { border-left: 3px solid #ff6c55; }
.home-game-page .machine-index-grid a.is-pachinko > span { color: #ff8977; }
.home-game-page .machine-index-grid strong { padding-right: 26px; font-size: 19px; }
.home-game-page .machine-index-grid small { min-height: 20px; }
.home-game-page .machine-index-grid a > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.home-game-page .machine-index-grid a > div b {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #cbd2cc;
  font-size: 10px;
}

.home-game-page .lobby-top h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.home-game-page .mode-select { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-game-page .mode-card { min-height: 150px; padding: 15px; }
.home-game-page .mode-card .mode-icon { font-size: 26px; }
.home-game-page .mode-card strong { font-size: 18px; }

@media (max-width: 900px) {
  .home-intro { grid-template-columns: 1fr; min-height: 0; }
  .home-intro-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-intro-guide a { grid-template-columns: 1fr; align-content: start; }
  .home-jump-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-game-page .mode-select { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .home-intro { gap: 20px; padding: 24px 18px; border-radius: 20px; }
  .home-intro h1 { margin-top: 7px; font-size: clamp(39px, 13vw, 58px); }
  .home-intro-copy > p { font-size: 14px; }
  .home-intro-actions { display: grid; grid-template-columns: 1fr; margin-top: 18px; }
  .home-intro-guide { grid-template-columns: 1fr; }
  .home-intro-guide a { grid-template-columns: 36px minmax(0, 1fr); min-height: 68px; }
  .home-jump-nav { display: flex; margin-inline: -12px; padding: 0 12px 5px; overflow-x: auto; scrollbar-width: none; }
  .home-jump-nav::-webkit-scrollbar { display: none; }
  .home-jump-nav a { min-width: 145px; }
  .home-game-page > .machine-index-section { padding: 20px 16px; }
  .home-game-page .machine-index-grid { grid-template-columns: 1fr; }
  .home-game-page .machine-index-grid a { min-height: 132px; }
  .home-game-page > .community-entry-banner { padding: 19px 17px; }
  .home-game-page .community-entry-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .home-game-page .lobby-top { display: grid; }
  .home-game-page .mode-select { grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-game-page .mode-card { min-height: 132px; padding: 13px; }
  .home-game-page .mode-card .mode-icon { font-size: 22px; }
  .home-game-page .mode-card strong { font-size: 15px; }
  .home-game-page .mode-card small { font-size: 11px; }
}

@media (max-width: 380px) {
  .home-game-page .mode-select { grid-template-columns: 1fr; }
}

/* Editorial content and monetization-ready article layout */
.editorial-hero {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 199, 80, .13), transparent 32%),
    linear-gradient(145deg, rgba(20, 27, 22, .98), rgba(7, 10, 8, .98));
}

.home-game-page > .community-entry-banner { order: 4; }
.home-game-page > .machine-index-section { order: 5; }
.home-game-page > .home-information { order: 6; }

.editorial-hero-main h2 { margin: 7px 0 9px; color: #fff; font-size: clamp(27px, 4vw, 42px); }
.editorial-hero-main p { max-width: 700px; margin: 0 0 18px; color: #bdc7bf; line-height: 1.8; }
.editorial-hero-links { display: grid; gap: 10px; }
.editorial-hero-links a {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 102px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.editorial-hero-links a:hover { border-color: rgba(255, 199, 80, .5); transform: translateY(-2px); }
.editorial-hero-links span { color: #e4bd6a; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.editorial-hero-links strong { font-size: 17px; }
.editorial-hero-links small { color: #9eaaa1; }

.editorial-shell { max-width: 1040px; }
.editorial-article { padding: clamp(22px, 5vw, 48px); }
.editorial-article h1 { max-width: 850px; margin: 12px 0 16px; font-size: clamp(32px, 6vw, 56px); line-height: 1.14; }
.editorial-article h2 { margin-top: 42px; }
.editorial-article h3 { margin-top: 27px; color: #f1f4f1; }
.editorial-article p,
.editorial-article li { line-height: 1.85; }
.editorial-lead { max-width: 850px; color: #c7d0c9; font-size: clamp(16px, 2vw, 19px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: #99a49c; font-size: 12px; }
.article-meta span { padding: 5px 9px; border: 1px solid rgba(255, 199, 80, .3); border-radius: 999px; color: #e4bd6a; font-weight: 800; }
.editorial-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 8px; }
.editorial-summary > div,
.definition-card,
.formula-box {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}
.editorial-summary span,
.formula-box > span { color: #e4bd6a; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.editorial-summary strong { color: #fff; font-size: 16px; }
.editorial-summary small,
.formula-box small { color: #9da9a0; line-height: 1.6; }
.definition-card { grid-template-columns: minmax(100px, .25fr) minmax(0, 1fr); align-items: center; margin: 22px 0; }
.definition-card strong { color: #e4bd6a; font-size: 18px; }
.definition-card span { color: #c3ccc5; line-height: 1.8; }
.formula-box { margin: 22px 0; padding: 22px; }
.formula-box strong { color: #fff; font-size: clamp(18px, 3vw, 28px); line-height: 1.45; }
.editorial-table td:first-child { color: #fff; font-weight: 700; }
.source-panel { margin-top: 44px; padding: 20px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 15px; background: rgba(0, 0, 0, .18); }
.source-panel h2 { margin-top: 0; }
.source-panel ul { margin-bottom: 0; padding-left: 20px; }
.source-panel a { overflow-wrap: anywhere; }
.article-safe-ad { margin: 38px 0; min-height: 116px; }
.article-safe-ad small { display: block; margin-top: 5px; color: #7f8982; font-size: 11px; }

@media (max-width: 760px) {
  .editorial-hero { grid-template-columns: 1fr; padding: 19px; }
  .editorial-summary { grid-template-columns: 1fr; }
  .definition-card { grid-template-columns: 1fr; }
  .editorial-table { min-width: 680px; }
}

/* Mobile-first usability v112 */
.machine-find-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
  margin: 18px 0 4px;
  padding: 14px;
  border: 1px solid rgba(107, 211, 79, .22);
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
}
.machine-find-tools label { display: grid; gap: 5px; }
.machine-find-tools label span { color: #c8d0ca; font-size: 12px; font-weight: 850; }
.machine-find-tools input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #070a08;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.machine-filter-buttons { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.machine-filter-buttons::-webkit-scrollbar { display: none; }
.machine-filter-buttons button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #090c0a;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}
.machine-filter-buttons button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.machine-find-tools > p { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 11px; }
.machine-quick-nav .is-primary { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

@media (max-width: 760px) {
  html { scroll-padding-top: 58px; }
  body { overflow-x: hidden; font-size: 16px; }
  a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  :where(section, article, div)[id] { scroll-margin-top: 58px; }

  .page,
  .machine-detail-shell,
  .editorial-shell { padding-inline: 10px !important; }

  .home-intro {
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 19px 14px;
    border-radius: 18px;
  }
  .home-intro h1 { font-size: clamp(36px, 11.5vw, 48px); line-height: 1.02; }
  .home-intro-copy > p { font-size: 14px; line-height: 1.7; }
  .home-intro-copy,
  .home-intro-actions,
  .home-intro-guide { width: 100%; max-width: 100%; min-width: 0; }
  .home-intro-actions { grid-template-columns: 1fr 1fr; gap: 7px; }
  .home-intro-actions .button { width: 100%; min-width: 0; padding-inline: 8px; font-size: 12px; white-space: normal; }
  .home-intro-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .home-intro-guide a {
    grid-template-columns: 1fr;
    gap: 7px;
    min-width: 0;
    min-height: 82px;
    padding: 10px 7px;
    overflow: hidden;
    text-align: center;
  }
  .home-intro-guide b { font-size: 13px; }
  .home-intro-guide strong { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
  .home-intro-guide small { display: none; }
  .home-jump-nav a { min-width: 132px; min-height: 50px; }

  .editorial-hero { gap: 10px; padding: 16px 14px; border-radius: 17px; }
  .editorial-hero-main h2 { font-size: 26px; }
  .editorial-hero-main p { font-size: 14px; line-height: 1.7; }
  .editorial-hero-links { grid-template-columns: 1fr 1fr; }
  .editorial-hero-links a { min-height: 88px; padding: 12px; }
  .editorial-hero-links strong { font-size: 14px; }
  .editorial-hero-links small { display: none; }

  .machine-find-tools { grid-template-columns: 1fr; gap: 9px; margin-top: 14px; padding: 11px; }
  .machine-filter-buttons { margin-inline: -2px; padding: 1px 2px 3px; }
  .machine-filter-buttons button { min-height: 44px; }
  .home-game-page .machine-index-grid a { min-height: 112px; padding: 15px 14px; }
  .home-game-page .machine-index-grid strong { font-size: 18px; }

  .machine-archive-hero { gap: 15px; padding: 18px 14px; border-radius: 17px; }
  .machine-archive-hero,
  .machine-intro,
  .machine-simulator,
  .machine-ranking,
  .machine-article-layout,
  .machine-article { width: 100%; max-width: 100%; min-width: 0; }
  .machine-archive-hero h1 { margin-block: 5px 7px; font-size: clamp(31px, 10vw, 43px); line-height: 1.08; }
  .machine-archive-hero p { font-size: 14px; line-height: 1.65; }
  .machine-archive-hero dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .machine-archive-hero dl div { min-width: 0; padding: 9px 7px; border-right: 1px solid var(--line); border-top: 0 !important; }
  .machine-archive-hero dl div:last-child { grid-column: auto; border-right: 0; }
  .machine-archive-hero dd { overflow-wrap: anywhere; font-size: 12px; line-height: 1.35; }

  .machine-quick-nav {
    position: sticky;
    z-index: 18;
    top: 0;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 8px -10px 12px;
    padding: 7px 10px;
    overflow-x: auto;
    border-block: 1px solid rgba(107, 211, 79, .16);
    background: rgba(5, 7, 5, .95);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }
  .machine-quick-nav::-webkit-scrollbar { display: none; }
  .machine-quick-nav a,
  .machine-quick-nav button { flex: 0 0 auto; min-height: 44px; padding: 10px 13px; }

  .machine-intro,
  .machine-simulator,
  .machine-ranking,
  .machine-article,
  .machine-side-list { padding: 15px 13px; border-radius: 15px; }
  .machine-intro { gap: 15px; }
  .machine-intro > *,
  .machine-spec-grid,
  .machine-spec-grid div,
  .machine-sim-layout,
  .machine-sim-controls,
  .machine-result { min-width: 0; max-width: 100%; }
  .machine-intro p { font-size: 14px; line-height: 1.7; }
  .machine-intro ul { margin-bottom: 0; }
  .machine-spec-grid { gap: 6px; }
  .machine-spec-grid div { min-height: 72px; padding: 10px; }
  .machine-spec-grid strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }

  .machine-simulator { margin-top: 13px; }
  .machine-sim-note { line-height: 1.55; }
  .machine-sim-controls,
  .machine-result { padding: 13px 11px; }
  .machine-result { min-height: 210px; }
  .machine-result.has-result { min-height: 0; }
  .machine-start-button { min-height: 68px; }
  .machine-start-button.is-sticky {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    min-height: 64px;
  }
  body.has-machine-sticky-start { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .machine-result-stats { gap: 5px; }
  .machine-result-stats div { min-width: 0; padding: 8px; }
  .machine-result-stats strong { overflow-wrap: anywhere; font-size: 14px; }
  .machine-flow { gap: 5px; }
  .machine-flow span { max-width: 100%; overflow-wrap: anywhere; }
  .machine-result-actions { grid-template-columns: 1fr 1fr; gap: 7px; }
  .machine-result-actions .button { min-height: 50px; }
  .machine-ranking-entry { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .machine-ranking-entry > .button { width: 100%; min-width: 0; min-height: 52px; }
  .machine-ranking-list li { padding-inline: 8px; }
  .machine-ranking-list li > strong { font-size: 15px; }
  .machine-article p,
  .machine-article li { font-size: 15px; line-height: 1.75; }
  .machine-side-list { display: none; }

  .editorial-article { padding: 18px 14px; }
  .editorial-article h1 { font-size: clamp(29px, 9vw, 39px) !important; line-height: 1.14; }
  .editorial-article h2 { margin-top: 34px; font-size: 23px; }
  .editorial-article p,
  .editorial-article li { font-size: 15px; line-height: 1.75; }
  .formula-box { padding: 16px 14px; }
  .table-wrap { margin-inline: -2px; padding-bottom: 5px; overscroll-behavior-inline: contain; }
  .table-wrap::after { content: "横にスクロールできます →"; display: block; margin-top: 5px; color: var(--muted); font-size: 10px; text-align: right; }
  .next-links { grid-template-columns: 1fr; }
  .next-links a { min-height: 48px; }

  .post-composer,
  .community-entry-banner { padding: 15px 13px; }
  .post-composer input,
  .post-composer select,
  .post-composer textarea { font-size: 16px; }
  .community-entry-actions { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .home-intro-actions { grid-template-columns: 1fr; }
  .home-intro-guide strong { font-size: 11px; }
  .editorial-hero-links { grid-template-columns: 1fr; }
  .machine-control-grid { grid-template-columns: 1fr; }
  .machine-average-grid { grid-template-columns: 1fr 1fr; }
}

/* Final mobile app shell overrides */
@media (max-width: 760px) {
  body.home-page {
    background: #050706 !important;
    background-image: none !important;
  }
  .home-page .site-header {
    border-bottom: 1px solid #202822 !important;
    background: rgba(5, 7, 6, .96) !important;
    background-image: none !important;
  }
  .home-page .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 62px !important;
    padding: 9px 14px !important;
  }
  .home-page .brand { width: auto !important; min-width: 0; }
  .home-page .brand-name {
    color: #fff !important;
    font-size: 29px !important;
    letter-spacing: -.02em !important;
    text-shadow: none !important;
  }
  .home-page .mobile-header-button {
    display: inline-grid !important;
    width: auto !important;
    flex: 0 0 auto;
  }
  .home-page .mobile-app-search label > span { transform: none; }
}

/* Shared mobile app navigation v117 */
@media (max-width: 760px) {
  body.has-mobile-app-nav {
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  body.has-mobile-app-nav .mobile-app-bottom-nav {
    display: grid;
  }

  body.has-mobile-app-nav .site-footer {
    padding-bottom: 12px;
  }

  body.has-mobile-app-nav .machine-start-button.is-sticky {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  body.has-mobile-app-nav.has-machine-sticky-start {
    padding-bottom: calc(158px + env(safe-area-inset-bottom)) !important;
  }
}

/* Mobile search and composer usability v118 */
.machine-community-actions {
  display: flex;
  gap: 8px;
}

.composer-step-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 9px;
  align-items: center;
  margin-top: 5px;
  padding: 9px;
  border-top: 1px solid var(--line);
}

.composer-step-note > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #071007;
  font-weight: 950;
}

.composer-step-note > strong { font-size: 13px; }
.composer-step-note > small { color: var(--muted); font-size: 10px; }

@media (max-width: 760px) {
  .mobile-machine-search-results {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #354139;
    border-radius: 15px;
    background: #0d110e;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
  }

  .mobile-machine-search-results[hidden] { display: none !important; }
  .mobile-search-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-search-result-head strong { color: #fff; font-size: 13px; }
  .mobile-search-result-head button { min-height: 36px; padding: 5px 10px; border: 1px solid #364139; border-radius: 9px; background: #111612; color: #c7d0c9; font: inherit; font-size: 11px; font-weight: 900; }
  .mobile-search-result-list { display: grid; gap: 6px; }
  .mobile-search-result-list:empty::after { content: "別の機種名や短いキーワードで検索してください"; padding: 18px 8px; color: #8f9891; font-size: 12px; text-align: center; }
  .mobile-search-result-list > a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; min-height: 68px; padding: 10px 42px 10px 12px; border: 1px solid #2d3730; border-radius: 11px; background: #090c0a; }
  .mobile-search-result-list > a > span { grid-column: 1; color: #72b2ff; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
  .mobile-search-result-list > a > strong { grid-column: 1; overflow-wrap: anywhere; color: #fff; font-size: 14px; }
  .mobile-search-result-list > a > small { grid-column: 1; color: #8f9891; font-size: 10px; }
  .mobile-search-result-list > a > b { position: absolute; top: 50%; right: 15px; color: #aab3ac; font-size: 28px; font-weight: 400; transform: translateY(-50%); }
  .mobile-search-all-link { min-height: 42px; padding: 11px; border-radius: 10px; color: #7df45e; font-size: 12px; font-weight: 900; text-align: center; }

  .community-page .community-shell { padding-inline: 10px; }
  .community-page .community-hero { padding: 18px 15px; }
  .community-page .community-hero h1 { font-size: clamp(31px, 10vw, 42px); }
  .community-page .machine-community-nav { gap: 9px; padding: 12px; }
  .machine-community-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .machine-community-actions .button { min-width: 0; min-height: 50px; padding-inline: 8px; font-size: 12px; }
  .community-page .post-composer { scroll-margin-top: 76px; }
  .community-page .composer-switch { position: sticky; z-index: 20; top: 68px; background: rgba(8, 11, 9, .97); backdrop-filter: blur(14px); }
  .community-page .composer-switch button { min-height: 50px; }
  .community-page .post-composer form { gap: 15px; }
  .community-page .post-composer .field { gap: 7px; }
  .community-page .post-composer .field label { font-size: 14px; }
  .community-page .post-composer input,
  .community-page .post-composer select { min-height: 54px; padding: 13px 12px; }
  .community-page .post-composer textarea { min-height: 150px; padding: 13px 12px; line-height: 1.65; }
  .community-page .post-composer .field:focus-within > label { color: var(--accent-dark); }
  .community-page .post-composer input:focus,
  .community-page .post-composer select:focus,
  .community-page .post-composer textarea:focus { border-color: var(--accent); outline: 2px solid rgba(107, 211, 79, .14); }
  .community-page .post-composer input[type="file"] { min-height: 58px; padding: 10px; }
  .community-page .community-agree { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, .22); }
  .community-page .community-agree input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; }
  .community-page .community-submit { min-height: 60px; border-radius: 13px; font-size: 16px; }
}

/* Shared full-screen machine experience v121 */
.machine-experience[hidden],
.machine-experience-actions[hidden],
.machine-experience-head button[hidden] { display: none !important; }
body.has-machine-experience { overflow: hidden !important; }
.machine-experience.is-fullscreen { position: fixed; z-index: 500; inset: 0; display: grid; grid-template-rows: auto minmax(180px, 1fr) auto auto; gap: 10px; width: 100%; height: 100dvh; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); overflow-y: auto; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--machine-accent) 15%, transparent), transparent 42%), #020504; color: #f7faf7; }
.machine-experience-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.machine-experience-head > span { color: #8b9a90; font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.machine-experience-head > div { display: flex; gap: 6px; }
.machine-experience-head button { min-height: 40px; padding: 7px 11px; border: 1px solid #35443a; border-radius: 9px; background: #0d1510; color: #c2cec5; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.machine-experience-head button.is-on { border-color: var(--machine-accent); background: color-mix(in srgb, var(--machine-accent) 15%, #0d1510); color: var(--machine-accent); box-shadow: 0 0 14px color-mix(in srgb, var(--machine-accent) 24%, transparent); }
.machine-experience-screen { position: relative; display: grid; place-items: center; align-content: center; min-height: 220px; padding: 22px 12px; overflow: hidden; border: 1px solid #223129; border-radius: 14px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--machine-accent) 18%, transparent), transparent 58%), #030705; text-align: center; isolation: isolate; }
.machine-experience-screen::before,
.machine-experience-screen::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.machine-experience-screen::before { inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.024) 3px 4px); }
.machine-experience-screen::after { width: 190px; height: 190px; border: 1px solid color-mix(in srgb, var(--machine-accent) 35%, transparent); transform: rotate(45deg); animation: machine-experience-reticle 5s linear infinite; }
.machine-experience-screen > span { color: var(--machine-accent); font: 950 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.machine-experience-screen > strong { max-width: 900px; margin-top: 7px; overflow-wrap: anywhere; color: #fff; font-size: clamp(28px, 7vw, 54px); line-height: 1.06; text-shadow: 0 0 22px currentColor; }
.machine-experience-screen > b { margin-top: 9px; color: var(--machine-accent); font-size: clamp(34px, 9vw, 68px); line-height: 1; }
.machine-experience-screen > p { margin: 10px 0 0; color: #96a39a; font-size: 12px; }
.machine-expectation { display: grid; gap: 6px; width: min(520px, 92%); margin-top: 18px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--machine-accent) 27%, #26342b); border-radius: 10px; background: rgba(0,0,0,.38); text-align: left; }
.machine-expectation > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.machine-expectation > div:first-child > span { overflow: hidden; color: var(--machine-accent); font: 900 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-overflow: ellipsis; white-space: nowrap; }
.machine-expectation > div:first-child > strong { display: flex; align-items: baseline; gap: 7px; color: #fff; }
.machine-expectation > div:first-child small { color: #7f8c83; font-size: 9px; }
.machine-expectation > div:first-child b { color: #fff; font-size: 17px; line-height: 1; }
.machine-expectation-track { height: 7px; overflow: hidden; border-radius: 999px; background: #18211b; box-shadow: inset 0 0 0 1px #27342c; }
.machine-expectation-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--machine-accent) 70%, #fff), var(--machine-accent)); box-shadow: 0 0 14px var(--machine-accent); transition: width .36s ease; }
.machine-expectation > small { color: #647168; font-size: 8px; text-align: right; }
.machine-experience[data-profile="revolution"] .machine-experience-screen { background-image: linear-gradient(135deg, rgba(255,30,116,.14), transparent 45%), radial-gradient(circle at 50% 35%, rgba(255,53,155,.2), transparent 58%); }
.machine-experience[data-profile="kagune"] .machine-experience-screen { background-image: linear-gradient(120deg, rgba(193,0,46,.2), transparent 45%), radial-gradient(circle at 50% 35%, rgba(255,36,90,.18), transparent 58%); }
.machine-experience[data-profile="emergency"] .machine-experience-screen { background-image: repeating-linear-gradient(135deg, rgba(255,194,0,.08) 0 10px, transparent 10px 22px), radial-gradient(circle at 50% 35%, rgba(163,65,255,.2), transparent 58%); }
.machine-experience[data-profile="battle"] .machine-experience-screen { background-image: linear-gradient(135deg, rgba(255,187,56,.16), transparent 46%), radial-gradient(circle at 50% 35%, rgba(255,77,42,.16), transparent 58%); }
.machine-experience[data-profile="fate"] .machine-experience-screen { background-image: linear-gradient(45deg, rgba(190,0,41,.18), transparent 50%), radial-gradient(circle at 50% 35%, rgba(255,219,95,.14), transparent 58%); }
.machine-experience[data-profile="race"] .machine-experience-screen { background-image: linear-gradient(115deg, rgba(40,128,255,.18), transparent 48%), radial-gradient(circle at 50% 35%, rgba(46,226,255,.16), transparent 58%); }
.machine-experience[data-profile="steam"] .machine-experience-screen { background-image: linear-gradient(135deg, rgba(255,79,41,.16), transparent 44%), radial-gradient(circle at 50% 35%, rgba(255,179,58,.15), transparent 58%); }
.machine-experience[data-tone="hit"] .machine-experience-screen { background: radial-gradient(circle, rgba(255,75,92,.3), transparent 64%), #140306; animation: machine-experience-flash .28s ease-in-out 3; }
.machine-experience[data-tone="hit"] .machine-experience-screen > span,
.machine-experience[data-tone="hit"] .machine-experience-screen > b { color: #ff7e91; }
.machine-experience[data-tone="judge"] .machine-experience-screen { background: radial-gradient(circle, rgba(242,185,59,.24), transparent 62%), #0d0902; }
.machine-experience[data-tone="judge"] .machine-experience-screen > span,
.machine-experience[data-tone="judge"] .machine-experience-screen > b { color: #ffd468; }
.machine-experience[data-tone="rush"] .machine-experience-screen { background: radial-gradient(circle, color-mix(in srgb, var(--machine-accent) 28%, transparent), transparent 64%), #031008; }
.machine-experience[data-tone="hyper"] .machine-experience-screen { background: radial-gradient(circle, rgba(190,111,255,.38), transparent 65%), linear-gradient(135deg, #10031a, #031008); animation: machine-experience-hyper .8s ease-in-out infinite alternate; }
.machine-experience[data-tone="hyper"] .machine-experience-screen > span,
.machine-experience[data-tone="hyper"] .machine-experience-screen > b { color: #d99cff; }
.machine-experience[data-tone="complete"] .machine-experience-screen { background: radial-gradient(circle, rgba(255,215,90,.42), transparent 64%), linear-gradient(135deg, #1b1402, #071008); animation: machine-experience-complete .65s ease-in-out infinite alternate; }
.machine-experience[data-tone="complete"] .machine-experience-screen > span,
.machine-experience[data-tone="complete"] .machine-experience-screen > b { color: #ffe06f; }
.machine-experience[data-tone="end"] .machine-experience-screen { background: radial-gradient(circle, rgba(255,255,255,.07), transparent 65%), #050705; }
.machine-experience-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.machine-experience-progress span { min-width: 0; padding: 7px 3px; border: 1px solid #26342b; border-radius: 7px; color: #637168; font-size: 9px; font-weight: 900; text-align: center; }
.machine-experience-progress span.is-done { border-color: color-mix(in srgb, var(--machine-accent) 35%, #26342b); color: #91a699; }
.machine-experience-progress span.is-current { border-color: var(--machine-accent); background: color-mix(in srgb, var(--machine-accent) 11%, transparent); color: var(--machine-accent); }
.machine-experience-actions { display: grid; gap: 9px; padding: 12px; border: 1px solid #29382f; border-radius: 13px; background: rgba(7,12,9,.96); }
.machine-experience-actions > div:first-child { display: grid; }
.machine-experience-actions > div:first-child span { color: var(--machine-accent); font: 900 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.machine-experience-actions > div:first-child strong { color: #fff; font-size: 16px; }
.machine-experience-main-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.machine-experience-main-actions .button { min-width: 0; min-height: 50px; padding: 9px; text-align: center; }
.machine-experience-rank { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.machine-experience-rank label { display: grid; gap: 3px; color: #96a39a; font-size: 10px; font-weight: 900; }
.machine-experience-rank input { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #35443a; border-radius: 9px; background: #050905; color: #fff; font: inherit; font-size: 16px; }
.machine-experience-rank .button { align-self: end; min-height: 44px; }
.machine-experience-return { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: #acbab0; font: inherit; font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes machine-experience-reticle { to { transform: rotate(405deg); } }
@keyframes machine-experience-flash { 50% { filter: brightness(1.75); } }
@keyframes machine-experience-hyper { to { filter: hue-rotate(25deg) brightness(1.16); } }
@keyframes machine-experience-complete { to { filter: brightness(1.2); box-shadow: inset 0 0 44px rgba(255,215,90,.24); } }

@media (max-width: 620px) {
  .machine-experience.is-fullscreen { padding: max(9px, env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  .machine-experience-screen { min-height: 180px; padding-inline: 9px; }
  .machine-experience-progress span { font-size: 8px; }
  .machine-experience-actions { padding: 10px; }
  .machine-experience-main-actions { grid-template-columns: 1fr 1fr; }
  .machine-experience-main-actions a { grid-column: 1 / -1; }
  .machine-experience-rank { grid-template-columns: 1fr; }
  .machine-experience-rank .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .machine-experience-screen,
  .machine-experience-screen::after { animation: none !important; }
}

/* Unified interface system v126 */
:root {
  --ui-content: 1160px;
  --ui-article: 1040px;
  --ui-card: rgba(14, 19, 15, .96);
  --ui-card-soft: rgba(18, 24, 19, .9);
  --ui-border: rgba(133, 158, 137, .22);
  --ui-border-active: rgba(107, 211, 79, .5);
  --ui-radius-card: 22px;
  --ui-radius-control: 14px;
  --ui-control-height: 50px;
  --ui-section-gap: 20px;
  --ui-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  --radius: var(--ui-radius-card);
  --panel: var(--ui-card);
}

body {
  background:
    radial-gradient(circle at 50% -160px, rgba(107, 211, 79, .11), transparent 340px),
    linear-gradient(180deg, #070a08 0, #040604 100%);
  color-scheme: dark;
  font-size: 16px;
  line-height: 1.72;
}

.site-header {
  border-bottom: 1px solid var(--ui-border);
  background: rgba(6, 9, 7, .92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.header-inner {
  width: min(100%, var(--ui-content));
  min-height: 70px;
  padding: 10px 20px;
}

.brand { gap: 1px; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 23px; letter-spacing: .08em; }
.brand-sub { color: #8e9b91; font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.nav { gap: 6px; }
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #cbd4cd;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}
.nav a:hover,
.nav a:focus-visible {
  border-color: var(--ui-border-active);
  background: rgba(107, 211, 79, .08);
  color: #f5fff1;
  text-decoration: none;
}

.page,
.machine-detail-shell {
  width: min(100%, var(--ui-content));
  padding: 24px 20px 64px;
}
.editorial-shell { width: min(100%, var(--ui-article)); }
.simple-page { padding-bottom: 64px; }

.layout,
.community-layout,
.machine-article-layout,
.unicorn-content-layout { gap: var(--ui-section-gap); }

.hero,
.game-lobby,
.home-intro,
.editorial-hero,
.community-entry-banner,
.community-hero,
.machine-community-nav,
.article-card,
.tool-card,
.side-card,
.community-feed,
.post-composer,
.admin-hero,
.admin-login-card,
.admin-panel,
.machine-archive-hero,
.machine-intro,
.machine-simulator,
.machine-ranking,
.machine-article,
.machine-side-list,
.unicorn-hero,
.unicorn-simulator,
.unicorn-result {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-card);
  box-shadow: var(--ui-shadow);
}

.article-card,
.tool-card,
.side-card,
.community-feed,
.post-composer,
.machine-intro,
.machine-simulator,
.machine-ranking,
.machine-article,
.machine-side-list {
  background:
    radial-gradient(circle at 100% 0, rgba(107, 211, 79, .045), transparent 240px),
    var(--ui-card);
}

.article-card,
.tool-card,
.community-feed,
.post-composer,
.machine-intro,
.machine-simulator,
.machine-ranking,
.machine-article,
.machine-side-list { padding: 28px; }

.article-card,
.machine-index-section { margin-bottom: var(--ui-section-gap); }
.side-column { gap: 14px; }
.side-card { padding: 20px; }

h1,
h2,
h3 { text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.035em; line-height: 1.12; }
h2 { font-size: clamp(23px, 3vw, 31px); letter-spacing: -.02em; line-height: 1.25; }
h3 { font-size: clamp(18px, 2vw, 21px); }
.section-lead,
.lead { max-width: 780px; color: #aeb9b1; line-height: 1.75; }
.machine-section-label,
.community-eyebrow,
.kicker,
.home-eyebrow { letter-spacing: .14em; }

.section-head,
.machine-sim-head,
.machine-ranking-head,
.community-section-head {
  align-items: flex-start;
  margin-bottom: 18px;
}
.section-head h2,
.machine-sim-head h2,
.machine-ranking-head h2,
.community-section-head h2 { margin-bottom: 5px; }

.button,
a.button,
button.button,
.mini-button,
.preset-button,
.save-preview-actions a {
  min-height: var(--ui-control-height);
  padding: 10px 18px;
  border: 1px solid #3a493d;
  border-radius: var(--ui-radius-control);
  background: #111612;
  color: #f2f6f2;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}
.button.primary,
.community-submit,
.button.save-ready {
  border-color: #69d44d;
  background: linear-gradient(180deg, #68d94d, #2a9b2b);
  color: #061006;
  box-shadow: 0 10px 24px rgba(80, 198, 62, .18);
}
.button:hover,
.mini-button:hover,
.preset-button:hover {
  border-color: var(--accent);
  filter: brightness(1.06);
  text-decoration: none;
  transform: translateY(-1px);
}
.button:focus-visible,
.mini-button:focus-visible,
.preset-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(107, 211, 79, .2);
  outline-offset: 2px;
}
.button.danger { border-color: rgba(255, 95, 85, .45); background: rgba(255, 95, 85, .08); }

input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: var(--ui-control-height);
  padding: 11px 13px;
  border: 1px solid #39463c;
  border-radius: 12px;
  background: #070a08;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 132px; line-height: 1.65; }
.field { gap: 6px; }
.field label,
.machine-control span { color: #dce4de; font-size: 13px; font-weight: 900; }
.field small,
.machine-control small { color: #879389; }

.hero-actions,
.tool-actions,
.share-actions,
.home-intro-actions,
.community-entry-actions,
.machine-result-actions,
.unicorn-sim-actions,
.simple-sub-actions { gap: 10px; }

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.next-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ui-control-height);
  padding: 11px 14px;
  border: 1px solid #344238;
  border-radius: var(--ui-radius-control);
  background: #0b100c;
  color: #e6eee8;
  font-weight: 850;
}
.next-links a:hover { border-color: var(--accent); text-decoration: none; }

.info-list { gap: 10px; }
.info-list li,
.faq-item,
.formula-box,
.definition-card,
.editorial-summary > div {
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-card-soft);
}
.info-list li { padding: 16px; }
.note,
.community-notice,
.composer-intro { border-radius: 14px; }
.toc { gap: 8px; margin: 24px 0 30px; }
.toc a { min-height: 44px; padding: 9px 12px; border-radius: 12px; }

.table-wrap {
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: rgba(0, 0, 0, .16);
}
.ranking-table { border-collapse: collapse; }
.ranking-table th { background: rgba(255, 255, 255, .035); color: #bbc6bd; }
.ranking-table th,
.ranking-table td { padding: 13px 14px; border-bottom-color: rgba(255, 255, 255, .07); }

.home-intro,
.editorial-hero,
.community-entry-banner { margin-bottom: var(--ui-section-gap); }
.home-intro-guide a,
.editorial-hero-links a,
.home-jump-nav a,
.machine-index-grid a,
.ranking-play-card,
.rank-category,
.record-summary-card {
  border-radius: 16px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.home-intro-guide a:hover,
.editorial-hero-links a:hover,
.home-jump-nav a:hover,
.machine-index-grid a:hover,
.ranking-play-card:hover,
.rank-category:hover { transform: translateY(-2px); }
.machine-index-grid { gap: 12px; }
.machine-index-grid a { min-height: 132px; padding: 16px; }

.machine-archive-hero { margin-bottom: 0; }
.machine-quick-nav { gap: 8px; margin-block: 12px 18px; }
.machine-quick-nav a,
.machine-quick-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 12px;
}
.machine-intro,
.machine-simulator,
.machine-ranking,
.machine-article-layout { margin-top: var(--ui-section-gap); }
.machine-spec-grid,
.machine-control-grid,
.machine-average-grid,
.machine-result-stats { gap: 10px; }
.machine-spec-grid div,
.machine-average-grid div,
.machine-result-stats div,
.machine-sim-controls,
.machine-result {
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
}
.machine-control input { min-height: var(--ui-control-height); border-radius: 12px; }
.machine-start-button,
.simple-start-button,
.unicorn-start {
  min-height: 68px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(70, 190, 57, .2);
}
.machine-result-actions .button,
.machine-ranking-entry > .button,
.unicorn-sim-actions .button { min-height: 52px; }
.machine-ranking-entry,
.machine-ranking-list li { border-radius: 14px; }
.machine-article { max-width: 100%; }
.machine-article-section { margin-top: 30px; padding-top: 24px; }
.machine-article-section:first-of-type { margin-top: 18px; }
.machine-article p,
.machine-article li,
.editorial-article p,
.editorial-article li { color: #c1cac3; line-height: 1.82; }
.machine-side-list a { min-height: 52px; padding: 12px; border-radius: 12px; }

.community-hero,
.machine-community-nav { margin-bottom: var(--ui-section-gap); }
.community-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.community-post { padding: 18px; border-radius: 16px; background: rgba(7, 11, 8, .8); }
.community-filters button,
.composer-switch button,
.machine-filter-buttons button,
.mobile-app-categories button,
.mobile-app-categories a {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 900;
}
.community-submit { min-height: 56px; border-radius: var(--ui-radius-control); font-size: 15px; }

.simple-page { width: min(100%, 720px); }
.juggle-simple-stage { border-radius: var(--ui-radius-card); }
.simple-info-section { margin-top: var(--ui-section-gap); }
.simple-sub-actions .button { min-height: 52px; border-radius: var(--ui-radius-control); }
.simple-money-summary,
.simple-result-card,
.simple-rule-row,
.simple-status-card { border-radius: 16px; }

.site-footer { border-top: 1px solid var(--ui-border); background: rgba(5, 8, 6, .86); }
.footer-inner { width: min(100%, var(--ui-content)); padding: 24px 20px; }
.footer-links { gap: 8px 16px; }
.footer-links a { color: #aeb9b1; }

@media (max-width: 900px) {
  .layout,
  .community-layout,
  .machine-article-layout,
  .unicorn-content-layout { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-layout .composer-sticky { position: static; }
}

@media (max-width: 760px) {
  :root {
    --ui-radius-card: 18px;
    --ui-radius-control: 13px;
    --ui-section-gap: 14px;
  }

  body { font-size: 15px; }
  body:not(.juggle-simple-page) .site-header { position: sticky; top: 0; }
  body:not(.juggle-simple-page) .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    min-height: 60px;
    padding: 8px 12px;
  }
  body:not(.juggle-simple-page):not(.home-page) .nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  body:not(.juggle-simple-page):not(.home-page) .nav::-webkit-scrollbar { display: none; }
  body:not(.juggle-simple-page):not(.home-page) .nav a { flex: 0 0 auto; min-height: 38px; padding: 7px 10px; }
  .brand-name { font-size: 24px !important; letter-spacing: .05em !important; }
  .brand-sub { font-size: 9px; }

  .page,
  .machine-detail-shell,
  .editorial-shell,
  .simple-page {
    padding: 14px 10px calc(112px + env(safe-area-inset-bottom));
  }

  .article-card,
  .tool-card,
  .community-feed,
  .post-composer,
  .machine-intro,
  .machine-simulator,
  .machine-ranking,
  .machine-article,
  .machine-side-list { padding: 16px 14px; }
  .side-card { padding: 15px; }
  .side-column { grid-template-columns: 1fr; }

  h1 { font-size: clamp(30px, 9vw, 42px); }
  h2 { font-size: clamp(22px, 7vw, 27px); }
  .section-head,
  .machine-sim-head,
  .machine-ranking-head,
  .community-section-head { display: grid; gap: 8px; margin-bottom: 14px; }

  .hero-actions,
  .tool-actions,
  .share-actions,
  .community-entry-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .button,
  .tool-actions .button,
  .share-actions .button,
  .community-entry-actions .button { width: 100%; }
  .button,
  a.button,
  button.button,
  .mini-button { min-height: 50px; }

  .next-links { grid-template-columns: 1fr; gap: 8px; }
  .table-wrap { border-radius: 13px; }
  .ranking-table th,
  .ranking-table td { padding: 11px 12px; }

  .home-intro,
  .editorial-hero,
  .community-entry-banner,
  .community-hero,
  .machine-community-nav,
  .machine-archive-hero { border-radius: var(--ui-radius-card); }
  .home-page .home-intro-actions { grid-template-columns: 1fr 1fr; }
  .home-page .home-intro-actions .button { min-height: 50px; font-size: 13px; }
  .home-game-page .machine-index-grid a,
  .machine-index-grid a { min-height: 116px; padding: 14px; border-radius: 14px; }

  .machine-quick-nav { top: 59px; }
  .machine-sim-layout { grid-template-columns: 1fr; }
  .machine-result { min-height: 220px; }
  .machine-result-actions { grid-template-columns: 1fr 1fr; }
  .machine-ranking-entry { grid-template-columns: 1fr; }
  .machine-ranking-entry > .button { width: 100%; }
  .machine-article-section { margin-top: 24px; padding-top: 20px; }

  .community-post { padding: 15px 13px; }
  .community-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .community-filters button { flex: 0 0 auto; }
  .post-balance { grid-template-columns: 1fr 1fr; }

  .simple-sub-actions { grid-template-columns: 1fr 1fr; }
  .simple-sub-actions .button:first-child { grid-column: 1 / -1; }
  .simple-money-summary { grid-template-columns: 1fr 1fr; }
  .simple-money-summary span:first-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .home-page .home-intro-actions,
  .machine-result-actions,
  .unicorn-sim-actions,
  .simple-sub-actions { grid-template-columns: 1fr; }
  .simple-sub-actions .button:first-child { grid-column: auto; }
  .machine-control-grid { grid-template-columns: 1fr; }
  .machine-result-stats { grid-template-columns: 1fr 1fr; }
}

/* My Records — automatic machine simulation history */
.machine-auto-save-status {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(107, 211, 79, .28);
  border-radius: 12px;
  background: rgba(107, 211, 79, .08);
  color: #b9e9ad;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.machine-fixed-rate-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(125, 167, 255, .28);
  border-radius: 12px;
  background: rgba(125, 167, 255, .07);
}

.machine-fixed-rate-label span {
  color: #8fb1ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.machine-fixed-rate-label strong {
  color: #dce7ff;
  font-size: 12px;
}

.machine-rate-controls input:disabled,
.unicorn-cost-control input:disabled {
  opacity: 1;
  border-color: rgba(107, 211, 79, .32);
  background: linear-gradient(145deg, rgba(107, 211, 79, .09), #080b09);
  color: #dfffd5;
  -webkit-text-fill-color: #dfffd5;
  cursor: default;
}

.unicorn-cost-control label small {
  display: block;
  margin-top: 3px;
  color: #75857a;
  font-size: 9px;
  line-height: 1.4;
}

.machine-experience-actions > div:first-child small,
.unicorn-experience-actions > div:first-child small {
  display: block;
  margin-top: 4px;
  color: #aee79f;
  font-size: 12px;
  font-weight: 700;
}

.my-records-page {
  background:
    radial-gradient(circle at 50% -80px, rgba(107, 211, 79, .17), transparent 320px),
    radial-gradient(circle at 100% 32%, rgba(125, 167, 255, .07), transparent 360px),
    #050705;
}

.my-records-shell {
  display: grid;
  gap: 20px;
  max-width: 1120px;
}

.my-records-hero,
.my-records-summary,
.my-records-achievements,
.my-records-machines,
.my-records-history,
.my-records-note {
  border: 1px solid rgba(107, 211, 79, .22);
  border-radius: 24px;
  background: rgba(11, 15, 12, .92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.my-records-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: 28px;
  padding: 36px;
}

.my-records-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(107, 211, 79, .24);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(107, 211, 79, .09) inset;
  pointer-events: none;
}

.my-records-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.my-records-hero p {
  max-width: 690px;
  margin: 0;
  color: #aeb7af;
}

.my-records-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.my-records-total {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 22px;
  border: 1px solid rgba(107, 211, 79, .42);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(107, 211, 79, .16), rgba(7, 11, 8, .85));
}

.my-records-total span,
.my-records-total small { color: #aeb7af; font-size: 12px; }
.my-records-total strong { color: #9df57d; font-size: 38px; line-height: 1.3; }

.my-records-summary,
.my-records-achievements,
.my-records-machines,
.my-records-history,
.my-records-note { padding: 28px; }

.my-records-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.my-records-section-head > div:first-child > span {
  color: #7da7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.my-records-section-head h2 { margin: 2px 0 0; }
.my-records-section-head > p { margin: 0; color: #899289; font-size: 13px; }

.my-records-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.my-records-stat-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid #253128;
  border-radius: 16px;
  background: #0b0f0c;
}

.my-records-stat-grid article.is-featured {
  border-color: rgba(107, 211, 79, .48);
  background: linear-gradient(145deg, rgba(107, 211, 79, .14), #0b0f0c 72%);
}

.my-records-stat-grid span,
.my-records-stat-grid small { display: block; overflow: hidden; color: #8e998f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.my-records-stat-grid strong { display: block; overflow: hidden; margin: 5px 0 3px; color: #f4f7f3; font-size: clamp(20px, 3vw, 28px); line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.my-records-stat-grid .is-featured strong { color: #9df57d; }

.achievement-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.achievement-current,
.achievement-next {
  min-height: 166px;
  padding: 20px;
  border: 1px solid #2c3b2f;
  border-radius: 18px;
  background: #0a0e0b;
}

.achievement-current {
  border-color: rgba(242, 185, 59, .45);
  background: radial-gradient(circle at 88% 12%, rgba(242, 185, 59, .13), transparent 150px), #0a0e0b;
}

.achievement-caption {
  display: block;
  color: #8d978e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.achievement-current > div {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.achievement-current > div > b {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(242, 185, 59, .52);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(242, 185, 59, .24), rgba(242, 185, 59, .04));
  color: #f8ca5f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 27px;
  box-shadow: 0 0 30px rgba(242, 185, 59, .09);
}

.achievement-current p { display: grid; gap: 2px; margin: 0; }
.achievement-current strong { color: #fff; font-size: 23px; }
.achievement-current small { color: #9ba49c; font-size: 12px; }

.achievement-next > strong { display: block; margin-top: 10px; color: #9df57d; font-size: 20px; }
.achievement-next > p { min-height: 25px; margin: 2px 0 12px; color: #9ba49c; font-size: 12px; }
.achievement-next > small { display: block; margin-top: 5px; color: #7f8980; font-size: 10px; text-align: right; }

.achievement-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #202923;
}

.achievement-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3aa52d, #9df57d);
  box-shadow: 0 0 15px rgba(107, 211, 79, .35);
  transition: width .35s ease;
}

.achievement-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.achievement-badge {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid #28342a;
  border-radius: 14px;
  background: #090d0a;
  color: #929b93;
  font: inherit;
  text-align: left;
}

.achievement-badge > b {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #344137;
  border-radius: 50%;
  background: #111612;
  color: #59625b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}

.achievement-badge span { display: grid; min-width: 0; }
.achievement-badge span strong { overflow: hidden; color: #7f8880; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.achievement-badge span small { overflow: hidden; color: #606961; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.achievement-badge > i { position: absolute; top: 5px; right: 7px; color: #59625b; font-size: 8px; font-style: normal; font-weight: 900; }

.achievement-badge.is-unlocked {
  border-color: rgba(107, 211, 79, .35);
  background: linear-gradient(145deg, rgba(107, 211, 79, .09), #090d0a 70%);
  cursor: pointer;
}

.achievement-badge.is-unlocked > b { border-color: rgba(107, 211, 79, .48); color: #9df57d; }
.achievement-badge.is-unlocked span strong { color: #eef4ed; }
.achievement-badge.is-unlocked span small { color: #89a184; }
.achievement-badge.is-unlocked > i { color: #6bd34f; }
.achievement-badge.is-selected { border-color: #f2b93b; box-shadow: 0 0 0 1px rgba(242, 185, 59, .18) inset; }
.achievement-badge.is-selected > b { border-color: #f2b93b; color: #f8ca5f; }
.achievement-badge:disabled { cursor: default; opacity: .72; }
.achievement-help { margin: 12px 0 0; color: #768078; font-size: 10px; }

.achievement-unlock-toast {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 185, 59, .55);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(242, 185, 59, .17), rgba(107, 211, 79, .08));
  text-align: center;
  animation: achievement-unlock-in .5s cubic-bezier(.2,.8,.2,1) both;
}

.achievement-unlock-toast[hidden] { display: none; }
.achievement-unlock-toast span { color: #f2b93b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.achievement-unlock-toast strong { color: #fff3c8; font-size: 18px; }
.achievement-unlock-toast small { color: #afaa91; font-size: 10px; }

@keyframes achievement-unlock-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.my-records-filters {
  display: flex;
  gap: 7px;
}

.my-records-filters button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #314034;
  border-radius: 999px;
  background: #0b0f0c;
  color: #aeb7af;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.my-records-filters button.is-active {
  border-color: #6bd34f;
  background: #1b4b18;
  color: #fff;
}

.my-records-machine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.my-records-machine-card {
  padding: 20px;
  border: 1px solid #29352b;
  border-radius: 18px;
  background: linear-gradient(145deg, #101611, #090d0a);
}

.my-records-machine-card.is-selected { border-color: #6bd34f; box-shadow: 0 0 0 1px rgba(107, 211, 79, .2) inset; }
.my-records-machine-card-head { display: flex; justify-content: space-between; gap: 12px; }
.my-records-machine-card-head span { color: #7da7ff; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.my-records-machine-card-head small { color: #7f8980; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.my-records-machine-card h3 { margin: 6px 0 14px; font-size: 20px; line-height: 1.45; }

.my-records-machine-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.my-records-machine-values div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.025); }
.my-records-machine-values span { display: block; color: #828c83; font-size: 10px; }
.my-records-machine-values strong { display: block; overflow: hidden; margin-top: 1px; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.is-plus { color: #8cf06f !important; }
.is-minus { color: #ff7e75 !important; }

.my-records-machine-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.my-records-machine-links a,
.my-records-machine-links button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #344438;
  border-radius: 12px;
  background: transparent;
  color: #dce4dc;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.my-records-machine-links button { border-color: rgba(107, 211, 79, .52); color: #9df57d; }
.my-records-filter-empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed #334036; border-radius: 16px; color: #8e998f; text-align: center; }

.my-records-sort { display: grid; gap: 3px; color: #8e998f; font-size: 11px; }
.my-records-sort select { min-height: 42px; padding: 8px 34px 8px 12px; border: 1px solid #344438; border-radius: 12px; background: #090d0a; color: #f3f6f2; font: inherit; }

.my-records-history-list { display: grid; gap: 12px; }

.my-records-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  padding: 20px;
  border: 1px solid #29352b;
  border-radius: 18px;
  background: #0a0e0b;
}

.my-records-history-meta { display: flex; align-items: center; gap: 9px; }
.my-records-history-meta span { padding: 3px 8px; border-radius: 999px; background: rgba(125, 167, 255, .12); color: #90b2ff; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.my-records-history-meta time { color: #7f8980; font-size: 11px; }
.my-records-history-main h3 { margin: 6px 0 0; font-size: 20px; }
.my-records-history-main h3 a { color: #f5f7f4; }
.my-records-history-main p { margin: 3px 0 0; color: #abb4ac; font-size: 13px; }

.my-records-badges,
.my-records-flow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.my-records-badges b { padding: 3px 8px; border: 1px solid rgba(242, 185, 59, .35); border-radius: 999px; color: #f7cb64; font-size: 10px; }
.my-records-flow { align-items: center; }
.my-records-flow span { padding: 4px 8px; border: 1px solid #2a372d; border-radius: 999px; color: #aab4ab; font-size: 10px; }
.my-records-flow i { color: #526156; font-size: 11px; font-style: normal; }

.my-records-history-score {
  padding-left: 20px;
  border-left: 1px solid #253128;
}

.my-records-history-score > span { color: #8e998f; font-size: 10px; }
.my-records-history-score > strong { display: block; margin: -2px 0 8px; font-size: 28px; line-height: 1.35; }
.my-records-history-score dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; }
.my-records-history-score dl div { display: flex; justify-content: space-between; gap: 8px; }
.my-records-history-score dt { color: #778179; font-size: 10px; }
.my-records-history-score dd { margin: 0; color: #dce4dc; font-size: 11px; font-weight: 700; }
.my-records-history-score > small { display: block; margin-top: 7px; color: #7f8980; font-size: 10px; }
.my-records-history-score > button { margin-top: 10px; padding: 4px 0; border: 0; background: transparent; color: #ba7772; font: inherit; font-size: 10px; cursor: pointer; }

.my-records-empty { padding: 42px 20px; border: 1px dashed #334036; border-radius: 18px; text-align: center; }
.my-records-empty > span { display: block; color: #6bd34f; font-size: 38px; }
.my-records-empty strong { display: block; font-size: 22px; }
.my-records-empty p { margin: 5px 0 18px; color: #8e998f; }
.my-records-load-more { display: block; width: min(100%, 360px); margin: 18px auto 0; }
.my-records-load-more[hidden] { display: none; }
.my-records-note { color: #9da79e; font-size: 13px; }
.my-records-note h2 { color: #f1f5f0; font-size: 20px; }
.my-records-note ul { margin-bottom: 0; }

@media (max-width: 760px) {
  .my-records-shell { padding: 12px 10px calc(112px + env(safe-area-inset-bottom)); gap: 12px; }
  .my-records-hero,
  .my-records-summary,
  .my-records-achievements,
  .my-records-machines,
  .my-records-history,
  .my-records-note { border-radius: 18px; }
  .my-records-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .my-records-hero p { font-size: 13px; line-height: 1.75; }
  .my-records-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .my-records-actions .button { min-height: 46px; padding: 8px 10px; font-size: 12px; }
  .my-records-total { padding: 16px; }
  .my-records-total strong { font-size: 32px; }
  .my-records-summary,
  .my-records-machines,
  .my-records-history,
  .my-records-note { padding: 18px 14px; }
  .my-records-section-head { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .my-records-stat-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .my-records-stat-grid article { padding: 13px 11px; border-radius: 13px; }
  .my-records-stat-grid strong { font-size: 20px; }
  .achievement-feature-grid { grid-template-columns: 1fr; gap: 8px; }
  .achievement-current,
  .achievement-next { min-height: 0; padding: 15px; border-radius: 14px; }
  .achievement-current > div { margin-top: 10px; }
  .achievement-current > div > b { flex-basis: 58px; width: 58px; height: 58px; font-size: 22px; }
  .achievement-current strong { font-size: 19px; }
  .achievement-badge-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .achievement-badge { grid-template-columns: 38px minmax(0, 1fr); min-height: 68px; padding: 9px; }
  .achievement-badge > b { width: 36px; height: 36px; font-size: 13px; }
  .my-records-filters { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .my-records-filters button { flex: 0 0 auto; }
  .my-records-machine-grid { grid-template-columns: 1fr; }
  .my-records-machine-card { padding: 16px; }
  .my-records-sort { width: 100%; }
  .my-records-sort select { width: 100%; }
  .my-records-history-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .my-records-history-score { padding: 13px 0 0; border-top: 1px solid #253128; border-left: 0; }
  .my-records-history-score > strong { font-size: 25px; }
}
