/* SCREEN ROUTING */
.screen{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;padding:2rem}
.screen.active{display:flex}
@media (max-width: 720px){
  .screen{padding:1.25rem}
}

/* TITLE SCREEN */
#title .eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--text2);margin-bottom:2rem;opacity:.7}
#title h1{font-family:'Lora',serif;font-size:2.8rem;font-weight:400;text-align:center;line-height:1.25;margin-bottom:.75rem;color:var(--text1)}
#title .sub{font-family:'Lora',serif;font-style:italic;font-size:1.05rem;color:var(--text2);text-align:center;margin-bottom:3rem;max-width:380px;line-height:1.7}

/* BRIEFING */
#briefing{text-align:center}
#briefing .brief-text{font-family:'Lora',serif;font-size:1.1rem;line-height:1.9;color:var(--text2);max-width:440px;margin-bottom:2.5rem}
#briefing em{color:var(--text1);font-style:italic}
.round-indicator{display:flex;gap:8px;margin-bottom:2rem}
.round-dot{width:8px;height:8px;border-radius:50%;background:var(--strip)}
.round-dot.active{background:var(--terra)}
.round-dot.done{background:var(--sage)}

/* BRIEFING DEMO PANEL */
.brief-eyebrow{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--text2);opacity:.6;margin-bottom:.45rem}
.brief-task-name{font-family:'Lora',serif;font-size:1.35rem;font-weight:400;color:var(--text1);margin-bottom:.6rem}
.brief-instruction{font-size:.78rem;color:var(--text2);max-width:380px;line-height:1.55;margin-bottom:1rem;letter-spacing:.02em}
.demo-panel{width:300px;height:170px;background:var(--parchment2);border:1px solid var(--strip);position:relative;overflow:hidden;margin-bottom:1.1rem}
.demo-panel .demo-tag{position:absolute;top:6px;left:8px;font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--text2);opacity:.55;z-index:5}
.demo-annotation{position:absolute;font-family:'Lora',serif;font-style:italic;font-size:.72rem;color:var(--terra);opacity:0;transition:opacity .3s;pointer-events:none;z-index:6}
.demo-annotation.show{opacity:.95}
.demo-pointer{position:absolute;font-size:1rem;color:var(--terra);opacity:0;transition:opacity .25s,left .4s ease,top .4s ease;pointer-events:none;z-index:6}
.demo-pointer.show{opacity:.9}
#briefing .brief-text{margin-bottom:1.4rem;font-size:.95rem;line-height:1.7;max-width:420px}

/* SELF RATING */
#rate-screen{text-align:center}
#rate-screen h2{font-family:'Lora',serif;font-size:1.5rem;font-weight:400;margin-bottom:.5rem}
#rate-screen p{font-size:.8rem;color:var(--text2);margin-bottom:2.5rem;letter-spacing:.05em}
.rate-options{display:flex;gap:1.5rem;margin-bottom:2rem}
.rate-btn{background:var(--parchment2);border:1.5px solid var(--strip);padding:1.25rem 1.5rem;cursor:pointer;text-align:center;width:130px;transition:all .2s}
.rate-btn:hover{border-color:var(--terra);background:var(--terra-light)}
.rate-btn.selected{border-color:var(--terra);background:var(--terra-light)}
.rate-btn .rate-icon{font-size:1.8rem;margin-bottom:.5rem}
.rate-btn .rate-label{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text2)}
.rate-btn .rate-desc{font-family:'Lora',serif;font-style:italic;font-size:.75rem;color:var(--text2);margin-top:.25rem;line-height:1.4}

/* REVEAL */
#reveal-screen{overflow-y:auto;padding:2.5rem;max-height:600px;text-align:left}
/* On desktop, break out of the 600px canvas for the long-content data screens
   (reveal + profile) so the CTAs at the bottom (Round N → / See Your Profile →
   / Play Again →) are always visible in the viewport instead of being hidden
   below an internal scroll. Body scrolls instead — same behaviour as mobile.
   Without this override, the cadence-bridge dark block at the bottom of the
   profile screen gets clipped by the 600px scroll container and reads visually
   like a thick bottom border. */
@media (min-width: 720px){
  body[data-screen="reveal-screen"],
  body[data-screen="profile-screen"]{overflow:auto}
  body[data-screen="reveal-screen"] #game,
  body[data-screen="profile-screen"] #game{height:auto;min-height:600px;overflow:visible}
  body[data-screen="reveal-screen"] #reveal-screen,
  body[data-screen="profile-screen"] #profile-screen{
    position:relative;inset:auto;width:100%;
    max-height:none;overflow:visible;min-height:600px;
  }
}
.reveal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem}
.reveal-title{font-family:'Lora',serif;font-size:1.2rem;font-weight:400}
.calibration-badge{padding:.4rem .9rem;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}
.calibration-badge.good{background:var(--sage-light);color:var(--sage)}
.calibration-badge.bad{background:var(--terra-light);color:var(--terra)}
.calibration-badge.ok{background:var(--parchment2);color:var(--text2)}

