:root {
  color-scheme: light;
  --ink: #20264a;
  --muted: #535f7a;
  --page: #eaf0fb;
  --paper: #fcfcff;
  --accent: #4a37ba;
  --line: #ccd6ec;
  --display: "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  font: 100%/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a, .link { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1150px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 900 1.55rem/1.15 var(--display); letter-spacing: -.04em; text-decoration: none; }
.brand img { width: 32px; height: auto; }
.development { padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.mobile-shortcut { display: none; }
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(25px, 5vw, 80px); padding-block: clamp(46px, 8vh, 100px); align-items: center; }
.story { min-width: 0; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.045em; }
h1 { font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .99; }
.summary { margin-block: 18px 27px; max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.raid-art { display: block; width: 100%; height: auto; border-radius: 13px; border: 1px solid #252c492a; }
.panel { min-width: 0; scroll-margin-top: 16px; padding: clamp(24px, 3vw, 40px); border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 5px 18px #38466c0d; }
h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.1; }
#panel-description { margin-top: 9px; color: var(--muted); }
#account-form { display: grid; margin-top: 26px; }
label { margin: 0 0 7px; font-size: .9rem; font-weight: 700; }
input { min-width: 0; width: 100%; min-height: 47px; padding: 9px 11px; border: 1px solid #98a3bf; border-radius: 7px; color: var(--ink); background: #fff; }
input + label { margin-top: 17px; }
.hint { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.primary { width: 100%; min-height: 47px; margin-top: 23px; border: 1px solid #39289e; border-radius: 8px; background: var(--accent); color: white; font-weight: 750; padding: 9px 14px; }
.primary:hover { background: #39289e; }
button:disabled { opacity: .65; cursor: progress; }
.link { min-height: 42px; padding: 5px 2px; border: 0; background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.switch-line, .sign-out { margin-top: 13px; font-size: .91rem; }
.switch-line { color: var(--muted); }
.account-email { overflow-wrap: anywhere; margin-top: 20px; font-weight: 650; }
.feedback { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.feedback:empty { display: none; }
.feedback.error { color: #942d25; }
@media (max-width: 740px) {
  .shell { width: min(calc(100% - 36px), 540px); }
  .header-inner { min-height: 64px; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
  .brand { font-size: 1.2rem; gap: 6px; }
  .brand img { width: 25px; }
  .development { padding-left: 12px; font-size: .75rem; }
  .mobile-shortcut { display: inline-flex; align-items: center; min-height: 40px; margin-left: auto; gap: 4px; font-size: .81rem; font-weight: 700; text-decoration: none; }
  .layout { grid-template-columns: 1fr; gap: 23px; padding-block: 31px; }
  h1 { font-size: clamp(2.55rem, 10vw, 3.8rem); }
  .summary { margin-block: 13px 18px; }
  .panel { padding: 23px; }
}
@media (max-width: 370px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; }
  .development { grid-column: 1; padding-left: 31px; border: 0; }
  .mobile-shortcut { grid-column: 2; grid-row: 1 / span 2; font-size: .75rem; }
}
