/* =========================
   games / base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Arial Rounded MT Bold",
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    system-ui,
    sans-serif;
  color: #30283a;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle, #d9cdfa 1.5px, transparent 1.5px),
    #fff7e8;
  background-size: auto, 18px 18px, auto;
}

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

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sp-only {
  display: none;
}

/* =========================
   page
========================= */

.games-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 80px;
}

/* =========================
   hero
========================= */

.games-hero {
  margin: 34px auto 34px;
}

.games-window {
  position: relative;
  overflow: hidden;
  padding: 42px 28px 34px;
  border: 4px solid #30283a;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 238, 255, 0.95));
  box-shadow:
    8px 8px 0 #c7bdf4,
    0 18px 40px rgba(70, 55, 120, 0.18);
  text-align: center;
}

.games-window::before {
  content: "";
  position: absolute;
  right: -58px;
  top: -68px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(142, 232, 223, 0.58);
}

.games-window::after {
  content: "";
  position: absolute;
  left: -64px;
  bottom: -74px;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: rgba(255, 243, 191, 0.82);
}

.window-dots {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  gap: 7px;
  z-index: 2;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff9fbc;
  box-shadow:
    17px 0 0 #ffe08a,
    34px 0 0 #8ee8df;
}

.games-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 16px;
  border: 3px solid #30283a;
  border-radius: 999px;
  background: #fff3bf;
  color: #6f5ab8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    3px 3px 0 #c7bdf4,
    inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.games-window h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #30283a;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow:
    3px 3px 0 #ffffff,
    6px 6px 0 #c7bdf4;
}

.games-lead {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 18px auto 0;
  color: #5f5668;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 800;
}

.games-user-area {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #6c6174;
  font-size: 13px;
  font-weight: 800;
}

.games-action-row {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-action-btn {
  min-width: 140px;
  min-height: 44px;
  padding: 10px 16px;
  border: 3px solid #30283a;
  border-radius: 15px;
  background: #fff3bf;
  color: #30283a;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #30283a;
}

.game-action-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #30283a;
}

/* =========================
   panel / tabs
========================= */

.games-panel {
  padding: 24px 0 0;
}

