/* ゲームの画面 */
body.is-game .ft {
  display: none;
}
body.is-game .owl-guide {
  display: none;
}
.game-shell {
  min-height: calc(100svh - 64px);
  background: #070913;
  color: #f2ecdc;
  position: relative;
  overflow: hidden;
  font-family: var(--round);
}
.game-shell .en {
  font-family: var(--en);
}
/* タイトル */
.g-title {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: 30px 16px 60px;
  isolation: isolate;
}
.g-title::before {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: -2;
  background: var(--bg) center/cover;
  filter: blur(3px) brightness(0.45) saturate(1.2);
  animation: kb 30s ease-in-out infinite alternate;
}
@keyframes kb {
  to {
    transform: scale(1.12) translate(-2%, 1%);
  }
}
.g-title::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(7, 9, 19, 0.2), rgba(7, 9, 19, 0.9) 75%);
}
.g-title-in {
  max-width: 820px;
  text-align: center;
}
.g-title .chip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.g-en {
  font-family: var(--en);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.25em;
  color: #e6c069;
  text-transform: uppercase;
  margin-top: 18px;
}
.g-title h1 {
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.2;
  margin: 4px 0 10px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
  background: linear-gradient(100deg, #fff6dc, #e6b64c 45%, #fff 60%, #d79f2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g-desc {
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 14px;
}
.g-how {
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 auto 18px;
  max-width: 620px;
  text-align: left;
}
.g-lv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 600px) {
  .g-lv {
    grid-template-columns: 1fr;
  }
}
.g-lvbtn {
  position: relative;
  border: 2px solid rgba(230, 192, 105, 0.6);
  background: linear-gradient(160deg, rgba(40, 46, 90, 0.85), rgba(14, 16, 36, 0.92));
  border-radius: 20px;
  padding: 16px 12px;
  color: #fff;
  display: grid;
  gap: 2px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.g-lvbtn:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ffe3a1;
  box-shadow: 0 0 30px rgba(230, 192, 105, 0.4);
}
.g-lvbtn b {
  font-size: 22px;
}
.g-lvbtn .en {
  color: #e6c069;
  font-size: 18px;
}
.g-lvbtn small {
  font-size: 12px;
  opacity: 0.8;
}
.g-lvbtn em {
  position: absolute;
  top: -10px;
  right: 10px;
  font-style: normal;
  font-size: 11px;
  background: #e6c069;
  color: #2a1a00;
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 900;
}
.g-lvbtn:nth-child(1) {
  border-color: #5ad19a;
}
.g-lvbtn:nth-child(3) {
  border-color: #ff6b81;
}
.g-opts {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.g-opts .tool,
.g-hud .tool {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}
.g-owl {
  position: absolute;
  right: 3vw;
  bottom: 20px;
  width: clamp(90px, 12vw, 150px);
  animation: bob 2.6s ease-in-out infinite;
}
/* 3-2-1 */
.g-count {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  font-family: var(--en);
  font-weight: 700;
  font-size: clamp(90px, 18vw, 200px);
  color: #ffe3a1;
  text-shadow: 0 0 40px rgba(230, 192, 105, 0.8);
  background: rgba(7, 9, 19, 0.6);
  pointer-events: none;
}
/* プレイ中 */
.g-play {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 64px);
}
.g-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}
.g-quit {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}
.g-score {
  line-height: 1;
}
.g-score small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #e6c069;
}
.g-score b {
  display: inline-block;
  font-family: var(--en);
  font-size: 30px;
  min-width: 80px;
}
.g-combo {
  font-weight: 900;
  color: #ff6b81;
  font-size: 18px;
  text-shadow: 0 0 12px rgba(255, 107, 129, 0.6);
}
.g-timer {
  flex: 1 1 160px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.g-timer i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #5ad19a, #e6c069);
  border-radius: 999px;
  transition: width 0.1s linear;
}
.g-timer i.low {
  background: linear-gradient(90deg, #ff3b5c, #ff8a5c);
  animation: blink 0.5s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.5;
  }
}
.g-info {
  font-size: 14px;
  font-weight: 700;
}
.g-stage {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px;
}
.g-float {
  position: fixed;
  z-index: 260;
  font-family: var(--en);
  font-weight: 700;
  font-size: 34px;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.g-float.big {
  font-size: 56px;
}
/* 選択肢（共通） */
.g-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: min(820px, 100%);
}
@media (max-width: 560px) {
  .g-choices {
    grid-template-columns: 1fr;
  }
}
.g-choice {
  border: 2px solid rgba(230, 192, 105, 0.5);
  background: linear-gradient(160deg, #1d2450, #10142e);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
  line-height: 1.35;
  transition: transform 0.15s, border-color 0.15s;
  min-height: 60px;
}
.g-choice:hover:not([disabled]) {
  transform: translateY(-3px);
  border-color: #ffe3a1;
}
.g-choice b {
  display: block;
  font-size: 16px;
}
.g-choice .en {
  display: block;
  font-size: 17px;
  color: #e6c069;
}
.g-choice kbd {
  float: right;
  font-family: var(--en);
  opacity: 0.5;
}
.g-choice.ok {
  border-color: #5ad19a;
  background: linear-gradient(160deg, #10583a, #0a2e20);
}
.g-choice.ng {
  border-color: #ff6b81;
  background: linear-gradient(160deg, #6a1428, #2e0a14);
}
.g-canvas {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 4px #c9a24a;
  touch-action: none;
}
.g-prompt {
  text-align: center;
  margin: 0 0 10px;
}
.g-prompt .en {
  font-size: clamp(24px, 3.6vw, 36px);
  color: #ffe3a1;
  display: block;
  line-height: 1.2;
}
.g-prompt .ja {
  font-size: 14px;
  opacity: 0.85;
}
.g-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
/* 結果 */
.g-result {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: 30px 16px 60px;
  background: radial-gradient(ellipse at 50% 20%, #1c2450, #070913 70%);
}
.g-res-in {
  width: min(760px, 100%);
  text-align: center;
}
.g-res-owl {
  margin: 0 auto;
  width: 150px;
}
.g-rank {
  font-family: var(--en);
  font-size: 120px;
  line-height: 1;
  font-weight: 700;
}
.r-S {
  color: #ffe3a1;
  text-shadow: 0 0 40px #e6c069;
}
.r-A {
  color: #ff9fb0;
}
.r-B {
  color: #9fd4ff;
}
.r-C {
  color: #bbb;
}
.g-res-msg b {
  display: block;
  font-family: var(--en);
  font-size: 30px;
}
.g-res-score {
  margin: 14px 0;
}
.g-res-score small {
  display: block;
  letter-spacing: 0.3em;
  color: #e6c069;
  font-size: 12px;
}
.g-res-score b {
  font-family: var(--en);
  font-size: 64px;
  line-height: 1;
}
.g-res-score em {
  display: block;
  font-style: normal;
  color: #ffe3a1;
  font-weight: 900;
  animation: blink 0.8s steps(2) infinite;
}
.g-res-note {
  opacity: 0.9;
}
.g-review {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px 18px;
  margin: 16px 0;
}
.g-review h3 {
  margin: 0 0 8px;
}
.g-review ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.g-review li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.g-review img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
.g-review .en {
  display: block;
  color: #e6c069;
  font-size: 16px;
}
.g-review a {
  color: #9fd4ff;
  font-size: 12px;
}
.g-review .tool {
  padding: 1px 8px;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.g-res-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.g-res-btns .btn-line {
  color: #fff;
}
/* 汎用のカード（タイムライン・神経衰弱など） */
.g-thumb {
  border: 3px solid #c9a24a;
  border-radius: 6px;
  background: #111 center/contain no-repeat;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}
