/* にゃんグル web体験「バルーンキャッチ」 — アプリの配色（Pop）に合わせる */
.nyplay {
  --p-pink: #FF5C93; --p-purple: #7B61FF; --p-sky: #37A7FF; --p-mint: #1FCB8B;
  --p-orange: #FF8C2E; --p-yellow: #FFC928; --p-red: #FF4757; --p-ink: #2B2135; --p-sub: #76698A;
  font-family: "M PLUS Rounded 1c", "Zen Kaku Gothic New", system-ui, sans-serif;
}
/* 左の説明文はページの文字色に合わせる（ダークモードでも読めるように）。ゲーム画面の中だけ濃い色の文字 */
.nyplay-copy { color: var(--ink); }
.nyplay-copy p { color: var(--muted); }
.nyplay-stage { color: var(--p-ink); }
.nyplay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
@media (max-width: 860px) { .nyplay-wrap { grid-template-columns: 1fr; gap: 24px; } }
.nyplay-copy .label { margin-bottom: 8px; }
.nyplay-copy h2 { margin: 0 0 14px; }
.nyplay-copy ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nyplay-copy li { padding-left: 28px; position: relative; }
.nyplay-copy li::before { content: "🎈"; position: absolute; left: 0; top: 0; }

/* ゲーム画面（スマホの画面くらいの比率） */
.nyplay-stage {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 9 / 15; max-height: 78vh;
  border: 3px solid var(--p-ink); border-radius: 28px; box-shadow: 0 8px 0 var(--p-ink);
  overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  background:
    radial-gradient(60px 26px at 18% 22%, #fff 60%, transparent 62%),
    radial-gradient(44px 20px at 26% 19%, #fff 60%, transparent 62%),
    radial-gradient(70px 28px at 80% 48%, #fff 60%, transparent 62%),
    radial-gradient(48px 22px at 72% 45%, #fff 60%, transparent 62%),
    radial-gradient(56px 22px at 30% 78%, rgba(255,255,255,.9) 60%, transparent 62%),
    linear-gradient(#5EC2FF, #BFE8FF 70%, #E4F6FF);
}
.nyplay-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.nyplay-screen[hidden] { display: none; }

/* ぽってりボタン（アプリの chunky と同じ考え方：太い縁＋下に影） */
.nyplay-btn {
  appearance: none; border: 3px solid var(--p-ink); border-radius: 18px; box-shadow: 0 5px 0 var(--p-ink);
  background: var(--p-pink); color: #fff; font: inherit; font-weight: 900; font-size: 20px; letter-spacing: .02em;
  padding: 12px 26px; cursor: pointer; transition: transform .08s, box-shadow .08s;
  text-shadow: 0 2px 0 rgba(43,33,53,.45);
}
.nyplay-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--p-ink); }
.nyplay-btn.sub { background: #fff; color: var(--p-ink); text-shadow: none; font-size: 16px; padding: 10px 18px; }
.nyplay-btn:focus-visible { outline: 3px solid var(--p-yellow); outline-offset: 3px; }
.nyplay-card { background: #fff; border: 3px solid var(--p-ink); border-radius: 20px; box-shadow: 0 4px 0 var(--p-ink); }

/* ロビー */
.nyplay-lobby { align-items: center; justify-content: center; gap: 12px; padding: 18px 22px 52px; text-align: center; }
.nyplay-lobby .art { width: 88%; border-radius: 18px; border: 3px solid var(--p-ink); box-shadow: 0 5px 0 var(--p-ink); background: #fff; }
.nyplay-title {
  font-family: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif; font-size: 32px; line-height: 1.1; margin: 4px 0 0;
  color: var(--p-yellow); -webkit-text-stroke: 2px var(--p-ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--p-ink);
  transform: rotate(-3deg);
}
.nyplay-rules { font-size: 14px; font-weight: 700; line-height: 1.6; padding: 12px 14px; margin: 0; text-align: left; }
.nyplay-note { font-size: 11px; color: #3B5A78; margin: 0; font-weight: 700; }

/* プレイ中 */
.nyplay-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 6px; }
.nyplay-hearts { font-size: 22px; letter-spacing: 2px; filter: drop-shadow(0 2px 0 var(--p-ink)); }
.nyplay-pill { font-weight: 900; font-size: 15px; padding: 4px 12px; border: 2.5px solid var(--p-ink); border-radius: 999px; background: #fff; box-shadow: 0 3px 0 var(--p-ink); }
.nyplay-combo { font-weight: 900; font-size: 12px; color: #fff; background: var(--p-orange); padding: 3px 9px; border: 2.5px solid var(--p-ink); border-radius: 10px; box-shadow: 0 2px 0 var(--p-ink); visibility: hidden; }
.nyplay-combo.on { visibility: visible; animation: nyBump .35s; }
.nyplay-round { font-size: 12px; font-weight: 900; color: #1F4E79; }
.nyplay-callout { display: flex; align-items: center; gap: 10px; margin: 4px 14px 0; padding: 8px 10px; position: relative; z-index: 3; }
.nyplay-callout img { width: 50px; height: 50px; border-radius: 50%; border: 2.5px solid var(--p-ink); object-fit: cover; flex: none; }
.nyplay-callout .txt { flex: 1; min-width: 0; }
.nyplay-callout small { display: block; font-size: 11px; font-weight: 900; color: var(--p-sub); }
.nyplay-callout b { display: block; font-size: 17px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nyplay-speak { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--p-ink); background: var(--p-sky); box-shadow: 0 3px 0 var(--p-ink); font-size: 20px; cursor: pointer; padding: 0; line-height: 1; }
.nyplay-speak.slow { width: 38px; height: 38px; font-size: 16px; background: var(--p-mint); }
.nyplay-speak:active { transform: translateY(3px); box-shadow: 0 0 0 var(--p-ink); }
.nyplay-speak[hidden] { display: none; }
.nyplay-sky { position: relative; flex: 1; overflow: hidden; }

/* 風船 */
.nyb { position: absolute; left: 0; top: 0; width: 104px; margin-left: -52px; display: flex; flex-direction: column; align-items: center; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.nyb .body {
  width: 104px; height: 116px; border-radius: 50%; border: 3px solid var(--p-ink); box-shadow: 3px 4px 0 var(--p-ink);
  display: grid; place-items: center; position: relative;
}
.nyb .body::before { content: ""; position: absolute; width: 18px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.55); left: 20px; top: 16px; transform: rotate(25deg); }
.nyb .word { color: #fff; font-weight: 900; font-size: 22px; text-shadow: 0 2px 0 rgba(43,33,53,.6); padding: 0 8px; text-align: center; line-height: 1.1; font-family: "Black Han Sans", "M PLUS Rounded 1c", sans-serif; }
.nyb .knot { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid var(--c); margin-top: -2px; }
.nyb svg { display: block; }

.nyplay-burst { position: absolute; left: 0; top: 0; pointer-events: none; }
.nyplay-burst i { position: absolute; width: 8px; height: 22px; margin: -11px 0 0 -4px; border: 1.5px solid var(--p-ink); border-radius: 4px; animation: nyShard .5s ease-out forwards; }
.nyplay-burst b { position: absolute; transform: translate(-50%, -50%); font-family: "Dela Gothic One", sans-serif; font-size: 26px; color: var(--p-yellow); text-shadow: 2px 2px 0 var(--p-ink); animation: nyFade .8s forwards; white-space: nowrap; }
.nyplay-burst b.boo { color: var(--p-sub); }
.nyplay-flash {
  position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 4; pointer-events: none;
  font-family: "Dela Gothic One", sans-serif; font-size: 46px; -webkit-text-stroke: 2.5px var(--p-ink); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--p-ink); animation: nyStamp .45s cubic-bezier(.2,1.6,.4,1);
}

/* 結果 */
.nyplay-result { align-items: center; justify-content: flex-start; gap: 10px; padding: 18px 16px; text-align: center; overflow-y: auto; background: rgba(255,246,220,.94); }
.nyplay-result .pic { width: 58%; max-width: 220px; border-radius: 20px; border: 3px solid var(--p-ink); box-shadow: 0 5px 0 var(--p-ink); }
.nyplay-stars { font-size: 30px; letter-spacing: 4px; filter: drop-shadow(0 2px 0 var(--p-ink)); }
.nyplay-score { font-weight: 900; font-size: 15px; margin: 0; }
.nyplay-words { width: 100%; padding: 8px 12px; margin: 0; list-style: none; text-align: left; font-size: 14px; font-weight: 700; }
.nyplay-words li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1.5px dashed #E6DDEF; }
.nyplay-words li:last-child { border-bottom: 0; }
.nyplay-words .k { font-family: "Black Han Sans", sans-serif; font-size: 18px; font-weight: 400; }
.nyplay-words .ok { margin-left: auto; font-size: 16px; }
.nyplay-words button { border: 0; background: none; font-size: 16px; cursor: pointer; padding: 0 2px; }
.nyplay-cta { width: 100%; padding: 12px; font-size: 13px; font-weight: 800; line-height: 1.6; background: var(--p-purple); color: #fff; }
.nyplay-cta strong { display: block; font-size: 16px; }
.nyplay-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.nyplay-mute { position: absolute; right: 10px; bottom: 10px; z-index: 5; height: 34px; padding: 0 12px; border-radius: 999px; border: 2.5px solid var(--p-ink); background: #fff; color: var(--p-ink); box-shadow: 0 3px 0 var(--p-ink); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.nyplay-mute.on { background: var(--p-yellow); }
.nyplay-mute:active { transform: translateY(3px); box-shadow: 0 0 0 var(--p-ink); }

@keyframes nyShard { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
@keyframes nyFade { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 60% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1.15); } }
@keyframes nyStamp { from { transform: translate(-50%, -50%) rotate(-8deg) scale(2); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } }
@keyframes nyBump { 50% { transform: scale(1.25); } }

/* ヒーローの「遊べる」ボタン */
.btn-play { background: #FFC928; color: #2B2135; border: 2px solid #2B2135; box-shadow: 0 4px 0 #2B2135; font-weight: 800; }
.btn-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #2B2135; }
