/* The two screens share one original game. Device details stay decorative. */
.player-two { padding-block: 84px 60px; margin-block: 28px 46px; background: var(--surface); }
.p2-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.p2-heading > p { max-width: 35ch; margin-bottom: 4px; font-size: 16px; line-height: 1.75; color: var(--text-soft); }
.p2-stage { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); align-items: center; gap: 32px; padding-block: 54px 34px; }
.p2-handheld, .p2-friend { min-width: 0; margin: 0; }
.p2-pixel { position: relative; width: min(100%, 376px); aspect-ratio: 4 / 5; margin-inline: auto; }
.p2-model-poster, .p2-model-canvas { display: block; width: 100%; height: 100%; }
.p2-model-poster { position: absolute; inset: 0; object-fit: contain; }
.p2-model-canvas { opacity: 0; pointer-events: none; }
.p2-handheld[data-p2-model="ready"] .p2-model-canvas { opacity: 1; }
.p2-handheld[data-p2-model="ready"] .p2-model-poster { visibility: hidden; }
.p2-handheld-live { width: min(100%, 260px); margin: 8px auto 0; }
.p2-handheld-live > p { margin-bottom: 8px; text-align: center; font-size: 10px; color: var(--text-dim); }
.p2-handheld[data-p2-model="ready"] .p2-handheld-live { display: none; }
.p2-game-screen { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #182a28; }
.p2-game-screen canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.p2-handheld figcaption, .p2-friend figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin-top: 27px; font-size: 10px; color: var(--text-dim); }
.p2-handheld figcaption strong, .p2-friend figcaption strong { font-size: 12px; color: var(--text); font-weight: 600; }
.p2-handheld figcaption > span:last-child, .p2-friend figcaption > span:last-child { flex-basis: 100%; text-align: center; }
.p2-player-dot { width: 7px; height: 7px; border-radius: 50%; }
.p2-player-one { background: #4789b3; }
.p2-player-two { background: var(--accent-ink); }
.p2-game-info { text-align: center; padding-bottom: 24px; }
.p2-game-info h3 { font-size: 24px; line-height: 1.25; }
.p2-game-info > p { font-size: 12px; color: var(--text-soft); line-height: 1.85; margin-top: 17px; }
.p2-game-info > .p2-progress { font-size: 36px; font-weight: 600; color: var(--text); letter-spacing: -.055em; line-height: 1.2; margin-top: 30px; font-variant-numeric: tabular-nums; }
.p2-progress span { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--text-dim); }
.p2-demo-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 25px; }
.p2-play { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; max-width: 190px; min-height: 48px; border: 0; border-radius: 12px; padding: 12px 16px; color: var(--on-accent); background: var(--accent); font-size: 13px; font-weight: 600; }
.p2-play:hover:enabled { filter: brightness(.96); }
.p2-play:disabled { background: var(--raised); color: var(--text-dim); }
.p2-play > span { font-size: 19px; line-height: 1; }
.p2-reset { border: 0; background: none; min-height: 38px; padding: 7px 18px; font-size: 11px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 4px; }
.p2-game-info > .p2-game-status { min-height: 42px; margin-top: 12px; font-size: 10px; color: var(--text-dim); line-height: 1.6; }
.p2-phone { position: relative; width: 322px; max-width: 100%; margin-inline: auto; padding: 7px; border: 2px solid #8b8d89; border-radius: 47px; background: #171b19; box-shadow: inset 0 0 0 2px #535753, inset 0 0 0 4px #0c100f, 0 22px 34px -22px rgb(0 0 0 / .5); }
.p2-phone-side { position: absolute; left: -5px; width: 3px; border-radius: 2px 0 0 2px; background: #6b6e69; box-shadow: inset 1px 0 #9fa19b; }
.p2-phone-action { top: 91px; height: 23px; }
.p2-phone-volume { top: 134px; height: 82px; background: linear-gradient(#6b6e69 45%, transparent 45%, transparent 55%, #6b6e69 55%); }
.p2-phone-power { left: auto; right: -5px; top: 154px; height: 64px; border-radius: 0 2px 2px 0; }
.p2-phone-glass { display: flex; flex-direction: column; min-height: 644px; overflow: hidden; border-radius: 38px; background: var(--ground); }
.p2-ios-status { position: relative; height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 21px 0; font: 600 11px/1 system-ui, sans-serif; }
.p2-island { position: absolute; left: 50%; top: 11px; width: 91px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #090c0b; }
.p2-island::after { position: absolute; content: ''; width: 8px; height: 8px; right: 10px; top: 9px; border: 2px solid #141c24; border-radius: 50%; background: #182838; }
.p2-ios-icons { display: flex; align-items: center; gap: 5px; }
.p2-signal { display: block; width: 14px; height: 10px; background: currentColor; clip-path: polygon(0 65%, 18% 65%, 18% 100%, 0 100%, 0 65%, 27% 45%, 46% 45%, 46% 100%, 27% 100%, 27% 45%, 55% 22%, 74% 22%, 74% 100%, 55% 100%, 55% 22%, 82% 0, 100% 0, 100% 100%, 82% 100%, 82% 0); }
.p2-wifi { width: 12px; height: 10px; border-top: 3px solid; border-radius: 50%; position: relative; }
.p2-wifi::after { position: absolute; content: ''; width: 3px; height: 3px; bottom: 0; left: 4px; border-radius: 50%; background: currentColor; }
.p2-battery { position: relative; width: 19px; height: 9px; border: 1px solid currentColor; border-radius: 2px; padding: 1px; background: currentColor; background-clip: content-box; }
.p2-battery::after { position: absolute; content: ''; width: 2px; height: 4px; top: 1.5px; right: -4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .5; }
.p2-safari-address { display: flex; justify-content: space-between; align-items: center; flex: none; height: 32px; margin: 4px 12px 8px; padding: 0 12px; border-radius: 9px; background: var(--raised); color: var(--text-soft); font: 11px/1 system-ui, sans-serif; }
.p2-safari-address > :first-child { font-size: 10px; }
.p2-safari-address > :last-child { font-size: 17px; }
.p2-phone-bar { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 8px; min-height: 32px; padding: 0 14px 8px; font-size: 9px; color: var(--text-dim); }
.p2-phone-bar strong { font-size: 11px; font-weight: 600; color: var(--text); }
.p2-phone-game { width: calc(100% - 24px); margin-inline: 12px; border-radius: 3px; flex: none; }
.p2-phone-pad { display: grid; grid-template-columns: 132px 108px; grid-template-areas: "dpad face" "select start"; align-items: center; justify-content: space-between; justify-items: center; gap: 12px 10px; margin: 20px 14px 0; }
.p2-dpad { grid-area: dpad; width: 132px; height: 132px; display: grid; grid-template: repeat(3, 44px) / repeat(3, 44px); grid-template-areas: ". up ." "left center right" ". down ."; }
.p2-key { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--edge); padding: 0; background: var(--raised); color: var(--text-soft); font-size: 12px; font-weight: 600; line-height: 1; touch-action: none; user-select: none; -webkit-user-select: none; transition: background-color 80ms, color 80ms; }
.p2-key:disabled { opacity: .65; }
.p2-key:enabled:hover { color: var(--text); }
.p2-key:focus-visible { position: relative; z-index: 1; outline-offset: 3px; }
.p2-key[data-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.p2-key > span { font-size: 10px; }
.p2-up { grid-area: up; border-bottom: 0; border-radius: 8px 8px 0 0; }
.p2-down { grid-area: down; border-top: 0; border-radius: 0 0 8px 8px; }
.p2-left { grid-area: left; border-right: 0; border-radius: 8px 0 0 8px; }
.p2-right { grid-area: right; border-left: 0; border-radius: 0 8px 8px 0; }
.p2-dpad-center { grid-area: center; background: var(--raised); }
.p2-face { grid-area: face; display: flex; gap: 8px; }
.p2-round { width: 50px; height: 50px; border-radius: 50%; font-size: 19px; }
.p2-select, .p2-start { min-width: 76px; min-height: 44px; padding-inline: 14px; border-radius: 24px; font-size: 9px; }
.p2-select { grid-area: select; }
.p2-start { grid-area: start; }
.p2-phone-help { margin: 13px 0 18px; text-align: center; font-size: 9px; color: var(--text-dim); }
.p2-phone-help > span { margin-inline: 9px; }
.p2-safari-tools { display: flex; align-items: center; justify-content: space-around; min-height: 32px; margin-top: auto; border-top: 1px solid var(--edge); padding-top: 6px; color: var(--text-soft); font: 24px/1 system-ui, sans-serif; }
.p2-safari-tools > :nth-child(2) { opacity: .35; }
.p2-safari-tools svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.p2-home-indicator { width: 105px; height: 4px; margin: 13px auto 9px; flex: none; border-radius: 4px; background: var(--text); }
.p2-game-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #bef23c; background: radial-gradient(ellipse at 20% 70%, #2f4941, transparent 60%), #182a28; font-size: 17px; }
.p2-game-fallback::before, .p2-game-fallback::after { content: '✦'; position: absolute; top: 22%; left: 20%; font-size: 19px; color: #8fc8f2; }
.p2-game-fallback::after { top: 68%; left: 74%; color: #bef23c; }
.p2-game-fallback span { font-size: 9px; color: #cadace; }
.p2-demo-note { max-width: 70ch; margin-inline: auto; text-align: center; font-size: 10px; line-height: 1.8; color: var(--text-dim); }
.p2-demo-note p + p { margin-top: 7px; }
.p2-details { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 38px; margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--edge); }
.p2-details > p { font-size: 12px; color: var(--text-soft); line-height: 1.8; }
.p2-details > p > strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.p2-guide { justify-self: end; }
.p2-guide .text-link { padding-top: 0; }
.p2-guide > p { margin-top: 8px; font-size: 10px; color: var(--text-dim); }
@media (max-width: 1100px) {
  .p2-stage { grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1.1fr); gap: 22px; }
  .p2-game-info h3 { font-size: 21px; }
  .p2-game-info > p { font-size: 11px; }
  .p2-phone { width: 300px; padding: 6px; }
  .p2-phone-pad { margin-inline: 10px; }
  .p2-details { gap: 24px; }
}
@media (max-width: 950px) {
  .p2-heading { align-items: flex-start; }
  .p2-heading > p { max-width: 28ch; font-size: 14px; }
  .p2-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 45px; }
  .p2-game-info { grid-column: 1; grid-row: 1; align-self: end; padding: 0; }
  .p2-handheld { grid-column: 1; grid-row: 2; align-self: start; }
  .p2-friend { grid-column: 2; grid-row: 1 / 3; }
  .p2-pixel { max-width: 320px; }
  .p2-game-info > .p2-progress { margin-top: 16px; font-size: 30px; }
  .p2-demo-actions { margin-top: 16px; }
  .p2-game-info > .p2-game-status { min-height: 28px; }
  .p2-handheld figcaption { margin-top: 18px; }
  .p2-details { grid-template-columns: 1fr 1fr; }
  .p2-guide { grid-column: 1 / -1; justify-self: start; display: flex; align-items: baseline; gap: 26px; }
  .p2-guide > p { margin-top: 0; }
}
@media (max-width: 700px) {
  .player-two { padding-block: 48px 38px; margin-block: 20px 26px; }
  .p2-heading { display: block; }
  .p2-heading > p { max-width: none; margin-top: 20px; }
  .p2-stage { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 28px 20px; padding-block: 35px 26px; }
  .p2-game-info { grid-column: 2; grid-row: 1; align-self: center; }
  .p2-game-info h3 { font-size: 19px; }
  .p2-game-info > p { font-size: 10px; margin-top: 12px; }
  .p2-handheld { grid-column: 1; grid-row: 1; align-self: center; }
  .p2-friend { grid-column: 1 / -1; grid-row: 2; }
  .p2-pixel { width: 100%; max-width: 244px; }
  .p2-handheld-live > p { font-size: 8px; }
  .p2-handheld figcaption { gap: 4px 6px; font-size: 9px; }
  .p2-handheld figcaption strong { font-size: 11px; }
  .p2-phone { width: 322px; }
  .p2-game-info > .p2-progress { margin-top: 14px; font-size: 28px; }
  .p2-demo-actions { gap: 0; margin-top: 16px; }
  .p2-play { width: 100%; min-height: 44px; padding-inline: 9px; gap: 10px; font-size: 11px; }
  .p2-reset { min-height: 32px; }
  .p2-game-info > .p2-game-status { min-height: 32px; margin-top: 8px; font-size: 9px; }
  .p2-demo-note { max-width: 42ch; }
  .p2-details { margin-top: 26px; padding-top: 24px; gap: 24px; grid-template-columns: 1fr; }
  .p2-details > p { max-width: 44ch; }
  .p2-guide { grid-column: auto; display: block; }
  .p2-guide > p { margin-top: 2px; }
}
@media (max-width: 370px) {
  .p2-phone { padding: 5px; }
  .p2-phone-pad { margin-inline: 7px; column-gap: 4px; }
  .p2-ios-status { padding-inline: 17px; }
  .p2-island { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .player-two *, .player-two *::before, .player-two *::after { animation: none !important; transition: none !important; }
}
html.motion-paused .player-two *, html.motion-paused .player-two *::before, html.motion-paused .player-two *::after { animation: none !important; transition: none !important; }