.games-tabs {
  width: min(520px, 100%);
  margin: 0 auto 48px;
  padding: 10px;
  border: 3px solid #30283a;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    6px 6px 0 #30283a,
    0 12px 28px rgba(70, 55, 120, 0.16);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.games-tab {
  min-height: 50px;
  margin: 0;
  padding: 10px 12px;
  border: 3px solid #30283a;
  border-radius: 15px;
  background: #fff3bf;
  color: #30283a;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.games-tab.active,
.games-tab:hover {
  background: #ff95b9;
  color: #ffffff;
}

/* =========================
   screens
========================= */

.screen {
  display: none;
  min-height: 420px;
  padding-bottom: 64px;
}

.screen.active {
  display: block;
}

.section-title {
  margin-bottom: 28px;
  text-align: center;
}

.section-title p {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border: 3px solid #30283a;
  border-radius: 999px;
  background: #fff3bf;
  color: #6f5ab8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #c7bdf4;
}

.section-title h2 {
  margin: 0;
  color: #30283a;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
  font-weight: 900;
  text-shadow:
    2px 2px 0 #ffffff,
    4px 4px 0 #a8edf0;
}

.screen-lead {
  max-width: 680px;
  margin: 0 auto 30px;
  color: #5f5668;
  text-align: center;
  line-height: 1.9;
  font-weight: 800;
}

/* =========================
   game list
========================= */

.game-list,
#gameList {
  width: min(800px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  min-height: 190px;
  padding: 26px;
  border: 3px solid #30283a;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 6px 6px 0 #c7bdf4;
  color: #30283a;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.game-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #c7bdf4;
}

.game-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 32px;
  margin-bottom: 18px;
  border: 3px solid #30283a;
  border-radius: 9px;
  background:
    linear-gradient(90deg, #8ee8df 0 50%, #ff95b9 50%);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}

.game-card::after {
  content: "PLAY";
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 6px 12px;
  border: 3px solid #30283a;
  border-radius: 999px;
  background: #30283a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.game-card strong {
  display: block;
  margin: 0 0 10px;
  color: #30283a;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow:
    2px 2px 0 #ffffff,
    4px 4px 0 #d9cdfa;
}

.game-card span {
  display: block;
  max-width: calc(100% - 72px);
  color: #5f5668;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 800;
}

/* =========================
   ranking
========================= */

.ranking-game-tabs {
  width: min(760px, 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ranking-game-tab {
  min-height: 44px;
  padding: 9px 8px;
  border: 3px solid #30283a;
  border-radius: 16px;
  background: #ffffff;
  color: #30283a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #c7bdf4;
}

.ranking-game-tab.active,
.ranking-game-tab:hover {
  background: #8ee8df;
  color: #30283a;
}

.ranking-tabs,
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}

.ranking-tabs button,
.tabs button {
  min-width: 110px;
  min-height: 42px;
  padding: 10px 14px;
  border: 3px solid #30283a;
  border-radius: 999px;
  background: #fff3bf;
  color: #30283a;
  font-weight: 900;
  box-shadow: 3px 3px 0 #c7bdf4;
}

.ranking-tabs button.active,
.tabs button.active,
.ranking-tabs button:hover,
.tabs button:hover {
  background: #ff95b9;
  color: #ffffff;
}

.ranking-area,
#rankingArea {
  width: min(760px, 100%);
  margin: 0 auto;
}

.ranking-item {
  width: 100%;
  margin: 12px auto;
  padding: 14px 16px;
  border: 3px solid #30283a;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 5px 5px 0 #c7bdf4;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.ranking-rank {
  width: 42px;
  height: 42px;
  border: 3px solid #30283a;
  border-radius: 14px;
  background: #fff3bf;
  color: #30283a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 3px 3px 0 #c7bdf4;
}

.ranking-player {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.ranking-icon {
  width: 54px;
  height: 54px;
  border: 3px solid #30283a;
  border-radius: 14px;
  background: #fff7e8;
  object-fit: cover;
  image-rendering: pixelated;
}

.ranking-player-text {
  min-width: 0;
}

.ranking-player-text strong {
  display: block;
  color: #30283a;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-player-text small {
  display: block;
  margin-top: 3px;
  color: #6c6174;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-score {
  color: #30283a;
  font-size: 22px;
  text-align: right;
  line-height: 1;
}

.ranking-empty,
.ranking-loading {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 24px 18px;
  border: 3px solid #30283a;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 5px 5px 0 #c7bdf4;
  color: #5f5668;
  text-align: center;
  font-weight: 900;
  line-height: 1.8;
}

/* =========================
   game screen
========================= */

.game-container,
#gameContainer {
  width: 100%;
  margin: 0 auto;
}

body.is-game-screen .games-hero,
body.is-game-screen .games-tabs,
body.is-game-screen #siteHeader,
body.is-game-screen #siteFooter {
  display: none;
}

body.is-game-screen .games-page {
  width: 100%;
  margin: 0;
}

body.is-game-screen .games-panel {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
}

body.is-game-screen .screen {
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: 12px;
  overflow: hidden;
}

body.is-game-screen #gameScreen {
  display: block;
}

body.is-game-screen #gameContainer {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* =========================
   game screen lock / mobile app mode
========================= */

html,
body {
  min-height: 100%;
}

body.is-game-screen {
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.is-game-screen * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body.is-game-screen button,
body.is-game-screen canvas,
body.is-game-screen .game-2048-board,
body.is-game-screen .taprush-board,
body.is-game-screen .sunvader-field,
body.is-game-screen .memory-board {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.game-back-floating {
  display: none;
}

body.is-game-screen .game-back-floating {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 3px solid #30283a;
  border-radius: 999px;
  background: #fff3bf;
  color: #30283a;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #c7bdf4;
}

/* =========================
   2048
========================= */

.game-2048-layout {
  width: 100%;
  height: 100%;
  padding: 72px 0 18px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: 14px;
}

.game-2048-score-box {
  width: min(86vw, 340px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-2048-score-box p {
  margin: 0;
  padding: 12px 10px;
  border: 3px solid #30283a;
  border-radius: 16px;
  background: #ffffff;
  color: #30283a;
  font-size: clamp(16px, 4.8vw, 22px);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  box-shadow: 4px 4px 0 #c7bdf4;
}

.game-2048-board {
  width: min(86vw, 340px);
  height: min(86vw, 340px);
  margin: 0 auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 4px solid #30283a;
  border-radius: 24px;
  background: #b8aa9b;
  box-shadow: 8px 8px 0 #c7bdf4;
  touch-action: none;
}

.game-2048-cell {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: #cdc1b4;
  color: #30283a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 8vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.game-2048-cell[data-value="2"] {
  background: #eee4da;
}

.game-2048-cell[data-value="4"] {
  background: #ede0c8;
}

.game-2048-cell[data-value="8"] {
  background: #f2b179;
  color: #ffffff;
}

.game-2048-cell[data-value="16"] {
  background: #f59563;
  color: #ffffff;
}

.game-2048-cell[data-value="32"] {
  background: #f67c5f;
  color: #ffffff;
}

.game-2048-cell[data-value="64"] {
  background: #f65e3b;
  color: #ffffff;
}

.game-2048-cell[data-value="128"],
.game-2048-cell[data-value="256"],
.game-2048-cell[data-value="512"],
.game-2048-cell[data-value="1024"],
.game-2048-cell[data-value="2048"] {
  background: #edcf72;
  color: #ffffff;
  font-size: clamp(16px, 5.5vw, 28px);
}

.game-2048-restart {
  width: min(78vw, 300px);
  margin: 0 auto;
}

@media (min-width: 760px) {
  .game-2048-layout {
    padding-top: 32px;
  }

  .game-2048-score-box,
  .game-2048-board {
    width: min(70vmin, 420px);
  }

  .game-2048-board {
    height: min(70vmin, 420px);
    padding: 12px;
    gap: 10px;
  }
}

/* =========================
   Tap Rush
========================= */

.taprush-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.taprush-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px auto 14px;
}

.taprush-status-card {
  background: #ffffff;
  border: 3px solid #30283a;
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 5px 5px 0 #c7bdf4;
}

.taprush-label {
  display: block;
  color: #8f7a66;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.taprush-status-card strong {
  display: block;
  color: #30283a;
  font-size: 34px;
  line-height: 1.1;
}

.taprush-message {
  min-height: 24px;
  margin: 8px 0 16px;
  color: #5f5668;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.taprush-board {
  width: min(92vw, 390px);
  height: min(92vw, 390px);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 9px;
  border: 3px solid #30283a;
  border-radius: 22px;
  background: #b9a895;
  box-shadow: 6px 6px 0 #c7bdf4;
}

.taprush-cell {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #d7cbbd;
  color: #30283a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.taprush-symbol {
  display: block;
  font-size: clamp(34px, 12vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.taprush-point {
  display: block;
  margin-top: 6px;
  font-size: clamp(13px, 4vw, 18px);
  font-weight: 900;
}

.taprush-cell.normal {
  background: #f5ead9;
}

.taprush-cell.good {
  background: #ffe8bd;
  color: #6f4b1f;
}

.taprush-cell.super {
  background: #ffd6e7;
  color: #8e3e60;
}

.taprush-cell.bad {
  background: #d8b08c;
  color: #ffffff;
}

.taprush-start-btn {
  min-width: 190px;
  min-height: 52px;
  border: 3px solid #30283a;
  border-radius: 18px;
  background: #ff95b9;
  color: white;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #30283a;
}

/* =========================
   sunvader
========================= */

.sunvader-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.sunvader-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 auto 12px;
}

.sunvader-status-card {
  background: #ffffff;
  border: 3px solid #30283a;
  border-radius: 18px;
  padding: 12px 10px;
  box-shadow: 5px 5px 0 #c7bdf4;
}

.sunvader-label {
  display: block;
  color: #8f7a66;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.sunvader-status-card strong {
  display: block;
  color: #30283a;
  font-size: 30px;
  line-height: 1.1;
}

.sunvader-message {
  min-height: 24px;
  margin: 6px 0 12px;
  color: #5f5668;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.sunvader-field {
  position: relative;
  width: min(94vw, 430px);
  height: min(120vw, 560px, calc(100dvh - 210px));
  min-height: 420px;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid #30283a;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 214, 231, 0.65) 0 54px, transparent 56px),
    radial-gradient(circle at 75% 12%, rgba(255, 232, 189, 0.75) 0 48px, transparent 50px),
    linear-gradient(180deg, #cfe6ff 0%, #f5f1e8 72%);
  box-shadow: 6px 6px 0 #c7bdf4;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sunvader-player {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 16px 16px 22px 22px;
  background: #30283a;
  transform: translateX(-50%);
  z-index: 5;
}

.sunvader-object {
  position: absolute;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.sunvader-control {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  z-index: 7;
  opacity: 0;
  touch-action: none;
}

.sunvader-control-left {
  left: 0;
}

.sunvader-control-right {
  right: 0;
}

.sunvader-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 10px auto 14px;
  color: #5f5668;
  font-size: 12px;
  font-weight: 800;
}

.sunvader-start-btn {
  min-width: 190px;
  min-height: 52px;
  border: 3px solid #30283a;
  border-radius: 18px;
  background: #ff95b9;
  color: white;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #30283a;
}

.sun,
.monster {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.sun-100 {
  background: #ffe8bd;
}

.sun-300 {
  background: #ffd6e7;
}

.sun-500 {
  background: #edcf72;
}

.sun-rainbow {
  background: conic-gradient(
    from 0deg,
    #ffd6e7,
    #ffe8bd,
    #c9f5df,
    #cfe6ff,
    #e5d4ff,
    #ffd6e7
  );
}

.monster {
  border-radius: 42% 42% 48% 48%;
  background: #6f5c4c;
}

/* =========================
   Memory Chain
========================= */

.memory-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.memory-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 auto 14px;
}

.memory-status-card {
  background: #ffffff;
  border: 3px solid #30283a;
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 5px 5px 0 #c7bdf4;
}

.memory-label {
  display: block;
  color: #8f7a66;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.memory-status-card strong {
  display: block;
  color: #30283a;
  font-size: 34px;
  line-height: 1.1;
}

.memory-message {
  min-height: 24px;
  margin: 8px 0 16px;
  color: #5f5668;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.memory-board {
  width: min(92vw, 390px);
  height: min(92vw, 390px);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border: 3px solid #30283a;
  border-radius: 24px;
  background: #b9a895;
  box-shadow: 6px 6px 0 #c7bdf4;
}

.memory-cell {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #ffffff, #f6ead9);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.memory-cell.active {
  background:
    linear-gradient(135deg, #ffd6e7, #edcf72);
  transform: scale(1.04);
}

.memory-cell.correct {
  background:
    linear-gradient(135deg, #c9f5df, #ffe8bd);
  transform: scale(0.96);
}

.memory-cell.wrong {
  background:
    linear-gradient(135deg, #6f5c4c, #30283a);
  transform: scale(0.94);
}

.memory-start-btn {
  min-width: 190px;
  min-height: 52px;
  border: 3px solid #30283a;
  border-radius: 18px;
  background: #ff95b9;
  color: white;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #30283a;
}

/* =========================
   mobile
========================= */

@media (max-width: 760px) {
  .games-page {
    width: min(100% - 24px, 1040px);
    margin-bottom: 56px;
  }

  .games-hero {
    margin: 24px auto 28px;
  }

  .games-window {
    padding: 40px 18px 30px;
    border-radius: 24px;
  }

  .sp-only {
    display: inline;
  }

  .games-tabs {
    margin-bottom: 42px;
  }

  .screen {
    min-height: 360px;
    padding-bottom: 52px;
  }

  .game-list,
  #gameList {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-card {
    min-height: 170px;
    padding: 24px;
  }

  .game-card strong {
    font-size: 25px;
  }

  .game-card span {
    max-width: calc(100% - 58px);
  }

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

  .ranking-item {
    grid-template-columns: 46px minmax(0, 1fr) 68px;
    gap: 9px;
    padding: 12px;
  }

  .ranking-rank {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-radius: 12px;
  }

  .ranking-player {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
  }

  .ranking-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .ranking-player-text strong {
    font-size: 13px;
  }

  .ranking-player-text small {
    font-size: 11px;
  }

  .ranking-score {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .games-page {
    width: min(100% - 20px, 1040px);
  }

  .games-window {
    padding: 38px 14px 28px;
  }

  .games-tab {
    font-size: 14px;
  }

  .ranking-tabs button,
  .tabs button {
    min-width: 92px;
    font-size: 13px;
  }

  .ranking-game-tab {
    font-size: 12px;
  }
}
