/* The playable game (game/play.htm). Loaded after game.css, whose colours
   (--gold, --rose, --wine) and fonts (Cinzel) it reuses.
   The backgrounds "bg-…" below are drawn in CSS: they are only seen when
   there is no picture with that name in /game/assets/bg/. */
@font-face { font-family: "Orbitron"; font-weight: 500; font-display: swap; src: url("/fonts/orbitron-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 700; font-display: swap; src: url("/fonts/orbitron-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

.pg-main { padding: 118px 20px 40px; }

.pg {
  position: relative;
  width: 1160px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid var(--gold-deep);
  box-shadow: 0 0 0 6px rgba(232, 194, 122, 0.12), 0 30px 60px rgba(0, 0, 0, 0.6);
  background: #120410;
  font-family: "Poppins", Arial, sans-serif;
  color: #fff;
  user-select: none;
  cursor: pointer;
}
.pg [hidden] { display: none !important; }
.pg button { font-family: inherit; cursor: pointer; }

/* ------------------------------ backgrounds ------------------------------ */
.pg-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.4s ease;
}
.pg-bg::after { /* darker at the bottom, so the text stays readable on any picture */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 2, 12, 0.35) 0%, rgba(10, 2, 12, 0) 25%, rgba(10, 2, 12, 0) 55%, rgba(10, 2, 12, 0.78) 100%);
}
.bg-system { background-color: #060b1f; background-image: linear-gradient(rgba(90, 160, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 160, 255, 0.12) 1px, transparent 1px), radial-gradient(60% 60% at 50% 40%, #16306a, #060b1f 75%); background-size: 44px 44px, 44px 44px, cover; }
.bg-title { background-image: radial-gradient(26% 46% at 50% 44%, #ffd3e6 0%, #ff8fbd 55%, rgba(255, 143, 189, 0) 72%), linear-gradient(180deg, #2a1650 0%, #7a3c8f 55%, #f08ab6 100%); }
.bg-bedroom { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 62%, rgba(255, 244, 214, 0.55) 62%, rgba(255, 244, 214, 0.55) 80%, rgba(255, 255, 255, 0) 80%), linear-gradient(180deg, #f6d9e6 0%, #e9b7cf 60%, #8a4a63 60%, #6b3550 100%); }
.bg-bedroom-night { background-image: radial-gradient(10% 16% at 71% 28%, #fff6d5, rgba(255, 246, 213, 0) 70%), linear-gradient(90deg, rgba(0, 0, 0, 0) 62%, rgba(70, 90, 170, 0.6) 62%, rgba(70, 90, 170, 0.6) 80%, rgba(0, 0, 0, 0) 80%), linear-gradient(180deg, #2b1c44 0%, #3a2355 60%, #21102e 60%, #170a22 100%); }
.bg-corridor { background-image: repeating-linear-gradient(90deg, rgba(255, 236, 190, 0.5) 0 70px, rgba(0, 0, 0, 0) 70px 230px), linear-gradient(180deg, #5b3350 0%, #7c4a66 58%, #8c1f3c 58%, #5e1229 100%); }
.bg-dining { background-image: radial-gradient(18% 22% at 50% 8%, #fff1c2, rgba(255, 241, 194, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, 0) 66%, #f4ead9 66%, #f4ead9 74%, #5a2d1e 74%), linear-gradient(180deg, #6a3d2e, #8a553b); }
.bg-hall { background-image: repeating-linear-gradient(90deg, rgba(255, 150, 210, 0.35) 0 60px, rgba(0, 0, 0, 0) 60px 220px), linear-gradient(180deg, #2a0f2c, #5a1f4d 70%, #2a0f2c); }
.bg-palace { background-image: linear-gradient(180deg, #b3123d 0%, #f0623f 45%, #2b1630 45%, #1b0c20 100%); }
.bg-garden-night { background-image: radial-gradient(9% 16% at 80% 18%, #fdf7dc, rgba(253, 247, 220, 0) 70%), repeating-linear-gradient(90deg, #12331f 0 120px, #0d2617 120px 240px), linear-gradient(180deg, #0c1436, #1b2a5c); background-size: cover, 100% 55%, cover; background-position: center, bottom, center; background-repeat: no-repeat; }
.bg-ballroom { background-image: radial-gradient(14% 20% at 22% 6%, #fff3c4, rgba(255, 243, 196, 0) 70%), radial-gradient(14% 20% at 78% 6%, #fff3c4, rgba(255, 243, 196, 0) 70%), repeating-linear-gradient(90deg, rgba(255, 226, 150, 0.35) 0 40px, rgba(0, 0, 0, 0) 40px 200px), linear-gradient(180deg, #6d4a1c 0%, #a87a34 62%, #3b2410 62%, #24150a 100%); }
.bg-street { background-image: radial-gradient(5% 8% at 18% 30%, #ffd27a, rgba(255, 210, 122, 0) 70%), radial-gradient(5% 8% at 50% 22%, #ff9ac1, rgba(255, 154, 193, 0) 70%), radial-gradient(5% 8% at 82% 30%, #ffd27a, rgba(255, 210, 122, 0) 70%), linear-gradient(180deg, #1c1440 0%, #47306e 60%, #2a1c33 60%, #17101d 100%); }
.bg-auction { background-image: radial-gradient(30% 60% at 50% 0%, rgba(255, 220, 150, 0.55), rgba(255, 220, 150, 0) 70%), linear-gradient(180deg, #1a1210, #2c1c16 65%, #0f0a09 65%); }
.bg-shop { background-image: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 78px, #3a2413 78px 88px), repeating-linear-gradient(90deg, #6e4a26 0 26px, #86592d 26px 52px, #5a3a1c 52px 70px), linear-gradient(#4a2f17, #4a2f17); }
.bg-forest { background-image: repeating-linear-gradient(90deg, rgba(20, 50, 28, 0.9) 0 46px, rgba(0, 0, 0, 0) 46px 170px), linear-gradient(180deg, #9fd3a0 0%, #4f8f5a 55%, #254d2c 55%, #173320 100%); }
.bg-throne { background-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 42%, #9c1230 42%, #9c1230 58%, rgba(0, 0, 0, 0) 58%), repeating-linear-gradient(90deg, rgba(220, 225, 245, 0.45) 0 50px, rgba(0, 0, 0, 0) 50px 210px), linear-gradient(180deg, #2c3350, #4a5378 62%, #1d2136 62%); }

/* ------------------------------ characters ------------------------------ */
.pg-chars {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 21%;
  height: 66%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  pointer-events: none;
}
.pg-char {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.pg-char img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}
.pg-char.framed img { /* ordinary pictures (jpg) are shown as a framed card */
  border-radius: 14px;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
  filter: none;
}
.pg-char.enter { animation: pg-in 0.45s ease both; }
.pg-char.quiet { filter: brightness(0.62); transform: scale(0.96); }
@keyframes pg-in { from { opacity: 0; transform: translateY(26px); } }

/* no picture at all for this character: a simple silhouette with the name */
.pg-ghost {
  display: grid;
  place-items: end center;
  width: 190px;
  height: 78%;
  padding-bottom: 18px;
  box-sizing: border-box;
  border-radius: 100px 100px 14px 14px;
  font: 600 15px "Poppins", Arial, sans-serif;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 143, 189, 0.65), rgba(90, 30, 90, 0.85));
  border: 2px dashed rgba(255, 255, 255, 0.6);
}

/* emotion mark, only when the picture of that expression is missing */
.pg-emote {
  position: absolute;
  top: 2%;
  right: -4%;
  min-width: 46px;
  padding: 4px 10px;
  box-sizing: border-box;
  border-radius: 999px;
  text-align: center;
  font: 700 22px "Poppins", Arial, sans-serif;
  color: #5a1040;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  animation: pg-pop 0.4s ease both;
}
.pg-emote:empty { display: none; }
@keyframes pg-pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
.pg-char.fallback.ex-dark img, .pg-char.fallback.ex-cold img { filter: brightness(0.6) saturate(0.7); }
.pg-char.fallback.ex-scared img, .pg-char.fallback.ex-sad img { filter: saturate(0.6) hue-rotate(-12deg) brightness(0.92); }
.pg-char.fallback.ex-angry img { filter: saturate(1.3) sepia(0.25) hue-rotate(-20deg); }
.pg-char.fallback.ex-ko { transform: rotate(-78deg) translate(-18%, 30%); filter: grayscale(0.4); }
.pg-char.fallback.ex-shocked { animation: pg-jump 0.35s ease 2; }
.pg-char.fallback.ex-battle { animation: pg-jump 0.5s ease infinite; }
.pg-char.fallback.ex-bow { transform: rotate(6deg) translateY(4%); }
@keyframes pg-jump { 50% { transform: translateY(-14px); } }

/* ------------------------------ top bar of the game ------------------------------ */
.pg-hud {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: default;
}
.pg-hud-left { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pg-hud-right { display: flex; align-items: center; gap: 8px; }
.pg-chapter, .pg-stat {
  padding: 5px 14px;
  border-radius: 999px;
  font: 700 13px "Cinzel", serif;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(20, 4, 18, 0.78);
  border: 1px solid rgba(232, 194, 122, 0.5);
}
.pg-stat { font-family: "Poppins", Arial, sans-serif; letter-spacing: 0; color: #fff; }
.pg-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(232, 194, 122, 0.6);
  font-size: 16px;
  color: #fff;
  background: rgba(20, 4, 18, 0.78);
}
.pg-icon:hover { background: var(--wine); }
.pg-favs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 640px; }
.pg-fav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(20, 4, 18, 0.78);
  border: 1px solid rgba(255, 92, 157, 0.5);
}
.pg-face { width: 26px; height: 26px; border-radius: 50%; background: #5a1040 center / cover no-repeat; border: 1px solid var(--gold); }
.pg-fav b { width: 54px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.pg-fav u { display: block; height: 100%; background: linear-gradient(90deg, #ff5c9d, #ffb7c5); transition: width 0.5s ease; }
.pg-fav em { font-style: normal; font-weight: 600; color: #ffb7c5; min-width: 30px; text-align: end; }

.pg-toast {
  position: absolute;
  left: 50%;
  top: 17%;
  z-index: 6;
  padding: 8px 22px;
  border-radius: 999px;
  font: 700 18px "Poppins", Arial, sans-serif;
  background: rgba(20, 4, 18, 0.9);
  border: 2px solid var(--gold);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.pg-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pg-toast.up { color: #ffb7c5; border-color: var(--rose); }
.pg-toast.down { color: #ff8a8a; border-color: #c21e3a; }

/* ------------------------------ dialogue ------------------------------ */
.pg-dialog {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 3%;
  z-index: 4;
  min-height: 19%;
  box-sizing: border-box;
  padding: 26px 28px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 8, 34, 0.93), rgba(20, 4, 18, 0.95));
  border: 2px solid var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 92, 157, 0.35), 0 10px 26px rgba(0, 0, 0, 0.5);
}
.pg-who {
  position: absolute;
  top: -17px;
  inset-inline-start: 24px;
  padding: 4px 20px;
  border-radius: 999px;
  font: 700 15px "Cinzel", serif;
  letter-spacing: 0.06em;
  color: #2a0722;
  background: linear-gradient(90deg, var(--gold), #fff0c9);
}
.pg-line { margin: 0; font-size: 19px; line-height: 1.55; min-height: 2.9em; }
.pg-dialog.narr .pg-line { font-style: italic; color: #f3dbe6; }
.pg-more { position: absolute; inset-inline-end: 20px; bottom: 8px; color: var(--gold); animation: pg-bob 0.9s ease-in-out infinite; }
@keyframes pg-bob { 50% { transform: translateY(5px); } }

/* the game's own window, as in the manhwa */
.pg-dialog.sys {
  background: rgba(8, 24, 60, 0.94);
  border-color: #6fb3ff;
  box-shadow: inset 0 0 0 1px rgba(111, 179, 255, 0.4), 0 0 24px rgba(80, 150, 255, 0.45);
}
.pg-dialog.sys .pg-who { color: #06122e; background: linear-gradient(90deg, #6fb3ff, #d5e9ff); font-family: "Orbitron", "Poppins", sans-serif; }
.pg-dialog.sys .pg-line { font-family: "Orbitron", "Poppins", sans-serif; font-size: 17px; color: #d5e9ff; }
.pg-dialog.sys .pg-more { color: #6fb3ff; }

/* ------------------------------ choices ------------------------------ */
.pg-choices {
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 5;
  width: 64%;
  transform: translateX(-50%);
  display: grid;
  gap: 12px;
}
.pg-choice {
  position: relative;
  padding: 14px 44px;
  border-radius: 12px;
  border: 1px solid #6fb3ff;
  font-size: 17px;
  font-weight: 600;
  color: #e6f1ff;
  background: rgba(8, 24, 60, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
  animation: pg-in 0.35s ease both;
}
.pg-choice:nth-child(2) { animation-delay: 0.07s; }
.pg-choice:nth-child(3) { animation-delay: 0.14s; }
.pg-choice:hover, .pg-choice:focus-visible { transform: scale(1.03); background: rgba(24, 60, 130, 0.96); outline: none; }
.pg-choice.deadly { border-color: #c21e3a; }
.pg-skull { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: #ff8a8a; }

.pg-timer {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 19%;
  z-index: 5;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.pg-timer i { display: block; height: 100%; width: 100%; background: #6fb3ff; transition: width 0.1s linear; }
.pg-timer.hurry i { background: #ff5c5c; }

/* ------------------------------ chapter card ------------------------------ */
.pg-card {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  background: rgba(14, 3, 14, 0.9);
  animation: pg-fade 0.4s ease both;
}
.pg-card span { font: 500 18px "Cinzel", serif; letter-spacing: 0.4em; text-transform: uppercase; color: var(--rose); }
.pg-card strong { font: 700 44px "Cinzel Decorative", "Cinzel", serif; color: var(--gold); text-shadow: 0 0 24px rgba(232, 194, 122, 0.5); padding: 0 30px; }
@keyframes pg-fade { from { opacity: 0; } }

/* ------------------------------ menu, endings ------------------------------ */
.pg-screen {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  cursor: default;
  background: rgba(14, 3, 14, 0.62);
  animation: pg-fade 0.4s ease both;
}
.pg-menu-box { width: 78%; text-align: center; }
.pg-menu-box h1 { margin: 0; font: 700 46px "Cinzel Decorative", "Cinzel", serif; color: var(--gold); text-shadow: 0 4px 0 #4b0b2c, 0 0 26px rgba(255, 92, 157, 0.6); }
.pg-menu-sub { margin: 6px 0 20px; font: 500 16px "Cinzel", serif; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd3e6; }
.pg-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.pg-mode {
  padding: 18px 16px;
  border-radius: 16px;
  border: 2px solid var(--gold-deep);
  color: #fff;
  background: rgba(42, 8, 34, 0.88);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pg-mode strong { display: block; font: 700 24px "Cinzel", serif; margin-bottom: 6px; }
.pg-mode span { font-size: 14px; color: #f3dbe6; }
.pg-mode.normal strong { color: #ffb7c5; }
.pg-mode.hard { border-color: #c21e3a; background: rgba(60, 6, 22, 0.9); }
.pg-mode.hard strong { color: #ff6b81; }
.pg-mode:hover, .pg-mode:focus-visible { transform: translateY(-4px); box-shadow: 0 0 24px rgba(255, 92, 157, 0.6); outline: none; }
.pg-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(42, 8, 34, 0.88);
}
.pg-btn:hover, .pg-btn:focus-visible { background: var(--wine); outline: none; }
.pg-btn.gold { color: #2a0722; background: linear-gradient(90deg, var(--gold), #fff0c9); font-size: 16px; padding: 12px 30px; }
.pg-btn.gold:hover { filter: brightness(1.1); }
.pg-menu-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pg-menu-warn { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: #ff9aa9; }
.pg-menu-account { margin: 14px 0 0; font-size: 13px; color: #b9f3c9; }
.pg-menu-account a { color: #ffd3e6; }
.pg-menu-note { margin: 6px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.7); }

.pg-end { align-content: center; gap: 12px; text-align: center; padding: 0 12%; box-sizing: border-box; }
.pg-end.bad { background: rgba(70, 6, 14, 0.93); }
.pg-end.good, .pg-end.normal { background: rgba(60, 10, 50, 0.9); }
.pg-end.true { background: rgba(14, 24, 66, 0.9); }
.pg-end-kind { font: 700 20px "Cinzel", serif; letter-spacing: 0.5em; color: #ff9aa9; }
.pg-end.good .pg-end-kind, .pg-end.normal .pg-end-kind { color: #ffb7c5; }
.pg-end.true .pg-end-kind { color: #9fd0ff; }
.pg-end h2 { margin: 0; font: 700 40px "Cinzel Decorative", "Cinzel", serif; color: var(--gold); }
.pg-end-hint { max-width: 620px; padding: 12px 20px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px dashed rgba(255, 255, 255, 0.4); }
.pg-end-hint small { color: #ffd3e6; }
.pg-end-hint p { margin: 4px 0 0; font-size: 16px; }
.pg-end-score { margin: 0; font-size: 24px; font-weight: 600; }
.pg-end-stat { margin: 0; font-size: 14px; color: #f3dbe6; }
.pg-end .pg-btn { justify-self: center; }

/* ------------------------------ panels ------------------------------ */
.pg-panel { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(8, 2, 10, 0.75); cursor: default; }
.pg-panel-box { width: 74%; max-height: 86%; display: flex; flex-direction: column; gap: 12px; padding: 18px 22px; box-sizing: border-box; border-radius: 16px; background: #2a0722; border: 2px solid var(--gold-deep); }
.pg-panel-head { display: flex; justify-content: space-between; align-items: center; }
.pg-panel-head h2 { margin: 0; font: 700 24px "Cinzel", serif; color: var(--gold); }
.pg-panel-body { overflow-y: auto; display: grid; gap: 10px; padding-inline-end: 6px; }
.pg-panel-box > .pg-btn { align-self: center; }
.pg-note { padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); border-inline-start: 3px solid #c21e3a; }
.pg-note strong { font-size: 14px; color: #ff9aa9; }
.pg-note p { margin: 4px 0 0; font-size: 14px; }
.pg-empty { margin: 0; font-size: 13px; color: #f3dbe6; }
.pg-endings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-ending { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; background: rgba(255, 255, 255, 0.08); }
.pg-ending.bad span { color: #ff8a8a; }
.pg-ending.good span { color: #ffb7c5; }
.pg-ending.true span { color: #9fd0ff; }
.pg-ending.locked { opacity: 0.45; }
.pg-ranking { margin: 0; padding-inline-start: 26px; display: grid; gap: 6px; }
.pg-ranking li { font-size: 15px; }
.pg-ranking li strong { display: inline-block; min-width: 180px; }
.pg-ranking li span { display: inline-block; min-width: 90px; color: #ffd3e6; }

/* ------------------------------ mini-games ------------------------------ */
.pg-mini {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 6% 4%;
  box-sizing: border-box;
  cursor: default;
  background: rgba(14, 3, 14, 0.86);
}
.pg-mini-head { width: 100%; display: grid; justify-items: center; gap: 4px; text-align: center; }
.pg-mini-head strong { font: 700 28px "Cinzel", serif; color: var(--gold); }
.pg-mini-head small { font-size: 14px; color: #f3dbe6; }
.pg-mini-count { font-size: 22px; font-weight: 600; }
.pg-mini-head .pg-timer { position: static; width: 60%; }
.pg-field { position: relative; flex: 1; width: 100%; border-radius: 16px; border: 2px dashed rgba(255, 255, 255, 0.35); }
.pg-maid {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3px solid #fff;
  font: 700 18px "Poppins", Arial, sans-serif;
  color: #5a1040;
  background: #ffd3e6 center 12% / 230% no-repeat;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  animation: pg-pop 0.25s ease both;
}
.pg-maid.hit { background-image: none !important; background-color: #fff3a6; border-color: #ffcf3f; transform: rotate(20deg) scale(1.25); transition: transform 0.2s ease; }
.pg-mini-result { margin: auto; padding: 18px 30px; border-radius: 16px; font-size: 22px; font-weight: 600; text-align: center; background: rgba(42, 8, 34, 0.94); border: 2px solid var(--gold); }
.pg-aim { position: relative; width: 80%; height: 46px; margin: auto 0 10px; border-radius: 23px; background: rgba(255, 255, 255, 0.18); border: 2px solid #fff; overflow: hidden; }
.pg-aim-zone { position: absolute; top: 0; bottom: 0; background: #4fd18b; }
.pg-aim-sight { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; background: #ff3d5e; box-shadow: 0 0 10px #ff3d5e; }
.pg-mini > .pg-btn { margin-bottom: auto; }

/* ------------------------------ effects ------------------------------ */
.pg.fx-shake { animation: pg-shake 0.5s ease; }
@keyframes pg-shake { 20% { transform: translate(-8px, 3px); } 40% { transform: translate(7px, -4px); } 60% { transform: translate(-5px, 2px); } 80% { transform: translate(4px, -2px); } }
.pg.fx-flash::after, .pg.fx-stars::after { content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none; animation: pg-flash 0.8s ease both; }
.pg.fx-flash::after { background: #fff; }
.pg.fx-stars::after {
  background:
    radial-gradient(circle at 20% 30%, #fff3a6 0 14px, transparent 15px), radial-gradient(circle at 70% 22%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 45% 55%, #ffcf3f 0 18px, transparent 19px), radial-gradient(circle at 82% 60%, #fff3a6 0 12px, transparent 13px),
    radial-gradient(circle at 30% 72%, #fff 0 9px, transparent 10px);
}
@keyframes pg-flash { from { opacity: 0.9; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pg *, .pg { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
}

/* ------------------------------ "Play" button on the poster page ------------------------------ */
.gm-play {
  display: inline-block;
  margin: 26px auto 0;
  padding: 16px 54px;
  border-radius: 999px;
  font: 700 22px "Cinzel", serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2a0722;
  background: linear-gradient(90deg, #e8c27a, #fff0c9, #e8c27a);
  box-shadow: 0 0 0 3px #7d0f3a, 0 0 30px rgba(255, 92, 157, 0.7);
  transition: transform 0.2s ease;
}
.gm-play:hover, .gm-play:focus-visible { transform: scale(1.06); }
.gm-play-wrap { position: relative; z-index: 4; text-align: center; }
