/* Plane Hunt (game page only): navy NitroPlayer chrome around notebook-paper boards */
.game-plane-hunt .game-area { padding: 0; background: #1b1e2e; border-color: #2a2f48; overflow: hidden; }
.game-plane-hunt .game-area > .ph { flex: 1 1 auto; align-self: stretch; }
.game-plane-hunt .game-area { justify-content: flex-start !important; }
.ph {
    --ph-navy: #1b1e2e; --ph-navy-2: #23283d; --ph-navy-3: #2e3450; --ph-lime: #d4ff3a; --ph-ink: #2b4cc0;
    --ph-red: #ef4444; --ph-orange: #ff9500; --ph-text: #eef0fa; --ph-dim: #a3a8c6;
    width: 100%; min-height: 200px; color: var(--ph-text); background: var(--ph-navy);
    font-family: 'Nunito', var(--font-body); font-weight: 700; padding: 12px; box-sizing: border-box;
    -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.ph * { box-sizing: border-box; }
.ph b { font-weight: 900; }
.ph small { font-weight: 600; color: var(--ph-dim); }
.ph-svg { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.28); }
.ph-svg text { pointer-events: none; }
.ph-svg.is-live { cursor: crosshair; }
.ph-svg.is-edit { touch-action: none; cursor: grab; }
.ph-flash { animation: phFlash 1.1s ease-out 1 both; }
@keyframes phFlash { 0% { opacity: 1; stroke-width: 6; } 100% { opacity: 0; stroke-width: 2; } }

/* buttons */
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 14px;
    border: 2px solid transparent; font: 800 16px/1.1 'Nunito', var(--font-body); cursor: pointer; transition: transform .08s, background .15s, opacity .15s; }
