/* Immersive homepage presentation for the timing app. */
.immersive { --bg:#0b1a24; --surface:#102432; --line:#244157; --text:#edf1ee; --muted:#9db0bd; --accent:#ff5b1f; --accent-text:#ff8957; background:var(--bg); }
.immersive-header { position:fixed; z-index:20; inset:0 0 auto; padding:calc(20px + env(safe-area-inset-top,0px)) clamp(24px,5vw,76px) 16px; display:flex; align-items:center; justify-content:space-between; background:linear-gradient(var(--bg),#0b1a2400); }
.immersive-header nav { display:flex; align-items:center; gap:28px; }
.immersive-header .primary { width:auto; min-height:42px; border-radius:999px; padding:9px 20px; font-size:13px; }
.immersive-header .header-account { opacity:0; visibility:hidden; transition:opacity .4s; }
.immersive[data-header-login=true] .header-account { opacity:1; visibility:visible; }
.immersive .brand { font-size:32px; }
.scroll-track { height:700svh; }
.stage { position:sticky; top:0; height:100svh; min-height:560px; overflow:hidden; isolation:isolate; }
#landing-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; }
.scene { position:absolute; inset:0; z-index:3; display:flex; align-items:center; padding:110px clamp(24px,6vw,90px) 85px; opacity:0; visibility:hidden; pointer-events:none; }
.hero-scene { z-index:1; opacity:1; visibility:visible; }
.scene-copy { width:min(42%,510px); transform-origin:left center; }
.hero-scene .scene-copy { width:min(49%,660px); container-type:inline-size; transform-origin:left center; will-change:transform; }
.immersive .eyebrow { letter-spacing:.14em; font-size:10px; }
.scene h1,.scene h2 { font-family:'DM Sans',system-ui,sans-serif; font-weight:500; letter-spacing:-.045em; line-height:1.06; margin:22px 0; }
.scene h1 { font-size:clamp(42px,4.4vw,68px); }
.hero-scene h1 { font-size:clamp(32px,min(13.5cqw,9svh),84px); }
.scene h2 { font-size:clamp(34px,3.5vw,52px); }
.scene h1 span,.scene h2 span { color:var(--text); }
.scene-description { font-size:16px; color:var(--muted); max-width:43ch; line-height:1.7; }
.hero-scene .scene-description { font-size:clamp(16px,4.8cqw,21px); max-width:100%; line-height:1.55; }
.scene-actions { display:flex; gap:12px; margin:28px 0 14px; pointer-events:auto; }
.scene-actions .primary,.scene-actions .secondary { width:auto; min-width:116px; min-height:46px; border-radius:999px; font-size:14px; padding:11px 23px; }
.scene-actions .primary { gap:22px; }
.modes { display:grid; gap:9px; margin-top:24px; }
.mode { display:grid; gap:3px; position:relative; text-align:left; background:#102432; border:1px solid var(--line); border-radius:12px; padding:13px 17px; color:var(--text); pointer-events:auto; }
.mode b { font-size:15px; font-weight:500; }
.mode span { grid-row:2; color:var(--muted); font-size:12px; line-height:1.5; }
.mode.on { background:#ff5b1f0d; border-color:var(--accent); }
#scene-modes { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(32px,5vw,80px); padding-bottom:32px; }
#scene-modes .scene-copy { width:100%; }
.clash-preview { position:relative; width:100%; height:100%; min-height:0; display:flex; }
.immersive .landing-clash { width:100%; height:100%; min-height:260px; border-radius:18px; margin:0; box-shadow:0 24px 100px #0004; }
.immersive .landing-clash > div { top:clamp(20px,3vw,44px); left:clamp(20px,3vw,44px); max-width:calc(100% - 40px); }
.immersive .landing-clash > div:nth-child(2) { inset:auto clamp(20px,3vw,44px) clamp(20px,3vw,44px) auto; }
.immersive .landing-clash strong { font-size:clamp(22px,2.4vw,38px); line-height:1.15; }
.immersive .landing-clash span { font-size:12px; }
.immersive .landing-clash small { font-size:14px; }
.immersive .landing-clash .landing-vs { width:48px; height:48px; top:calc(50% - 24px); left:calc(50% - 24px); font-size:13px; }
#account-backdrop { position:fixed; z-index:21; inset:0; background:transparent; }
.immersive .account-panel { display:block; position:fixed; z-index:22; right:clamp(24px,7vw,110px); top:50%; width:min(440px,calc(100% - 40px)); max-height:calc(100svh - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); overflow-y:auto; overscroll-behavior:contain; padding:26px; border:1px solid var(--line); border-radius:20px; background:#102432f2; box-shadow:0 32px 120px #0006; opacity:0; transform:translate(20vw,-50%) perspective(900px) rotateY(-42deg); transform-origin:right center; }
.immersive .account-panel h2 { font-family:'DM Sans',system-ui,sans-serif; font-size:29px; letter-spacing:-.035em; }
.immersive .account-panel .account-back { display:inline-flex; font-size:11px; margin-bottom:14px; }
.immersive .account-panel input,.immersive .account-panel select,.immersive .account-panel .primary { border-radius:12px; }
.immersive .account-panel .tabs { margin:20px 0; }
.immersive .account-panel .auth-footnote { font-size:11px; }
.immersive[data-account-open=true] .immersive-header { z-index:20; }
.no-script { position:fixed; bottom:10px; z-index:30; margin:0 24px; }
@media(max-width:720px) {
  .immersive-header { padding:calc(15px + env(safe-area-inset-top,0px)) 22px 12px; }
  .immersive-header nav { gap:16px; }
  .immersive .brand { font-size:27px; }
  .stage { min-height:0; }
  .scene { align-items:flex-start; padding:100px 24px 70px; }
  .scene-copy { width:100%; max-width:none; }
  .hero-scene .scene-copy { width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:18px; }
  .hero-scene .scene-copy > .eyebrow,.hero-scene .scene-copy > h1,.hero-scene .scene-copy > .scene-description,.hero-scene .scene-copy > .scene-actions { margin:0; }
  .hero-scene .scene-description { width:100%; max-width:none; padding:0; text-indent:0; text-align:left; }
  .scene h1 { font-size:clamp(35px,8.7vw,48px); margin:15px 0 16px; }
  .scene h2 { font-size:clamp(29px,7.5vw,38px); margin:12px 0 16px; }
  .scene-description { font-size:14px; max-width:45ch; line-height:1.6; }
  .scene-actions { margin-top:18px; }
  #scene-tracking .scene-copy { max-width:100%; }
  #scene-modes { display:flex; flex-direction:column; align-items:stretch; gap:20px; padding-bottom:max(20px,env(safe-area-inset-bottom,0px)); }
  #scene-modes .scene-copy { width:100%; flex:none; }
  #scene-modes h2 { font-size:29px; margin:10px 0; }
  .modes { margin-top:15px; gap:6px; }
  .mode { padding:9px 12px; }
  .mode b { font-size:13px; }
  .mode span { font-size:11px; }
  .clash-preview { flex:1; height:auto; min-height:0; }
  .immersive .landing-clash { height:auto; min-height:160px; flex:1; }
  .immersive .landing-clash > div { left:20px; top:20px; }
  .immersive .landing-clash > div:nth-child(2) { inset:auto 20px 20px auto; }
  .immersive .landing-clash strong { font-size:clamp(22px,6vw,30px); }
  .immersive .landing-clash small { font-size:12px; }
  .immersive .account-panel { right:20px; max-height:calc(100svh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); padding:22px; }
}
@media(max-width:720px) and (max-height:740px) {
  .scene { padding-top:80px; }
  .scene .eyebrow { font-size:9px; }
  .hero-scene .scene-actions { margin-top:12px; }
  #scene-modes .mode:not(.on) span { display:none; }
}
@media(max-width:720px) and (max-height:650px) {
  #scene-modes .modes { display:flex; }
  #scene-modes .mode { flex:1; display:block; }
  #scene-modes .mode span { display:none; }
}
@media(max-width:720px) and (max-height:480px) {
  #scene-modes { gap:12px; padding-top:70px; padding-bottom:12px; }
  #scene-modes .modes { margin-top:8px; }
  #scene-modes h2 { font-size:24px; }
  .immersive .landing-clash { min-height:120px; }
  .immersive .landing-clash > div { top:12px; left:14px; }
  .immersive .landing-clash > div:nth-child(2) { inset:auto 14px 12px auto; }
  .immersive .landing-clash strong { font-size:19px; }
}
