@font-face {
      font-family: 'RPG Serif';
      src: url('/site/assets/NotoSerif-Medium.ttf') format('truetype');
      font-weight: 500;
      font-display: swap;
    }
    :root {
      color-scheme: dark;
      --ink: #19130f;
      --gold: #e2b66e;
      --text: #f2e2ca;
      --muted: #b8a28a;
      --line: #8b673c;
      --button: #4c351c;
      font: 16px/1.5 'Segoe UI', sans-serif;
    }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--ink); color: var(--text); }
    .page { min-height: 100svh; position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; }
    .landscape {
      position: absolute; inset: 0 0 0 24%; z-index: -1;
      background: linear-gradient(90deg, var(--ink) 0%, rgba(25,19,15,.97) 10%, rgba(25,19,15,.76) 29%, rgba(25,19,15,.16) 65%, rgba(25,19,15,.12) 100%),
        linear-gradient(0deg, var(--ink) 0%, rgba(25,19,15,.04) 26%, rgba(25,19,15,.03) 80%, rgba(25,19,15,.36) 100%),
        url('/site/assets/forest.png') center center / cover no-repeat;
    }
    main { display: flex; align-items: center; padding: clamp(28px, 8.4vw, 132px); }
    .entry { width: min(100%, 440px); padding-block: 24px; }
    .brand { color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .16em; margin: 0 0 19px; }
    h1 { font-family: 'RPG Serif', Georgia, serif; font-size: clamp(2.4rem, 4.1vw, 3.5rem); font-weight: 500; line-height: 1.11; letter-spacing: -.035em; color: var(--text); margin: 0; }
    .lead { color: var(--muted); font-size: 1.03rem; margin: 21px 0 36px; max-width: 34ch; }
    form { display: grid; gap: 11px; }
    label { color: var(--gold); font-size: .92rem; font-weight: 600; }
    input, button { width: 100%; min-height: 52px; border-radius: 0; font: inherit; }
    input { border: 1px solid var(--line); color: var(--text); background: #17110f; padding: 12px 15px; letter-spacing: .025em; }
    input::placeholder { letter-spacing: 0; color: #9b866e; }
    input:focus-visible, button:focus-visible { outline: 2px solid #f0c881; outline-offset: 3px; }
    button { cursor: pointer; background: var(--button); border: 1px solid #d3a966; color: #f1cd91; font-weight: 650; transition: background .15s ease, color .15s ease; }
    button:hover { background: #664922; color: #fff2d7; }
    button:active { background: #392612; }
    .message { margin: 0; font-size: .86rem; color: #ddc297; min-height: 1.35em; }
    .message[data-state="invalid"] { color: #f0a99a; }
    .message[data-state="valid"] { color: #b6ca91; }
    input[aria-invalid="true"] { border-color: #ca8270; }
    .platform { color: var(--muted); font-size: .82rem; margin: 18px 0 0; }
    footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 22px clamp(28px, 8.4vw, 132px) 27px; color: var(--muted); font-size: .78rem; }
    .server { display: inline-flex; align-items: center; gap: 8px; }
    .server::before { content: ''; inline-size: 7px; block-size: 7px; border-radius: 50%; background: #a8bb7b; }
    @media (max-width: 650px) {
      .page { min-height: 100svh; }
      .landscape { inset: 0; background:
        linear-gradient(180deg, rgba(25,19,15,.1) 0%, rgba(25,19,15,.28) 19%, rgba(25,19,15,.88) 41%, var(--ink) 71%),
        url('/site/assets/forest.png') 59% top / auto 61% no-repeat; }
      main { align-items: flex-start; padding: max(170px, 25svh) 26px 25px; }
      .entry { padding: 0; }
      .brand { margin-bottom: 14px; }
      h1 { font-size: clamp(2.15rem, 10vw, 2.8rem); }
      .lead { margin: 17px 0 26px; }
      footer { padding: 13px 26px 22px; gap: 9px 18px; }
    }
    @media (prefers-reduced-motion: reduce) { button { transition: none; } }
    button:disabled { cursor: wait; opacity: .75; }
    .message { min-height: 2.7em; }
    .message[data-state='error'] { color: #e7bc8e; }
    .server[data-state='unknown']::before { background: #aa967e; }
    .server[data-state='maintenance']::before { background: #e2b66e; }
    .server[data-state='offline']::before { background: #ce8a76; }
