/* Airport reunion mini-game — mobile-first · Ms.Jemi.com */

.game-page .game-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.85rem 0.75rem 2.5rem;
}

.game-page .page-title {
  font-size: clamp(1.65rem, 6vw, 2.35rem);
  margin-bottom: 0.35rem;
}

.game-lede {
  max-width: 36rem;
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.game-player { margin-top: 0.5rem; }

.game-stage-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 120, 90, 0.14);
  background: #1a2430;
  max-width: 420px;
  margin: 0 auto;
}

.game-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #1a2430;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.game-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.55rem 0.6rem;
  z-index: 2;
}

.game-hud {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 14px rgba(44, 42, 40, 0.1);
  align-self: stretch;
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hud-level {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.hud-hint {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #5a5048;
}

.hud-hearts {
  margin: 0;
  color: #e07898;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.game-dialog {
  align-self: stretch;
  background: rgba(255, 252, 248, 0.96);
  border-radius: 14px;
  padding: 0.75rem 0.9rem 0.85rem;
  box-shadow: 0 8px 24px rgba(44, 42, 40, 0.14);
  border: 1px solid rgba(196, 120, 90, 0.16);
  pointer-events: auto;
}

.dialog-who {
  margin: 0 0 0.15rem;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--terracotta);
}

.dialog-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--charcoal);
}

.dialog-tap {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #8a7e74;
  text-align: right;
}

.game-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.85rem;
  background: rgba(26, 36, 48, 0.48);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  z-index: 5;
}

.game-panel:not([hidden]) { display: flex; }

.panel-card {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 120, 90, 0.14);
  padding: 1.35rem 1.1rem 1.2rem;
  text-align: center;
}

.panel-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  font-weight: 600;
  color: var(--charcoal);
}

.panel-body {
  margin: 0 0 1rem;
  color: #5a5048;
  line-height: 1.45;
  font-size: 0.98rem;
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.panel-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1.15rem;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9ebb, #e87898);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 120, 152, 0.35);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.panel-btn:active { transform: scale(0.98); }

.panel-btn.secondary {
  background: linear-gradient(180deg, #fff8f0, #f0e4d4);
  color: var(--charcoal);
  box-shadow: 0 3px 10px rgba(44, 42, 40, 0.08);
}

.panel-btn.linkish {
  background: transparent;
  color: var(--terracotta);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  min-height: 44px;
  padding: 0.55rem;
}

.game-controls {
  display: flex;
  margin: 0.85rem auto 0;
  max-width: 420px;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
  padding: 0 0.15rem;
}

.pad {
  display: grid;
  grid-template-columns: 64px 64px 64px;
  grid-template-rows: 64px 64px 64px;
  gap: 6px;
  place-items: center;
}

.pad-btn {
  appearance: none;
  border: 1px solid rgba(196, 120, 90, 0.22);
  background: rgba(255, 252, 248, 0.98);
  color: var(--charcoal);
  width: 64px;
  height: 64px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 16px;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}

.pad-btn[data-dir="up"]    { grid-column: 2; grid-row: 1; }
.pad-btn[data-dir="left"]  { grid-column: 1; grid-row: 2; }
.pad-btn[data-dir="down"]  { grid-column: 2; grid-row: 3; }
.pad-btn[data-dir="right"] { grid-column: 3; grid-row: 2; }

.pad-btn:active,
.pad-btn.is-active {
  background: #ffe0ea;
  transform: scale(0.95);
}

.pad-action {
  width: 84px;
  height: 84px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff9ebb, #e87898);
  color: #fff;
  border: none;
  font-family: var(--font-hand);
  font-size: 1.55rem;
  box-shadow: 0 6px 18px rgba(232, 120, 152, 0.4);
  margin-right: 0.25rem;
}

.pad-action:active,
.pad-action.is-active {
  background: linear-gradient(180deg, #f088a8, #d86888);
  transform: scale(0.95);
}

.game-help {
  margin: 0.75rem auto 0;
  max-width: 420px;
  font-size: 0.86rem;
  color: #6a6058;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 600px) {
  .game-page .game-main { padding: 1.25rem 1.25rem 3rem; }
  .game-stage-wrap { max-width: 480px; }
  .game-controls { max-width: 480px; }
  .pad {
    grid-template-columns: 68px 68px 68px;
    grid-template-rows: 68px 68px 68px;
  }
  .pad-btn { width: 68px; height: 68px; }
  .pad-action { width: 92px; height: 92px; }
}

@media (min-width: 900px) {
  .game-stage-wrap { max-width: 420px; }
}


/* Shared mobile overflow guard (align with site shell) */
.game-page {
  overflow-x: clip;
}
.game-page .panel-btn {
  min-height: 44px;
  touch-action: manipulation;
}