.ph-btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.ph-btn:disabled { opacity: .45; cursor: default; }
.ph-primary { background: var(--ph-lime); color: #12142a; box-shadow: 0 3px 0 #9fc21b; }
.ph-primary:hover:not(:disabled) { background: #e2ff70; }
.ph-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.ph-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.ph-tool { background: #fff; color: #1b1e2e; flex-direction: column; gap: 2px; min-height: 58px; font-size: 13px; border-color: #d9dcea; }
.ph-tool:hover { background: #f3f5ff; }

/* ---------- setup ---------- */
.ph-setup { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto; }
.ph-brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 4px; }
.ph-brand-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ph-lime); color: #12142a; transform: rotate(-8deg); flex: none; }
.ph-brand-ic svg { width: 26px; height: 26px; }
.ph-brand b { display: block; font-size: 26px; line-height: 1; letter-spacing: -.01em; font-style: italic; }
.ph-brand small { font-family: 'Patrick Hand', cursive; font-size: 16px; color: #c7cbe6; }
.ph-cards { display: flex; flex-direction: column; gap: 8px; }
.ph-bcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--ph-navy-3);
    background: var(--ph-navy-2); color: #fff; text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.ph-bcard:hover { border-color: #4a5280; }
.ph-bcard.is-on { border-color: var(--ph-lime); background: #262b45; box-shadow: 0 0 0 3px rgba(212,255,58,.12); }
.ph-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8c92b8; flex: none; position: relative; }
.ph-bcard.is-on .ph-radio { border-color: var(--ph-lime); }
.ph-bcard.is-on .ph-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ph-lime); }
.ph-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-bt b { font-size: 19px; }
.ph-bt em { font-style: normal; color: var(--ph-lime); }
.ph-bt small { font-size: 13px; }
.ph-icons { display: flex; align-items: flex-end; gap: 4px; margin-top: 3px; min-height: 26px; }
.ph-icon { display: block; filter: drop-shadow(0 1px 0 rgba(0,0,0,.2)); }
.ph-icons .ph-icon path { }
.ph-prev { width: 78px; height: 78px; flex: none; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ph-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--ph-navy-2); border: 2px solid var(--ph-navy-3); }
.ph-opt-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #31375a; color: #fff; flex: none; }
.ph-opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-opt-t b { font-size: 16px; }
.ph-opt-t small { font-size: 12.5px; line-height: 1.25; }
.ph-switch { width: 52px; height: 30px; border-radius: 99px; border: 0; background: #4a5076; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.ph-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.ph-switch.is-on { background: var(--ph-lime); }
.ph-switch.is-on span { left: 25px; }
.ph-seg { display: inline-flex; background: #12152a; border-radius: 12px; padding: 3px; gap: 2px; flex: none; }
.ph-seg button { border: 0; background: transparent; color: var(--ph-dim); font: 800 13px 'Nunito', var(--font-body); padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.ph-seg button.is-on { background: var(--ph-lime); color: #12142a; }
.ph-go { min-height: 54px; font-size: 19px; width: 100%; }
.ph-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-more .ph-btn { min-height: 42px; font-size: 15px; }
.ph-more small { grid-column: 1 / -1; text-align: center; font-size: 12px; }

/* ---------- placement / move ---------- */
.ph-place { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto; }
.ph-pside { display: flex; flex-direction: column; gap: 10px; }
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-head b { display: block; font-size: 22px; line-height: 1.1; }
.ph-head small { font-size: 13.5px; }
.ph-chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: #31375a; white-space: nowrap; }
.ph-tray { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 66px; padding: 8px; border-radius: 14px;
    background: #f8f6ef; background-image: linear-gradient(#cfe0ff 1px, transparent 1px), linear-gradient(90deg, #cfe0ff 1px, transparent 1px); background-size: 14px 14px; }
.ph-titem { display: inline-block; border: 2px dashed transparent; background: transparent; padding: 4px; border-radius: 12px; cursor: grab; touch-action: none; }
.ph-titem:hover, .ph-titem.is-sel { border-color: #6b8de0; background: rgba(255,255,255,.6); }
.ph-tray-done { color: #3f4766; font-family: 'Patrick Hand', cursive; font-size: 19px; }
.ph-actions { display: flex; gap: 8px; }
.ph-actions .ph-tool { flex: 1 1 0; }
.ph-actions .ph-primary, .ph-actions .ph-ghost { flex: 1.6 1 0; min-height: 58px; font-size: 19px; }
.ph-place.is-move .ph-head b { color: var(--ph-lime); }

/* ---------- battle ---------- */
.ph-battle { display: flex; flex-direction: column; gap: 8px; }
.ph-hud { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ph-side.is-opp { text-align: right; }
.ph-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #3b5bdb; color: #fff; }
.ph-side.is-opp .ph-av { background: #5b6280; }
.ph-sn { display: flex; flex-direction: column; min-width: 0; }
.ph-sn b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.ph-sn small { font-size: 11.5px; white-space: nowrap; }
.ph-sn small i { font-style: normal; color: #fff; font-weight: 900; }
.ph-vs { font-weight: 900; font-style: italic; color: var(--ph-lime); font-size: 18px; }
.ph-banner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; padding: 7px 12px; border-radius: 99px; background: #31375a; font-weight: 900; font-size: 15px; min-height: 34px; }
.ph-banner.is-mine { background: #ff8a8a; color: #2a0b0b; }
.ph-banner.is-alert { background: var(--ph-orange); color: #2a1600; animation: phPulse 1s ease-in-out 2; }
.ph-banner.is-win { background: var(--ph-lime); color: #12142a; }
.ph-banner.is-loss { background: #5b6280; }
@keyframes phPulse { 50% { transform: scale(1.03); } }
.ph-boards { display: flex; flex-direction: column; gap: 8px; }
.ph-cap { font-size: 13px; font-weight: 800; margin: 0 0 4px 2px; color: #dfe3f7; }
.ph-cap span { color: var(--ph-dim); font-weight: 700; }
.ph-mine { display: flex; gap: 10px; align-items: flex-start; }
.ph-mywrap { flex: 0 0 56%; min-width: 0; }
.ph-aside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ph-tac { width: 100%; background: transparent; color: #fff; border-color: rgba(255,255,255,.7); font-size: 14px; min-height: 44px; padding: 0 8px; }
.ph-tac small { color: #c7cbe6; }
.ph-log { background: #12152a; border-radius: 12px; padding: 8px 10px; font-size: 12.5px; max-height: 150px; overflow: auto; }
.ph-log-h { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ph-dim); margin-bottom: 4px; }
.ph-log-e { color: var(--ph-dim); }
.ph-lr { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.ph-lr span { color: #c7cbe6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ph-lr b { flex: none; }
.ph-lr b { font-weight: 900; }
.ph-lr.is-hit b { color: #ff6b6b; }
.ph-lr.is-head b { color: var(--ph-orange); }
.ph-lr.is-miss b { color: #9aa1c4; }
.ph-lr.is-move b { color: var(--ph-lime); }
.ph-endbtns { display: flex; flex-direction: column; gap: 6px; }
.ph-endbtns .ph-btn { min-height: 42px; font-size: 15px; }

/* phones: enemy grid on top, mine below with the side column; everything fits a 390x844 screen */
@media (max-width: 760px) {
    .ph { padding: 8px; }
    .ph-log { max-height: 92px; }
    .ph-n12 .ph-mywrap { flex-basis: 50%; }
    .ph-setup { gap: 8px; }
    .ph-bcard { padding: 8px 10px; }
    .ph-prev { width: 64px; height: 64px; }
    .ph-brand b { font-size: 22px; }
    .ph-brand-ic { width: 36px; height: 36px; }
    .ph-bt b { font-size: 17px; }
    .ph-opt { padding: 8px 10px; }
    .ph-go { min-height: 50px; }
}
/* desktop: boards side by side */
@container board (min-width: 700px) {
    .ph { padding: 16px; }
    .ph-boards { flex-direction: row; align-items: flex-start; gap: 16px; }
    .ph-enemy { flex: 1.25 1 0; min-width: 0; }
    .ph-mine { flex: 1 1 0; flex-direction: column; gap: 10px; }
    .ph-mywrap { flex: none; width: 100%; }
    .ph-aside { width: 100%; }
    .ph-log { max-height: 140px; }
    .ph-hud { padding: 0 4px; }
    .ph-sn b { max-width: 220px; font-size: 17px; }
    .ph-banner { font-size: 17px; }
    .ph-place { max-width: 860px; display: grid; grid-template-columns: minmax(0, 540px) 250px; grid-template-areas: "board head" "board side"; grid-template-rows: auto 1fr; gap: 14px 18px; justify-content: center; }
    .ph-place > .ph-head { grid-area: head; flex-direction: column; align-items: flex-start; }
    .ph-place > .ph-pboard { grid-area: board; }
    .ph-place > .ph-pside { grid-area: side; display: flex; flex-direction: column; gap: 12px; }
    .ph-place .ph-tray { flex-direction: column; min-height: 0; }
    .ph-place .ph-actions { flex-wrap: wrap; }
    .ph-place .ph-actions .ph-primary, .ph-place .ph-actions .ph-ghost { flex: 1 1 100%; }
}
.ph-end .win-box p { margin-bottom: 0; }

.ph-btn svg { flex: none; }

/* ---------- shot feedback: callouts, cell effects, marker stamp-in (no screen shake) ---------- */
.ph-bwrap { position: relative; }
.ph-callout { position: absolute; transform: translate(-50%, -150%); z-index: 6; pointer-events: none; white-space: nowrap;
    font: 900 clamp(15px, 4.6cqw, 24px)/1 'Nunito', var(--font-body); padding: 5px 10px; border-radius: 10px; letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: phCall .95s ease-out both; }
.ph-mine .ph-callout { font-size: 13px; padding: 3px 7px; }
.ph-callout.is-miss { background: #e5e7eb; color: #374151; }
.ph-callout.is-hit { background: #ef4444; color: #fff; }
.ph-callout.is-head { background: #ff9500; color: #2a1600; }
@keyframes phCall { 0% { opacity: 0; transform: translate(-50%, -110%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -150%) scale(1.08); }
    30% { transform: translate(-50%, -150%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -175%) scale(1); } }
.ph-fx-cell { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 5; border-radius: 8px; }
.ph-fx-cell.is-aim { border: 3px solid #ff4d4d; border-radius: 50%; animation: phAim .42s ease-in both; }
.ph-fx-cell.is-aim::before, .ph-fx-cell.is-aim::after { content: ""; position: absolute; background: #ff4d4d; left: 50%; top: -30%; width: 2px; height: 160%; transform: translateX(-50%); }
.ph-fx-cell.is-aim::after { top: 50%; left: -30%; height: 2px; width: 160%; transform: translateY(-50%); }
@keyframes phAim { 0% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; } 40% { opacity: 1; } 90% { transform: translate(-50%, -50%) scale(.85); opacity: .9; } 100% { opacity: 0; } }
.ph-fx-cell.is-miss { background: rgba(148,163,184,.35); animation: phFade .5s ease-out both; }
.ph-fx-cell.is-hit { background: rgba(239,68,68,.55); animation: phCellHit .55s ease-out both; }
.ph-fx-cell.is-head { background: radial-gradient(circle, rgba(255,213,59,.95) 0%, rgba(255,149,0,.8) 45%, rgba(255,149,0,0) 72%); animation: phBoom .8s ease-out both; }
@keyframes phFade { from { opacity: 1; } to { opacity: 0; } }
@keyframes phCellHit { 0% { opacity: 1; transform: translate(-50%, -50%); } 15% { transform: translate(calc(-50% - 3px), -50%); } 30% { transform: translate(calc(-50% + 3px), -50%); }
    45% { transform: translate(calc(-50% - 2px), -50%); } 60% { transform: translate(-50%, -50%); opacity: .8; } 100% { opacity: 0; transform: translate(-50%, -50%); } }
@keyframes phBoom { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(2.6); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; } }
.ph-fx-smoke { position: absolute; border-radius: 50%; background: rgba(90,90,100,.55); pointer-events: none; z-index: 4; transform: translate(-50%, -50%); animation: phSmoke 1s ease-out both; }
@keyframes phSmoke { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 25% { opacity: .8; } 100% { opacity: 0; transform: translate(-50%, -230%) scale(1.8); } }
.ph-fx-anchor { position: absolute; width: 2px; height: 2px; pointer-events: none; }
.ph-fresh { transform-box: fill-box; transform-origin: center; }
.ph-fresh-miss { animation: phPuff .6s ease-out both; }
.ph-fresh-hit { animation: phStamp .45s cubic-bezier(.2,1.6,.4,1) both; }
.ph-fresh-head { animation: phStamp .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes phPuff { 0% { transform: scale(.3) translate(0, 4px); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1) translate(2px, -2px); opacity: 1; } }
@keyframes phStamp { 0% { transform: scale(1.9); opacity: 0; } 60% { transform: scale(.92) rotate(-4deg); opacity: 1; } 100% { transform: scale(1); } }
.ph-pflash { animation: phPlaneFlash 1.2s ease-out both; }
@keyframes phPlaneFlash { 0%, 30%, 60% { opacity: 1; filter: drop-shadow(0 0 6px #ff9500); } 15%, 45% { opacity: .25; } 100% { opacity: 1; filter: none; } }

/* legend under the enemy board */
.ph-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: #c7cbe6; }
.ph-legend span { display: inline-flex; align-items: center; gap: 3px; }
.ph-legend img { width: 20px; height: 20px; }
.ph-legend b { margin-left: auto; font-weight: 800; color: #fff; }
.ph-legend b i { font-style: normal; color: var(--ph-lime); }
.ph-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ph-snd { width: 32px; height: 26px; border-radius: 99px; border: 0; background: #31375a; color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-snd[aria-pressed="false"] { color: #8c92b8; }

/* placement: rotate handle, tray turn buttons, selected plane info */
.ph-rot { cursor: pointer; }
.ph-rot circle { filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.ph-rot:hover circle { fill: #e6ff7a; }
.ph-tgroup { display: inline-flex; align-items: center; gap: 2px; }
.ph-trot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #1b1e2e; background: var(--ph-lime); color: #1b1e2e; font: 900 19px/1 'Nunito', var(--font-body); cursor: pointer; display: grid; place-items: center; padding: 0; }
.ph-selinfo { font-size: 13.5px; color: #c7cbe6; min-height: 18px; }
.ph-selinfo b { color: #fff; }
.ph-selinfo em { font-style: normal; color: #ff8a8a; }
.ph-banner.is-alert, .ph-banner.is-win, .ph-banner.is-loss { white-space: normal; }

.ph-idle { min-height: 320px; display: flex; align-items: flex-start; justify-content: center; padding-top: 18px; opacity: .8; }
.ph-head .ph-chip { align-self: flex-start; }

/* ---------- shared row under the boards ---------- */
.ph-under { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.ph-under .ph-legend { margin-top: 0; justify-content: center; }
.ph-under .ph-tac { max-width: 340px; align-self: center; }
.ph-under .ph-endbtns { flex-direction: row; justify-content: center; }
.ph-under .ph-endbtns .ph-btn { flex: 1 1 0; max-width: 220px; min-height: 48px; }
.ph-tabs { display: flex; background: #12152a; border-radius: 14px; padding: 4px; gap: 4px; }
.ph-tabs button { flex: 1; position: relative; border: 0; background: transparent; color: var(--ph-dim); font: 800 15px/1 'Nunito', var(--font-body); padding: 10px 6px; border-radius: 10px; cursor: pointer; }
.ph-tabs button[aria-selected="true"] { background: #31375a; color: #fff; }
.ph-badge { position: absolute; top: 6px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #12152a; }

/* ---------- phones (portrait): one big board, airy, no log ---------- */
.ph-battle.is-compact { gap: 12px; }
.ph-battle.is-compact .ph-boards { display: block; }
.ph-battle.is-compact.ph-tab-e .ph-mine, .ph-battle.is-compact.ph-tab-m .ph-enemy { display: none; }
.ph-battle.is-compact .ph-mine { display: block; }
.ph-battle.is-compact .ph-mywrap { width: 100%; }
.ph-battle.is-compact .ph-aside, .ph-battle.is-compact .ph-cap { display: none; }
.ph-battle.is-compact .ph-mine .ph-callout { font-size: clamp(15px, 4.6cqw, 24px); padding: 5px 10px; }
.ph-battle.is-compact .ph-hud { padding: 0 2px; }
.ph-battle.is-compact .ph-av { width: 30px; height: 30px; }
.ph-battle.is-compact .ph-av svg { width: 18px; height: 18px; }
.ph-battle.is-compact .ph-sn b { font-size: 15px; }
.ph-battle.is-compact .ph-banner { font-size: 14.5px; padding: 8px 12px; }
.ph-battle.is-compact .ph-svg { box-shadow: 0 2px 0 rgba(0,0,0,.25); }
@media (max-width: 760px) {
    .ph { padding: 10px 8px; }
    .ph-place { gap: 12px; }
    .ph-place .ph-head small, .ph-selinfo { display: none; }
    .ph-place .ph-head b { font-size: 20px; }
    .ph-tray { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; min-height: 0; padding: 6px 8px; gap: 8px; scrollbar-width: none; }
    .ph-tray-done { margin: 6px auto; font-size: 17px; }
    .ph-trot { width: 30px; height: 30px; font-size: 17px; }
    .ph-key { display: none; }
    .ph-actions .ph-tool { min-height: 52px; }
    .ph-actions .ph-primary { min-height: 52px; }
}
/* fullscreen / focus mode on phones: use the whole width */
@media (max-width: 760px) {
    body.np-focus.game-plane-hunt .game-page { padding-left: 4px; padding-right: 4px; }
    body.np-focus.game-plane-hunt .game-area { border-radius: 12px; }
    body.np-focus.game-plane-hunt .ph { padding: 8px 6px; }
}
/* landscape phones: both boards side by side, small chrome */
@media (max-height: 500px) and (orientation: landscape) {
    .ph { padding: 6px 8px; }
    .ph-battle { gap: 6px; }
    .ph-battle .ph-boards { flex-direction: row; gap: 10px; align-items: flex-start; }
    .ph-battle .ph-enemy, .ph-battle .ph-mine { flex: 1 1 0; min-width: 0; }
    .ph-battle .ph-mine { flex-direction: column; }
    .ph-battle .ph-mywrap { flex: none; width: 100%; }
    .ph-battle .ph-aside { display: none; }
    .ph-battle .ph-hud .ph-sn small { font-size: 11px; }
    .ph-battle .ph-av { width: 26px; height: 26px; }
    .ph-battle .ph-banner { padding: 4px 10px; min-height: 0; font-size: 13px; }
    .ph-battle .ph-cap { font-size: 11px; margin-bottom: 2px; }
    .ph-under { flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
}

/* ---------- end screen: roomy result card ---------- */
.win-overlay.ph-end { padding: 8px; }
.ph-end .win-box { width: min(calc(100vw - 16px), 460px); max-width: none; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 26px 18px 18px; box-sizing: border-box; }
.ph-end .win-box h2 { font-size: 40px; }
.ph-end .win-stats { gap: 10px; margin: 16px 0 18px; }
.ph-end .win-stat { padding: 14px 4px; }
.ph-end .win-stat .val { font-size: 30px; }
.ph-end .ph-endb { display: flex; flex-direction: column; gap: 10px; }
.ph-end .ph-endb .btn { width: 100%; min-height: 52px; font-size: 18px; margin: 0; }
.ph-end .ph-endb .btn-ghost { min-height: 40px; font-size: 15px; }
@media (max-height: 500px) and (orientation: landscape) { .ph-under .ph-legend { display: none; } .ph-battle .ph-hud { min-height: 0; } }
.ph-end .win-box h2 { font-size: clamp(28px, 8.5vw, 40px); }
.ph-varlabel { align-self: center; font: 800 14px/1.2 "Nunito", var(--font-body); padding: 6px 12px; border-radius: 99px; background: #1b1e2e; color: #d4ff3a; text-align: center; }
body.ph-setup-mp #np-mp-bar .np-mp-local { display: none; }
