/* Play for Connection | Light Relay mini-game. Scoped to the standalone game route. */
.pfc-relay-page { min-height: 100vh; padding: 124px 0 92px; overflow:hidden; color:#f4f7ff; background:radial-gradient(ellipse at 50% -10%,rgba(80,89,201,.28),transparent 48%),linear-gradient(180deg,#05091f,#080c29 54%,#0b1234); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.pfc-relay-page * { box-sizing:border-box; }
.pfc-relay-shell { max-width:1330px; }
.pfc-relay-heading { text-align:center; padding-bottom:28px; }
.pfc-relay-back { color:#a8b7e3; display:inline-block; margin-bottom:24px; font-weight:650; font-size:14px; }
.pfc-relay-back:hover,.pfc-relay-back:focus-visible { color:#ffe7ac; }
.pfc-relay-kicker { color:#9af0eb; letter-spacing:.23em; font-size:11px; font-weight:800; margin:0 0 10px; }
.pfc-relay-heading h1 { font-size:clamp(48px,7vw,86px); letter-spacing:-.067em; font-weight:850; line-height:.97; margin:0; color:#fff; text-shadow:0 9px 35px rgba(10,12,62,.8); }
.pfc-relay-heading h1 em { font-style:normal; background:linear-gradient(110deg,#a5f6ff,#c8b2ff 45%,#fff0ad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pfc-relay-subtitle { color:#d4ddff; font-size:clamp(15px,2.3vw,20px); margin:14px 0 12px; }
.pfc-relay-tag { display:inline-block; border:1px solid rgba(166,189,255,.25); border-radius:5px; padding:7px 11px; font-size:10px; font-weight:800; letter-spacing:.1em; color:#aebbe1; }
.pfc-relay-frame { border:1px solid rgba(170,193,255,.27); border-radius:22px; overflow:hidden; background:#080d2c; box-shadow:0 42px 100px rgba(0,0,0,.55),0 0 95px rgba(104,85,231,.16); }
.pfc-relay-hud { display:grid; grid-template-columns:1fr 2fr 1fr; gap:28px; align-items:center; padding:19px 26px; background:linear-gradient(100deg,#0b1740,#101941,#0b1737); border-bottom:1px solid rgba(155,180,255,.16); }
.pfc-relay-hud-level { font-size:10px; letter-spacing:.16em; font-weight:800; color:#9caed2; }
.pfc-relay-hud-level strong { display:block; font-size:20px; letter-spacing:.02em; color:#f9f8ff; margin-top:3px; }
.pfc-relay-hud-progress { display:grid; gap:9px; }
.pfc-relay-hud-label,.pfc-relay-hud-time span { display:block; font-size:10px; color:#bdc9e7; font-weight:800; letter-spacing:.15em; }
.pfc-relay-meter { width:100%; height:9px; border-radius:12px; background:rgba(255,255,255,.1); overflow:hidden; box-shadow:inset 0 1px 4px rgba(0,0,0,.6); }
.pfc-relay-meter>div { width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#77e8f1,#ad9cff,#f9d67d); box-shadow:0 0 12px #92f5ff; transition:width .25s ease; }
.pfc-relay-hud-time { text-align:right; }
.pfc-relay-hud-time strong { font-size:21px; letter-spacing:.08em; font-variant-numeric:tabular-nums; }
.pfc-relay-stage { position:relative; aspect-ratio:16/9; background:#050c2b; overflow:hidden; }
.pfc-relay-canvas { width:100%; height:100%; display:block; touch-action:none; user-select:none; }
.pfc-relay-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:14px; background:radial-gradient(ellipse at 50% 42%,rgba(5,14,44,.49),rgba(3,8,26,.85) 76%); transition:opacity .25s,visibility .25s; }
.pfc-relay-overlay[hidden] { display:none; }
.pfc-relay-overlay-card { max-width:630px; margin:0 auto; padding:clamp(12px,3vw,36px); }
.pfc-relay-symbol { color:#88eeff; font-size:32px; text-shadow:0 0 18px #84caff; margin-bottom:14px; }
.pfc-relay-symbol span { font-size:53px; color:#f9e8a7; text-shadow:0 0 30px #edcb76; margin:0 20px; }
.pfc-relay-overlay-eyebrow { font-size:11px; letter-spacing:.23em; font-weight:850; color:#abdbfe; }
.pfc-relay-overlay-card h2 { color:#fff; font-size:clamp(27px,4vw,48px); font-weight:800; letter-spacing:-.045em; line-height:1.11; margin:12px 0 17px; }
.pfc-relay-overlay-card>p:not(.pfc-relay-overlay-eyebrow) { line-height:1.65; font-size:clamp(13px,1.5vw,16px); color:#d5e3ff; margin:0 auto 27px; max-width:560px; }
.pfc-relay-primary { appearance:none; cursor:pointer; border:0; border-radius:9px; font-size:15px; letter-spacing:.01em; font-weight:820; padding:17px 30px; color:#10244d; background:linear-gradient(110deg,#9bf4ff,#fff1aa); box-shadow:0 12px 44px rgba(106,226,240,.32); transition:transform .15s,box-shadow .15s; }
.pfc-relay-primary span { padding-left:10px; }
.pfc-relay-primary:hover { transform:translateY(-2px); box-shadow:0 12px 52px rgba(112,236,246,.5); }
.pfc-relay-announcement { position:absolute; top:17px; left:50%; transform:translateX(-50%); min-width:min(580px,85%); text-align:center; pointer-events:none; color:#fff9df; text-shadow:0 3px 13px #0b1e45; font-size:clamp(12px,1.6vw,17px); font-weight:700; transition:opacity .22s; }
.pfc-relay-bottom { display:grid; grid-template-columns:1fr 1fr; }
.pfc-relay-player { padding:18px 26px 21px; background:linear-gradient(150deg,#0b1e44,#09132e); }
.pfc-relay-player--gold { background:linear-gradient(150deg,#251a35,#14122c); border-left:1px solid rgba(193,194,255,.18); }
.pfc-relay-player-info { display:flex; align-items:center; gap:12px; }
.pfc-relay-player-dot { width:14px; height:14px; border-radius:50%; background:#87e8ff; box-shadow:0 0 17px #43d7ff; flex-shrink:0; }
.pfc-relay-player--gold .pfc-relay-player-dot { background:#ffe5a5; box-shadow:0 0 17px #f7bd5d; }
.pfc-relay-player-info div { flex:1; }
.pfc-relay-player-info b { display:block; font-size:13px; letter-spacing:.13em; color:#fff; }
.pfc-relay-player-info small { display:block; font-size:12px; color:#aebde1; margin-top:5px; }
.pfc-relay-player-info strong { color:#d8f7ff; font-size:20px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.pfc-relay-player--gold .pfc-relay-player-info strong { color:#ffe4ad; }
.pfc-relay-controls { display:flex; gap:12px; margin-top:15px; }
.pfc-relay-controls button { user-select:none; touch-action:none; cursor:pointer; border:1px solid rgba(173,211,254,.23); background:rgba(255,255,255,.07); color:#f6f9ff; min-height:52px; flex:1; border-radius:8px; font-size:21px; font-weight:800; transition:background .12s,transform .12s; }
.pfc-relay-controls button:hover, .pfc-relay-controls button.is-held { background:rgba(143,222,255,.2); transform:translateY(-1px); }
.pfc-relay-controls .pfc-relay-light-button { flex:1.6; background:rgba(137,205,255,.10); border-color:rgba(145,217,255,.42); font-size:16px; }
.pfc-relay-player--gold .pfc-relay-controls .pfc-relay-light-button { background:rgba(255,210,119,.10); border-color:rgba(255,217,154,.4); }
.pfc-relay-light-button span { padding-left:5px; letter-spacing:.1em; font-size:12px; }
.pfc-relay-controls .pfc-relay-light-button:disabled { opacity:.43; cursor:not-allowed; }
.pfc-relay-toolbar { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:15px 25px; background:#080e27; border-top:1px solid rgba(157,180,249,.17); color:#adbadd; font-size:12px; }
.pfc-relay-toolbar-actions { flex-shrink:0; display:flex; gap:10px; }
.pfc-relay-toolbar-actions button { cursor:pointer; color:#cad6f0; background:rgba(190,210,255,.07); border:1px solid rgba(205,216,255,.17); border-radius:6px; padding:9px 12px; font-size:12px; }
.pfc-relay-toolbar-actions button:hover { background:rgba(183,210,255,.15); }
.pfc-relay-notes { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:26px; }
.pfc-relay-notes>div { padding:24px 27px; border:1px solid rgba(161,188,255,.19); background:linear-gradient(160deg,rgba(18,28,73,.9),rgba(9,17,52,.97)); border-radius:13px; }
.pfc-relay-notes h2 { margin:0 0 10px; font-size:16px; letter-spacing:.015em; color:#f7f9ff; }
.pfc-relay-notes p { margin:0; color:#acbee0; line-height:1.75; font-size:13px; }
.pfc-relay-notes strong { color:#e5f2ff; }
.pfc-relay-notes kbd { display:inline-block; color:#e4eeff; background:#25345e; border:1px solid #43567e; border-radius:4px; padding:0 5px; font:inherit; font-weight:800; }
.pfc-relay-page button:focus-visible,.pfc-relay-page a:focus-visible { outline:3px solid #f7e5a2; outline-offset:3px; }
@media(max-width:760px){.pfc-relay-page{padding:110px 0 56px}.pfc-relay-heading{padding-bottom:22px}.pfc-relay-hud{gap:8px;padding:12px;grid-template-columns:1fr 1.5fr 1fr}.pfc-relay-hud-level{font-size:8px}.pfc-relay-hud-level strong{font-size:14px}.pfc-relay-hud-label,.pfc-relay-hud-time span{font-size:8px}.pfc-relay-hud-time strong{font-size:15px}.pfc-relay-player{padding:12px}.pfc-relay-player-info{gap:7px}.pfc-relay-player-dot{width:9px;height:9px}.pfc-relay-player-info b{font-size:10px}.pfc-relay-player-info small{font-size:9px}.pfc-relay-player-info strong{font-size:13px}.pfc-relay-controls{gap:6px;margin-top:10px}.pfc-relay-controls button{min-height:46px}.pfc-relay-controls .pfc-relay-light-button{font-size:11px;flex:1.3}.pfc-relay-light-button span{font-size:9px;padding-left:2px}.pfc-relay-toolbar{flex-direction:column;align-items:flex-start;padding:13px}.pfc-relay-notes{grid-template-columns:1fr;gap:10px}.pfc-relay-notes>div{padding:18px}.pfc-relay-overlay-card h2{font-size:26px}.pfc-relay-overlay-card>p:not(.pfc-relay-overlay-eyebrow){font-size:12px;margin-bottom:14px}.pfc-relay-symbol{margin-bottom:0}.pfc-relay-symbol span{font-size:28px}.pfc-relay-overlay-eyebrow{font-size:8px}.pfc-relay-primary{padding:13px 20px;font-size:13px}.pfc-relay-announcement{top:5px;font-size:10px}.pfc-relay-heading h1{font-size:48px}}
@media(max-width:420px){.pfc-relay-player-info small{display:none}.pfc-relay-player-info strong{font-size:11px}.pfc-relay-overlay-card h2{font-size:20px}.pfc-relay-overlay-card>p:not(.pfc-relay-overlay-eyebrow){font-size:10px;line-height:1.4}}
@media(prefers-reduced-motion:reduce){.pfc-relay-page *, .pfc-relay-page *::before,.pfc-relay-page *::after{transition:none!important;animation:none!important}}

/* Keep the launch overlay legible in phone portrait without stretching game artwork. */
@media (max-width: 760px) {
  .pfc-relay-overlay-card { padding: 4px 10px; }
  .pfc-relay-symbol,.pfc-relay-overlay-eyebrow { display: none; }
  .pfc-relay-overlay-card h2 { font-size: clamp(18px, 4.5vw, 23px); margin: 2px 0 7px; line-height: 1.12; }
  .pfc-relay-overlay-card>p:not(.pfc-relay-overlay-eyebrow) { font-size: clamp(10px,2.4vw,12px); line-height: 1.3; margin: 0 auto 10px; }
  .pfc-relay-primary { padding: 9px 16px; font-size: 12px; }
}
@media (max-width: 360px) {
  .pfc-relay-overlay-card>p:not(.pfc-relay-overlay-eyebrow) { font-size: 9px; }
  .pfc-relay-overlay-card h2 { font-size: 17px; }
}
