:root {
  color-scheme: light;
  --ink: #05070a;
  --muted: #6f747d;
  --line: #e8e9ec;
  --blue: #2f7cf6;
  --green: #49c66a;
  --yellow: #ffd95a;
  --orange: #ff8b2f;
  --red: #ff5a55;
  --panel: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 18px 46px rgba(24, 38, 53, 0.13);
  --radius: 8px;
  font-family:
    Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: auto;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

a {
  color: inherit;
  text-decoration: none;
}

.room-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(22px) saturate(1.4);
}

.club-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-word {
  display: inline-flex;
  overflow: hidden;
  font-size: 1.18rem;
  font-weight: 1000;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-crypto {
  color: #1da85b;
}

.room-status {
  min-width: 118px;
  text-align: right;
}

.room-status span,
.featured-score span,
.rank-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.room-status strong {
  display: block;
  margin-top: 3px;
  font-size: 0.95rem;
  font-weight: 1000;
  line-height: 1;
}

.arcade-hero {
  position: relative;
  display: grid;
  min-height: min(800px, 84svh);
  place-items: end center;
  overflow: hidden;
  padding: 104px 24px 130px;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(0, 0, 0, 0.02) 42%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    url("./assets/crypto-golf-arcade-hero.png") center / cover no-repeat;
  touch-action: pan-y;
}

.arcade-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(178, 143, 78, 0.72));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(860px, calc(100vw - 48px));
  padding-bottom: 112px;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.hero-brand {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  font-weight: 1000;
  line-height: 1.1;
}

.hero-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.35rem, 9vw, 7.2rem);
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 52rem;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.35rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.35;
}

.hero-lead span {
  display: block;
}

.primary-action {
  display: inline-grid;
  width: min(100%, 430px);
  min-width: 0;
  min-height: 70px;
  margin-top: 34px;
  place-items: center;
  padding: 0 34px;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(1.08rem, 3vw, 1.45rem);
  font-weight: 1000;
  line-height: 1;
  background: var(--blue);
  box-shadow: 0 18px 46px rgba(18, 89, 218, 0.34);
  text-shadow: none;
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}

.primary-action:hover,
.featured-game:hover,
.rank-row.live:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
}

.hero-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 800;
}

.featured-game {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(620px, calc(100% - 32px));
  min-height: 92px;
  padding: 12px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-shadow: none;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(1.4);
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}

.featured-game:hover {
  transform: translateX(-50%) translateY(-2px);
}

.featured-game span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.featured-game strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 1000;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-score {
  min-width: 106px;
  text-align: right;
}

.featured-score strong {
  color: var(--blue);
  font-size: 1.45rem;
}

.game-library {
  position: relative;
  z-index: 4;
  padding: 42px max(20px, calc((100vw - 980px) / 2)) 84px;
  background: #fff;
}

.category-rail {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 36px;
  overflow-x: auto;
  padding: 0 0 6px;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
  color: #111;
  font-size: 1.1rem;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 38, 53, 0.11);
}

.category-chip.active {
  box-shadow:
    0 10px 30px rgba(24, 38, 53, 0.13),
    inset 0 0 0 1px rgba(255, 90, 85, 0.1);
}

