:root {
  --paper: #f4f7fb; --paper-light: #fff; --ink: #20344d; --ink-soft: #627187; --ink-faint: #7c8b9e; --line: #dce4ee;
  --accent: #2459a6; --accent-hover: #194884; --gold: #c69c43;
  --sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; --mono: 'Courier New', monospace; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden], .paper-grain { display: none !important; }
button:focus-visible, a:focus-visible, input[type='checkbox']:focus-visible { outline: 3px solid #588fe1; outline-offset: 4px; }
::selection { background: #d7e6fc; }
.page { width: min(1280px, calc(100% - 96px)); margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
.masthead { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-symbol { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-name { font-family: 'Arial Rounded MT Bold', 'Trebuchet MS', var(--sans); font-size: 25px; font-weight: 700; letter-spacing: -.8px; color: var(--accent); display: flex; align-items: baseline; gap: 12px; }
.spread { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; padding: 26px 12px 36px; }
.opening { min-width: 0; padding: 0 6px; container-type: inline-size; }
h1 { font-size: clamp(38px, 4vw, 54px); line-height: 1.35; font-weight: 500; letter-spacing: -1.5px; margin: 20px 0 16px; }
.accent-word { display: inline-block; color: var(--accent); position: relative; }
.accent-word svg { position: absolute; width: 90%; bottom: -5px; left: 4%; height: 7px; color: var(--gold); }
.machine { --paper: #e4edf9; --paper-light: #fff; position: relative; width: 540px; max-width: 100%; margin: 28px auto 22px; color: #355a88; }
.machine > svg { display: block; width: 100%; height: auto; overflow: visible; }
.machine-shadow { stroke: #ccd8e8; }
#story-text { font-size: 13px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 400; }
.paper-copy { font-family: var(--sans); text-align: left; }
.machine-paper { transform: translateY(0); transition: transform .45s linear; }
#story-text::after { content: ''; display: inline-block; vertical-align: -.1em; height: 1em; width: 2px; background: var(--gold); margin-left: 4px; animation: cursor-blink 1s step-end infinite; }
.lever-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #e7eef9; border: 1px solid #dae5f4; border-radius: 24px; padding: 12px 18px; min-height: 46px; font-size: 12px; font-weight: 600; color: #244e87; transition: background .2s, transform .2s; }
.lever-button:hover { background: #dae7fa; }
.lever-button:active { transform: translateY(3px); }
.lever-button:disabled { cursor: wait; }
.machine .lever-button { position: absolute; top: 32%; left: 0; min-height: 38px; padding: 8px 10px; gap: 5px; font-size: 11px; }
.beta-badge { color: var(--accent); background: #e7eef9; border: 1px solid #d7e2f2; border-radius: 6px; font-size: 11px; padding: 3px 7px; white-space: nowrap; }
.site-footer { text-align: center; padding: 18px 0 24px; font-size: 12px; color: var(--ink-soft); }
.site-footer a { display: inline-block; padding: 8px; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.lever-button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-section { background: #fff; border: 1px solid #e6ebf2; border-radius: 28px; padding: 42px 40px 28px; box-shadow: 0 8px 32px #20344d04; }
.login-inner { max-width: 360px; margin: auto; }
h2 { font-weight: 500; font-size: 30px; letter-spacing: -.6px; margin: 0 0 30px; outline: none; }
.field-group { margin-bottom: 20px; }
.field-group > label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 9px; }
.input-shell { display: flex; align-items: center; height: 52px; border: 1px solid #cbd5e2; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #2459a610; }
.input-shell:has(input[aria-invalid='true']) { border-color: #b3261e; }
.input-shell > svg { flex: none; width: 18px; height: 18px; margin: 0 12px 0 15px; stroke: #7a889b; stroke-width: 1.2; }
.input-shell input { flex: 1; min-width: 0; width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 10px 0 0; border-radius: 10px; font-size: 14px; }
.input-shell input::placeholder { color: #7b8798; font-size: 12px; }
.input-shell input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px white inset; -webkit-text-fill-color: var(--ink); }
.password-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); }
.password-toggle:hover { color: var(--accent); background: #f1f5fb; }
.password-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.3; }
.password-toggle .eye-closed, .password-toggle[aria-pressed='true'] .eye-open { display: none; }
.password-toggle[aria-pressed='true'] .eye-closed { display: block; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin: -7px 0 20px; }
.remember { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; min-height: 44px; }
.remember input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.text-button { border: 0; background: none; font-size: inherit; padding: 10px 0; min-height: 40px; color: var(--accent); }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 50px; border: 0; border-radius: 26px; background: var(--accent); color: white; font-size: 13px; font-weight: 500; transition: background .2s, box-shadow .2s; }
.submit-button:hover { background: var(--accent-hover); box-shadow: 0 3px 10px #2459a625; }
.submit-button:active { transform: translateY(1px); }
.submit-button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; }
.return-line { text-align: center; font-size: 12px; margin-top: 17px; }
.field-error { color: #b3261e; font-size: 11px; line-height: 1.6; margin: 7px 0 0; }
.form-status { background: #edf3fc; color: #35547c; border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.8; margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.machine-lever { transform-origin: 80px 114px; }
.machine.is-running .machine-lever { animation: lever-pull .6s ease-in-out; }
.machine.is-running .machine-body { animation: machine-shake .15s linear 4; }
.machine.is-typing .machine-keys circle:nth-child(3n) { animation: key-tap .3s alternate infinite; }
.machine.is-typing .machine-keys circle:nth-child(3n + 1) { animation: key-tap .23s .12s alternate infinite; }
@keyframes cursor-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes lever-pull { 0%, 100% { transform: rotate(0); } 45%, 65% { transform: rotate(-32deg); } }
@keyframes machine-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
@keyframes key-tap { to { fill: #c69c43; transform: translateY(1px); } }
@media (min-width: 1500px) { .spread { padding-top: 54px; padding-bottom: 70px; } }
@media (max-width: 1050px) { .page { width: calc(100% - 56px); } .spread { gap: 38px; padding-left: 0; padding-right: 0; } .login-section { padding: 32px 28px 26px; } h1 { font-size: 44px; } }
@media (max-width: 760px) { .page { width: min(520px, calc(100% - 36px)); } .masthead { min-height: 84px; } .brand-name { font-size: 23px; gap: 8px; } .brand-english { font-size: 15px; } .masthead-note { display: none; } .spread { display: flex; flex-direction: column; gap: 30px; padding: 20px 0 32px; } .opening { width: 100%; text-align: center; padding: 0; } .edition { justify-content: center; font-size: 9px; } h1 { font-size: 36px; letter-spacing: -1px; margin-top: 18px; } h1 br { display: block; } .opening-copy { font-size: 12px; } .machine { width: 420px; margin-top: 24px; } .story-preview { text-align: left; margin: 20px auto 14px; max-width: 360px; } #story-text { font-size: 13px; } .login-section { width: 100%; padding: 32px 28px 26px; } .footer-center, .folio { display: none; } .footer { justify-content: center; min-height: 55px; } }
@media (max-width: 360px) { .brand-english { display: none; } h1 { font-size: 30px; } .login-section { padding: 28px 20px; } .lever-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }



