/* FFTEB login page: the same lit wall, parchment and brass as the game window.
   Loaded after the page's own rules; the form, its fields and its behaviour are untouched. */
:root {
  --paper-image:url('./rpg-parchment-20261009.jpg'); --brass:#8f7742; --brass-dark:#5f4d25; --ink:#30291d; --ink-soft:#574a34; --loss:#8a2c1e;
  --ffteb-field-bg:#fbf6e6; --ffteb-field-text:#2b2418; color-scheme:dark;
  --corner-tl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M.5 21.5V7Q.5.5 7 .5H21.5' fill='none' stroke='%238f7742'/%3E%3Cpath d='M6.5 3.6 9.4 6.5 6.5 9.4 3.6 6.5z' fill='%238f7742'/%3E%3C/svg%3E");
  --corner-tr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cg transform='rotate(90 11 11)'%3E%3Cpath d='M.5 21.5V7Q.5.5 7 .5H21.5' fill='none' stroke='%238f7742'/%3E%3Cpath d='M6.5 3.6 9.4 6.5 6.5 9.4 3.6 6.5z' fill='%238f7742'/%3E%3C/g%3E%3C/svg%3E");
  --corner-br:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cg transform='rotate(180 11 11)'%3E%3Cpath d='M.5 21.5V7Q.5.5 7 .5H21.5' fill='none' stroke='%238f7742'/%3E%3Cpath d='M6.5 3.6 9.4 6.5 6.5 9.4 3.6 6.5z' fill='%238f7742'/%3E%3C/g%3E%3C/svg%3E");
  --corner-bl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cg transform='rotate(270 11 11)'%3E%3Cpath d='M.5 21.5V7Q.5.5 7 .5H21.5' fill='none' stroke='%238f7742'/%3E%3Cpath d='M6.5 3.6 9.4 6.5 6.5 9.4 3.6 6.5z' fill='%238f7742'/%3E%3C/g%3E%3C/svg%3E");
}
html,body { min-width:0!important; }
html { background:#151813; scrollbar-color:#998668 #25251f; -webkit-tap-highlight-color:rgba(225,200,138,.22); }
body { min-height:100dvh; padding:clamp(14px,5vh,56px) 16px 36px; overflow-x:hidden; background:#20231f url('./hen1.gif') repeat; color:#efe5ce; isolation:isolate; }
::selection { background:#5b4826; color:#fff6dc; }
/* The wall: torchlight from both upper corners, darker toward the edges. The light changes a few times a second. */
@keyframes ff-login-flicker { 0% { opacity:.62; } 9% { opacity:.86; } 18% { opacity:.7; } 27% { opacity:.96; } 39% { opacity:.74; } 48% { opacity:.9; } 59% { opacity:.66; } 70% { opacity:.93; } 82% { opacity:.72; } 92% { opacity:.87; } 100% { opacity:.62; } }
body::before { content:''; position:fixed; inset:0; z-index:-2; pointer-events:none; background:radial-gradient(58% 72% at 8% -8%,rgba(255,176,92,.3),rgba(255,140,60,.08) 55%,transparent 72%),radial-gradient(58% 72% at 94% -10%,rgba(255,176,92,.24),rgba(255,140,60,.06) 55%,transparent 72%); animation:ff-login-flicker 5.3s steps(2,jump-none) infinite; }
body::after { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(120% 95% at 50% 36%,transparent 40%,rgba(6,7,6,.7) 100%); }
.ff-login { width:min(880px,100%)!important; background:transparent; }
.ff-hero { padding:6px 0 20px; border:0; background:transparent; }
.ff-title { padding:0 12px 8px; color:#f3e2b4; font-size:clamp(34px,7vw,58px); letter-spacing:.16em; text-indent:.16em; text-shadow:0 2px 0 #000,0 0 26px rgba(255,190,110,.28); }
.ff-subtitle { display:flex; align-items:center; justify-content:center; gap:14px; padding:0 12px; color:#d6c9a8; font-size:14px; letter-spacing:.18em; }
.ff-subtitle::before,.ff-subtitle::after { content:''; flex:0 1 96px; height:1px; background:linear-gradient(90deg,transparent,#8f7742); }
.ff-subtitle::after { background:linear-gradient(270deg,transparent,#8f7742); }
.ff-menu { display:flex; justify-content:center; margin-top:18px; border:0; }
.ff-menu a { min-width:220px; min-height:48px; padding:9px 22px 8px; border:1px solid rgba(226,205,150,.46)!important; background:#222621 linear-gradient(180deg,#2c302a,#181b17); color:#f3e2b4; box-shadow:inset 0 1px 0 rgba(255,244,214,.1),0 8px 18px -10px rgba(0,0,0,.8); transition:background-color 120ms,border-color 120ms; touch-action:manipulation; }
.ff-menu a:hover { border-color:#e1c88a!important; background:#3f3d2c linear-gradient(180deg,#4e4a36,#302e21); }
.ff-menu a:active { transform:translateY(1px); }
.ff-menu a span { color:#d6c9a8; }
.ff-grid { display:grid; grid-template-columns:minmax(0,440px); justify-content:center; margin-top:4px; }
/* The log-in sheet */
.ff-card { border:1px solid var(--brass-dark); color:var(--ink);
  background-color:#e9dfc5; background-image:var(--corner-tl),var(--corner-tr),var(--corner-br),var(--corner-bl),var(--paper-image);
  background-position:5px 5px,right 5px top 5px,right 5px bottom 5px,5px calc(100% - 5px),0 0; background-size:22px 22px,22px 22px,22px 22px,22px 22px,640px 640px;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat;
  box-shadow:inset 0 0 0 1px rgba(255,250,232,.6),inset 0 0 44px rgba(122,94,40,.17),0 3px 0 rgba(0,0,0,.3),0 22px 40px -16px rgba(0,0,0,.8); }
.ff-card h2 { margin:0 24px; padding:22px 0 11px; background:linear-gradient(90deg,var(--brass) 0,#b9a783 38%,rgba(185,167,131,0) 100%) left bottom/100% 1px no-repeat; color:var(--ink); font-size:20px; }
.ff-card h2::before { content:''; display:inline-block; width:8px; height:8px; margin:0 10px 2px 2px; transform:rotate(45deg); background:var(--brass); box-shadow:0 0 0 2px rgba(143,119,66,.22); vertical-align:middle; }
.ff-card-body { padding:14px 24px 26px; }
.ff-note { margin:0 0 12px; color:var(--ink-soft); font-size:14px; line-height:1.7; }
.ff-login form { width:100%; }
.ff-card label { margin-top:14px; color:var(--ink-soft); font-size:13px; letter-spacing:.04em; }
.ff-login input:not([type=hidden]) { height:auto; min-height:46px; margin-top:5px; padding:10px 12px; border:1px solid var(--brass); background:#fbf6e6; color:#2b2418; font-size:16px; line-height:1.4; box-shadow:inset 0 1px 3px rgba(60,45,15,.22); caret-color:#7a5a1e; transition:border-color 120ms; }
.ff-login input:not([type=hidden]):hover { border-color:var(--brass-dark); }
.ff-login :is(input,button,a):focus-visible { outline:3px solid #1f5b82; outline-offset:2px; }
.ff-hero a:focus-visible,.ff-footer a:focus-visible { outline-color:#f3d591; }
.ff-actions { margin-top:20px; }
.ff-actions button { width:100%; height:auto; min-height:48px; padding:10px 20px; border:1px solid #6d5628; background:#e2c97e linear-gradient(180deg,#f0db98,#d5b764); color:#27200f; font-size:16px; line-height:1.4; letter-spacing:.08em; box-shadow:inset 0 1px 0 rgba(255,252,236,.85),0 1px 0 rgba(40,30,8,.5),0 6px 12px -8px rgba(0,0,0,.6); transition:background-color 120ms,transform 60ms; touch-action:manipulation; }
.ff-actions button:hover { background:#ecd692 linear-gradient(180deg,#f8e7ae,#e0c577); }
.ff-actions button:active { transform:translateY(1px); box-shadow:inset 0 2px 4px rgba(60,45,15,.4); }
/* A refused log-in: said in words, marked with a sign, framed in the ink's red. */
.ff-login-error { display:flex; align-items:baseline; gap:10px; margin:0 0 12px; padding:10px 12px; border:1px solid #b9705f; border-left-width:1px; background:rgba(156,53,37,.09); color:var(--loss); font-size:14px; line-height:1.6; }
.ff-login-error::before { content:''; flex:none; width:8px; height:8px; transform:translateY(-1px) rotate(45deg); background:var(--loss); box-shadow:0 0 0 2px rgba(138,44,30,.2); }
/* Site facts: a dark pane under the sheet */
.ff-site-data { margin-top:26px; border:1px solid rgba(226,205,150,.36); background:rgba(19,23,25,.84); box-shadow:inset 0 1px 0 rgba(255,244,214,.14),0 14px 26px -16px rgba(0,0,0,.8); }
.ff-site-data h2 { padding:14px 18px 10px; background:none; color:#f3e2b4; font-size:16px; letter-spacing:.06em; }
.ff-site-data h2::before { content:''; display:inline-block; width:7px; height:7px; margin:0 10px 2px 2px; transform:rotate(45deg); background:#c9ad6b; vertical-align:middle; }
/* The facts start closed on every load. The whole heading row is the native toggle (click, Enter, Space) and says which way it goes. */
.ff-site-data > summary { padding-right:14px; background:none; color:#f3e2b4; transition:background-color 120ms; }
.ff-site-data > summary:hover { background:rgba(255,244,214,.05); }
.ff-site-data > summary:focus-visible { outline:3px solid #f3d591; outline-offset:-3px; }
.ff-site-data-toggle { min-height:32px; padding:3px 12px; border:1px solid rgba(226,205,150,.42); background:#222621 linear-gradient(180deg,#2c302a,#181b17); color:#e3d7b8; letter-spacing:.06em; box-shadow:inset 0 1px 0 rgba(255,244,214,.09); }
.ff-site-data > summary:hover .ff-site-data-toggle { border-color:#e1c88a; color:#fff3d2; }
.ff-stats { border-top:1px solid rgba(226,205,150,.2); font-variant-numeric:tabular-nums; }
.ff-stats div { border-color:rgba(226,205,150,.13); }
.ff-stats dt { background:transparent; color:#d6c9a8; }
.ff-stats dt,.ff-stats dd { padding:7px 12px; font-size:13px; line-height:1.5; }
.ff-stats dd { color:#f3ead6; }
.ff-footer { margin-top:14px; color:#cfc3a6; font-size:12px; }
.ff-footer a { color:#e4d8b8; text-underline-offset:3px; }
@media(max-width:720px) {
  body { padding:18px 10px 28px; }
  .ff-login { width:100%!important; }
  .ff-menu a { min-width:0; width:100%; }
  .ff-card h2 { margin:0 16px; padding-top:18px; }
  .ff-card-body { padding:12px 16px 22px; }
  .ff-stats { grid-template-columns:1fr; }
  .ff-subtitle { font-size:12px; letter-spacing:.1em; }
}
@media(prefers-reduced-motion:reduce) { body::before { animation:none; } .ff-menu a,.ff-actions button,.ff-login input,.ff-site-data > summary { transition:none; } }