.chip-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.grid-icon {
  border-radius: 7px;
  background:
    linear-gradient(#fff 0 0) center / 4px 100% no-repeat,
    linear-gradient(90deg, #fff 0 0) center / 100% 4px no-repeat,
    var(--red);
}

.casual-icon {
  border-radius: 7px 7px 14px 14px;
  background:
    radial-gradient(circle at 27% 72%, #ffd95a 0 8%, transparent 9%),
    radial-gradient(circle at 73% 72%, #ffd95a 0 8%, transparent 9%),
    linear-gradient(180deg, #4398ff 0 60%, #2f7cf6 61%);
}

.casual-icon::before {
  position: absolute;
  top: -8px;
  left: 8px;
  width: 12px;
  height: 20px;
  content: "";
  border-radius: 999px;
  background: #4398ff;
  box-shadow:
    -10px 8px 0 #ffd95a,
    18px 8px 0 #ffd95a;
}

.sports-icon {
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 18%, #fff 19% 24%, transparent 25% 75%, #fff 76% 81%, transparent 82%),
    linear-gradient(#fff 0 0) center / 100% 4px no-repeat,
    #78d842;
}

.puzzle-icon {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 35%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 64% 58%, #fff 0 7%, transparent 8%),
    linear-gradient(135deg, #ffcf4e, #ff8b2f);
}

.ranking-section {
  width: min(100%, 930px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 1000;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.season-pill {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 1000;
  background: #edf3ff;
  white-space: nowrap;
}

.ranking-list {
  display: grid;
}

.rank-row {
  display: grid;
  grid-template-columns: 88px 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 118px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}

.rank-row:first-child {
  border-top: 1px solid var(--line);
}

.rank-number {
  color: #111;
  font-size: 1.55rem;
  font-weight: 1000;
  text-align: center;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #06070a;
  font-size: clamp(1.28rem, 3vw, 1.75rem);
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy p {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-action {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.rank-action small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.rank-action small strong {
  color: var(--ink);
}

.get-button {
  display: inline-grid;
  min-width: 98px;
  min-height: 48px;
  place-items: center;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 1.12rem;
  font-weight: 1000;
  line-height: 1;
  background: #e9ebef;
  white-space: nowrap;
}

.get-button.disabled {
  color: #8a909a;
  background: #f0f1f3;
}

.locked {
  opacity: 0.72;
}

.app-icon {
  position: relative;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 21px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 9px 20px rgba(24, 38, 53, 0.15);
}

.merge-icon {
  background:
    radial-gradient(circle at 80% 17%, rgba(255, 255, 255, 0.9) 0 9%, transparent 10%),
    linear-gradient(180deg, #91ddff 0 42%, #8ee66f 43% 100%);
}

.icon-ball,
.icon-flag {
  position: absolute;
  display: block;
}

.icon-ball {
  border-radius: 50%;
  box-shadow:
    inset -5px -6px 0 rgba(0, 0, 0, 0.12),
    0 6px 10px rgba(0, 0, 0, 0.13);
}

.icon-ball::before {
  position: absolute;
  top: 27%;
  left: 26%;
  width: 13%;
  height: 13%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    12px 6px 0 rgba(90, 80, 58, 0.18),
    4px 18px 0 rgba(90, 80, 58, 0.14);
}

.icon-ball.white {
  bottom: 10px;
  left: 9px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #fff, #dce8ee);
}

.icon-ball.yellow {
  right: 20px;
  bottom: 15px;
  width: 33px;
  height: 33px;
  background: linear-gradient(135deg, #fff174, #f3c83d);
}

.icon-ball.orange {
  right: 6px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ffb75b, #f4701f);
}

.icon-flag {
  top: 15px;
  left: 40px;
  width: 25px;
  height: 35px;
  border-left: 3px solid #fff;
}

.icon-flag::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 14px;
  content: "";
  background: var(--red);
  clip-path: polygon(0 0, 100% 45%, 0 100%);
}

.pin-icon {
  background:
    radial-gradient(circle at 64% 34%, #fff 0 8%, transparent 9%),
    linear-gradient(52deg, transparent 0 46%, rgba(255, 255, 255, 0.78) 47% 50%, transparent 51%),
    linear-gradient(135deg, #35a563, #a7ee62);
}

.putt-break-icon {
  background:
    radial-gradient(circle at 23% 50%, #ffffff 0 7%, transparent 8%),
    radial-gradient(ellipse at 20% 50%, #183329 0 10%, transparent 11%),
    linear-gradient(90deg, transparent 0 65%, #eff8f8 66% 70%, #496664 71% 74%, transparent 75%),
    repeating-linear-gradient(0deg, rgba(255, 238, 117, 0.94) 0 9px, rgba(255, 238, 117, 0.94) 9px 14px, transparent 14px 20px),
    linear-gradient(135deg, #7de66d, #2d9f67);
}

.putt-break-icon::before,
.putt-break-icon::after {
  position: absolute;
  content: "";
}

.putt-break-icon::before {
  right: 13px;
  top: 19px;
  width: 7px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3fbfb, #789594);
  box-shadow: -4px 0 0 rgba(10, 55, 43, 0.16);
}

.putt-break-icon::after {
  left: 12px;
  top: 18px;
  width: 28px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  background: rgba(20, 130, 73, 0.26);
}

.green-icon {
  background:
    radial-gradient(circle at 68% 62%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 28% 35%, #153728 0 12%, transparent 13%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0 7px, transparent 8px 22px),
    linear-gradient(135deg, #7de67a, #0f8d58);
}

.tilt-putt-icon {
  background:
    radial-gradient(circle at 50% 83%, #ffffff 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 17%, #102e22 0 9%, transparent 10%),
    linear-gradient(100deg, transparent 0 36%, #fff7a6 37% 42%, transparent 43% 63%, #fff7a6 64% 69%, transparent 70%),
    radial-gradient(ellipse at 50% 16%, #7fe469 0 34%, transparent 35%),
    linear-gradient(180deg, #9cf073, #2aa766);
}

.tilt-putt-icon::before,
.tilt-putt-icon::after {
  position: absolute;
  content: "";
}

.tilt-putt-icon::before {
  top: 16px;
  left: 18px;
  width: 46px;
  height: 48px;
  border-right: 5px solid rgba(255, 255, 255, 0.82);
  border-left: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  transform: rotate(-12deg);
}

.tilt-putt-icon::after {
  right: 18px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #dce8ee);
  box-shadow:
    inset -3px -4px 0 rgba(0, 0, 0, 0.12),
    0 5px 8px rgba(0, 0, 0, 0.14);
}

.caddie-icon {
  background:
    radial-gradient(circle at 50% 40%, #fff1a3 0 22%, transparent 23%),
    radial-gradient(circle at 50% 52%, #2e6b44 0 6%, transparent 7%),
    linear-gradient(135deg, #9ae978, #2a9b67);
}

.club-icon {
  background:
    linear-gradient(38deg, transparent 0 42%, #ecf4f9 43% 47%, transparent 48%),
    radial-gradient(ellipse at 30% 74%, #dbe8ef 0 18%, transparent 19%),
    linear-gradient(135deg, #4aa7ff, #64d56b);
}

@media (max-width: 760px) {
  .room-nav {
    min-height: 60px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-word {
    max-width: 48vw;
    font-size: 1rem;
  }

  .room-status {
    min-width: 88px;
  }

  .room-status span {
    font-size: 0.64rem;
  }

  .room-status strong {
    font-size: 0.82rem;
  }

  .arcade-hero {
    min-height: min(720px, 78svh);
    padding: 86px 18px 122px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(0, 0, 0, 0.04) 42%,
        rgba(0, 0, 0, 0.62) 100%
      ),
      url("./assets/crypto-golf-arcade-hero-mobile.png") center top / cover no-repeat;
  }

  .hero-content {
    width: min(100%, calc(100vw - 36px));
    padding-bottom: 104px;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 9.6vw, 3.25rem);
  }

  .hero-lead {
    font-size: clamp(1.05rem, 5.3vw, 1.45rem);
    line-height: 1.42;
    margin-top: 18px;
  }

  .primary-action {
    min-height: 62px;
    margin-top: 26px;
  }

  .hero-note {
    margin-top: 18px;
    font-size: 0.9rem;
  }

  .featured-game {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 78px;
    padding: 10px;
  }

  .featured-game .app-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .featured-game strong {
    font-size: 1.05rem;
  }

  .featured-score {
    min-width: 72px;
  }

  .featured-score strong {
    font-size: 1.08rem;
  }

  .game-library {
    padding: 30px 18px 72px;
  }

  .category-rail {
    gap: 14px;
    margin-bottom: 34px;
  }

  .category-chip {
    min-height: 54px;
    padding: 0 20px;
    font-size: 1rem;
  }

  .section-head {
    align-items: start;
  }

  .season-pill {
    min-height: 34px;
    padding: 0 11px;
  }

  .rank-row {
    grid-template-columns: 68px 34px minmax(0, 1fr) 78px;
    gap: 10px;
    min-height: 104px;
    padding: 12px 0;
  }

  .app-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .rank-number {
    font-size: 1.28rem;
  }

  .rank-copy span {
    font-size: 0.68rem;
  }

  .get-button {
    min-width: 74px;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.96rem;
  }

  .rank-action small {
    display: none;
  }
}

@media (max-width: 430px) {
  .featured-score {
    display: none;
  }

  .featured-game {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .section-head {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 62px 28px minmax(0, 1fr) 70px;
    gap: 8px;
  }

  .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .rank-copy strong {
    font-size: 1.08rem;
  }

  .rank-copy p {
    font-size: 0.88rem;
  }
}

/* ── back-to-main ── */
.back-to-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #198754;
  background: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.18);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.back-to-main:hover {
  background: rgba(25, 135, 84, 0.16);
  text-decoration: none;
}

/* ── golf-shogi-icon ── */
.golf-shogi-icon {
  background: linear-gradient(145deg, #2d6a3f, #1a4a2a);
  position: relative;
  overflow: hidden;
}
.golf-shogi-icon::before {
  position: absolute;
  content: "将";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-size: 36px;
  font-weight: 900;
  color: rgba(255, 220, 100, 0.95);
  font-family: serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  line-height: 1;
}
.golf-shogi-icon::after {
  position: absolute;
  content: "";
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #a8d8b0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
