:root {
  color-scheme: dark;
  --bg: #090a0d; --surface: #111318; --surface-2: #171a20; --surface-3: #1e222a;
  --line: #292e37; --line-soft: #1c2027; --text: #f1eee8; --muted: #a4a6ad;
  --ivory: #e9dfcf; --red: #9f2030; --red-bright: #c83246; --red-dark: #57131e;
  --gold: #b99b68; --green: #57b886; --orange: #d4a24c; --blue: #6caee5;
  --radius: 18px; --shadow: 0 30px 80px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .55; z-index: -1; background: radial-gradient(circle at 75% 5%, rgba(123,20,34,.18), transparent 33%), radial-gradient(circle at 10% 45%, rgba(100,78,48,.07), transparent 28%), linear-gradient(rgba(255,255,255,.011) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.011) 1px, transparent 1px); background-size: auto, auto, 42px 42px, 42px 42px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 76px; padding: 10px max(24px, calc((100vw - 1280px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: rgba(9,10,13,.82); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; letter-spacing: .04em; }
.brand strong { font-family: Georgia, serif; font-size: 1.18rem; color: var(--ivory); }
.brand small { margin-top: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; }
.site-header nav { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.site-header nav > a:not(.button), .link-button { color: var(--muted); transition: color .2s; }
.site-header nav > a.active, .site-header nav > a:hover, .link-button:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; }
.link-button { border: 0; padding: 0; background: none; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--ivory); }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 24px; border: 1px solid #c43b4e; border-radius: 11px; background: linear-gradient(135deg, var(--red-bright), #8c1829); color: white; font-weight: 750; letter-spacing: .015em; white-space: nowrap; box-shadow: 0 12px 32px rgba(131,20,37,.25); cursor: pointer; transition: transform .18s, filter .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button.compact { min-height: 40px; padding-inline: 18px; font-size: .88rem; }
.button.secondary { background: var(--surface-3); border-color: var(--line); box-shadow: none; color: var(--ivory); }
.button.discord { width: 100%; background: #5865f2; border-color: #7c85f5; box-shadow: 0 12px 32px rgba(88,101,242,.18); }
.eyebrow { display: block; color: #d05263; text-transform: uppercase; letter-spacing: .2em; font-weight: 800; font-size: .72rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--ivory); line-height: 1.1; }
.hero { min-height: calc(100vh - 76px); max-width: 1320px; margin: auto; padding: 70px 60px 90px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; overflow: hidden; }
.hero h1 { max-width: 780px; margin: 20px 0 26px; font-size: clamp(3.4rem, 7vw, 7.7rem); letter-spacing: -.055em; }
.hero h1 em { color: var(--red-bright); font-style: normal; text-shadow: 0 0 55px rgba(168,25,45,.24); }
.hero-copy > p { max-width: 620px; color: #b5b6ba; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.subtle { max-width: 210px; color: #7f8289; font-size: .84rem; }
.hero-mark { position: relative; display: grid; place-items: center; min-height: 540px; }
.hero-mark img { position: relative; width: min(100%, 600px); filter: drop-shadow(0 30px 65px rgba(0,0,0,.7)); animation: mark-in .8s ease-out both; }
.hero-mark .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(137,21,38,.21); filter: blur(70px); }
@keyframes mark-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-bottom: 90px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.feature-grid article { padding: 38px; background: var(--surface); }
.feature-grid article > span { color: var(--red-bright); font-weight: 800; font-size: .76rem; letter-spacing: .14em; }
.feature-grid h2 { margin: 13px 0 12px; font-size: 1.5rem; }
.feature-grid p { margin: 0; color: var(--muted); }
.site-footer { width: min(1280px, calc(100% - 40px)); margin: 40px auto 0; padding: 28px 0 40px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; color: #71747b; font-size: .82rem; }
.auth-shell { min-height: calc(100vh - 150px); padding: 70px 20px; display: grid; place-items: center; }
.auth-card { width: min(480px, 100%); padding: 42px; text-align: center; background: linear-gradient(145deg, rgba(26,29,35,.96), rgba(14,16,20,.98)); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-logo { width: 150px; height: 150px; object-fit: contain; margin-bottom: 24px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.auth-card h1 { margin: 12px 0 18px; font-size: 2.5rem; }
.auth-card > p { color: var(--muted); }
.auth-card .button { margin: 18px 0 8px; }
.fine-print { margin: 18px 0 0; font-size: .78rem; color: #777b83 !important; }
.page-head { padding: 58px 0 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-head h1 { margin: 11px 0 8px; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); }
.status, .role-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .78rem; font-weight: 750; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7b7f88; }
.status.pending { color: #9bc8ec; border-color: rgba(108,174,229,.3); }.status.pending::before { background: var(--blue); }
.status.success { color: #91d9b2; border-color: rgba(87,184,134,.3); }.status.success::before { background: var(--green); }
.status.warning { color: #e3be7d; border-color: rgba(212,162,76,.3); }.status.warning::before { background: var(--orange); }
.status.danger { color: #eb8d96; border-color: rgba(215,72,72,.3); }.status.danger::before { background: #d74848; }
.application-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 34px; align-items: start; }
.section-nav { position: sticky; top: 104px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,19,24,.82); backdrop-filter: blur(12px); scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav > strong { display: block; margin: 2px 8px 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.section-nav a { display: flex; gap: 11px; padding: 9px 8px; color: #b7b9bf; border-radius: 8px; font-size: .9rem; }
.section-nav a:hover { background: var(--surface-3); color: white; }
.section-nav a span { color: var(--red-bright); font-size: .7rem; font-weight: 800; }
.save-state { margin: 16px 8px 2px; padding-top: 14px; border-top: 1px solid var(--line); color: #858991; font-size: .76rem; }
.form-sections { display: grid; gap: 22px; }
.form-card { padding: 34px; background: linear-gradient(145deg, rgba(21,24,29,.97), rgba(15,17,21,.97)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 15px 45px rgba(0,0,0,.15); }
.form-card > header { display: flex; gap: 18px; padding-bottom: 25px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-card > header > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #68202b; border-radius: 9px; color: #de6575; background: #241217; font-size: .75rem; font-weight: 800; }
.form-card h2 { margin: 0 0 7px; font-size: 1.55rem; }
.form-card header p { margin: 0; color: var(--muted); font-size: .9rem; }
.fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.field { display: grid; align-content: start; gap: 7px; }
.field.wide { grid-column: 1/-1; }
.field > span { color: #ded9d1; font-weight: 700; font-size: .9rem; }
.field b { color: var(--red-bright); }
.field small { color: #888b92; font-size: .78rem; }
input[type="text"], input:not([type]), textarea { width: 100%; padding: 13px 14px; color: var(--text); background: #0d0f13; border: 1px solid #30343d; border-radius: 9px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { border-color: #a82c3e; box-shadow: 0 0 0 3px rgba(168,44,62,.13); }
input:disabled, textarea:disabled { color: #c4c2be; opacity: 1; border-color: #242830; background: #111318; }
.prompts { margin: 2px 0 8px; padding: 14px 18px 14px 34px; color: #96999f; background: #101217; border-left: 2px solid #76202d; border-radius: 0 8px 8px 0; font-size: .84rem; }
.prompts li + li { margin-top: 4px; }
.submit-bar { position: sticky; bottom: 18px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 20px; border: 1px solid #3b3032; border-radius: 14px; background: rgba(20,18,21,.92); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.submit-bar div { display: flex; flex-direction: column; }.submit-bar span { color: var(--muted); font-size: .82rem; }
.character-preview { display: block; max-width: 320px; max-height: 360px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); }
.upload-note { color: var(--muted); font-size: .85rem; }
.image-upload { margin-top: 18px; padding-left: 264px; display: flex; gap: 16px; align-items: center; }
.image-upload input[type="file"] { flex: 1; padding: 12px; color: var(--muted); border: 1px dashed #383d47; border-radius: 10px; background: #101217; }
.notice { margin-bottom: 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.notice p { margin: 5px 0 0; color: var(--muted); white-space: pre-wrap; }
.warning-card { border-color: rgba(212,162,76,.35) !important; background: rgba(78,55,19,.18) !important; }
.danger-card { border-color: rgba(215,72,72,.35) !important; background: rgba(85,24,29,.18) !important; }
.success-card { border-color: rgba(87,184,134,.35) !important; background: rgba(25,78,51,.17) !important; }
.message-page { min-height: 55vh; display: grid; place-items: center; padding: 70px 0; }.compact-page { min-height: auto; padding: 0 0 36px; }
.message-card { width: min(650px,100%); padding: 38px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.message-card h1, .message-card h2 { margin: 16px 0 12px; }.message-card p { color: var(--muted); white-space: pre-wrap; }
.filter-bar { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 22px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.filter-bar a.active { background: #2b151a; color: #e9a5ae; border-color: #6c2631; }
.admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; min-height: 45vh; }
.application-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: transform .2s, border-color .2s, background .2s; }
.application-card:hover { transform: translateY(-2px); border-color: #573039; background: #16191f; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.card-top time { color: #73767e; font-size: .75rem; }
.application-card h2 { margin: 22px 0 7px; font-size: 1.45rem; }.application-card > p { color: var(--muted); }
.player { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }.player img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }.player span { display: flex; flex-direction: column; }.player small { color: #71747c; font-size: .7rem; }
.empty-state { grid-column: 1/-1; padding: 70px; text-align: center; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); }
.admin-detail { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 28px; align-items: start; }
.character-sheet { display: grid; gap: 22px; }.character-sheet > section { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.character-sheet h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.answer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }.answer.wide { grid-column: 1/-1; }.answer h3 { margin: 0 0 6px; color: #92959c; font: 700 .74rem/1.3 Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; }.answer p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-portrait { max-width: 380px; max-height: 500px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sticky-panel { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.sticky-panel h2 { font-size: 1.4rem; }.sticky-panel form { display: grid; gap: 10px; }.sticky-panel .button { width: 100%; }.success-button { background: #246b48; border-color: #438e68; }.warning-button { background: #72501d; border-color: #a77b36; }.danger-button { background: #762634; border-color: #a63b4b; }
.decision-summary p { white-space: pre-wrap; color: var(--muted); }.decision-summary small { color: #777b82; }.archive { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }.archive summary { color: #777b82; cursor: pointer; font-size: .8rem; }.archive input { width: 100%; margin-top: 10px; }.danger-text { color: #d96e79; }
.back-link { color: #b56a74; font-size: .82rem; }.role-badge { color: var(--gold); border-color: #554a37; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 65px 30px; text-align: center; }.hero-copy > p { margin-inline: auto; }.hero-actions { justify-content: center; }.hero-mark { min-height: 380px; order: -1; }.hero-mark img { width: 380px; }.hero h1 { font-size: clamp(3.3rem,12vw,6rem); }
  .application-layout { grid-template-columns: 1fr; }.section-nav { position: static; display: flex; overflow-x: auto; gap: 5px; }.section-nav > strong,.save-state { display: none; }.section-nav a { white-space: nowrap; }
  .image-upload { padding-left: 0; }.admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.admin-detail { grid-template-columns: 1fr; }.sticky-panel { position: static; }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 24px,1180px); }.site-header { padding-inline: 10px; gap: 8px; }.brand { gap: 7px; }.brand img { width: 44px; height: 44px; }.brand strong { font-size: 1rem; }.brand small,.site-header nav > a:not(.button),.user-chip span { display: none; }.site-header nav { gap: 7px; }.site-header .button.compact { min-height: 38px; padding-inline: 9px; font-size: .7rem; }.user-chip { padding-left: 0; border: 0; }
  .hero { padding: 35px 18px 65px; }.hero-mark { min-height: 280px; }.hero-mark img { width: 270px; }.hero-actions { flex-direction: column; }.subtle { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }.feature-grid article { padding: 28px; }.page-head { padding-top: 40px; align-items: start; flex-direction: column; }
  .form-card { padding: 22px 17px; }.fields-grid,.answer-grid { grid-template-columns: 1fr; }.submit-bar { position: static; align-items: stretch; flex-direction: column; }.submit-bar .button { width: 100%; }
  .image-upload { align-items: stretch; flex-direction: column; }.admin-grid { grid-template-columns: 1fr; }.auth-card { padding: 32px 22px; }.site-footer { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
