:root {
  color-scheme: light;
  --green-950: #173a31;
  --green-700: #28614f;
  --green-100: #e6eee5;
  --paper: #fffefa;
  --canvas: #f5f3eb;
  --ink: #172e27;
  --muted: #51645a;
  --line: #d8e0d4;
  --gold: #ecd59b;
  --accent: #99501f;
  --radius: 18px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; color: var(--ink); font: 16px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
button, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #996414; outline-offset: 3px; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.mast-inner { max-width: 1250px; padding: 17px clamp(18px,3.3vw,44px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; gap: 11px; align-items: center; }
.seal { width: 42px; height: 42px; border-radius: 10px; background: var(--green-950); color: #ffedd0; display: grid; place-items: center; font: 700 26px var(--serif); }
.brand strong { display: block; font-size: 17px; line-height: 1.2; font-weight: 780; }
.brand small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; letter-spacing: .07em; }
.offline { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.offline i, .state-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #59856b; }
main { width: 100%; max-width: 1250px; padding: clamp(20px,4vw,52px) clamp(18px,3.3vw,44px); margin: 0 auto; flex: 1; }
.site-footer { display: flex; width: min(100%,1250px); justify-content: space-between; padding: 18px clamp(18px,3.3vw,44px) 23px; margin: 0 auto; font-size: 12px; color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.loading { padding: 20px 26px; }
.setup-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; align-items: stretch; }
.cover { display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; min-height: 555px; padding: clamp(28px,4vw,50px); border-radius: 24px; background: radial-gradient(ellipse at 120% 5%,#487c66 0,transparent 55%),var(--green-950); color: #fffaf0; }
.cover::before,.cover::after { content:""; pointer-events: none; position: absolute; border: 1px solid #dfca9062; width: 360px; height: 360px; bottom: -170px; right: -110px; border-radius: 50%; }
.cover::after { width: 305px; height: 305px; bottom: -150px; right: -92px; }
.cover .eyebrow { color: #ecd59b; font-size: 13px; letter-spacing: .23em; margin: 0 0 30px; }
.cover h1 { font: 750 clamp(41px,5.5vw,73px)/1.11 var(--serif); letter-spacing: -.05em; margin: 0 0 19px; }
.cover p { color: #e0ebe1; max-width: 33em; margin: 0; }
.cover-flow { position: relative; display: flex; gap: 13px; flex-wrap: wrap; align-items: center; color: #fff3d6; margin-top: 30px; font-size: 14px; }
.cover-flow b { padding: 5px 11px; border: 1px solid #ffffff38; border-radius: 999px; font-weight: 620; }
.setup-panel { padding: clamp(20px,3vw,36px); }
h1,h2,h3,p { margin-top: 0; }
h2 { font-size: clamp(20px,2.4vw,27px); line-height: 1.35; margin-bottom: 11px; }
h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.subtle { color: var(--muted); }
.form-grid { display: grid; gap: 16px; margin: 22px 0; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 720; }
select, textarea { width: 100%; border: 1px solid #beccbd; border-radius: 9px; padding: 10px 11px; background: #fff; color: var(--ink); font-weight: 500; }
select { min-height: 45px; }
.setup-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.choice-line { display: flex; align-items: center; gap: 8px; }
.form-note { color: var(--muted); margin: 12px 0 0; font-size: 12px; }
.button { border: 1px solid transparent; border-radius: 10px; padding: 10px 17px; min-height: 45px; color: var(--ink); font-weight: 730; transition: background .15s,color .15s; }
.button.primary { background: var(--green-950); color: #fffdfa; }
.button.primary:hover { background: #26604c; }
.button.secondary { background: var(--paper); border-color: #bbcabc; }
.button.secondary:hover,.button.text:hover { background: var(--green-100); }
.button.text { background: transparent; border-color: transparent; color: var(--green-700); }
.button.small { font-size: 13px; min-height: 37px; padding: 6px 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.field-error { color: #79441c; font-size: 13px; margin: 10px 0 0; }
.phase { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; margin-bottom: 20px; }
.phase span { min-width: 0; text-align: center; padding: 8px 4px; border-radius: 8px; color: var(--muted); font-size: 13px; border: 1px solid var(--line); }
.phase span.done { background: var(--green-100); }
.phase span.active { color: #fff; background: var(--green-950); border-color: var(--green-950); font-weight: 750; }
.exam-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,.44fr); gap: 18px; align-items: start; }
.console { position: sticky; top: 13px; padding: 19px; }
.mode-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.kicker { font-weight: 750; color: var(--green-700); font-size: 13px; letter-spacing: .07em; }
.meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.question-paper { padding: clamp(21px,3vw,36px); min-width: 0; }
.question-paper h2 { margin: 8px 0 15px; }
.paper-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.78; }
.paper-section + .paper-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.material { background: #f1f4ec; padding: 14px 18px; border-radius: 10px; margin: 10px 0 17px; }
.material p:last-child,.paper-section p:last-child { margin-bottom: 0; }
.prompt-card { border-left: 3px solid #b3883b; padding-left: 17px; margin: 18px 0; }
.seats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; margin-bottom: 14px; }
.seat { display: flex; border: 1px solid var(--line); background: #fbfcf7; border-radius: 10px; padding: 9px 6px; gap: 4px; align-items: center; flex-direction: column; text-align: center; line-height: 1.38; font-size: 12px; }
.seat b { font-size: 20px; color: var(--green-950); }
.seat small { color: var(--muted); font-weight: 560; }
.seat.active { border-color: var(--green-700); background: var(--green-100); }
.seat.mine b { text-decoration: underline #b3883b 2px; text-underline-offset: 3px; }
.timer { font: 760 clamp(52px,7vw,75px)/1.05 var(--sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--green-950); margin: 13px 0; }
.timer.warning { color: #9c401c; }
.timer-label { margin-bottom: 0; font-weight: 730; }
.meter { height: 5px; border-radius: 6px; overflow: hidden; background: var(--green-100); margin: 10px 0 15px; }
.meter > i { display: block; width: 100%; height: 100%; background: var(--green-700); transition: width .2s linear; }
.status { font-size: 13px; min-height: 22px; line-height: 1.5; color: var(--muted); margin: 0 0 10px; }
.state-dot.recording { background: #b04b32; }
.console .button:not(.text) { width: 100%; }
.console .button + .button { margin-top: 7px; }
.console .button.text { margin-top: 9px; }
.live-card,.record { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 13px; background: #fbfcf8; }
.live-answer { color: var(--green-950); margin: 19px 0 0; }
.answer-alt { margin-top: 19px; }
.answer-alt summary,.record summary,.prompt-details summary { cursor: pointer; color: var(--green-700); font-weight: 720; margin-bottom: 9px; }
.answer-alt label,.record label { display: grid; gap: 6px; font-size: 13px; }
textarea { resize: vertical; min-height: 95px; }
.inline-records { margin-top: 19px; }
.inline-records summary { cursor: pointer; font-size: 13px; }
.record p:last-child { margin-bottom: 0; }
.record input { margin-top: 8px; }
.record audio { width: 100%; margin: 10px 0 5px; }
.record-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.record-footer a { color: var(--green-700); font-size: 13px; }
.tiny { font-size: 12px; color: var(--muted); }
.result-header { padding: clamp(20px,3vw,37px); display: flex; flex-wrap: wrap; gap: 10px 25px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.result-body { padding: clamp(20px,3vw,35px); }
.result-body section + section { margin-top: 25px; }
.awaiting { color: var(--accent); font-size: 14px; margin-top: 15px; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; max-width: min(480px,calc(100% - 32px)); padding: 25px; }
dialog::backdrop { background: #132f26ad; }
@media (max-width: 780px) {
  .setup-grid,.exam-grid { grid-template-columns: 1fr; }
  .cover { min-height: auto; }
  .cover .eyebrow { margin-bottom: 20px; }
  .cover h1 br { display: none; }
  .console { grid-row: 1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
  .console .seats,.console .meter,.console .actions { grid-column: 1/-1; margin: 0; }
  .console .timer { margin: 5px 0 0; text-align: right; font-size: 49px; }
  .console .status { margin: 0; align-self: center; }
  .console .button:not(.text) { width: auto; }
  .console .button + .button,.console .button.text { margin-top: 0; }
}
@media (max-width: 380px) {
  .setup-options { grid-template-columns: 1fr; }
  .phase { gap: 4px; }
  .phase span { font-size: 11px; }
  .console .actions { gap: 5px; }
  .console .button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none!important; scroll-behavior: auto!important; } }

.brand-logo { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1.5px solid var(--green-950); object-fit: cover; box-shadow: 0 2px 6px rgba(23, 58, 49, .12); flex-shrink: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; }
.footer-brand img { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--line); object-fit: cover; }
.cover-top { position: relative; z-index: 1; }
.cover-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.cover-avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #ecd59b; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.cover-brand .eyebrow { margin: 0; }
.cover-visual { position: relative; z-index: 1; display: flex; justify-content: flex-end; margin: 14px 0 4px; pointer-events: none; }
.cover-mascot { width: min(210px, 52%); height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .24)); }
@media (max-width: 780px) {
  .cover-mascot { width: 150px; }
}

/* === 主考官五要素点评与参考评分卡片 === */
.eval-panel { padding: clamp(20px,3vw,34px); margin-bottom: 20px; border: 1.5px solid #c4d3c5; background: linear-gradient(180deg, #fffefa 0%, #f8fbf7 100%); }
.eval-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 18px; }
.eval-top h2 { margin: 4px 0 6px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); color: var(--green-950); }
.eval-score-box { min-width: 196px; padding: 14px 20px; border-radius: 16px; text-align: center; border: 1.5px solid var(--green-700); background: var(--green-950); color: #fffcf5; box-shadow: 0 6px 16px rgba(23,58,49,.14); }
.eval-score-box.eval-high { background: linear-gradient(135deg, #173a31 0%, #245b4a 100%); border-color: #ecd59b; }
.eval-score-box.eval-mid { background: linear-gradient(135deg, #214a3e 0%, #346858 100%); }
.eval-score-box.eval-low { background: linear-gradient(135deg, #5e3424 0%, #7d452e 100%); border-color: #e6b89c; }
.eval-score-num { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1.1; color: #ecd59b; }
.eval-score-num small { font-size: 16px; font-weight: 400; color: #d5e4dc; }
.eval-tier { margin-top: 5px; font-size: 13px; font-weight: 600; color: #fffcf5; letter-spacing: .02em; }
.eval-script-box { background: #f6f2e4; border: 1px solid #e2d4ae; border-radius: 14px; padding: 15px 18px; margin-bottom: 20px; }
.eval-script-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.eval-script-head strong { color: var(--green-950); font-size: 15px; }
.eval-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eval-script-text { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink); }
.eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; }
.eval-dim { background: #fffefa; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; }
.eval-dim-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.eval-dim-head strong { font-family: var(--serif); font-size: 17px; color: var(--green-950); }
.eval-dim-head span { font-size: 13px; color: var(--muted); }
.eval-dim-head b { font-size: 19px; color: var(--accent); }
.eval-bar { height: 7px; border-radius: 999px; background: var(--green-100); overflow: hidden; margin-bottom: 10px; }
.eval-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-700), #c8923a); }
.eval-desc { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.eval-tip { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* v2: 2/3/4-seat responsive console, team roster & LAN room styles */
.seats.seats-2 { grid-template-columns: repeat(2, 1fr); }
.seats.seats-3 { grid-template-columns: repeat(3, 1fr); }
.seats.seats-4 { grid-template-columns: repeat(4, 1fr); }
.roster-box { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #f4f7f5; border: 1px solid #d7e2dc; }
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 0.88rem; color: #1b3a30; font-weight: 600; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.roster-item { background: #fff; border: 1px solid #d9e3dd; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.roster-item.is-human { border-color: #1f5c4a; background: #f2faf6; }
.roster-item-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; font-weight: 600; color: #153c32; }
.roster-badge { font-size: 0.72rem; padding: 2px 7px; border-radius: 999px; background: #e2ece7; color: #1c4c3e; }
.roster-item.is-human .roster-badge { background: #153c32; color: #f6df9d; }
.roster-item input[type="text"] { width: 100%; padding: 5px 8px; border: 1px solid #cad6cf; border-radius: 7px; font-size: 0.82rem; box-sizing: border-box; }
.roster-item select { width: 100%; padding: 4px 6px; border: 1px solid #cad6cf; border-radius: 7px; font-size: 0.8rem; }
.lan-box { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fbf8ef; border: 1px solid #e6d7ad; font-size: 0.86rem; }
.lan-box summary { cursor: pointer; font-weight: 600; color: #153c32; }
.lan-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.lan-controls input { padding: 7px 10px; border: 1px solid #cfc4a4; border-radius: 8px; font-size: 0.86rem; width: 150px; }
.lan-status { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px dashed #c8963e; font-size: 0.83rem; line-height: 1.5; word-break: break-all; }
.team-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.team-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid #c6d4cc; background: #fff; color: #153c32; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.team-tab.active { background: #153c32; color: #f6df9d; border-color: #153c32; }
.turn-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #eef7f3; border-left: 4px solid #153c32; font-weight: 600; color: #153c32; font-size: 0.94rem; }

/* v4: Foolproof Solo vs Team mode switcher */
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mode-tab { padding: 12px 14px; border-radius: 14px; border: 2px solid #d4e0d9; background: #f8fbf9; color: #173a31; font-weight: 700; font-size: 0.95rem; cursor: pointer; text-align: center; transition: all .15s ease; }
.mode-tab small { display: block; font-weight: 400; font-size: 0.76rem; color: #566e64; margin-top: 3px; }
.mode-tab.active { border-color: #153c32; background: #153c32; color: #fff; }
.mode-tab.active small { color: #f6df9d; }
.team-card { padding: 14px 16px; border-radius: 14px; background: #fbf8ef; border: 1.5px solid #e2cfa0; margin-top: 10px; }
.team-card h3 { margin: 0 0 8px; font-size: 0.96rem; color: #153c32; }
.team-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.team-row input { padding: 8px 10px; border: 1px solid #cfc4a4; border-radius: 8px; font-size: 0.88rem; }
.sync-divider { margin: 12px 0; border-top: 1px dashed #d8caa3; padding-top: 10px; }


/* === V2: User Auth Bar, Auth Modal, Immersive Exam Scenes, Transition Theater & Sealed Scorecard === */
.user-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.user-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--green-100); color: var(--green-950); font-weight: 650; }
.user-pill.vip { background: linear-gradient(135deg, #173a31, #28614f); color: #ecd59b; border: 1px solid #d5b467; }
.user-pill.warn { background: #fff1e6; color: #9c401c; border: 1px solid #f0c2a2; }

.auth-dialog { padding: 0; max-width: min(460px, calc(100% - 28px)); width: 100%; border-radius: 20px; overflow: hidden; }
.auth-modal-wrap { padding: 22px 24px 24px; }
.auth-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.auth-modal-head h2 { margin: 4px 0 0; font-size: 20px; }
.auth-close { background: transparent; border: none; font-size: 18px; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.auth-close:hover { background: var(--green-100); color: var(--ink); }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; background: #f1f5f2; padding: 4px; border-radius: 11px; }
.auth-tab { border: none; background: transparent; padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.auth-tab.active { background: #fff; color: var(--green-950); box-shadow: 0 2px 6px rgba(15,44,36,.08); }
.auth-hint { font-size: 12.5px; color: var(--muted); background: #f8f6ee; border: 1px solid #e6dbc0; border-radius: 10px; padding: 9px 11px; margin-bottom: 14px; line-height: 1.55; }
.auth-pane label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; margin-bottom: 10px; color: var(--ink); }
.auth-pane input { width: 100%; padding: 10px 12px; border: 1px solid #c3d1c8; border-radius: 9px; font-size: 14px; }

/* Immersive Exam Room SVG Stage */
.scene-stage { position: relative; border-radius: 16px; overflow: hidden; border: 1.5px solid #c5d4c9; background: #eef3ef; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(23, 58, 49, .06); }
.scene-badge { position: absolute; top: 10px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(23, 58, 49, .86); color: #ecd59b; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; }
.scene-svg { display: block; width: 100%; height: auto; max-height: 245px; }
@keyframes penWrite { 0%,100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(6px, -2px) rotate(6deg); } }
@keyframes speakRing { 0% { opacity: .9; transform: scale(.96); } 50% { opacity: .35; transform: scale(1.06); } 100% { opacity: .9; transform: scale(.96); } }
@keyframes subtleNod { 0%,100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes cardRaise { 0%,100% { transform: translate(-14px, -56px); } 50% { transform: translate(-14px, -63px); } }
.pen-write { animation: penWrite 1.4s ease-in-out infinite; transform-origin: 446px 158px; }
.speak-ring { animation: speakRing 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.examiner-chief.speaking { animation: subtleNod .9s ease-in-out infinite; }
.examiner-listen { animation: subtleNod 3.6s ease-in-out infinite; }
.timekeeper-seat.holding-card .timer-sign { animation: cardRaise 1.1s ease-in-out infinite; }

/* Transition Theater (Stand up -> Footsteps Corridor -> Enter 7-Examiner Hall) */
.transition-theater { position: fixed; inset: 0; z-index: 9999; background: rgba(14, 34, 28, .92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; transition: opacity .28s ease; }
.transition-theater.fade-out { opacity: 0; }
.theater-card { position: relative; width: min(560px, 100%); background: #173a31; border: 1.5px solid #d7ba76; border-radius: 22px; padding: 28px 26px 24px; color: #fffaf0; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.theater-skip { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.12); color: #ecd59b; border: 1px solid rgba(236,213,155,.35); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.theater-skip:hover { background: rgba(255,255,255,.22); }
.theater-visual { position: relative; height: 170px; margin: 8px auto 18px; border-radius: 14px; background: radial-gradient(circle at 50% 42%, #2f6553, #112a23 78%); overflow: hidden; border: 1px solid rgba(236,213,155,.25); }
.corridor-doors { position: absolute; inset: 22px 110px 20px; display: flex; perspective: 600px; }
.door-left, .door-right { flex: 1; background: linear-gradient(180deg, #6e482f, #4c301e); border: 2px solid #996d49; display: grid; place-items: center; color: #ecd59b; font-size: 13px; font-weight: 700; transition: transform 1s cubic-bezier(.22,.8,.22,1); }
.door-left { transform-origin: left center; border-right-width: 1px; }
.door-right { transform-origin: right center; border-left-width: 1px; }
.door-light { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,244,205,.85), rgba(255,244,205,0) 70%); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.transition-theater.step-open .door-left { transform: rotateY(-78deg); }
.transition-theater.step-open .door-right { transform: rotateY(78deg); }
.transition-theater.step-open .door-light { opacity: 1; }
.walker-silhouettes { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; transition: transform 1.7s ease; }
.walker { width: 22px; height: 48px; border-radius: 12px 12px 4px 4px; background: rgba(236,213,155,.88); position: relative; }
.walker::before { content: ""; position: absolute; top: -16px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: rgba(236,213,155,.92); }
.transition-theater.step-walk .walker-silhouettes { transform: translateX(-50%) scale(0.76) translateY(-18px); }
@keyframes walkBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.transition-theater.step-walk .walker { animation: walkBob .42s ease-in-out infinite; }
.transition-theater.step-walk .walker.w2 { animation-delay: .14s; }
.transition-theater.step-walk .walker.w3 { animation-delay: .28s; }
.theater-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; color: #ecd59b; }
.theater-card p { margin: 0 0 14px; font-size: 13.5px; color: #dce8e1; }
.theater-progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.theater-progress i { display: block; height: 100%; width: 0%; background: #ecd59b; animation: theaterBar 4.2s linear forwards; }
@keyframes theaterBar { from { width: 0%; } to { width: 100%; } }

/* Live Mic Level Meter */
.mic-meter-box { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; padding: 8px 12px; border-radius: 10px; background: #f4f8f5; border: 1px solid #d4e0d8; font-size: 12.5px; color: var(--green-950); }
.mic-bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.mic-bars i { display: block; width: 4px; height: 4px; border-radius: 2px; background: #28614f; transition: height .08s ease; }

/* Sealed Scorecard Envelope (Click to Open!) */
.scorecard-envelope { padding: 22px 26px; margin-bottom: 20px; border: 2px dashed #c8923a; background: linear-gradient(135deg, #fffdf7 0%, #f8f3e4 100%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.envelope-left { display: flex; align-items: center; gap: 15px; }
.envelope-seal { width: 56px; height: 56px; border-radius: 50%; background: #c82820; color: #fff8e6; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 700; box-shadow: 0 4px 12px rgba(200,40,32,.28); border: 2px solid #f4d6a0; flex-shrink: 0; }
.scorecard-collapse-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }


/* === V3: Anti-Copy, Print Block, Dynamic Watermark, Corridor Perspective & Mic Check === */
.question-paper, .result-body, .eval-panel { -webkit-user-select: none; user-select: none; }
.question-paper textarea, .question-paper input, .result-body textarea, .result-body input { -webkit-user-select: text; user-select: text; }
@media print { body { display: none !important; } }

.wm-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; opacity: 0.055; display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px 40px; padding: 40px; transform: rotate(-20deg) scale(1.2); }
.wm-overlay span { font-size: 15px; font-weight: 700; color: #173a31; white-space: nowrap; text-align: center; }

.corridor-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 68px; background: repeating-linear-gradient(90deg, rgba(236,213,155,.08) 0 2px, transparent 2px 36px), linear-gradient(180deg, rgba(16,40,33,0), rgba(10,24,20,.65)); transform: perspective(260px) rotateX(45deg); transform-origin: bottom; }
.mic-retry-banner { margin-top: 10px; padding: 11px 14px; border-radius: 11px; background: #fff5f0; border: 1.5px solid #e09f7d; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #8c3318; }

.centered-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: 90vh; overflow-y: auto; }
.transcript-readonly { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.75; color: var(--ink); white-space: pre-wrap; }

/* === V18 Cross-Platform Browser Compatibility === */
.transition-theater { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 780px) {
  input, select, textarea { font-size: 16px !important; }
  .phase { gap: 4px; }
  .phase span { font-size: 11.5px; padding: 6px 2px; }
  .mast-inner { padding: 12px 14px; }
  .user-bar { gap: 6px; }
  .centered-dialog { width: calc(100vw - 24px); max-width: 440px; }
}

.cover-stats {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(232, 201, 132, 0.34);
  backdrop-filter: blur(4px);
}
.cover-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cover-stat-item strong {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  color: #f3d792;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
}
.cover-stat-item span {
  font-size: 12px;
  color: rgba(244, 249, 246, 0.86);
  line-height: 1.3;
}
.cover-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 640px) {
  .cover-stats {
    gap: 12px;
    padding: 10px 12px;
  }
  .cover-stat-item strong {
    font-size: 18px;
  }
}


/* ==========================================================================
   FLAGSHIP LUXURY TACTILE UI & HIGH-CONTRAST OPAQUE MODAL POLISH (V26.1127)
   ========================================================================== */
:root {
  --ease-tactile: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(12, 34, 27, 0.04), 0 8px 24px rgba(12, 34, 27, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(12, 34, 27, 0.07), 0 16px 36px rgba(12, 34, 27, 0.09);
  --shadow-modal: 0 28px 72px rgba(6, 22, 17, 0.42), 0 8px 22px rgba(6, 22, 17, 0.16);
}

/* 1. Sticky Masthead & Elevated Card Depth */
.masthead {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(15, 45, 35, 0.09);
  box-shadow: 0 1px 3px rgba(10, 30, 24, 0.04);
}

.panel {
  background: #ffffff;
  border: 1px solid rgba(16, 46, 37, 0.10);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.24s var(--ease-tactile), border-color 0.24s var(--ease-tactile);
}

/* 2. Apple / Stripe / Linear Grade Tactile Buttons */
.button,
button.sm,
#unlock-vip-strip-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    transform 0.16s var(--ease-tactile),
    box-shadow 0.20s var(--ease-tactile),
    background 0.20s var(--ease-tactile),
    border-color 0.20s var(--ease-tactile),
    color 0.18s var(--ease-tactile);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.button.primary {
  background: linear-gradient(180deg, #1e5646 0%, #143b30 100%);
  color: #fffdf8;
  border: 1px solid rgba(10, 32, 25, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(10, 30, 24, 0.14),
    0 6px 16px rgba(20, 59, 48, 0.22);
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.16) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-tactile);
  pointer-events: none;
}

.button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #246452 0%, #174437 100%);
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px rgba(10, 30, 24, 0.16),
    0 12px 26px rgba(20, 59, 48, 0.28);
}

.button.primary:hover:not(:disabled)::after {
  transform: translateX(120%);
}

.button.primary:active:not(:disabled) {
  transform: translateY(0.5px) scale(0.982);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.22),
    0 1px 3px rgba(10, 30, 24, 0.16);
}

.button.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  color: #153c32;
  border: 1px solid #c5d4cc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 42, 34, 0.06);
}

.button.secondary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #edf5f1 100%);
  border-color: #8fb3a2;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 12px rgba(15, 42, 34, 0.10);
}

.button.secondary:active:not(:disabled) {
  transform: translateY(0.5px) scale(0.982);
  background: #e6f0eb;
  box-shadow: inset 0 1px 3px rgba(15, 42, 34, 0.10);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(28, 92, 73, 0.20) !important;
  border-color: #1c5c49 !important;
}

/* 3. Refined Form Controls & Roster Cards */
select,
input[type="text"],
input[type="password"],
textarea {
  background: #ffffff;
  color: #10241d;
  border: 1px solid #c6d4cd;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

select:hover,
input[type="text"]:hover,
input[type="password"]:hover,
textarea:hover {
  border-color: #8caea0;
}

.roster-item {
  background: #ffffff;
  border: 1px solid #d4e0d9;
  box-shadow: 0 1px 3px rgba(14, 38, 30, 0.04);
  transition: transform 0.18s var(--ease-tactile), box-shadow 0.18s var(--ease-tactile), border-color 0.18s ease;
}

.roster-item:hover {
  border-color: #9ab9ab;
  box-shadow: 0 4px 14px rgba(14, 38, 30, 0.08);
  transform: translateY(-1px);
}

.roster-item.is-human {
  border: 1.5px solid #1b5443;
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
}

/* 4. 100% SOLID OPAQUE HIGH-CONTRAST MODALS (Fixes Login & Unlock Transparency!) */
@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(10px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

dialog,
dialog.auth-dialog,
dialog.centered-dialog {
  background: #ffffff !important;
  opacity: 1 !important;
  color: #10241d !important;
  border: 1px solid rgba(15, 45, 35, 0.16) !important;
  border-radius: 22px !important;
  box-shadow: var(--shadow-modal) !important;
  animation: modalPopIn 0.22s var(--ease-tactile);
}

dialog::backdrop {
  background: rgba(7, 20, 16, 0.74) !important;
  backdrop-filter: blur(10px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
}

.auth-modal-wrap {
  background: #ffffff;
  color: #10241d;
  padding: 26px 26px 26px;
}

.auth-modal-head .kicker {
  color: #1d5a47;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.auth-modal-head h2 {
  color: #0e241d;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #465e55;
  background: #f2f6f4;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.auth-close:hover {
  background: #e1ece6;
  color: #0e241d;
  transform: scale(1.05);
}

.auth-close:active {
  transform: scale(0.94);
}

.auth-tabs {
  background: #eef3f0;
  border: 1px solid #dce6e0;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.auth-tab {
  color: #425a51;
  font-weight: 700;
  border-radius: 9px;
  padding: 9px 6px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

.auth-tab:hover:not(.active) {
  color: #153c32;
  background: rgba(255, 255, 255, 0.6);
}

.auth-tab.active {
  background: #ffffff;
  color: #11362b;
  box-shadow: 0 2px 8px rgba(12, 36, 28, 0.12);
}

.auth-hint {
  background: #fdf9ec !important;
  color: #3f300c !important;
  border: 1px solid #e7d195 !important;
  font-weight: 550;
  font-size: 13px;
  line-height: 1.65;
  padding: 11px 13px;
  border-radius: 12px;
}

.auth-pane label {
  color: #142c24;
  font-weight: 700;
  font-size: 13.5px;
}

.auth-pane input {
  background: #ffffff;
  color: #0e241d;
  border: 1.5px solid #c3d3cb;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14.5px;
}

.auth-pane input::placeholder {
  color: #7c9188;
}

/* 5. Homepage VIP Lock Strip & Tactile Chips (Opaque High-Contrast Champagne Ivory) */
#vip-lock-strip {
  background: #fffdf5 !important;
  border: 1.5px solid #e4c46a !important;
  box-shadow: 0 4px 16px rgba(145, 102, 16, 0.09);
  color: #4a2e05 !important;
  padding: 13px 15px !important;
  border-radius: 14px !important;
}

#unlock-vip-strip-btn {
  background: linear-gradient(180deg, #1d5243 0%, #13382e 100%) !important;
  color: #f6ce6e !important;
  padding: 6px 14px !important;
  box-shadow: 0 2px 8px rgba(20, 56, 46, 0.22);
}

#unlock-vip-strip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(20, 56, 46, 0.30);
}

#unlock-vip-strip-btn:active {
  transform: translateY(0.5px) scale(0.97);
}

.vip-lock-chip {
  background: #ffffff !important;
  color: #1b3d32 !important;
  border: 1px solid #dfca8a !important;
  font-weight: 650;
  padding: 5px 10px !important;
  border-radius: 9px !important;
  box-shadow: 0 1px 2px rgba(120, 86, 14, 0.06);
  transition: transform 0.16s var(--ease-tactile), box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.vip-lock-chip:hover {
  background: #fff9e6 !important;
  border-color: #c99d34 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(160, 114, 18, 0.14);
}

.vip-lock-chip:active {
  transform: translateY(0.5px) scale(0.975);
}

/* 6. Crisp Tabular Numbers & Cover Stats Clarity */
.cover-stats {
  background: rgba(8, 28, 22, 0.56) !important;
  border: 1px solid rgba(244, 198, 92, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-variant-numeric: tabular-nums;
}

.cover-stat-item strong {
  color: #f8d477;
  font-variant-numeric: tabular-nums;
}

.cover-stat-item span {
  color: #eef6f2 !important;
}

.scorecard-envelope {
  background: linear-gradient(180deg, #fffdf8 0%, #f8f4e8 100%);
  border: 1.5px solid #dfd0a8;
  box-shadow: var(--shadow-card);
}

.scorecard-envelope:hover {
  box-shadow: var(--shadow-card-hover);
}