.timeline{width:100%;height:48px;background:var(--parchment2);position:relative;margin:1.5rem 0;border:1px solid var(--strip)}
.tl-marker{position:absolute;top:0;bottom:0;width:2px;background:var(--terra);opacity:.6}
.tl-marker.noticed{background:var(--strip);opacity:1}
.tl-label{position:absolute;bottom:-18px;font-size:9px;color:var(--text2);transform:translateX(-50%);white-space:nowrap}
.tl-progress{height:100%;background:var(--sage);opacity:.12;width:var(--prog)}

.distraction-list{margin:1rem 0}
.d-item{display:flex;align-items:center;gap:.75rem;padding:.5rem 0;border-bottom:1px solid var(--strip);font-size:.8rem}
.d-item:last-child{border-bottom:none}
.d-status{width:64px;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;flex-shrink:0}
.d-status.missed{color:var(--terra)}
.d-status.noticed{color:var(--text2);opacity:.6}
.d-name{color:var(--text2);flex:1}
.d-time{font-size:.7rem;color:var(--text2);opacity:.5}

.score-row{display:flex;gap:1rem;margin-top:1.25rem}
.score-box{flex:1;background:var(--parchment2);padding:.75rem;text-align:center}
.score-val{font-family:'Lora',serif;font-size:1.6rem;margin-bottom:.2rem}
.score-lbl{font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text2)}

.trend-mini{margin-top:1.25rem}
.trend-label{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text2);margin-bottom:.5rem}
.trend-bars{display:flex;align-items:flex-end;gap:6px;height:40px}
.trend-bar-wrap{display:flex;flex-direction:column;align-items:center;gap:3px}
.trend-bar{width:20px;background:var(--strip);border-top:2px solid var(--text2);transition:height .4s ease}
.trend-bar.self{background:transparent;border-top:2px dashed var(--terra)}
.trend-bar-r{font-size:8px;color:var(--text2);opacity:.5}

/* PROFILE SCREEN */
#profile-screen{overflow-y:auto;padding:2rem;max-height:600px}
.profile-header{text-align:center;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--strip)}
.profile-header .eyebrow{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--text2);margin-bottom:.75rem}
.profile-header h2{font-family:'Lora',serif;font-size:1.8rem;font-weight:400;margin-bottom:.5rem}
.profile-type{display:inline-block;background:var(--terra-light);color:var(--terra);padding:.3rem .9rem;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:.5rem}
.profile-type-desc{font-family:'Lora',serif;font-style:italic;font-size:.9rem;color:var(--text2);max-width:380px;margin:0 auto;line-height:1.7}

.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:1.75rem}
.p-stat{background:var(--parchment2);padding:1rem;text-align:center}
.p-stat-val{font-family:'Lora',serif;font-size:2rem;font-weight:400;color:var(--text1)}
.p-stat-lbl{font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text2);margin-top:.2rem}
.p-stat-sub{font-family:'Lora',serif;font-style:italic;font-size:.7rem;color:var(--text2);margin-top:.2rem}

.weakness-section{margin-bottom:1.75rem}
.section-label{font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--text2);margin-bottom:.75rem}
.weakness-bar-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.6rem}
.weakness-name{font-size:.75rem;color:var(--text2);width:120px;flex-shrink:0}
.weakness-track{flex:1;height:6px;background:var(--strip)}
.weakness-fill{height:100%;background:var(--terra);transition:width .6s ease}

.cadence-bridge{background:var(--text1);color:var(--warm);padding:1.5rem;margin-top:1.5rem;text-align:center}
.bridge-quote{font-family:'Lora',serif;font-style:italic;font-size:.95rem;line-height:1.8;margin-bottom:1.25rem;color:rgba(253,250,244,.85)}
.bridge-cta{background:var(--terra);color:var(--warm);border:none;padding:.7rem 1.5rem;font-family:'IBM Plex Mono',monospace;font-size:.75rem;letter-spacing:.08em;cursor:pointer;transition:background .2s}
.bridge-cta:hover{background:#a36849}

.share-section{text-align:center;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--strip)}
.share-label{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text2);margin-bottom:.75rem}
#share-canvas{border:1px solid var(--strip);max-width:100%;margin:0 auto .75rem;display:block}
.play-again-btn{margin-top:.75rem}
