/* Keep the wide title frame; the logo itself has no smaller box. */
#oncoGameView .nefro-home-title{display:contents}
#oncoGameView .nefro-home-video-play{display:none}
#oncoGameView[data-phase=home] .nefro-home-title{display:grid;grid-template-columns:minmax(48px,1fr) max-content minmax(48px,1fr);align-items:center;box-sizing:border-box;width:100%;min-width:0;min-height:60px;padding:4px 10px;border:2px solid #ff111c;border-radius:14px;background:none;box-shadow:inset 0 0 7px #ff071440,0 0 6px #ff0714b3,0 0 15px #ff071473,0 0 24px #ff071433}
#oncoGameView[data-phase=home] .nefro-home-title .arc-brand{grid-column:2;grid-row:1;justify-self:center;width:max-content;min-height:44px;padding:4px 0;border:0;border-radius:0;outline:none;box-shadow:none;text-align:center}
#oncoGameView[data-phase=home] .nefro-home-title .arc-brand:focus-visible{outline:none;box-shadow:none}
/* Keyboard focus follows the wide frame, never a second box around the words. */
#oncoGameView[data-phase=home] .nefro-home-title:has(> .arc-brand:focus-visible){outline:2px solid #c4f1ff;outline-offset:3px}
#oncoGameView[data-phase=home] .nefro-home-video-play{grid-column:3;grid-row:1;justify-self:center;position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:1.5px solid #4caaffb3;border-radius:50%;background:#0b2034bf;color:#9cdbff;box-shadow:0 0 0 3px #3299e714;cursor:pointer;touch-action:manipulation;transition:background .16s,border-color .16s}
#oncoGameView .nefro-home-video-play svg{display:block;width:28px;height:28px;max-width:28px;fill:currentColor;margin-left:2px;pointer-events:none}
#oncoGameView[data-phase=home] .nefro-home-video-play.is-unseen{border-color:#e5273a;color:#ffd4d7}
#oncoGameView[data-phase=home] .nefro-home-video-play.is-unseen::after{content:"";position:absolute;inset:-1.5px;border:1.5px solid #ff111c;border-radius:inherit;box-shadow:0 0 7px #ff0815cc,0 0 16px #ff07148c,inset 0 0 8px #ff08146b;pointer-events:none;animation:nefro-guide-neon 2.4s ease-in-out infinite}
@keyframes nefro-guide-neon{0%,100%{opacity:.2}50%{opacity:.95}}
#oncoGameView[data-phase=home] .nefro-home-video-play:hover{background:#143b56;border-color:#a9e3ff}
#oncoGameView .nefro-home-video-play:focus-visible,.nefro-home-video-close:focus-visible{outline:2px solid #b6e9ff;outline-offset:4px}
.nefro-home-video-dialog{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;margin:auto;overflow:hidden;border:1px solid #609bc480;border-radius:18px;background:#071524;color:#eef7ff;box-shadow:0 24px 90px #0009;color-scheme:dark;animation:nefro-guide-enter .16s ease-out}
.nefro-home-video-dialog::backdrop{background:#020812d9}
.nefro-home-video-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #79b5df30;background:linear-gradient(120deg,#102a41,#081827)}
.nefro-home-video-header p{margin:0 0 4px;color:#a4d8fb;font:10px/1.3 ui-monospace,monospace;letter-spacing:.12em}
.nefro-home-video-header h2{margin:0;color:#edf7ff;font:600 20px/1.2 system-ui,sans-serif;letter-spacing:0}
.nefro-home-video-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #79b6df70;border-radius:50%;background:#0a2135;color:#e4f4ff;cursor:pointer;touch-action:manipulation}
.nefro-home-video-close:hover{color:#c5edff;border-color:#a0daff}
.nefro-home-video-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;pointer-events:none}
.nefro-home-video-player{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);background:#000;object-fit:contain}
.nefro-home-video-player:focus-visible{outline:2px solid #9bdbff;outline-offset:-3px}
.nefro-home-video-error{margin:0;padding:12px 18px;font-size:13px;line-height:1.5}
.nefro-home-video-error a{color:#a4ddff;text-decoration:underline}
body.nefro-home-video-open #oncoGameView *,body.nefro-home-video-open #oncoGameView *::before,body.nefro-home-video-open #oncoGameView *::after{animation-play-state:paused!important}
@keyframes nefro-guide-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
/* A fixed red edge fades gently; text and button geometry remain still. */
#oncoGameView[data-phase=home] #arcExit{animation:none;overflow:visible;border:2px solid #ff0915;background:transparent!important;box-shadow:inset 0 1px #c9eaff29,0 0 5px #ff07144d}
#oncoGameView[data-phase=home] #arcExit .arc-home-choice-label{color:#fff;font-weight:800;text-shadow:-1px -1px 0 #001329,1px -1px 0 #001329,-1px 1px 0 #001329,1px 1px 0 #001329,0 1px 3px #000c}
#oncoGameView[data-phase=home] #arcExit::after{inset:-2px;border:2px solid #ff0d19;border-radius:inherit;background:none;transform:none;box-shadow:0 0 7px #ff0714b3,0 0 15px #ff071473,inset 0 0 5px #ff081440;opacity:.25;animation:nefro-choice-neon 3.2s ease-in-out infinite}
@keyframes nefro-choice-neon{0%,100%{opacity:.25}50%{opacity:.85}}
/* Keep the full exam label on one line and the play control inset from the frame. */
@media(max-width:760px),(pointer:coarse) and (max-width:1000px) and (max-height:600px){
 #oncoGameView[data-phase=home].home-mobile-layout .arc-nav{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px}
 #oncoGameView[data-phase=home].home-mobile-layout .arc-nav-actions{justify-self:end;align-self:stretch;align-items:stretch}
 #oncoGameView[data-phase=home].home-mobile-layout .nefro-home-title{grid-column:auto;grid-template-columns:minmax(0,1fr) 44px;column-gap:8px;min-height:56px;padding:4px 10px 4px 4px}
 #oncoGameView[data-phase=home].home-mobile-layout .nefro-home-title .arc-brand{grid-column:1;min-width:0;max-width:100%;font-size:clamp(12.5px,calc(5vw - 3px),20px);letter-spacing:.015em;white-space:nowrap}
 #oncoGameView[data-phase=home].home-mobile-layout .nefro-home-title .arc-brand small{font-size:9px;line-height:1.15;letter-spacing:.04em;margin-top:3px}
 #oncoGameView[data-phase=home].home-mobile-layout .nefro-home-video-play{grid-column:2}
 #oncoGameView.home-mobile-layout[data-phase=home] #arcExit{box-sizing:border-box;width:auto;min-width:0;max-width:none;height:auto;min-height:56px;max-height:none;align-self:stretch;padding:6px;gap:0}
 #oncoGameView.home-mobile-layout[data-phase=home] #arcExit .arc-home-choice-label{white-space:nowrap;font-size:clamp(11.5px,3.2vw,13px);line-height:1.25}
 #oncoGameView.home-mobile-layout[data-phase=home] #arcExit .arc-ui-icon{display:none}
}
@media(max-width:520px){.nefro-home-video-dialog{width:calc(100vw - 20px);border-radius:14px}.nefro-home-video-header{padding:10px 12px;gap:10px}.nefro-home-video-header h2{font-size:17px}.nefro-home-video-header p{font-size:9px;letter-spacing:.09em}.nefro-home-video-player{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px)}}
@media(max-height:420px) and (orientation:landscape){.nefro-home-video-header{padding:6px 12px}.nefro-home-video-header h2{font-size:17px}.nefro-home-video-header p{font-size:9px;margin-bottom:2px}.nefro-home-video-player{max-height:calc(100vh - 82px);max-height:calc(100dvh - 82px)}}
@media(prefers-reduced-motion:reduce){.nefro-home-video-dialog{animation:none}#oncoGameView .nefro-home-video-play{transition:none}#oncoGameView[data-phase=home] .nefro-home-video-play.is-unseen::after{animation:none;opacity:.75}}
