/* GramCups Café — landscape game page */
.game-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  text-align: center;
}
.game-head { margin-bottom: 14px; }
.game-head h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  margin: 0;
}
.game-head .tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #FBD9BE;
  padding: 4px 12px; border-radius: 999px;
}
.game-head p { color: var(--ink-soft); margin: 6px auto 0; max-width: 46ch; }

.game-stage {
  position: relative;
  display: inline-block;
  border-radius: 22px;
  overflow: hidden;
  background: #FFD3A8;
  box-shadow: 0 10px 40px rgba(154,52,18,.28), 0 2px 8px rgba(28,25,23,.12);
  touch-action: none;
}
#game { display: block; cursor: pointer; touch-action: none; }

.mute-btn, .fs-btn {
  position: absolute;
  width: 36px; height: 36px; border-radius: 10px;
  border: none; background: rgba(255,255,255,.82);
  font-size: 17px; cursor: pointer; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  z-index: 6;
}
.mute-btn { bottom: 10px; right: 10px; }
.fs-btn { top: 10px; right: 10px; font-size: 19px; }
.mute-btn:hover, .fs-btn:hover { background: #fff; }

/* fullscreen: center the canvas on a dark backdrop */
.game-stage:fullscreen, .game-stage:-webkit-full-screen {
  display: flex; align-items: center; justify-content: center;
  width: 100vw; height: 100vh; border-radius: 0; background: #2A1A12;
}

.mobile-tip { display: none; margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }
@media (pointer: coarse) { .mobile-tip { display: block; } }

/* let the stage use the full width on small screens */
@media (max-width: 700px) {
  .game-wrap { padding-left: 8px; padding-right: 8px; }
  .game-stage { display: block; width: 100%; }
}

.game-controls {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.game-controls kbd {
  font-family: inherit; font-weight: 700; font-size: .82rem;
  background: #fff; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px;
  padding: 2px 7px; color: var(--ink);
}
.game-controls .sep { margin: 0 8px; color: var(--line); }

/* Career stat strip under the game */
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; align-items: center;
  margin: 14px auto 0; max-width: 880px;
}
.stat-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  font-size: .9rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.stat-chip b { font-weight: 800; }
.stat-chip em { font-style: normal; color: var(--ink-soft); font-size: .8rem; }

.game-how {
  max-width: 620px; margin: 30px auto 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.game-how h2 { font-size: 1.2rem; margin-bottom: 8px; }
.game-how ul { margin: 10px 0 0 0; padding-left: 18px; color: var(--ink-soft); }
.game-how li { margin: 5px 0; }
.game-how .crosslink { margin-top: 16px; font-size: .95rem; }

.game-ad { max-width: 620px; margin: 28px auto 0; min-height: 90px; }
