:root {
  --black: #050506;
  --black-2: #0a0a0c;
  --black-3: #111116;
  --paper: #e7e3dc;
  --muted: #aaa6a0;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.2);
  --red: #9d0d18;
  --red-bright: #e01626;
  --shadow: 0 24px 80px rgba(0,0,0,.5);
  --serif: "Cormorant Garamond", Georgia, serif;
  --type: "Special Elite", "Courier New", monospace;
  --gothic: "UnifrakturCook", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; color: var(--paper); background: var(--black); font-family: var(--type); cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 28C8 17 14 8 25 3c-4 5-7 10-8 15 3-2 6-3 9-3-6 4-11 8-16 14Z' fill='%23e7e3dc' stroke='%23050506' stroke-width='1.5'/%3E%3Cpath d='M13 22c4-8 8-13 12-17' stroke='%239d0d18' stroke-width='1'/%3E%3C/svg%3E") 5 27, auto; overflow-x: hidden; }
a, button, input, select { font: inherit; }
a, button { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 28C8 17 14 8 25 3c-4 5-7 10-8 15 3-2 6-3 9-3-6 4-11 8-16 14Z' fill='%23ffffff' stroke='%239d0d18' stroke-width='1.5'/%3E%3C/svg%3E") 5 27, pointer; }
button { color: inherit; }
::selection { background: var(--red); color: white; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2b2b2e; border: 2px solid var(--black); }

.intro { position: fixed; inset: 0; z-index: 9999; background: #000; overflow: hidden; transition: opacity .8s ease, visibility .8s ease; }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-video { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.12) saturate(.65) brightness(.75); }
.intro-grain, .ink-noise { position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
.intro-vignette { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 25%, rgba(0,0,0,.72) 100%), linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45)); }
.intro-brand { position: absolute; left: clamp(22px, 5vw, 80px); bottom: clamp(45px, 9vh, 110px); display: flex; align-items: center; gap: 16px; text-shadow: 0 2px 20px #000; }
.intro-brand img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; filter: grayscale(1) contrast(1.2); border: 1px solid rgba(255,255,255,.45); }
.intro-brand div { display: grid; }
.intro-brand span { font-size: 10px; letter-spacing: .32em; color: #c9c5bf; }
.intro-brand strong { font-family: var(--gothic); font-size: 38px; line-height: 1; letter-spacing: .03em; }
.skip-intro { position: absolute; top: 26px; right: 28px; border: 1px solid rgba(255,255,255,.32); background: rgba(0,0,0,.45); backdrop-filter: blur(12px); padding: 10px 15px; border-radius: 999px; font-size: 11px; }
.intro-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.16); }
.intro-progress i { display: block; width: 0; height: 100%; background: #fff; transition: width .1s linear; }

.site-shell { position: relative; min-height: 100vh; isolation: isolate; background:
  radial-gradient(circle at 80% 12%, rgba(157,13,24,.12), transparent 25%),
  radial-gradient(circle at 20% 46%, rgba(255,255,255,.035), transparent 25%),
  linear-gradient(180deg, #060607 0%, #09090b 40%, #050506 100%); }
.ink-noise { position: fixed; z-index: -1; opacity: .07; }
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(90px); opacity: .15; pointer-events: none; }
.ambient-one { width: 32vw; height: 32vw; background: #580009; right: -12vw; top: 18vh; animation: drift 14s ease-in-out infinite alternate; }
.ambient-two { width: 20vw; height: 20vw; background: #555; left: -10vw; top: 60vh; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(5vw,-3vh,0) scale(1.12); } }

.topbar { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 84px; padding: 14px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(5,5,6,.86), rgba(5,5,6,.1)); backdrop-filter: blur(10px); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-image { width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(255,255,255,.025); }
.brand-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .25s ease, transform .25s ease; }
.brand:hover img { filter: grayscale(.25) contrast(1.05); transform: scale(1.06); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy b { font-family: var(--gothic); font-size: 25px; letter-spacing: .06em; line-height: 1; }
.brand-copy small { font-size: 8px; letter-spacing: .22em; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.account-pill { border: 1px solid var(--line); background: rgba(10,10,12,.54); padding: 10px 14px; border-radius: 999px; font-size: 10px; letter-spacing: .08em; transition: .25s; }
.account-pill:hover { border-color: var(--paper); }
.menu-button { width: 46px; height: 46px; border: 1px solid var(--line); background: #0b0b0d; border-radius: 50%; display: grid; place-content: center; gap: 5px; box-shadow: var(--shadow); }
.menu-button i { display: block; width: 18px; height: 1px; background: var(--paper); transition: .25s; }
.menu-button i:nth-child(2) { width: 13px; justify-self: end; }
.menu-button:hover i:nth-child(2) { width: 18px; }

.drawer { position: fixed; z-index: 1001; top: 0; right: 0; width: min(440px, 92vw); height: 100dvh; background: rgba(7,7,8,.96); border-left: 1px solid var(--line); backdrop-filter: blur(24px); transform: translateX(105%); transition: transform .42s cubic-bezier(.7,0,.2,1); padding: 28px; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.drawer-head div { display: grid; }
.drawer-head small { letter-spacing: .28em; color: var(--muted); font-size: 9px; }
.drawer-head strong { font-family: var(--gothic); font-size: 38px; }
.drawer-head button { background: none; border: 0; font-family: var(--serif); font-size: 42px; line-height: .8; }
.drawer nav { padding: 34px 0; display: grid; }
.drawer nav a, .drawer nav button { width: 100%; color: var(--paper); text-decoration: none; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 17px 2px; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 6vw, 36px); transition: .2s; }
.drawer nav a span, .drawer nav button span { font-family: var(--type); display: inline-block; width: 42px; font-size: 9px; color: var(--red-bright); vertical-align: middle; }
.drawer nav a:hover, .drawer nav button:hover { padding-left: 8px; color: white; }
.drawer-bottom { margin-top: auto; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; color: var(--muted); font-size: 10px; }
.drawer-bottom p { max-width: 210px; margin: 0; line-height: 1.5; }
.drawer-bottom a { color: white; text-decoration: none; }
.drawer-backdrop { position: fixed; z-index: 1000; inset: 0; border: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .3s; }
.drawer-backdrop.show { opacity: 1; visibility: visible; }

.section-pad { padding-left: clamp(20px, 6vw, 96px); padding-right: clamp(20px, 6vw, 96px); }
.hero { min-height: 100svh; position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr); align-items: center; gap: clamp(40px, 8vw, 120px); padding-top: 130px; padding-bottom: 90px; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #b8b4ae; font-size: 10px; letter-spacing: .22em; }
.eyebrow span { width: 42px; height: 1px; background: var(--red-bright); }
.hero h1 { margin: 16px 0 20px; font-family: var(--gothic); font-weight: 700; font-size: clamp(92px, 16vw, 210px); letter-spacing: -.05em; line-height: .74; text-shadow: 0 0 60px rgba(255,255,255,.05); position: relative; }
.hero h1 span { color: #f0ede8; text-shadow: 5px 3px 0 rgba(157,13,24,.36); }
.hero h1::after { content: "KIRA?"; position: absolute; left: 54%; top: -5%; font-family: var(--type); color: var(--red-bright); font-size: 11px; letter-spacing: .2em; transform: rotate(-8deg); }
.hero-copy > p { max-width: 580px; color: #bbb7b0; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.45; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.primary-btn, .ghost-btn { min-height: 48px; padding: 0 19px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; text-decoration: none; font-size: 11px; letter-spacing: .06em; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s; }
.primary-btn { color: #0a0a0b; background: #e7e3dc; }
.primary-btn:hover { transform: translateY(-2px); background: #fff; }
.primary-btn b { color: var(--red); }
.ghost-btn { color: var(--paper); background: transparent; border-color: var(--line-strong); }
.ghost-btn:hover { border-color: var(--paper); transform: translateY(-2px); }
.full { width: 100%; }
.hero-meta { margin-top: 46px; display: flex; border-top: 1px solid var(--line); max-width: 590px; }
.hero-meta div { padding: 16px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); display: grid; gap: 3px; }
.hero-meta div:last-child { border-right: 0; }
.hero-meta b { font-family: var(--serif); font-size: 22px; }
.hero-meta span { font-size: 8px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.note-card { position: relative; z-index: 4; justify-self: end; width: min(410px, 100%); min-height: 500px; background: linear-gradient(135deg, rgba(232,228,220,.97), rgba(191,186,178,.93)); color: #111; padding: 54px 40px 36px; transform: rotate(2deg); box-shadow: 30px 40px 90px rgba(0,0,0,.55); clip-path: polygon(0 0, 100% 0, 100% 92%, 93% 100%, 0 100%); }
.note-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(0,0,0,.18); pointer-events: none; }
.note-pin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0a0a0b; color: white; font-family: var(--gothic); font-size: 27px; }
.note-number { margin-top: 65px; font-size: 9px; letter-spacing: .25em; color: #5c5a57; }
.note-card h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1; margin: 14px 0 20px; }
.note-card > p:not(.note-number) { font-family: var(--type); font-size: 12px; line-height: 1.7; color: #484541; }
.scratch-line { height: 30px; margin: 26px 0; background: repeating-linear-gradient(-6deg, transparent 0 4px, rgba(0,0,0,.5) 5px 6px, transparent 7px 11px); opacity: .55; }
.note-card small { font-size: 9px; letter-spacing: .14em; }
.duel-scene { position: absolute; z-index: 1; right: -3vw; bottom: -2vh; width: min(63vw, 900px); opacity: .17; filter: blur(.2px); pointer-events: none; }
.duel-scene svg { width: 100%; overflow: visible; }
.duel-scene path, .duel-scene circle { fill: #e7e3dc; }
.duel-scene .hair, .duel-scene .spikes, .duel-scene .wing { fill: #111; stroke: #e7e3dc; stroke-width: 4; }
.duel-scene .notebook { fill: #050506; stroke: #d4d0c9; stroke-width: 3; transform-origin: center; animation: notebookPulse 4s ease-in-out infinite; }
.duel-scene .ryuk-figure { animation: ryukFloat 6s ease-in-out infinite; transform-origin: center; }
.duel-scene .light-figure { animation: lightShift 7s ease-in-out infinite; transform-origin: center; }
.duel-scene .ryuk-eye { fill: #ff1729; animation: eyes 2.3s ease-in-out infinite alternate; }
.duel-scene .smile { fill: #050506; }
.duel-label { position: absolute; font-size: 9px; letter-spacing: .5em; color: var(--red-bright); }
.light-label { left: 30%; bottom: 12%; transform: rotate(-9deg); }
.ryuk-label { right: 5%; top: 18%; transform: rotate(10deg); }
@keyframes ryukFloat { 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes lightShift { 50% { transform: translate(-8px,4px) rotate(-.6deg); } }
@keyframes notebookPulse { 50% { transform: rotate(2deg) scale(1.02); } }
@keyframes eyes { to { filter: drop-shadow(0 0 12px #ff001d); } }
.scroll-mark { position: absolute; z-index: 5; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 8px; letter-spacing: .24em; }
.scroll-mark i { width: 1px; height: 34px; background: linear-gradient(var(--paper), transparent); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 50% { transform: scaleY(.5); transform-origin: bottom; } }

.live-section, .management-section, .members-section { position: relative; padding-top: 120px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.section-title { max-width: 760px; margin-bottom: 52px; }
.section-title small { color: var(--red-bright); letter-spacing: .24em; font-size: 9px; }
.section-title h2 { margin: 10px 0 10px; font-family: var(--serif); font-size: clamp(48px, 8vw, 96px); line-height: .88; font-weight: 500; }
.section-title h2 em { font-family: var(--gothic); font-style: normal; color: #aaa7a1; }
.section-title p { color: var(--muted); font-family: var(--serif); font-size: 18px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .55fr); gap: 18px; align-items: stretch; }
.player-frame { min-height: 530px; border: 1px solid var(--line); background: #030304; box-shadow: var(--shadow); position: relative; }
.frame-top { height: 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.live-chip { display: flex; align-items: center; gap: 8px; }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: #666; box-shadow: 0 0 0 4px rgba(255,255,255,.03); }
.live-chip.live i { background: var(--red-bright); box-shadow: 0 0 14px rgba(224,22,38,.9); }
.twitch-embed { height: calc(100% - 46px); min-height: 484px; }
.twitch-embed iframe { width: 100%; height: 100%; min-height: 484px; border: 0; display: block; }
.embed-placeholder { min-height: 484px; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.loader-ring { width: 35px; height: 35px; border: 1px solid #444; border-top-color: #ddd; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stream-info { border: 1px solid var(--line); padding: 30px; background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); display: flex; flex-direction: column; }
.tiny-label { color: var(--red-bright); font-size: 8px; letter-spacing: .24em; }
.stream-info img { width: 92px; height: 92px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line-strong); margin: 36px 0 20px; filter: grayscale(.9) contrast(1.12); }
.stream-info h3 { font-family: var(--serif); font-size: 38px; margin: 0; }
.stream-info > p { color: var(--muted); line-height: 1.55; font-size: 11px; min-height: 72px; }
.stream-data { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 13px 0; font-size: 10px; }
.stream-data span { color: #777; font-size: 8px; letter-spacing: .14em; }
.stream-info .primary-btn { margin-top: auto; }

.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person-card { min-height: 330px; border: 1px solid var(--line); background: #0b0b0d; padding: 24px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.person-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.28); }
.person-card::after { content: attr(data-letter); position: absolute; right: -8px; bottom: -48px; font-family: var(--gothic); font-size: 210px; color: rgba(255,255,255,.025); }
.person-card .avatar { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: #151518; font-family: var(--gothic); font-size: 44px; }
.person-card small { display: block; margin-top: 64px; color: var(--red-bright); font-size: 8px; letter-spacing: .2em; }
.person-card h3 { font-family: var(--serif); font-size: 36px; margin: 7px 0 2px; }
.person-card p { margin: 0; color: var(--muted); font-size: 10px; }
.role-badge { display: inline-flex; margin-top: 16px; padding: 6px 9px; border: 1px solid var(--line); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.role-badge.princesse { border-color: rgba(224,22,38,.5); color: #ff4654; }
.role-badge.manager { border-color: rgba(255,255,255,.28); color: #d7d4ce; }
.empty-card { grid-column: 1 / -1; border: 1px dashed var(--line-strong); padding: 42px; color: var(--muted); text-align: center; font-family: var(--serif); font-size: 20px; }

.members-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.search-box { height: 46px; width: min(420px, 100%); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 14px; background: rgba(255,255,255,.02); }
.search-box span { color: var(--muted); font-size: 18px; }
.search-box input { width: 100%; color: var(--paper); background: transparent; border: 0; outline: 0; font-size: 11px; }
.members-toolbar > span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.members-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.member-row { min-height: 152px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.012); transition: background .2s; }
.member-row:hover { background: rgba(255,255,255,.035); }
.member-row .initial { font-family: var(--gothic); font-size: 33px; color: #777; }
.member-row h4 { margin: 16px 0 2px; font-family: var(--serif); font-size: 24px; }
.member-row p { margin: 0; color: #777; font-size: 9px; }
.member-role { color: var(--red-bright); font-size: 8px; letter-spacing: .15em; }

.closing { min-height: 58vh; border-top: 1px solid var(--line); display: grid; place-items: center; align-content: center; text-align: center; gap: 16px; position: relative; overflow: hidden; }
.closing-mark { position: absolute; font-family: var(--gothic); font-size: min(45vw, 600px); color: rgba(255,255,255,.018); line-height: 1; }
.closing p { position: relative; margin: 0; letter-spacing: .28em; font-size: clamp(10px, 1.4vw, 15px); }
.closing a { position: relative; color: var(--muted); font-size: 9px; }
footer { min-height: 90px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(20px, 6vw, 96px); gap: 20px; color: #76736e; font-size: 8px; letter-spacing: .12em; }
footer a { color: #aaa6a0; text-decoration: none; }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.7); color: var(--paper); backdrop-filter: blur(14px); }
.modal::backdrop { background: rgba(0,0,0,.2); }
.modal[open] { display: grid; place-items: center; animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; } }
.modal-card { width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line-strong); background: #0b0b0d; box-shadow: 0 40px 120px #000; position: relative; padding: 38px; }
.modal-close { position: absolute; right: 18px; top: 15px; border: 0; background: none; font-family: var(--serif); font-size: 38px; line-height: 1; }
.auth-card h2, .admin-heading h2 { font-family: var(--serif); font-size: 42px; margin: 10px 0 26px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.auth-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; color: #777; background: transparent; padding: 12px; font-size: 10px; }
.auth-tabs button.active { color: white; border-bottom-color: var(--red-bright); }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; color: #999; font-size: 9px; letter-spacing: .1em; }
.auth-form input { width: 100%; border: 1px solid var(--line); background: #080809; color: white; outline: none; height: 46px; padding: 0 13px; }
.auth-form input:focus { border-color: #555; }
.auth-form small { color: #74716d; line-height: 1.5; }
.form-message { min-height: 18px; margin: 16px 0 0; color: #ff6b75; font-size: 10px; }
.hidden { display: none !important; }
.profile-badge { margin: 26px auto 14px; width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: #121215; font-family: var(--gothic); font-size: 56px; }
#authLoggedIn { text-align: center; }
#authLoggedIn h2 { margin-bottom: 2px; }
#profileUsername { color: #777; font-size: 10px; }
.danger-ghost { margin-top: 30px; width: 100%; min-height: 46px; border: 1px solid rgba(224,22,38,.3); background: rgba(157,13,24,.06); color: #ff6671; }

.admin-modal .modal-card { width: min(980px, calc(100vw - 32px)); }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--line); }
.admin-heading span { margin-bottom: 28px; color: var(--red-bright); font-size: 9px; letter-spacing: .14em; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 22px 0; border: 1px solid var(--line); }
.admin-stats div { background: #0b0b0d; padding: 17px; display: grid; gap: 7px; }
.admin-stats span { color: #777; font-size: 8px; letter-spacing: .13em; }
.admin-stats b { font-family: var(--serif); font-size: 28px; }
.admin-search { width: 100%; margin-bottom: 16px; }
.admin-users { display: grid; gap: 8px; }
.admin-user { border: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: minmax(170px, 1fr) 150px 110px 110px 42px; gap: 10px; align-items: center; }
.admin-user .who { min-width: 0; }
.admin-user .who b { display: block; font-family: var(--serif); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user .who span { color: #777; font-size: 8px; }
.admin-user select { height: 38px; padding: 0 9px; background: #070708; color: var(--paper); border: 1px solid var(--line); outline: 0; font-size: 9px; }
.toggle { display: flex; gap: 7px; align-items: center; font-size: 8px; color: #a6a29c; }
.toggle input { appearance: none; width: 28px; height: 16px; border-radius: 99px; border: 1px solid #444; background: #171719; position: relative; }
.toggle input::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #666; top: 2px; left: 2px; transition: .2s; }
.toggle input:checked { border-color: #7d1119; background: #3b090e; }
.toggle input:checked::after { left: 14px; background: #ff4855; }
.delete-user { width: 38px; height: 38px; border: 1px solid rgba(224,22,38,.22); background: rgba(157,13,24,.06); color: #b54a52; }
.delete-user:hover { color: #ff4f5d; }
.toast { position: fixed; z-index: 12000; left: 50%; bottom: 25px; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; background: #e8e4dd; color: #080809; border: 1px solid white; padding: 12px 16px; box-shadow: var(--shadow); font-size: 10px; transition: .25s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.feathers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .2; }
.feathers i { position: absolute; width: 26px; height: 8px; border-radius: 90% 0 90% 0; background: #aaa; transform: rotate(-35deg); animation: featherFall 14s linear infinite; }
.feathers i::after { content: ""; position: absolute; width: 1px; height: 20px; background: #aaa; left: 12px; top: -6px; transform: rotate(70deg); transform-origin: bottom; }
.feathers i:nth-child(1){left:8%;animation-delay:-3s;animation-duration:17s}.feathers i:nth-child(2){left:24%;animation-delay:-11s;animation-duration:20s}.feathers i:nth-child(3){left:48%;animation-delay:-6s;animation-duration:15s}.feathers i:nth-child(4){left:66%;animation-delay:-13s;animation-duration:22s}.feathers i:nth-child(5){left:82%;animation-delay:-8s;animation-duration:18s}.feathers i:nth-child(6){left:93%;animation-delay:-2s;animation-duration:24s}
@keyframes featherFall { from { top:-10vh; transform:translateX(0) rotate(-35deg); } 50% { transform:translateX(80px) rotate(100deg); } to { top:110vh; transform:translateX(-30px) rotate(210deg); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: .14s; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; align-content: center; }
  .note-card { display: none; }
  .duel-scene { width: 90vw; right: -24vw; opacity: .11; }
  .live-grid { grid-template-columns: 1fr; }
  .stream-info { min-height: 390px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-user { grid-template-columns: minmax(150px, 1fr) 140px 100px 100px 42px; }
}
@media (max-width: 720px) {
  .topbar { height: 72px; padding: 12px 16px; }
  .brand-copy small, .account-pill { display: none; }
  .hero { padding-top: 105px; padding-bottom: 75px; min-height: 92svh; }
  .hero h1 { font-size: clamp(90px, 29vw, 150px); }
  .hero-meta { margin-top: 32px; }
  .hero-meta div { margin-right: 16px; padding-right: 16px; }
  .duel-scene { width: 130vw; right: -62vw; bottom: 0; }
  .live-section, .management-section, .members-section { padding-top: 86px; padding-bottom: 86px; }
  .player-frame { min-height: 340px; }
  .twitch-embed, .twitch-embed iframe, .embed-placeholder { min-height: 294px; }
  .people-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .members-toolbar { align-items: stretch; flex-direction: column; }
  .members-toolbar > span { align-self: flex-end; }
  footer { min-height: 120px; flex-direction: column; justify-content: center; }
  .modal-card { padding: 28px 20px; }
  .admin-user { grid-template-columns: 1fr 130px; }
  .admin-user .toggle { min-height: 34px; }
  .admin-user .delete-user { grid-column: 2; }
}
@media (max-width: 450px) {
  .hero-actions { display: grid; }
  .hero-actions > * { width: 100%; }
  .hero-meta b { font-size: 18px; }
  .hero-meta span { font-size: 7px; }
  .members-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr 1fr; }
  .admin-stats div { padding: 12px 8px; }
  .admin-user { grid-template-columns: 1fr; }
  .admin-user .delete-user { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
