:root {
  --gp-bg: #050716;
  --gp-panel: rgba(10, 13, 40, .92);
  --gp-cyan: #22dcff;
  --gp-pink: #ff2bbf;
  --gp-red: #ff3858;
  --gp-gold: #ffd84d;
  --gp-white: #f6fbff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--gp-bg);
}

body.gimme-panic-page,
body:has(#gimme-panic-app) {
  overflow: hidden !important;
  overscroll-behavior: none;
  background: #050716 !important;
}

/* Cocoonのゲームページ用UI非表示 */
.gimme-panic-page #header-container,
.gimme-panic-page #navi,
.gimme-panic-page #footer,
.gimme-panic-page #footer-mobile-buttons,
.gimme-panic-page .mobile-menu-buttons,
.gimme-panic-page .mobile-footer-menu-buttons,
.gimme-panic-page .go-to-top-button,
.gimme-panic-page .breadcrumb,
.gimme-panic-page .entry-title,
.gimme-panic-page .date-tags,
.gimme-panic-page .sns-share,
body:has(#gimme-panic-app) #header-container,
body:has(#gimme-panic-app) #navi,
body:has(#gimme-panic-app) #footer,
body:has(#gimme-panic-app) #footer-mobile-buttons,
body:has(#gimme-panic-app) .mobile-menu-buttons,
body:has(#gimme-panic-app) .mobile-footer-menu-buttons,
body:has(#gimme-panic-app) .go-to-top-button,
body:has(#gimme-panic-app) .breadcrumb,
body:has(#gimme-panic-app) .entry-title,
body:has(#gimme-panic-app) .date-tags,
body:has(#gimme-panic-app) .sns-share { display: none !important; }

.gimme-panic-page #content,
.gimme-panic-page #main,
.gimme-panic-page .entry-content,
body:has(#gimme-panic-app) #content,
body:has(#gimme-panic-app) #main,
body:has(#gimme-panic-app) .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gp-app {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh;
  height: 100dvh;
  margin: 0 !important;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: hidden;
  color: var(--gp-white);
  background: radial-gradient(circle at 50% 22%, #17265d 0, #090d2b 34%, #040511 78%);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.gp-bg,
.gp-bg::before,
.gp-bg::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.gp-bg {
  opacity: .78;
  background-image:
    radial-gradient(circle at 10% 18%, #46dfff 0 1px, transparent 2px),
    radial-gradient(circle at 76% 13%, #ff4fc5 0 1px, transparent 2px),
    radial-gradient(circle at 35% 40%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 88% 55%, #6af3ff 0 1px, transparent 2px);
  background-size: 110px 90px, 150px 120px, 180px 130px, 210px 170px;
}

.gp-bg::before {
  background: linear-gradient(90deg, transparent 0 9%, rgba(31, 218, 255, .12) 9.2%, transparent 9.4% 90%, rgba(255, 43, 191, .12) 90.2%, transparent 90.4%);
}

.gp-bg::after {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(255, 43, 191, .08)), repeating-linear-gradient(90deg, rgba(34, 220, 255, .08) 0 1px, transparent 1px 80px);
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
}

.gp-hud {
  display: grid !important;
  grid-template-columns: auto minmax(140px, .9fr) repeat(3, minmax(92px, .5fr)) auto;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
  min-height: 62px;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.gp-logo,
.gp-title-mark {
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  line-height: .78;
  transform: skew(-7deg);
  filter: drop-shadow(0 0 10px rgba(255, 43, 191, .5));
}

.gp-logo span,
.gp-title-mark span {
  display: block;
  color: var(--gp-cyan);
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 34px);
  letter-spacing: -.04em;
  text-shadow: 2px 2px #07102f;
}

.gp-logo strong,
.gp-title-mark strong {
  display: block;
  color: var(--gp-pink);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 48px);
  letter-spacing: -.04em;
  text-shadow: 3px 3px #07102f;
}

.gp-stat {
  display: grid;
  min-height: 50px;
  place-content: center;
  padding: 4px 12px;
  border: 2px solid rgba(34, 220, 255, .65);
  border-radius: 13px;
  background: rgba(5, 8, 29, .78);
  box-shadow: inset 0 0 18px rgba(34, 220, 255, .08), 0 0 10px rgba(34, 220, 255, .12);
  text-align: center;
}

.gp-stat span {
  color: var(--gp-cyan);
  font-size: clamp(9px, .9vw, 13px);
  letter-spacing: .12em;
}

.gp-stat strong {
  font-size: clamp(18px, 2vw, 31px);
  line-height: 1;
  letter-spacing: .05em;
}

.gp-time strong { color: var(--gp-cyan); }

.gp-icon-button {
  display: grid;
  width: clamp(43px, 4vw, 58px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 2px solid var(--gp-cyan);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 12, 43, .88);
  box-shadow: 0 0 13px rgba(34, 220, 255, .35);
  font: 800 clamp(16px, 1.7vw, 24px)/1 Arial, sans-serif;
  cursor: pointer;
}

.gp-icon-button:active { transform: scale(.92); }
.gp-icon-button.is-muted { opacity: .48; }

.gp-fever {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(950px, 88vw);
  margin: 1px auto 7px;
}

.gp-fever > span {
  color: #ff72da;
  font-size: clamp(12px, 1.4vw, 20px);
  letter-spacing: .08em;
  text-shadow: 0 0 8px var(--gp-pink);
}

.gp-fever-track {
  height: clamp(13px, 1.6vw, 21px);
  padding: 3px;
  overflow: hidden;
  border: 2px solid var(--gp-pink);
  border-radius: 999px;
  background: #090b20;
  box-shadow: 0 0 12px rgba(255, 43, 191, .4);
}

.gp-fever-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gp-pink), #ff6f62 55%, var(--gp-gold));
  box-shadow: 0 0 15px #ffda4d;
  transition: width .16s ease;
}

.gp-app.is-fever .gp-board { filter: drop-shadow(0 0 17px rgba(255, 216, 77, .38)); }
.gp-app.is-fever .gp-fever-track { animation: gp-pulse .45s infinite alternate; }

.gp-board {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: .82fr .94fr 1.08fr;
  gap: clamp(5px, 1vh, 12px) clamp(9px, 1.7vw, 23px);
  width: min(960px, 88vw);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(13px, 2.2vh, 26px) clamp(28px, 4.2vw, 58px) clamp(17px, 2.7vh, 32px);
  border: 0;
  background: transparent;
  perspective: 1100px;
  overflow: visible;
}

.gp-board::before {
  position: absolute;
  inset: -2% -4% -1%;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(34, 220, 255, .11) 32.3% 32.7%, transparent 33% 66%, rgba(255, 43, 191, .11) 66.3% 66.7%, transparent 67%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 46px),
    linear-gradient(155deg, #26316c 0%, #121946 35%, #090d2a 72%, #050719 100%);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 4px var(--gp-cyan)) drop-shadow(0 18px 20px rgba(0, 0, 0, .82));
}

.gp-board::after {
  position: absolute;
  right: -4%;
  bottom: -9%;
  left: -4%;
  z-index: -3;
  height: 12%;
  content: "";
  border-bottom: 3px solid rgba(255, 43, 191, .72);
  background: linear-gradient(180deg, #252f68 0%, #11173c 24%, #050713 100%);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .88), inset 0 2px rgba(77, 226, 255, .5);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.gp-hole {
  --gp-hole-scale: 1;
  --gp-hole-shift: 0%;
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: 92%;
  aspect-ratio: 1.72;
  min-height: 0;
  overflow: visible;
  border: clamp(3px, .35vw, 6px) solid var(--gp-cyan);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 72%, #000 0 52%, #050718 66%, #111842 77%, #07091f 100%);
  box-shadow:
    inset 0 18px 19px #000,
    inset 0 -6px 11px rgba(37, 96, 181, .34),
    0 -2px 0 #a8f6ff,
    0 5px 0 rgba(174, 21, 164, .76),
    0 10px 15px rgba(0, 0, 0, .78),
    0 0 12px var(--gp-cyan),
    0 0 22px rgba(255, 43, 191, .4);
  transform: translateX(var(--gp-hole-shift)) scale(var(--gp-hole-scale));
  transform-origin: 50% 50%;
}

.gp-hole:nth-child(-n+3) {
  --gp-hole-scale: .78;
  z-index: 1;
  filter: brightness(.84) saturate(.9);
}

.gp-hole:nth-child(1) { --gp-hole-shift: 17%; }
.gp-hole:nth-child(3) { --gp-hole-shift: -17%; }

.gp-hole:nth-child(n+4):nth-child(-n+6) {
  --gp-hole-scale: .91;
  z-index: 2;
}

.gp-hole:nth-child(4) { --gp-hole-shift: 7%; }
.gp-hole:nth-child(6) { --gp-hole-shift: -7%; }

.gp-hole:nth-child(n+7) {
  --gp-hole-scale: 1.04;
  z-index: 3;
  filter: brightness(1.08);
}

.gp-hole.is-controller-focus {
  outline: clamp(3px, .35vw, 6px) solid #fff36b;
  outline-offset: clamp(3px, .4vw, 7px);
  filter: brightness(1.28) saturate(1.2) !important;
  box-shadow:
    inset 0 18px 19px #000,
    inset 0 -6px 11px rgba(37, 96, 181, .34),
    0 -2px 0 #fff,
    0 5px 0 rgba(174, 21, 164, .82),
    0 10px 15px rgba(0, 0, 0, .78),
    0 0 15px #fff36b,
    0 0 34px rgba(255, 243, 107, .92),
    0 0 58px rgba(34, 220, 255, .68);
}

.gp-hole::before {
  position: absolute;
  inset: 10% 5% 1%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 68%, #020207 0 55%, rgba(20, 33, 81, .9) 73%, transparent 75%);
  box-shadow: inset 0 15px 18px #000;
  content: "";
}

.gp-hole::after {
  position: absolute;
  right: -6px;
  bottom: -7px;
  left: -6px;
  z-index: 4;
  height: 52%;
  border-right: 3px solid rgba(255, 43, 191, .65);
  border-bottom: clamp(4px, .45vw, 7px) solid var(--gp-cyan);
  border-left: 3px solid rgba(255, 43, 191, .65);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(0deg, rgba(8, 11, 35, .72) 0 18%, transparent 48%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .7), 0 3px 9px var(--gp-cyan);
  content: "";
  pointer-events: none;
}

.gp-target-stage {
  position: absolute;
  inset: -58% 2% 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.gp-target {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(112%) scale(.66);
  transform-origin: 50% 100%;
  animation: gp-pop-in .17s cubic-bezier(.2, 1.3, .5, 1) forwards;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gp-target.is-leaving { animation: gp-pop-out .14s ease-in forwards; }
.gp-target.is-hit { animation: gp-hit .18s ease-out forwards; pointer-events: none; }

.gp-sprite {
  display: block;
  width: auto;
  max-width: 94%;
  height: auto;
  max-height: 128%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, .12));
}

.gp-sprite--friend {
  max-width: 94%;
  max-height: 128%;
}

.gp-sprite--bomb {
  max-width: 82%;
  max-height: 118%;
}

.gp-creature {
  position: relative;
  display: grid;
  width: min(83%, 160px);
  aspect-ratio: 1.18;
  place-items: center;
  border: 4px solid #72102c;
  border-radius: 48% 48% 43% 43%;
  background: radial-gradient(circle at 50% 25%, #6d2941 0 12%, #32101e 57%, #170810 100%);
  box-shadow: 0 0 15px var(--gp-red), 0 0 30px rgba(255, 56, 88, .55);
}

.gp-creature::before,
.gp-creature::after {
  position: absolute;
  top: -19%;
  width: 32%;
  height: 42%;
  border: 4px solid #72102c;
  background: #35101f;
  content: "";
}

.gp-creature::before { left: 6%; transform: rotate(-24deg); clip-path: polygon(0 100%, 72% 0, 100% 100%); }
.gp-creature::after { right: 6%; transform: rotate(24deg); clip-path: polygon(0 100%, 28% 0, 100% 100%); }

.gp-face {
  position: relative;
  z-index: 2;
  width: 72%;
  height: 58%;
}

.gp-eye {
  position: absolute;
  top: 17%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: var(--gp-gold);
  box-shadow: 0 0 8px #ffbd17;
}

.gp-eye:first-child { left: 5%; transform: rotate(16deg); }
.gp-eye:nth-child(2) { right: 5%; transform: rotate(-16deg); }

.gp-mouth {
  position: absolute;
  left: 17%;
  bottom: 2%;
  width: 66%;
  height: 30%;
  overflow: hidden;
  border-radius: 8% 8% 50% 50%;
  background: #070208;
}

.gp-mouth::before {
  display: block;
  height: 55%;
  background: repeating-linear-gradient(90deg, #fff 0 12%, transparent 12% 21%);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 80% 0, 68% 100%, 56% 0, 44% 100%, 32% 0, 20% 100%, 10% 0);
  content: "";
}

.gp-friend-head {
  position: relative;
  width: min(80%, 155px);
  aspect-ratio: 1;
  border: 4px solid #baf8ff;
  border-radius: 50%;
  background: #ffeaf1;
  box-shadow: 0 0 16px var(--gp-cyan), 0 0 30px rgba(34, 220, 255, .6);
}

.gp-friend-hair {
  position: absolute;
  inset: -7% -4% 43%;
  border-radius: 52% 52% 34% 36%;
  background: linear-gradient(160deg, #f0ffff, #5bdcff 58%, #2388d6);
  box-shadow: inset 0 -9px 0 rgba(20, 91, 170, .24);
}

.gp-friend-hair::before,
.gp-friend-hair::after {
  position: absolute;
  top: -13%;
  width: 36%;
  height: 54%;
  background: linear-gradient(145deg, #eaffff, #52d4ff);
  content: "";
  clip-path: polygon(8% 100%, 45% 0, 100% 100%);
}

.gp-friend-hair::before { left: 2%; transform: rotate(-14deg); }
.gp-friend-hair::after { right: 2%; transform: rotate(14deg); }

.gp-friend-eyes {
  position: absolute;
  top: 53%;
  left: 22%;
  width: 56%;
  height: 10%;
  border-top: 4px solid #5b315f;
  border-radius: 50%;
  box-shadow: 0 -4px 0 -1px transparent;
}

.gp-friend-eyes::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 100%;
  height: 100%;
  border-top: 4px solid #5b315f;
  border-radius: 50%;
  content: "";
  transform: scaleX(.28) translateX(130%);
}

.gp-friend-smile {
  position: absolute;
  bottom: 17%;
  left: 41%;
  width: 18%;
  height: 12%;
  border-bottom: 4px solid #d35478;
  border-radius: 50%;
}

.gp-bomb {
  position: relative;
  width: min(74%, 140px);
  aspect-ratio: 1;
  border: 4px solid #565d78;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #5b6175 0, #171a28 36%, #05060b 76%);
  box-shadow: 0 0 18px #ff466c, inset -12px -15px 20px #000;
}

.gp-bomb::before {
  position: absolute;
  top: -31%;
  left: 59%;
  width: 30%;
  height: 38%;
  border-top: 7px solid #d29a59;
  border-radius: 70%;
  content: "";
  transform: rotate(-22deg);
}

.gp-bomb::after {
  position: absolute;
  top: -36%;
  right: 4%;
  width: 22%;
  aspect-ratio: 1;
  background: var(--gp-gold);
  content: "";
  filter: drop-shadow(0 0 7px #ff5a27);
  clip-path: polygon(50% 0, 60% 35%, 100% 25%, 70% 52%, 100% 75%, 61% 66%, 50% 100%, 40% 66%, 0 76%, 30% 51%, 0 25%, 39% 35%);
  animation: gp-spark .25s infinite alternate;
}

.gp-bomb-mark {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0b0c12;
  font: 900 clamp(17px, 2.5vw, 38px)/1 Arial, sans-serif;
}

.gp-gold {
  position: relative;
  width: min(70%, 130px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fff7a4, #ffd52e 48%, #ff8b22);
  filter: drop-shadow(0 0 13px #ffd84d);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 94%, 50% 71%, 20% 94%, 32% 56%, 2% 35%, 39% 35%);
  animation: gp-star-spin .8s infinite alternate ease-in-out;
}

.gp-burst {
  position: absolute;
  z-index: 8;
  color: var(--gp-gold);
  font-size: clamp(24px, 4vw, 58px);
  text-shadow: 0 0 8px #ff6d1f, 3px 3px #69143c;
  pointer-events: none;
  animation: gp-score-fly .55s ease-out forwards;
}

.gp-footer {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 38px;
  padding-top: 5px;
}

.gp-message {
  grid-column: 2;
  min-width: 160px;
  color: var(--gp-gold);
  font-size: clamp(18px, 2vw, 30px);
  text-align: center;
  text-shadow: 0 0 12px currentColor;
}

.gp-lives {
  grid-column: 3;
  justify-self: end;
  color: var(--gp-pink);
  font: 800 clamp(22px, 3vw, 42px)/1 Arial, sans-serif;
  letter-spacing: .08em;
  filter: drop-shadow(0 0 8px #ff2bbf);
}

.gp-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: auto;
  background: rgba(2, 4, 17, .83);
  backdrop-filter: blur(8px);
}

.gp-overlay--visible { display: grid; }

#gp-start-screen {
  background: radial-gradient(circle at 50% 52%, rgba(6, 9, 34, .46), rgba(1, 2, 10, .76));
  backdrop-filter: blur(2px);
}

.gp-panel {
  width: min(660px, 94vw);
  padding: clamp(20px, 3.5vh, 38px);
  border: 2px solid var(--gp-cyan);
  border-radius: 28px;
  background: var(--gp-panel);
  box-shadow: 0 0 22px rgba(34, 220, 255, .32), inset 0 0 30px rgba(255, 43, 191, .12);
  text-align: center;
}

.gp-title-mark { margin: 0 auto 12px; width: max-content; }
.gp-title-mark span { font-size: clamp(36px, 7vw, 70px); }
.gp-title-mark strong { font-size: clamp(53px, 10vw, 102px); }

.gp-catch {
  margin: 12px 0 18px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 800;
  letter-spacing: .08em;
}

.gp-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 17px;
}

.gp-rules > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 11px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}

.gp-rules strong {
  font: 700 clamp(11px, 1.5vw, 16px)/1.1 "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .07em;
}
.gp-rules small { opacity: .75; font: 700 clamp(10px, 1.2vw, 13px)/1.2 Arial, sans-serif; }

.gp-rule-icon {
  display: grid;
  width: clamp(48px, 6.5vw, 68px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.gp-rule-icon img {
  display: block;
  width: 112%;
  height: 112%;
  object-fit: contain;
  pointer-events: none;
}

.gp-rule-monster { color: #fff; background: #471020; box-shadow: 0 0 10px var(--gp-red); }
.gp-rule-friend { color: #092a4d; background: #bdf6ff; box-shadow: 0 0 10px var(--gp-cyan); }
.gp-rule-bomb { color: #fff; background: #0b0c12; box-shadow: 0 0 10px #ff6e46; }

.gp-difficulty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.gp-difficulty button,
.gp-sub-button {
  min-height: 42px;
  border: 1px solid rgba(34, 220, 255, .55);
  border-radius: 11px;
  color: #a9b6d5;
  background: rgba(4, 10, 35, .9);
  font: 800 14px/1 Arial, sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
}

.gp-difficulty button.is-selected {
  border-color: var(--gp-pink);
  color: #fff;
  background: linear-gradient(135deg, #9b1f83, #e227a7);
  box-shadow: 0 0 14px rgba(255, 43, 191, .5);
}

.gp-best { margin: 14px 0 8px; color: #a9b6d5; font-size: 13px; letter-spacing: .14em; }
.gp-best strong { color: var(--gp-gold); font-size: 21px; }

.gp-main-button {
  width: min(360px, 100%);
  min-height: 55px;
  margin: 7px auto;
  border: 2px solid #ff98e0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #c01a94, #ff2bbf 58%, #ff655c);
  box-shadow: 0 0 18px rgba(255, 43, 191, .58), inset 0 1px rgba(255, 255, 255, .35);
  font: 900 clamp(18px, 2vw, 25px)/1 Arial, sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
}

.gp-main-button:active,
.gp-sub-button:active { transform: scale(.97); }

.gp-main-button.is-controller-focus,
.gp-sub-button.is-controller-focus,
.gp-difficulty button.is-controller-focus {
  outline: 3px solid #fff36b;
  outline-offset: 3px;
  color: #fff;
  box-shadow:
    0 0 12px rgba(255, 243, 107, .95),
    0 0 28px rgba(34, 220, 255, .78),
    inset 0 0 12px rgba(255, 255, 255, .2);
}
.gp-help { margin: 7px 0 0; opacity: .58; font: 700 11px/1.3 Arial, sans-serif; }
.gp-credit { margin: 5px 0 0; opacity: .5; font: 700 10px/1.3 Arial, sans-serif; letter-spacing: .03em; }

.gp-games-link,
.gp-games-link:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 100%);
  min-height: 38px;
  margin: 9px auto 0;
  border: 1px solid rgba(34, 220, 255, .48);
  border-radius: 999px;
  color: #8fefff !important;
  background: rgba(4, 10, 35, .72);
  box-shadow:
    0 0 8px rgba(34, 220, 255, .82),
    0 0 18px rgba(34, 220, 255, .52),
    0 0 32px rgba(34, 220, 255, .22),
    inset 0 0 10px rgba(34, 220, 255, .10);
  text-shadow: 0 0 8px rgba(34, 220, 255, .72);
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: .14em;
  text-decoration: none !important;
  cursor: pointer;
}

.gp-games-link:hover,
.gp-games-link:focus-visible {
  border-color: var(--gp-cyan);
  color: #fff !important;
  background: rgba(34, 220, 255, .12);
  box-shadow:
    0 0 10px rgba(34, 220, 255, 1),
    0 0 24px rgba(34, 220, 255, .72),
    0 0 42px rgba(34, 220, 255, .36),
    inset 0 0 13px rgba(34, 220, 255, .18);
}

.gp-games-link:active { transform: scale(.97); }

.gp-countdown {
  color: #fff;
  font-size: clamp(100px, 25vw, 280px);
  text-shadow: 0 0 20px var(--gp-cyan), 8px 8px var(--gp-pink);
  animation: gp-count .65s ease-out;
}

.gp-small-panel { width: min(410px, 92vw); }
.gp-small-panel h2 { margin: 0 0 22px; color: var(--gp-cyan); font-size: 46px; letter-spacing: .12em; }
.gp-small-panel .gp-sub-button,
.gp-result-panel .gp-sub-button { display: block; width: min(360px, 100%); margin: 8px auto; }

.gp-result-label { margin: 0; color: var(--gp-cyan); font-size: 25px; letter-spacing: .2em; }
.gp-rank { color: var(--gp-gold); font-size: clamp(88px, 16vw, 150px); line-height: .9; text-shadow: 0 0 20px #ff922e; }
.gp-result-list { display: grid; gap: 5px; margin: 18px 0; }
.gp-result-list div { display: flex; justify-content: space-between; padding: 8px 13px; border-bottom: 1px solid rgba(255,255,255,.12); }
.gp-result-list dt { color: #90a5c8; letter-spacing: .12em; }
.gp-result-list dd { margin: 0; color: #fff; font-size: 21px; }

@keyframes gp-pop-in { to { transform: translateY(-3%) scale(1); } }
@keyframes gp-pop-out { to { transform: translateY(116%) scale(.72); opacity: .3; } }
@keyframes gp-hit { to { transform: translateY(-22%) rotate(-12deg) scale(1.32); opacity: 0; filter: brightness(2); } }
@keyframes gp-score-fly { to { transform: translateY(-80px) scale(1.18); opacity: 0; } }
@keyframes gp-spark { to { transform: rotate(22deg) scale(1.25); filter: drop-shadow(0 0 12px #fff); } }
@keyframes gp-star-spin { to { transform: rotate(16deg) scale(1.08); } }
@keyframes gp-pulse { to { box-shadow: 0 0 22px var(--gp-gold); transform: scaleY(1.16); } }
@keyframes gp-count { from { transform: scale(1.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* PC：HUDと盤面を必ず1画面内に収める */
@media (min-width: 721px) and (orientation: landscape) {
  .gp-app {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .gp-board {
    align-self: center;
    width: min(860px, 78vw);
    height: min(660px, calc(100dvh - 175px));
    max-height: calc(100dvh - 175px);
    padding: clamp(11px, 1.8vh, 21px) clamp(25px, 3.6vw, 46px) clamp(14px, 2.2vh, 25px);
  }
}

@media (max-width: 720px) {
  .gp-app { padding-left: max(7px, env(safe-area-inset-left)); padding-right: max(7px, env(safe-area-inset-right)); }
  .gp-hud { grid-template-columns: auto 1fr repeat(3, minmax(51px, auto)) auto; gap: 4px; min-height: 48px; }
  .gp-logo { min-width: 65px; }
  .gp-logo span { font-size: 11px; }
  .gp-logo strong { font-size: 16px; }
  .gp-stat { min-height: 38px; padding: 3px 5px; border-width: 1px; border-radius: 8px; }
  .gp-stat span { font-size: 7px; }
  .gp-stat strong { font-size: clamp(12px, 3.4vw, 19px); }
  .gp-icon-button { width: 35px; border-width: 1px; font-size: 14px; }
  .gp-fever { width: 94vw; margin-bottom: 4px; gap: 5px; }
  .gp-fever > span { font-size: 10px; }
  .gp-fever-track { height: 11px; padding: 2px; border-width: 1px; }
  .gp-board { width: min(95vw, 620px); gap: 6px 9px; padding: 12px 22px 16px; }
  .gp-hole { border-width: 3px; }
  .gp-footer { min-height: 28px; }
  .gp-message { font-size: 17px; }
  .gp-lives { font-size: 23px; }
}

@media (orientation: portrait) {
  .gp-app { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .gp-board { width: min(96vw, 630px); max-height: 68vh; gap: clamp(8px, 1.4vh, 15px) 6px; padding: 18px 15px 24px; }
  .gp-hole { width: 96%; aspect-ratio: 1.35; }
  .gp-hole:nth-child(-n+3) { --gp-hole-scale: .88; }
  .gp-hole:nth-child(1) { --gp-hole-shift: 8%; }
  .gp-hole:nth-child(3) { --gp-hole-shift: -8%; }
  .gp-hole:nth-child(n+4):nth-child(-n+6) { --gp-hole-scale: .96; }
  .gp-hole:nth-child(4) { --gp-hole-shift: 4%; }
  .gp-hole:nth-child(6) { --gp-hole-shift: -4%; }
  .gp-hole:nth-child(n+7) { --gp-hole-scale: 1.02; }
  .gp-target-stage { inset: -40% 0 0; }
  .gp-logo { display: none; }
  .gp-hud { grid-template-columns: auto repeat(3, 1fr) auto; }
}

@media (max-height: 520px) {
  .gp-app { padding-top: max(5px, env(safe-area-inset-top)); padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  .gp-hud { min-height: 39px; }
  .gp-icon-button { width: 34px; }
  .gp-stat { min-height: 34px; }
  .gp-fever { margin-bottom: 3px; }
  .gp-board { width: min(720px, 75vw); height: calc(100dvh - 125px); gap: 2px 13px; padding: 9px 35px 13px; }
  .gp-target-stage { inset: -44% 2% 0; }
  .gp-footer { min-height: 24px; padding: 0; }
  .gp-panel { padding: 15px 23px; }
  .gp-title-mark span { font-size: 28px; }
  .gp-title-mark strong { font-size: 43px; }
  .gp-catch { margin: 5px 0 9px; }
  .gp-rules { margin-bottom: 9px; }
  .gp-rules > div { padding: 5px; }
  .gp-rule-icon { width: 38px; }
  .gp-best { margin: 7px 0 3px; }
  .gp-main-button { min-height: 42px; }
  .gp-games-link { min-height: 30px; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .gp-target, .gp-target.is-leaving, .gp-target.is-hit, .gp-countdown, .gp-bomb::after, .gp-gold, .gp-fever-track { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* v3.0 FTP版：PC／スマホ専用タイトルレイアウト */
#gp-start-screen {
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 43, 191, .18), transparent 33%),
    radial-gradient(circle at 24% 30%, rgba(34, 220, 255, .22), transparent 38%),
    linear-gradient(135deg, rgba(4, 8, 31, .80), rgba(13, 8, 41, .76));
}

.gp-start-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  width: min(1480px, 96vw);
  height: min(860px, 94dvh);
  max-height: 94dvh;
  padding: clamp(18px, 3vw, 48px);
  overflow: hidden;
  border-color: rgba(34, 220, 255, .72);
  background: linear-gradient(120deg, rgba(5, 10, 37, .78), rgba(14, 9, 44, .70));
  box-shadow: 0 0 42px rgba(34, 220, 255, .26), inset 0 0 54px rgba(255, 43, 191, .10);
  text-align: center;
}

.gp-start-copy,
.gp-start-controls { min-width: 0; }

.gp-start-copy {
  display: grid;
  align-content: center;
}

.gp-start-panel .gp-title-mark { margin-bottom: 4px; }
.gp-start-panel .gp-title-mark span,
.gp-start-panel .gp-title-mark strong { font-weight: 400; }
.gp-start-panel .gp-title-mark span { font-size: clamp(44px, 5vw, 82px); }
.gp-start-panel .gp-title-mark strong { font-size: clamp(66px, 7.2vw, 120px); }
.gp-start-panel .gp-catch { margin: 10px 0 8px; }

.gp-start-hero {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.12fr .9fr;
  align-items: end;
  width: 100%;
  height: clamp(180px, 31vh, 340px);
  margin: 0 auto 8px;
  padding: 0 3%;
}

.gp-start-hero::after {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 2%;
  height: 18%;
  border: 2px solid rgba(255, 216, 77, .8);
  border-radius: 50%;
  background: radial-gradient(ellipse, #050715 35%, #2a1b55 58%, #ffd84d 62%, transparent 66%);
  box-shadow: 0 0 24px rgba(255, 216, 77, .42);
  content: "";
}

.gp-start-hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 16px rgba(34, 220, 255, .38));
}

.gp-start-hero .gp-start-friend {
  height: 100%;
  transform: translateY(1%);
  filter: drop-shadow(0 0 18px rgba(255, 43, 191, .44));
}

.gp-start-controls {
  display: grid;
  align-content: center;
}

.gp-select-label {
  margin: 2px 0 8px;
  color: var(--gp-cyan);
  font: 500 12px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: .24em;
}

.gp-start-panel .gp-rules { margin: 0; }
.gp-start-panel .gp-rules > div {
  padding: 8px 5px;
  border-color: rgba(34, 220, 255, .38);
  background: rgba(9, 14, 48, .66);
  box-shadow: inset 0 0 16px rgba(34, 220, 255, .08);
}
.gp-start-panel .gp-rule-icon { border-radius: 14px; }
.gp-start-panel .gp-rule-icon img { width: 96%; height: 96%; object-fit: contain; }
.gp-start-panel .gp-rule-friend img { width: 90%; height: 90%; }

.gp-start-controls .gp-difficulty button { border-radius: 999px; }
.gp-start-controls .gp-difficulty button.is-selected {
  border-color: #fff36b;
  background: linear-gradient(135deg, #7d6410, #d49a18 58%, #ffcf45);
  box-shadow: 0 0 12px rgba(255, 243, 107, .95), 0 0 28px rgba(34, 220, 255, .52);
}

.gp-start-controls .gp-main-button {
  border-color: var(--gp-cyan);
  background: linear-gradient(135deg, #086aa7, #0bbde0 54%, #5b4cdf);
  box-shadow: 0 0 14px rgba(34, 220, 255, .95), 0 0 34px rgba(34, 220, 255, .46), inset 0 1px rgba(255, 255, 255, .42);
}

@media (max-width: 720px), (orientation: portrait) {
  #gp-start-screen { padding: 0; }

  .gp-start-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 4px;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    padding: max(9px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .gp-start-panel .gp-title-mark { margin-bottom: 0; }
  .gp-start-panel .gp-title-mark span { font-size: clamp(28px, 8.2vw, 43px); }
  .gp-start-panel .gp-title-mark strong { font-size: clamp(43px, 12.5vw, 65px); }
  .gp-start-panel .gp-catch { margin: 4px 0 2px; font-size: clamp(11px, 3.2vw, 15px); }

  .gp-start-hero {
    height: clamp(145px, 27dvh, 270px);
    margin-bottom: 0;
    padding: 0;
  }

  .gp-start-panel .gp-rules { gap: 6px; margin-top: -2px; }
  .gp-start-panel .gp-rules > div { gap: 1px; padding: 4px 2px; border-radius: 11px; }
  .gp-start-panel .gp-rule-icon { width: clamp(34px, 10vw, 49px); border-radius: 10px; }
  .gp-start-panel .gp-rules strong { font-size: clamp(9px, 2.6vw, 12px); }
  .gp-start-panel .gp-rules small { font-size: clamp(7px, 2vw, 9px); }

  .gp-start-controls { align-content: start; }
  .gp-select-label { margin: 5px 0 4px; font-size: 9px; }
  .gp-start-controls .gp-difficulty { gap: 5px; }
  .gp-start-controls .gp-difficulty button { min-height: 36px; font-size: 11px; }
  .gp-start-controls .gp-best { margin: 5px 0 2px; font-size: 10px; }
  .gp-start-controls .gp-best strong { font-size: 16px; }
  .gp-start-controls .gp-main-button { min-height: 46px; margin: 3px auto; font-size: 17px; }
  .gp-start-controls .gp-help { margin-top: 3px; font-size: 9px; }
  .gp-start-controls .gp-credit { margin-top: 2px; font-size: 8px; }
  .gp-start-controls .gp-games-link { min-height: 29px; margin-top: 4px; font-size: 10px; }
}

/* v3.3 承認イメージ準拠：ネオン遊園地＋アーケード筐体 */
.gp-app {
  background: #050516 url("./assets/neon-carnival-pc.webp") center / cover no-repeat;
}

.gp-bg {
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(3, 5, 22, .08) 0 28%, rgba(3, 5, 22, .48) 78%),
    linear-gradient(180deg, rgba(3, 5, 20, .04), rgba(3, 4, 18, .16) 62%, rgba(3, 4, 18, .40));
}

.gp-bg::before {
  background:
    radial-gradient(circle at 5% 52%, rgba(255, 53, 197, .34), transparent 23%),
    radial-gradient(circle at 95% 48%, rgba(27, 221, 255, .32), transparent 23%);
}

.gp-bg::after {
  inset: auto 0 0;
  height: 36%;
  clip-path: none;
  background: linear-gradient(transparent, rgba(1, 2, 14, .34));
}

.gp-hud {
  position: relative;
  z-index: 4;
  padding: 5px clamp(7px, 1vw, 15px);
  border: 2px solid rgba(74, 225, 255, .76);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 39, 99, .92), rgba(4, 7, 33, .92));
  box-shadow: 0 0 0 2px rgba(255, 48, 194, .45), 0 0 22px rgba(24, 216, 255, .55), inset 0 0 22px rgba(67, 111, 255, .18);
}

.gp-stat {
  border-color: rgba(78, 228, 255, .9);
  background: linear-gradient(180deg, rgba(22, 48, 112, .94), rgba(4, 8, 35, .96));
  box-shadow: inset 0 0 16px rgba(37, 213, 255, .13), 0 0 11px rgba(34, 220, 255, .35);
}

.gp-fever {
  position: relative;
  z-index: 5;
  width: min(930px, 82vw);
  margin: 5px auto 4px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(4, 7, 31, .84);
  box-shadow: 0 0 13px rgba(255, 43, 191, .36);
}

.gp-board {
  width: min(970px, 86vw);
  padding: clamp(19px, 2.8vh, 34px) clamp(36px, 5vw, 66px) clamp(23px, 3.3vh, 40px);
}

.gp-board::before {
  inset: -3% -6% -3%;
  border: 4px solid #23dfff;
  border-radius: 32px 32px 50px 50px;
  background:
    radial-gradient(circle, #fff9c5 0 22%, #ffae22 27% 48%, transparent 52%) 0 5px / 46px 24px repeat-x,
    linear-gradient(90deg, transparent 0 32.7%, rgba(37, 224, 255, .16) 33% 33.3%, transparent 33.6% 66%, rgba(255, 46, 191, .16) 66.3% 66.6%, transparent 67%),
    linear-gradient(155deg, rgba(47, 66, 151, .98), rgba(14, 21, 70, .98) 42%, rgba(23, 8, 57, .99));
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 49, 193, .72), inset 0 0 35px rgba(24, 214, 255, .18);
  filter: drop-shadow(0 0 7px #1cdfff) drop-shadow(0 0 15px rgba(255, 45, 193, .74)) drop-shadow(0 20px 22px rgba(0, 0, 0, .82));
}

.gp-board::after {
  right: -6%;
  bottom: -10%;
  left: -6%;
  height: 14%;
  border: 3px solid #2ce2ff;
  border-top-color: #ff4fc7;
  border-radius: 0 0 34px 34px;
  background:
    radial-gradient(circle, #fff6b1 0 20%, #ffb21f 25% 46%, transparent 51%) 0 50% / 48px 28px repeat-x,
    linear-gradient(180deg, #384b9b, #111947 38%, #060719);
  box-shadow: 0 0 16px #29dcff, 0 10px 28px rgba(0, 0, 0, .88), inset 0 2px rgba(255,255,255,.48);
}

.gp-hole:nth-child(3n+2),
.gp-hole:nth-child(4),
.gp-hole:nth-child(9) {
  border-color: #ff4ac8;
  box-shadow: inset 0 18px 19px #000, inset 0 -6px 11px rgba(181, 38, 156, .35), 0 -2px 0 #ffd1f3, 0 5px 0 rgba(40, 164, 207, .84), 0 10px 15px rgba(0,0,0,.78), 0 0 13px #ff40c4, 0 0 25px rgba(34,220,255,.46);
}

.gp-footer {
  position: relative;
  z-index: 4;
  width: min(950px, 88vw);
  margin: 0 auto;
  padding: 4px 16px;
  border: 2px solid rgba(47, 226, 255, .72);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 39, 93, .90), rgba(5, 7, 30, .92));
  box-shadow: 0 0 14px rgba(34,220,255,.42), inset 0 0 15px rgba(255,43,191,.10);
}

#gp-start-screen {
  background:
    linear-gradient(180deg, rgba(3, 5, 22, .04), rgba(3, 4, 18, .22)),
    url("./assets/neon-carnival-pc.webp") center / cover no-repeat;
}

#gp-start-screen::before,
#gp-start-screen::after { display: none; }

.gp-start-panel {
  background:
    radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 4px / 38px 20px repeat-x,
    radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 calc(100% - 4px) / 38px 20px repeat-x,
    linear-gradient(145deg, rgba(37, 55, 130, .90), rgba(8, 13, 52, .94) 34%, rgba(39, 10, 70, .91) 74%, rgba(9, 13, 50, .95));
  backdrop-filter: blur(3px);
}

.gp-start-panel .gp-title-mark span {
  font-size: clamp(31px, 4.4vw, 70px);
}

.gp-start-panel .gp-title-mark strong {
  font-size: clamp(47px, 6.4vw, 102px);
}

@media (max-width: 720px), (orientation: portrait) {
  .gp-app {
    background-image: url("./assets/neon-carnival-mobile.webp");
    background-position: center;
  }

  #gp-start-screen {
    background-image: linear-gradient(180deg, rgba(3,5,22,.03), rgba(3,4,18,.18)), url("./assets/neon-carnival-mobile.webp");
    background-position: center;
  }

  .gp-hud {
    padding: 4px 5px;
    border-radius: 13px;
  }

  .gp-fever {
    width: 96%;
    margin: 3px auto;
    padding: 3px 8px;
  }

  .gp-board {
    width: 96vw;
    padding: clamp(13px, 2.1vh, 22px) clamp(18px, 5vw, 27px) clamp(18px, 2.8vh, 28px);
  }

  .gp-board::before {
    inset: -2% -2.5% -2%;
    border-width: 3px;
    border-radius: 19px 19px 28px 28px;
    background:
      radial-gradient(circle, #fff9c5 0 22%, #ffae22 27% 48%, transparent 52%) 0 3px / 32px 18px repeat-x,
      linear-gradient(90deg, transparent 0 32.7%, rgba(37,224,255,.15) 33% 33.3%, transparent 33.6% 66%, rgba(255,46,191,.15) 66.3% 66.6%, transparent 67%),
      linear-gradient(155deg, rgba(47,66,151,.97), rgba(14,21,70,.98) 42%, rgba(23,8,57,.99));
  }

  .gp-board::after {
    right: -2.5%;
    left: -2.5%;
    border-radius: 0 0 22px 22px;
    background:
      radial-gradient(circle, #fff6b1 0 20%, #ffb21f 25% 46%, transparent 51%) 0 50% / 34px 22px repeat-x,
      linear-gradient(180deg, #384b9b, #111947 38%, #060719);
  }

  .gp-footer { width: 96%; padding: 3px 9px; border-radius: 12px; }

  .gp-start-panel .gp-title-mark span { font-size: clamp(25px, 8vw, 42px); }
  .gp-start-panel .gp-title-mark strong { font-size: clamp(38px, 12vw, 62px); }
}

/* v3.5 承認画像を実機化：画像筐体＋透明インタラクション */
.gp-app {
  display: block;
  padding: 0;
  background: #050516 url("./assets/game-cabinet-pc.webp") center / cover no-repeat;
}

.gp-bg { display: none; }

.gp-hud {
  position: absolute;
  top: 1.4%;
  left: 5.5%;
  z-index: 20;
  grid-template-columns: auto minmax(150px, .75fr) repeat(3, minmax(105px, .7fr)) auto;
  width: 89%;
  min-height: 8.5%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gp-logo { padding: 0 14px; }
.gp-logo span { font-size: clamp(18px, 1.7vw, 30px); }
.gp-logo strong { font-size: clamp(27px, 2.5vw, 44px); }

.gp-stat {
  min-height: clamp(52px, 7vh, 74px);
  border-width: 3px;
  border-radius: 12px;
  background: rgba(2, 5, 25, .58);
  backdrop-filter: blur(2px);
}

.gp-icon-button {
  width: clamp(48px, 5vw, 72px);
  border-width: 3px;
  border-radius: 13px;
  background: rgba(3, 8, 39, .70);
}

.gp-fever {
  position: absolute;
  top: 10.8%;
  left: 25.5%;
  z-index: 20;
  width: 49%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.gp-fever > span { font-size: clamp(17px, 2vw, 30px); }
.gp-fever-track { height: clamp(19px, 2.2vw, 34px); background: rgba(3,6,27,.74); }

.gp-board {
  position: absolute;
  top: 40.2%;
  left: 18.5%;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.3% 2.7%;
  width: 63%;
  height: 40.5%;
  margin: 0;
  padding: 0;
  transform: none;
  overflow: visible;
}

.gp-board::before,
.gp-board::after { display: none; }

.gp-hole,
.gp-hole:nth-child(-n+3),
.gp-hole:nth-child(n+4):nth-child(-n+6),
.gp-hole:nth-child(n+7),
.gp-hole:nth-child(3n+2),
.gp-hole:nth-child(4),
.gp-hole:nth-child(9) {
  --gp-hole-scale: 1;
  --gp-hole-shift: 0%;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: none;
}

.gp-hole::before,
.gp-hole::after { display: none; }

.gp-hole.is-controller-focus {
  outline: 4px solid #fff45c;
  outline-offset: -7px;
  filter: drop-shadow(0 0 9px #fff45c) drop-shadow(0 0 17px #ff8b20) !important;
  box-shadow: none;
}

.gp-target-stage {
  inset: -62% 0 -2%;
  overflow: hidden;
}

.gp-sprite {
  max-width: 98%;
  max-height: 132%;
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px rgba(255,39,193,.72));
}

.gp-footer {
  position: absolute;
  right: 10.2%;
  bottom: 2.2%;
  left: 28.5%;
  z-index: 20;
  width: auto;
  min-height: 8.5%;
  margin: 0;
  padding: 0 2.5%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gp-message { font-size: clamp(22px, 3.5vw, 58px); }
.gp-lives { font-size: clamp(22px, 2.8vw, 45px); }

@media (max-width: 720px), (orientation: portrait) {
  .gp-app {
    background-image: url("./assets/game-cabinet-mobile.webp");
    background-position: center;
  }

  .gp-hud {
    top: 4.9%;
    left: 1.6%;
    grid-template-columns: auto minmax(70px, 1.05fr) repeat(3, minmax(56px, .82fr)) auto;
    gap: 3px;
    width: 96.8%;
    min-height: 5.5%;
  }

  .gp-logo { padding: 0 2px; }
  .gp-logo span { font-size: clamp(10px, 2.8vw, 15px); }
  .gp-logo strong { font-size: clamp(15px, 4.2vw, 22px); }

  .gp-stat {
    min-height: clamp(43px, 5.4vh, 54px);
    padding: 2px 3px;
    border-width: 2px;
    border-radius: 8px;
  }

  .gp-stat span { font-size: clamp(7px, 1.9vw, 10px); }
  .gp-stat strong { font-size: clamp(14px, 4.4vw, 23px); }

  .gp-icon-button {
    width: clamp(39px, 10.5vw, 48px);
    border-width: 2px;
    border-radius: 9px;
  }

  .gp-fever {
    top: 11.5%;
    left: 10%;
    width: 80%;
  }

  .gp-fever > span { font-size: clamp(13px, 4vw, 19px); }
  .gp-fever-track { height: clamp(14px, 3.8vw, 20px); }

  .gp-board {
    top: 46.8%;
    left: 4.5%;
    gap: 1.7% 1.4%;
    width: 91%;
    height: 33.7%;
    padding: 0;
    transform: none;
  }

  .gp-hole,
  .gp-hole:nth-child(-n+3),
  .gp-hole:nth-child(n+4):nth-child(-n+6),
  .gp-hole:nth-child(n+7) {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
  }

  .gp-target-stage { inset: -54% -1% -2%; }
  .gp-sprite { max-width: 100%; max-height: 126%; }

  .gp-footer {
    right: 4%;
    bottom: 7.7%;
    left: 5%;
    min-height: 6.5%;
    padding: 0 4%;
  }

  .gp-message { font-size: clamp(21px, 7vw, 36px); }
  .gp-lives { font-size: clamp(20px, 6vw, 31px); }
}

/* v3.4 イメージ画像準拠：立体ネオンゲーム盤 */
.gp-board {
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.1vh, 12px) clamp(7px, 1vw, 13px);
  width: min(1120px, 91vw);
  padding: clamp(18px, 2.5vh, 31px) clamp(35px, 4.5vw, 58px) clamp(21px, 3vh, 37px);
  transform: perspective(1400px) rotateX(1.7deg);
  transform-origin: 50% 100%;
}

.gp-board::before {
  inset: -3.5% -6% -3%;
  border: 5px solid #34e9ff;
  border-radius: 34px 34px 52px 52px;
  background:
    radial-gradient(circle, #fffbd2 0 21%, #ffae22 25% 48%, transparent 52%) 7px 7px / 46px 27px repeat-x,
    radial-gradient(circle, #fffbd2 0 21%, #ffae22 25% 48%, transparent 52%) 7px calc(100% - 5px) / 46px 27px repeat-x,
    radial-gradient(circle at 10px 10px, #e7faff 0 2px, #123780 3px 5px, transparent 6px) 0 0 / 32px 32px,
    linear-gradient(90deg, transparent 32.8%, rgba(77, 231, 255, .52) 33% 33.25%, rgba(4, 8, 38, .72) 33.45% 66.2%, rgba(255, 69, 207, .48) 66.4% 66.65%, transparent 66.9%),
    linear-gradient(0deg, transparent 32.8%, rgba(255, 74, 203, .45) 33% 33.25%, transparent 33.5% 66.2%, rgba(50, 226, 255, .48) 66.4% 66.65%, transparent 66.9%),
    linear-gradient(135deg, rgba(83, 112, 208, .96), rgba(17, 29, 91, .98) 31%, rgba(42, 21, 103, .98) 70%, rgba(15, 19, 66, .99));
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 50, 198, .78),
    inset 0 0 0 10px rgba(4, 10, 43, .72),
    inset 0 0 42px rgba(54, 224, 255, .28),
    0 0 14px #21dfff,
    0 0 29px rgba(255, 40, 191, .85);
  filter: drop-shadow(0 21px 24px rgba(0, 0, 0, .86));
}

.gp-board::after {
  right: -7%;
  bottom: -10%;
  left: -7%;
  height: 15%;
  border: 4px solid #32e5ff;
  border-top: 4px solid #ff4bc7;
  border-radius: 5px 5px 35px 35px;
  background:
    radial-gradient(circle, #fffbd0 0 21%, #ffad1d 25% 48%, transparent 52%) 8px 50% / 48px 29px repeat-x,
    linear-gradient(180deg, #4b62bd 0, #17245f 31%, #090c2c 70%, #030511 100%);
  box-shadow: inset 0 3px rgba(255,255,255,.55), 0 0 14px #22ddff, 0 0 28px rgba(255,49,198,.62), 0 16px 27px rgba(0,0,0,.88);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.gp-hole,
.gp-hole:nth-child(-n+3),
.gp-hole:nth-child(n+4):nth-child(-n+6),
.gp-hole:nth-child(n+7) {
  --gp-hole-scale: 1;
  --gp-hole-shift: 0%;
  width: 94%;
  aspect-ratio: 1.9;
  border-width: clamp(5px, .45vw, 8px);
  filter: brightness(1.1) saturate(1.18);
}

.gp-hole::before {
  inset: 6% 4% 0;
  background:
    radial-gradient(ellipse at 50% 74%, #010107 0 51%, #080626 61%, #112767 72%, transparent 75%);
  box-shadow: inset 0 17px 24px #000, inset 0 -6px 15px rgba(40, 166, 255, .25);
}

.gp-hole::after {
  right: -9px;
  bottom: -8px;
  left: -9px;
  height: 58%;
  border-right-width: 4px;
  border-bottom-width: clamp(5px, .55vw, 9px);
  border-left-width: 4px;
  background: linear-gradient(0deg, rgba(11, 14, 53, .92) 0 17%, rgba(64, 75, 164, .30) 29%, transparent 52%);
  box-shadow: 0 5px 9px rgba(0,0,0,.8), 0 3px 12px currentColor;
}

.gp-target-stage { inset: -67% 0 0; }
.gp-sprite { max-width: 98%; max-height: 138%; }

.gp-footer {
  border-width: 3px;
  border-color: #43e8ff;
  background: linear-gradient(180deg, rgba(43, 58, 135, .96), rgba(7, 10, 42, .98));
  box-shadow: 0 0 0 2px rgba(255,50,199,.55), 0 0 18px #1edcff, 0 0 30px rgba(255,43,191,.44), inset 0 0 20px rgba(67,109,255,.22);
}

.gp-message {
  color: #fff5a3;
  text-shadow: 0 2px #a63400, 0 0 8px #ffbe21, 0 0 17px #ff5e24;
}

@media (min-width: 721px) and (orientation: landscape) {
  .gp-board { max-height: calc(100dvh - 205px); }
}

@media (max-width: 720px), (orientation: portrait) {
  .gp-board {
    width: 97vw;
    gap: clamp(7px, 1.1vh, 11px) 4px;
    padding: clamp(15px, 2vh, 22px) clamp(12px, 3.5vw, 19px) clamp(20px, 2.7vh, 29px);
    transform: perspective(1000px) rotateX(1deg);
  }

  .gp-board::before {
    inset: -2.5% -1.5% -2%;
    border-width: 3px;
    border-radius: 18px 18px 27px 27px;
    background:
      radial-gradient(circle, #fffbd2 0 21%, #ffae22 25% 48%, transparent 52%) 4px 4px / 32px 20px repeat-x,
      radial-gradient(circle at 8px 8px, #e7faff 0 1px, #123780 2px 4px, transparent 5px) 0 0 / 25px 25px,
      linear-gradient(90deg, transparent 32.8%, rgba(77,231,255,.45) 33% 33.3%, transparent 33.5% 66.2%, rgba(255,69,207,.45) 66.4% 66.7%, transparent 66.9%),
      linear-gradient(0deg, transparent 32.8%, rgba(255,74,203,.40) 33% 33.3%, transparent 33.5% 66.2%, rgba(50,226,255,.42) 66.4% 66.7%, transparent 66.9%),
      linear-gradient(135deg, rgba(83,112,208,.96), rgba(17,29,91,.98) 31%, rgba(42,21,103,.98) 70%, rgba(15,19,66,.99));
    clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  }

  .gp-board::after {
    right: -2%;
    left: -2%;
    height: 13%;
    border-width: 3px;
    border-radius: 3px 3px 22px 22px;
    background:
      radial-gradient(circle, #fffbd0 0 21%, #ffad1d 25% 48%, transparent 52%) 5px 50% / 33px 23px repeat-x,
      linear-gradient(180deg, #4b62bd, #17245f 33%, #070a27 100%);
  }

  .gp-hole,
  .gp-hole:nth-child(-n+3),
  .gp-hole:nth-child(n+4):nth-child(-n+6),
  .gp-hole:nth-child(n+7) {
    width: 97%;
    aspect-ratio: 1.55;
    border-width: 4px;
  }

  .gp-target-stage { inset: -58% 0 0; }
  .gp-sprite { max-height: 130%; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .gp-start-panel { gap: 20px; padding: 12px 24px; }
  .gp-start-panel .gp-title-mark span { font-size: 34px; }
  .gp-start-panel .gp-title-mark strong { font-size: 52px; }
  .gp-start-hero { height: 190px; }
  .gp-start-panel .gp-rules > div { padding: 4px; }
  .gp-start-panel .gp-rule-icon { width: 38px; }
  .gp-start-controls .gp-best { margin: 6px 0 2px; }
  .gp-start-controls .gp-main-button { min-height: 42px; }
}

/* v3.1 PCタイトル：スマホ版と同じ中央縦並び */
@media (min-width: 721px) and (orientation: landscape) {
  #gp-start-screen {
    place-items: center;
    padding: max(8px, env(safe-area-inset-top)) 18px max(8px, env(safe-area-inset-bottom));
  }

  .gp-start-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, auto) auto;
    align-content: center;
    gap: clamp(5px, 1vh, 11px);
    width: min(1080px, 94vw);
    height: min(920px, 96dvh);
    max-height: 96dvh;
    padding: clamp(12px, 2vh, 24px) clamp(24px, 4vw, 58px);
    border-radius: 30px;
  }

  .gp-start-copy {
    align-content: start;
    min-height: 0;
  }

  .gp-start-panel .gp-title-mark {
    margin: 0 auto;
  }

  .gp-start-panel .gp-title-mark span {
    font-size: clamp(30px, 4.2vh, 52px);
  }

  .gp-start-panel .gp-title-mark strong {
    font-size: clamp(46px, 6.3vh, 78px);
  }

  .gp-start-panel .gp-catch {
    margin: 4px 0 2px;
    font-size: clamp(12px, 1.7vh, 18px);
  }

  .gp-start-hero {
    width: min(760px, 78vw);
    height: clamp(145px, 28vh, 285px);
    margin: 0 auto;
    padding: 0 2%;
  }

  .gp-start-panel .gp-rules {
    width: min(760px, 78vw);
    margin: -2px auto 0;
    gap: 9px;
  }

  .gp-start-panel .gp-rules > div {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    padding: 5px 10px;
    border-radius: 13px;
  }

  .gp-start-panel .gp-rule-icon {
    grid-row: 1 / 3;
    width: clamp(38px, 5.6vh, 55px);
  }

  .gp-start-panel .gp-rules strong {
    align-self: end;
    justify-self: start;
    font-size: clamp(10px, 1.5vh, 14px);
  }

  .gp-start-panel .gp-rules small {
    align-self: start;
    justify-self: start;
    font-size: clamp(9px, 1.25vh, 12px);
  }

  .gp-start-controls {
    align-content: start;
    justify-items: center;
    width: min(760px, 78vw);
    margin: 0 auto;
  }

  .gp-select-label {
    margin: 1px 0 5px;
  }

  .gp-start-controls .gp-difficulty {
    width: min(620px, 100%);
  }

  .gp-start-controls .gp-difficulty button {
    min-height: clamp(36px, 5.2vh, 48px);
  }

  .gp-start-controls .gp-best {
    margin: 5px 0 1px;
  }

  .gp-start-controls .gp-main-button {
    width: min(620px, 100%);
    min-height: clamp(46px, 6.5vh, 62px);
    margin: 3px auto;
  }

  .gp-start-controls .gp-help,
  .gp-start-controls .gp-credit {
    margin-top: 2px;
  }

  .gp-start-controls .gp-games-link {
    width: min(620px, 100%);
    min-height: clamp(30px, 4.4vh, 40px);
    margin-top: 4px;
  }
}

@media (min-width: 721px) and (orientation: landscape) and (max-height: 650px) {
  .gp-start-panel {
    gap: 2px;
    padding: 7px 30px;
  }

  .gp-start-panel .gp-title-mark span { font-size: 25px; }
  .gp-start-panel .gp-title-mark strong { font-size: 38px; }
  .gp-start-panel .gp-catch { margin: 1px 0; font-size: 11px; }
  .gp-start-hero { width: min(650px, 70vw); height: 135px; }
  .gp-start-panel .gp-rules { width: min(650px, 70vw); }
  .gp-start-panel .gp-rules > div { padding: 3px 8px; }
  .gp-start-panel .gp-rule-icon { width: 32px; }
  .gp-start-controls { width: min(650px, 70vw); }
  .gp-select-label { margin: 1px 0 3px; font-size: 9px; }
  .gp-start-controls .gp-difficulty button { min-height: 32px; }
  .gp-start-controls .gp-best { margin: 2px 0 0; font-size: 10px; }
  .gp-start-controls .gp-best strong { font-size: 15px; }
  .gp-start-controls .gp-main-button { min-height: 38px; margin: 2px auto; font-size: 17px; }
  .gp-start-controls .gp-help { font-size: 9px; }
  .gp-start-controls .gp-credit { font-size: 8px; }
  .gp-start-controls .gp-games-link { min-height: 26px; margin-top: 2px; font-size: 9px; }
}

/* v3.2 ネオン遊園地のアーケード筐体 */
#gp-start-screen {
  background:
    radial-gradient(circle at 14% 24%, #ffd45d 0 3px, transparent 4px),
    radial-gradient(circle at 88% 18%, #ff67cf 0 3px, transparent 4px),
    radial-gradient(circle at 74% 72%, #55e8ff 0 2px, transparent 3px),
    repeating-conic-gradient(from 0deg at 13% 46%, rgba(255, 63, 189, .18) 0 5deg, transparent 5deg 12deg),
    repeating-conic-gradient(from 0deg at 88% 38%, rgba(35, 224, 255, .16) 0 5deg, transparent 5deg 12deg),
    radial-gradient(circle at 50% 42%, rgba(117, 43, 207, .52), transparent 44%),
    linear-gradient(180deg, #07153c 0%, #13082f 53%, #030510 100%);
  background-size: 95px 80px, 135px 105px, 165px 130px, 360px 360px, 420px 420px, auto, auto;
}

#gp-start-screen::before,
#gp-start-screen::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

#gp-start-screen::before {
  left: -6vw;
  top: 16%;
  width: min(36vw, 440px);
  aspect-ratio: 1;
  border: 5px solid rgba(255, 45, 190, .32);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(255,255,255,.18) 49.5% 50.5%, transparent 50.6%),
    linear-gradient(0deg, transparent 49.4%, rgba(255,255,255,.18) 49.5% 50.5%, transparent 50.6%);
  box-shadow: 0 0 35px rgba(255, 43, 191, .34), inset 0 0 35px rgba(255, 43, 191, .18);
  opacity: .75;
}

#gp-start-screen::after {
  right: -4vw;
  top: 11%;
  width: min(31vw, 380px);
  aspect-ratio: 1;
  border: 5px solid rgba(34, 220, 255, .30);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(34, 220, 255, .32), inset 0 0 35px rgba(34, 220, 255, .16);
  opacity: .7;
}

.gp-start-panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  border: clamp(3px, .45vw, 6px) solid #30dcff;
  outline: 3px solid rgba(255, 45, 190, .88);
  outline-offset: -11px;
  background:
    radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 4px / 38px 20px repeat-x,
    radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 calc(100% - 4px) / 38px 20px repeat-x,
    linear-gradient(145deg, rgba(37, 55, 130, .96), rgba(8, 13, 52, .98) 34%, rgba(39, 10, 70, .96) 74%, rgba(9, 13, 50, .98));
  box-shadow:
    0 0 0 7px #10183f,
    0 0 0 10px rgba(255, 43, 191, .75),
    0 0 28px rgba(34, 220, 255, .85),
    0 0 58px rgba(255, 43, 191, .48),
    inset 0 0 55px rgba(33, 220, 255, .15);
}

.gp-start-panel::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(141, 242, 255, .38);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(34, 220, 255, .12), transparent 24% 76%, rgba(255, 43, 191, .12)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,.025) 79px 80px);
  box-shadow: inset 0 0 35px rgba(0,0,0,.44);
  content: "";
}

.gp-start-panel .gp-title-mark {
  position: relative;
  z-index: 2;
  padding: 8px clamp(30px, 5vw, 74px) 10px;
  border: 3px solid var(--gp-pink);
  border-radius: 52% 52% 22px 22px / 38% 38% 22px 22px;
  background: linear-gradient(180deg, rgba(25, 54, 129, .96), rgba(13, 10, 54, .98));
  box-shadow: 0 0 9px #fff, 0 0 22px var(--gp-cyan), 0 0 38px rgba(255,43,191,.72), inset 0 0 22px rgba(34,220,255,.2);
}

.gp-start-panel .gp-title-mark span {
  color: #73edff;
  text-shadow: 0 2px #07102f, 0 0 7px #19ddff, 0 0 18px #19ddff;
}

.gp-start-panel .gp-title-mark strong {
  color: #ff4fc4;
  text-shadow: 0 3px #521043, 0 0 7px #ff45c1, 0 0 20px #ff45c1;
}

.gp-start-hero {
  gap: clamp(8px, 1.6vw, 22px);
  align-items: end;
}

.gp-start-hero::after {
  display: none;
}

.gp-start-hero img {
  padding: 5% 4% 1%;
  border: 3px solid var(--gp-cyan);
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(ellipse at 50% 72%, #01020a 0 49%, #101b51 61%, #152769 67%, #05091f 69%);
  box-shadow: inset 0 12px 18px #000, 0 5px 0 rgba(255,43,191,.62), 0 0 15px var(--gp-cyan), 0 13px 17px rgba(0,0,0,.64);
}

.gp-start-hero .gp-start-monster {
  border-color: #ff3b64;
  box-shadow: inset 0 12px 18px #000, 0 5px 0 #8b173f, 0 0 18px #ff3858, 0 13px 17px rgba(0,0,0,.64);
}

.gp-start-hero .gp-start-friend {
  border-color: #39e8ff;
  box-shadow: inset 0 12px 18px #000, 0 5px 0 #1676a4, 0 0 18px #22dcff, 0 13px 17px rgba(0,0,0,.64);
}

.gp-start-hero .gp-start-bomb {
  border-color: #ff43c3;
  box-shadow: inset 0 12px 18px #000, 0 5px 0 #922078, 0 0 18px #ff2bbf, 0 13px 17px rgba(0,0,0,.64);
}

.gp-start-panel .gp-rules > div {
  border-width: 2px;
  background: linear-gradient(180deg, rgba(31, 50, 115, .92), rgba(7, 11, 42, .96));
}

.gp-start-panel .gp-rules > div:nth-child(1) { border-color: #ff526f; box-shadow: 0 0 12px rgba(255,56,88,.44), inset 0 0 12px rgba(255,56,88,.14); }
.gp-start-panel .gp-rules > div:nth-child(2) { border-color: #39e8ff; box-shadow: 0 0 12px rgba(34,220,255,.44), inset 0 0 12px rgba(34,220,255,.14); }
.gp-start-panel .gp-rules > div:nth-child(3) { border-color: #ff4fc8; box-shadow: 0 0 12px rgba(255,43,191,.44), inset 0 0 12px rgba(255,43,191,.14); }

.gp-start-controls {
  position: relative;
  padding: 9px clamp(10px, 2vw, 22px) 3px;
  border-top: 2px solid rgba(34, 220, 255, .62);
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(180deg, rgba(25, 43, 103, .70), rgba(5, 8, 31, .36));
  box-shadow: 0 -7px 20px rgba(34, 220, 255, .10), inset 0 8px 18px rgba(255,255,255,.025);
}

.gp-start-controls .gp-main-button {
  color: #fff;
  border: 3px solid #81f3ff;
  background: linear-gradient(180deg, #20dff2 0%, #087daf 48%, #6841d7 100%);
  box-shadow: 0 0 8px #fff, 0 0 18px #26e4ff, 0 0 38px rgba(255,43,191,.65), inset 0 3px rgba(255,255,255,.5), inset 0 -7px 14px rgba(3,19,66,.46);
  text-shadow: 0 2px 0 #123b78, 0 0 8px #fff;
}

@media (max-width: 720px), (orientation: portrait) {
  .gp-start-panel {
    outline: 0;
    box-shadow: inset 0 0 45px rgba(34,220,255,.15);
    background:
      radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 2px / 30px 16px repeat-x,
      linear-gradient(145deg, rgba(37, 55, 130, .98), rgba(8, 13, 52, .99) 35%, rgba(39, 10, 70, .98));
  }

  .gp-start-panel::before { inset: 9px; border-radius: 13px; }
  .gp-start-panel .gp-title-mark { padding: 5px 28px 7px; border-width: 2px; }
  .gp-start-hero { gap: 5px; }
  .gp-start-hero img { padding: 5% 1% 0; border-width: 2px; }
  .gp-start-controls { padding-top: 5px; border-radius: 15px 15px 5px 5px; }
}

/* v3.3 final title overrides */
#gp-start-screen {
  background: linear-gradient(180deg, rgba(3, 5, 22, .04), rgba(3, 4, 18, .22)), url("./assets/neon-carnival-pc.webp") center / cover no-repeat;
}

#gp-start-screen::before,
#gp-start-screen::after { display: none; }

.gp-start-panel {
  background:
    radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 4px / 38px 20px repeat-x,
    radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 calc(100% - 4px) / 38px 20px repeat-x,
    linear-gradient(145deg, rgba(37, 55, 130, .90), rgba(8, 13, 52, .94) 34%, rgba(39, 10, 70, .91) 74%, rgba(9, 13, 50, .95));
  backdrop-filter: blur(3px);
}

.gp-start-panel .gp-title-mark span { font-size: clamp(31px, 4.4vw, 70px); }
.gp-start-panel .gp-title-mark strong { font-size: clamp(47px, 6.4vw, 102px); }

@media (max-width: 720px), (orientation: portrait) {
  #gp-start-screen {
    background-image: linear-gradient(180deg, rgba(3,5,22,.03), rgba(3,4,18,.18)), url("./assets/neon-carnival-mobile.webp");
    background-position: center;
  }

  .gp-start-panel {
    background:
      radial-gradient(circle, #fff7bb 0 18%, #ffb51b 20% 41%, transparent 44%) 0 2px / 30px 16px repeat-x,
      linear-gradient(145deg, rgba(37,55,130,.90), rgba(8,13,52,.94) 35%, rgba(39,10,70,.91));
  }

  .gp-start-panel .gp-title-mark span { font-size: clamp(25px, 8vw, 42px); }
  .gp-start-panel .gp-title-mark strong { font-size: clamp(38px, 12vw, 62px); }
}

/* v3.6 最終座標・文字・ハンマー（必ず末尾で適用） */
.gp-app {
  display: block;
  padding: 0;
  background-color: #050516;
  background-image: url("./assets/game-cabinet-pc.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.gp-bg { display: none; }

.gp-hud {
  position: absolute;
  top: 1.2%;
  left: 5.5%;
  z-index: 20;
  display: grid !important;
  grid-template-columns: auto minmax(150px, .75fr) repeat(3, minmax(105px, .7fr)) auto;
  width: 89%;
  min-height: 8.5%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gp-fever {
  position: absolute;
  top: 10.8%;
  left: 25.5%;
  z-index: 20;
  width: 49%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.gp-board {
  position: absolute;
  top: 41%;
  left: 19.2%;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  width: 61.6%;
  height: 40%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: none;
  overflow: visible;
}

.gp-board::before,
.gp-board::after,
.gp-hole::before,
.gp-hole::after { display: none; }

.gp-hole,
.gp-hole:nth-child(-n+3),
.gp-hole:nth-child(n+4):nth-child(-n+6),
.gp-hole:nth-child(n+7),
.gp-hole:nth-child(3n+2),
.gp-hole:nth-child(4),
.gp-hole:nth-child(9) {
  --gp-hole-scale: 1;
  --gp-hole-shift: 0%;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 48%;
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: none;
}

.gp-target-stage {
  inset: -90% 0 42%;
  overflow: hidden;
}

.gp-target { place-items: end center; }
.gp-sprite { max-width: 98%; max-height: 128%; }

.gp-footer {
  position: absolute;
  right: 10.2%;
  bottom: 2.5%;
  left: 28.4%;
  z-index: 20;
  display: grid !important;
  width: auto;
  min-height: 8.5%;
  margin: 0;
  padding: 0 2.5%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gp-message {
  color: #fff1a0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(30px, 4.2vw, 70px);
  font-style: italic;
  letter-spacing: .03em;
  -webkit-text-stroke: clamp(1px, .12vw, 2px) #ff7a00;
  text-shadow: 0 3px 0 #8e2300, 0 0 8px #fff, 0 0 17px #ffb000, 0 0 28px #ff3b00;
}

.gp-message.is-miss {
  color: #ffd5e3 !important;
  -webkit-text-stroke-color: #b9165c;
  text-shadow: 0 3px 0 #5f1034, 0 0 12px #ff2b91;
}

.gp-hammer-hit {
  position: absolute;
  top: -125%;
  left: 15%;
  z-index: 30;
  width: 145%;
  max-width: none;
  pointer-events: none;
  transform-origin: 28% 72%;
  animation: gp-hammer-smash .34s cubic-bezier(.16,.9,.28,1) forwards;
  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px #ff5420);
}

.gp-burst {
  top: -54%;
  left: 23%;
  z-index: 31;
  font-size: clamp(25px, 3.5vw, 58px);
  color: #fff5a5;
  -webkit-text-stroke: 2px #c72e00;
  text-shadow: 0 2px #651200, 0 0 8px #fff, 0 0 16px #ff6b00;
}

@keyframes gp-hammer-smash {
  0% { opacity: 0; transform: translate(28%, -28%) rotate(17deg) scale(.72); }
  38% { opacity: 1; transform: translate(0, 0) rotate(-5deg) scale(1); }
  72% { opacity: 1; transform: translate(0, 0) rotate(-5deg) scale(1); }
  100% { opacity: 0; transform: translate(8%, -9%) rotate(8deg) scale(.94); }
}

@media (max-width: 720px), (orientation: portrait) {
  .gp-app {
    background-image: url("./assets/game-cabinet-mobile.webp");
    background-size: 100% 100%;
  }

  .gp-hud {
    top: 4.9%;
    left: 1.6%;
    grid-template-columns: auto minmax(70px, 1.05fr) repeat(3, minmax(56px, .82fr)) auto;
    gap: 3px;
    width: 96.8%;
    min-height: 5.5%;
  }

  .gp-fever { top: 11.5%; left: 10%; width: 80%; }

  .gp-board {
    top: 46.2%;
    left: 4%;
    gap: 0;
    width: 92%;
    height: 34%;
  }

  .gp-target-stage { inset: -82% 0 41%; }
  .gp-sprite { max-width: 100%; max-height: 124%; }

  .gp-footer {
    right: 4%;
    bottom: 7.8%;
    left: 5%;
    min-height: 6.5%;
    padding: 0 4%;
  }

  .gp-message {
    font-size: clamp(25px, 8.5vw, 43px);
    -webkit-text-stroke-width: 1px;
  }

  .gp-hammer-hit { top: -112%; left: 7%; width: 158%; }
  .gp-burst { top: -47%; left: 15%; font-size: clamp(21px, 7vw, 36px); }
}

/* v3.7 実画面座標検証：キャラ全体を穴の中心まで表示 */
@media (min-width: 721px) and (orientation: landscape) {
  .gp-target-stage {
    inset: -220% -2% 45%;
  }

  .gp-target {
    place-items: end center;
  }

  .gp-sprite {
    width: 96%;
    max-width: 96%;
    height: auto;
    max-height: 98%;
  }

  .gp-hammer-hit {
    top: -210%;
    left: 8%;
    width: 150%;
  }

  .gp-burst {
    top: -118%;
    left: 22%;
  }
}

@media (max-width: 720px), (orientation: portrait) {
  .gp-target-stage {
    inset: -96% -2% 44%;
  }

  .gp-target {
    place-items: end center;
  }

  .gp-sprite {
    width: 96%;
    max-width: 96%;
    height: auto;
    max-height: 98%;
  }

  .gp-hammer-hit {
    top: -126%;
    left: 5%;
    width: 158%;
  }

  .gp-burst {
    top: -62%;
    left: 16%;
  }
}

/* v3.8 添付実画面から採寸した固定座標 */
@media (min-width: 721px) and (orientation: landscape) {
  .gp-hud {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .gp-hud > * { position: absolute; }

  #gp-pause {
    top: 1.5%;
    left: 5.5%;
  }

  .gp-logo {
    top: 1.55%;
    left: 10.3%;
    width: 14%;
    padding: 0;
  }

  .gp-time {
    top: 1.45%;
    left: 26.7%;
    width: 16.1%;
    height: 8.2%;
  }

  .gp-score-stat {
    top: 1.45%;
    left: 44.1%;
    width: 15.7%;
    height: 8.2%;
  }

  .gp-combo-stat {
    top: 1.45%;
    left: 61%;
    width: 12.4%;
    height: 8.2%;
  }

  #gp-sound {
    top: 1.5%;
    right: 5.5%;
  }

  .gp-stat {
    min-height: 0;
    padding: 2px 8px;
    border: 0;
    background: rgba(2,5,25,.16);
    box-shadow: none;
    backdrop-filter: none;
  }

  .gp-stat span { font-size: clamp(9px, .85vw, 14px); }
  .gp-stat strong { font-size: clamp(21px, 2.2vw, 38px); }

  .gp-sprite {
    width: 76%;
    max-width: 76%;
    max-height: 96%;
  }

  .gp-footer {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    pointer-events: none;
  }

  .gp-message {
    position: absolute;
    top: 85.8%;
    left: 27.2%;
    display: grid;
    width: 44.8%;
    height: 11%;
    min-width: 0;
    place-items: center;
  }

  .gp-lives {
    position: absolute;
    top: 86.2%;
    left: 73%;
    display: grid;
    width: 16.4%;
    height: 10.2%;
    place-items: center;
  }

  .gp-hammer-hit {
    top: -202%;
    left: 15%;
    width: 120%;
  }

  .gp-burst {
    top: -110%;
    left: 28%;
  }
}

@media (max-width: 720px), (orientation: portrait) {
  .gp-hud {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .gp-hud > * { position: absolute; }

  #gp-pause { top: 5.1%; left: 1.7%; }
  .gp-logo { top: 5.1%; left: 11.7%; width: 19.5%; padding: 0; }
  .gp-time { top: 5%; left: 33.8%; width: 15.8%; height: 5.6%; }
  .gp-score-stat { top: 5%; left: 51.4%; width: 19.3%; height: 5.6%; }
  .gp-combo-stat { top: 5%; left: 72.6%; width: 15.9%; height: 5.6%; }
  #gp-sound { top: 5.1%; right: 1.7%; }

  .gp-stat {
    min-height: 0;
    padding: 1px 2px;
    border: 0;
    background: rgba(2,5,25,.13);
    box-shadow: none;
    backdrop-filter: none;
  }

  .gp-sprite {
    width: 84%;
    max-width: 84%;
    max-height: 96%;
  }

  .gp-footer {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    pointer-events: none;
  }

  .gp-message {
    position: absolute;
    top: 84.8%;
    left: 6.2%;
    display: grid;
    width: 62.3%;
    height: 8.6%;
    min-width: 0;
    place-items: center;
  }

  .gp-lives {
    position: absolute;
    top: 85.2%;
    left: 72.2%;
    display: grid;
    width: 21.5%;
    height: 8%;
    place-items: center;
  }

  .gp-hammer-hit { top: -119%; left: 12%; width: 130%; }
  .gp-burst { top: -57%; left: 22%; }
}

/* v3.9 キャラ画像内の透明余白を補正 */
@media (min-width: 721px) and (orientation: landscape) {
  .gp-sprite {
    transform: translateY(20%);
  }
}
