/* 各ゲームの画面（games.css の続き） */
/* ---------- ズームアウト ---------- */
.zoom-wrap {
  position: relative;
}
.zoom-meter {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5ad19a, #e6c069, #ff6b81);
  width: 100%;
}
/* ---------- まちがいさがし ---------- */
.spt-pair {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.spt-c {
  position: relative;
  border: 4px solid #c9a24a;
  border-radius: 6px;
  line-height: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.spt-c canvas {
  display: block;
}
.spt-c .spt-o {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  touch-action: manipulation;
}
.spt-lab {
  position: absolute;
  left: 8px;
  top: 8px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.6);
  color: #ffe3a1;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.spt-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.spt-title .en {
  color: #e6c069;
}
/* ---------- ナイトパトロール ---------- */
.pt-cv {
  cursor: none;
  touch-action: none;
}
.pt-title {
  color: #ffe3a1;
  min-height: 1.6em;
}
.pt-prompt .tool {
  margin-top: 6px;
}
/* ---------- 名画どろぼう ---------- */
.th-case {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(860px, 100%);
}
.th-case img {
  flex: none;
}
.th-bubble {
  flex: 1;
  background: rgba(20, 26, 56, 0.92);
  border: 2px solid #e6c069;
  border-radius: 6px 18px 18px 18px;
  padding: 10px 14px;
}
.th-n {
  font-family: var(--en);
  font-size: 18px;
  color: #ffe3a1;
}
.th-clue {
  margin: 6px 0;
  line-height: 1.4;
}
.th-clue b {
  color: #e6c069;
  margin-right: 6px;
  font-size: 13px;
}
.th-clue .en {
  font-size: 20px;
  transition: filter 0.4s;
}
.th-clue small {
  display: block;
  opacity: 0.8;
}
.th-wall {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
  gap: 10px;
  width: min(960px, 100%);
}
@media (max-width: 760px) {
  .th-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}
.th-frame {
  border: 0;
  background: none;
  padding: 0;
  color: #fff;
  font-size: 12px;
  transition: transform 0.2s;
}
.th-frame:hover:not([disabled]) {
  transform: translateY(-4px);
}
.th-img {
  display: block;
  aspect-ratio: 3 / 4;
  border: 5px solid #c9a24a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  background: #111 center/cover no-repeat;
}
.th-frame.ng .th-img {
  filter: grayscale(1) brightness(0.4);
  border-color: #555;
}
.th-frame.ok .th-img {
  border-color: #5ad19a;
  box-shadow: 0 0 30px #5ad19a;
}
.th-cap {
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}
/* ---------- ウソ？ホント？ ---------- */
.tf-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  width: min(760px, 100%);
  background: linear-gradient(160deg, #1d2450, #10142e);
  border: 2px solid rgba(230, 192, 105, 0.6);
  border-radius: 20px;
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tf-card.good {
  border-color: #5ad19a;
  box-shadow: 0 0 30px rgba(90, 209, 154, 0.5);
}
.tf-card.bad {
  border-color: #ff6b81;
  box-shadow: 0 0 30px rgba(255, 107, 129, 0.5);
}
.tf-img {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #111 center/cover no-repeat;
  border: 3px solid #c9a24a;
}
.tf-work {
  font-size: 12px;
  opacity: 0.75;
}
.tf-s {
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.35;
  margin: 6px 0;
}
.tf-ja {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}
.tf-btns2 {
  display: flex;
  gap: 14px;
}
.tf-b {
  border: 0;
  border-radius: 20px;
  width: 150px;
  padding: 12px;
  font-size: 34px;
  display: grid;
  line-height: 1.2;
  color: #fff;
  transition: transform 0.12s;
}
.tf-b:active {
  transform: scale(0.94);
}
.tf-b span {
  font-family: var(--en);
  font-size: 20px;
  font-weight: 700;
}
.tf-b small {
  font-size: 12px;
}
.tf-t {
  background: linear-gradient(160deg, #23a36a, #106b44);
}
.tf-f {
  background: linear-gradient(160deg, #e0445f, #8e1b2b);
}
.tf-ex {
  min-height: 3em;
  max-width: 760px;
  text-align: center;
  font-size: 14px;
}
@media (max-width: 560px) {
  .tf-card {
    grid-template-columns: 80px 1fr;
  }
}
/* ---------- ジグソー ---------- */
.jg-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}
.jg-board {
  position: relative;
  margin: 0 auto;
  box-shadow: 0 0 0 4px #c9a24a, 0 20px 50px rgba(0, 0, 0, 0.6);
  background: #111;
}
.jg-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(0.6);
}
.jg-piece {
  position: absolute;
  left: 0;
  top: 0;
  touch-action: none;
  cursor: grab;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  transition: filter 0.2s;
}
.jg-piece.drag {
  cursor: grabbing;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7)) brightness(1.08);
}
.jg-piece.placed {
  filter: none;
  cursor: default;
}
.jg-title {
  text-align: center;
  margin-top: 12px;
}
.jg-title .en {
  color: #e6c069;
}
/* ---------- 神経衰弱 ---------- */
.mm-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 10px;
  width: min(820px, 100%);
}
.mm-card {
  border: 0;
  background: none;
  padding: 0;
  aspect-ratio: 3 / 4;
  perspective: 800px;
}
.mm-in {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.4, 1);
}
.mm-card.open .mm-in {
  transform: rotateY(180deg);
}
.mm-back,
.mm-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.mm-back {
  background: radial-gradient(circle at 50% 40%, #2b3a7a, #0d1330);
  border: 3px solid #c9a24a;
  box-shadow: inset 0 0 0 6px #0d1330, inset 0 0 0 7px rgba(230, 192, 105, 0.55);
}
.mm-back::after {
  content: '\2726';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e6c069;
  font-size: 28px;
}
.mm-face {
  transform: rotateY(180deg);
  background: #fbf6ea;
  border: 3px solid #c9a24a;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #1d1a26;
  text-align: center;
  line-height: 1.2;
}
.mm-face .en {
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 700;
}
.mm-face small {
  font-size: 11px;
  color: #666;
}
.mm-img {
  position: absolute;
  inset: 4px;
  background: #111 center/cover no-repeat;
  border-radius: 8px;
}
.mm-card.got .mm-face {
  border-color: #5ad19a;
  box-shadow: 0 0 20px #5ad19a;
}
/* ---------- 年代ならべ ---------- */
.tl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  width: min(1000px, 100%);
}
.tl-card {
  border: 2px solid rgba(230, 192, 105, 0.5);
  background: linear-gradient(160deg, #1d2450, #10142e);
  color: #fff;
  border-radius: 14px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.3;
  display: grid;
  gap: 4px;
  transition: transform 0.15s;
}
.tl-card.sel {
  border-color: #ffe3a1;
  transform: translateY(-6px);
  box-shadow: 0 0 20px #e6c069;
}
.tl-card.ok {
  border-color: #5ad19a;
}
.tl-card.ng {
  border-color: #ff6b81;
}
.tl-im {
  aspect-ratio: 1;
  background: #111 center/cover no-repeat;
  border-radius: 8px;
}
.tl-card .en {
  color: #e6c069;
  font-size: 13px;
}
.tl-yr {
  font-style: normal;
  font-family: var(--en);
  font-size: 18px;
  color: #ffe3a1;
}
.tl-axis2 {
  display: flex;
  justify-content: space-between;
  width: min(1000px, 100%);
  font-size: 12px;
  font-weight: 800;
  color: #e6c069;
  border-top: 2px solid #e6c069;
  padding-top: 4px;
}
/* ---------- 展示室しわけ ---------- */
.so-col {
  height: calc(100svh - 150px);
}
.so-lane {
  position: relative;
  flex: 1;
  width: min(420px, 100%);
  border-left: 2px dashed rgba(255, 255, 255, 0.15);
  border-right: 2px dashed rgba(255, 255, 255, 0.15);
}
.so-card {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -80px;
  width: 160px;
  text-align: center;
}
.so-im {
  display: block;
  height: 150px;
  border: 5px solid #c9a24a;
  background: #111 center/cover no-repeat;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}
.so-bins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  width: min(900px, 100%);
}
.so-bin {
  border: 3px solid var(--c);
  background: color-mix(in srgb, var(--c) 25%, #10142e);
  color: #fff;
  border-radius: 60px 60px 12px 12px;
  padding: 12px 8px;
  line-height: 1.3;
  transition: transform 0.12s;
}
.so-bin.hit {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--c);
}
.so-bin kbd {
  display: block;
  font-family: var(--en);
  opacity: 0.6;
}
.so-bin .en {
  display: block;
  font-size: 14px;
  color: #e6c069;
}
/* ---------- 名画検定・診断 ---------- */
.ex-col,
.sd-col {
  width: min(860px, 100%);
}
.ex-q {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
}
.ex-im {
  aspect-ratio: 1;
  border: 4px solid #c9a24a;
  background: #111 center/cover no-repeat;
  border-radius: 6px;
}
.ex-q .en {
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.35;
  margin: 4px 0;
}
.ex-q .ja {
  margin: 0;
  opacity: 0.85;
  font-size: 14px;
}
.ex-ex {
  min-height: 2.6em;
  font-size: 14px;
  text-align: center;
}
.cert-make {
  text-align: center;
  width: 100%;
}
.cert-name {
  font: inherit;
  font-size: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid #e6c069;
  background: #fff;
  color: #111;
  margin: 10px 8px;
}
.sd-q {
  text-align: center;
}
.sd-q .en {
  font-size: clamp(24px, 3.4vw, 34px);
  color: #ffe3a1;
  margin: 0;
}
.sd-res {
  text-align: center;
}
.sd-k {
  color: #e6c069;
  letter-spacing: 0.2em;
}
.sd-res h2 {
  font-family: var(--mincho);
  font-size: clamp(30px, 5vw, 46px);
  margin: 0;
}
.sd-res h2 .en {
  display: block;
  font-family: var(--en);
  font-size: 26px;
  color: #e6c069;
}
.sd-res h3 .en {
  color: #e6c069;
}
.th-img,
.tf-img,
.mm-img,
.tl-im,
.so-im,
.ex-im {
  background-position: center 15%;
}
/* ---------- ステージ選び ---------- */
.g-stages {
  padding: 24px 16px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.g-st-head {
  text-align: center;
  margin-bottom: 18px;
}
.g-st-head h2 {
  font-size: clamp(22px, 3.6vw, 32px);
  margin: 10px 0 4px;
}
.g-st-head h2 .en {
  color: #e6c069;
}
.g-st-head p {
  margin: 0 0 10px;
  opacity: 0.85;
}
.g-st-back {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.g-st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.g-st {
  position: relative;
  border: 2px solid rgba(230, 192, 105, 0.45);
  background: linear-gradient(160deg, #1d2450, #10142e);
  color: #fff;
  border-radius: 16px;
  padding: 8px 8px 10px;
  text-align: left;
  line-height: 1.3;
  font-size: 13px;
  transition: transform 0.15s, border-color 0.15s;
}
.g-st:hover {
  transform: translateY(-3px);
  border-color: #ffe3a1;
}
.g-st.cleared {
  border-color: #5ad19a;
}
.g-st-img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #111 center 15% / cover no-repeat;
  margin-bottom: 6px;
}
.g-st-no {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffe3a1;
  font-family: var(--en);
  font-weight: 700;
  border-radius: 999px;
  min-width: 28px;
  text-align: center;
  padding: 0 6px;
}
.g-st b {
  display: block;
}
.g-st small {
  display: block;
  opacity: 0.7;
  font-size: 11px;
}
.g-st-stars,
.g-res-stars {
  color: #ffd43b;
  letter-spacing: 2px;
}
.g-st-stars i,
.g-res-stars i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.2);
}
.g-res-stars {
  font-size: 44px;
  line-height: 1;
  margin: 4px 0 10px;
  text-shadow: 0 0 20px rgba(255, 212, 59, 0.6);
}
@media (max-width: 560px) {
  .g-st-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.g-how {
  display: flex;
  gap: 12px;
  align-items: center;
}
.g-how-ic {
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
