/* Requiem: dark game-menu look. Serif for names and titles, small caps for labels, quiet panels, one gold accent. */
:root {
  --bg: #0d0f13; --bg2: #12151b; --panel: #161a21; --panel2: #1b2029; --line: #252a34; --line2: #323946;
  --text: #dadde3; --muted: #8b919c; --faint: #5d636e; --ivory: #ece6d6; --gold: #e0bc6a; --blue: #8ea2dc; --green: #6dbb87; --red: #d97878;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px; --top: 58px; --rail: 252px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(224,188,106,0.28); }

/* ---------- pieces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; user-select: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: #222834; border-color: #3d4554; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: var(--ivory); border-color: var(--ivory); color: #15171b; }
.btn.primary:hover { background: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #17140c; }
.btn.ghost { background: transparent; }
.btn.danger { color: #f0b4b4; border-color: #4a2c2c; background: transparent; }
.btn.small { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn.on { border-color: var(--blue); background: rgba(142,162,220,0.14); color: #fff; }
.input { width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: #101318; color: var(--text); font-size: 15px; outline: none; transition: border-color .15s; }
.input:focus { border-color: #4c5566; }
textarea.input { height: auto; min-height: 140px; padding: 10px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.label { font-variant: small-caps; letter-spacing: .05em; font-size: 14px; color: #b9bdc5; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 13.5px; }
.err { color: #f0a8a8; font-size: 13.5px; min-height: 20px; }
.ok { color: var(--green); font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font-size: 12.5px; background: var(--panel); white-space: nowrap; }
.chip.on { color: #fff; border-color: var(--blue); background: rgba(142,162,220,0.14); }
.chip.gold { color: var(--gold); border-color: #5a4a26; }
.chip.green { color: #9ad8ae; border-color: #2c5a3c; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), #12151a); padding: 18px 20px; }
.toast-box { position: fixed; right: 16px; top: calc(var(--top) + 12px); z-index: 999; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: #20242c; border: 1px solid #3a404c; border-radius: 10px; padding: 11px 15px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: in .2s ease; }
@keyframes in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- the frame: top bar, left menu, page ---------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 18px; background: rgba(13,15,19,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: .06em; color: var(--ivory); cursor: pointer; user-select: none; }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); align-items: center; justify-content: center; cursor: pointer; }
.top .search { flex: 0 1 380px; margin-left: 22px; position: relative; }
.top .search input { height: 36px; padding-left: 36px; font-size: 14px; background: #12151b; }
.top .search svg { position: absolute; left: 11px; top: 9px; opacity: .55; }
.top .grow { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 10px; position: relative; }
.me:hover { background: rgba(255,255,255,0.04); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #2b3140, #1b1f28); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; color: var(--ivory); }
.me .who { font-weight: 600; font-size: 14px; }
.me .roles { font-size: 11.5px; color: var(--muted); }
.pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #191d25; border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.55); z-index: 60; }
.pop a, .pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; text-align: left; }
.pop a:hover, .pop button:hover { background: rgba(255,255,255,0.06); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.frame { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.rail { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 16px 10px 40px; border-right: 1px solid var(--line); background: var(--bg2); }
.rail .sec { margin-bottom: 6px; }
.rail .sec-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: #c9ccd3; font-weight: 600; font-size: 14px; user-select: none; }
.rail .sec-h:hover { background: rgba(255,255,255,0.04); }
.rail .sec-h .ic { width: 18px; height: 18px; opacity: .8; flex: none; }
.rail .sec-h .car { margin-left: auto; color: var(--faint); font-size: 11px; transition: transform .15s; }
.rail .sec.closed .car { transform: rotate(-90deg); }
.rail .sec.closed .items { display: none; }
.rail .items { margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid var(--line); }
.rail .it { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: #aeb3bc; }
.rail .it:hover { background: rgba(255,255,255,0.04); color: #e6e8ec; }
.rail .it.on, .rail .sec-h.on { background: rgba(224,188,106,0.10); color: var(--ivory); }
.rail .role { font-variant: small-caps; letter-spacing: .06em; font-size: 12px; color: var(--faint); padding: 14px 12px 4px; }
.scrim { display: none; }
main.page { min-width: 0; padding: 28px 34px 90px; max-width: 1240px; }

/* ---------- page header ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.ph { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.ph h1 { font-family: var(--serif); font-size: 40px; line-height: 1.05; margin: 0; color: var(--ivory); font-weight: 700; letter-spacing: .01em; }
.ph .sub { color: var(--muted); margin-top: 6px; max-width: 640px; }
.ph .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.preview-note { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--gold); border: 1px dashed #5a4a26; border-radius: 999px; padding: 3px 11px; margin-bottom: 14px; }

/* ---------- placeholders (layout preview) ---------- */
.sk { background: linear-gradient(90deg, #191d25 0%, #1f242e 50%, #191d25 100%); background-size: 200% 100%; animation: shimmer 2.4s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk.line { height: 12px; margin: 8px 0; } .sk.line.w40 { width: 40%; } .sk.line.w60 { width: 60%; } .sk.line.w80 { width: 80%; }
.sk.title { height: 20px; width: 55%; margin-bottom: 12px; }
.ghost-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px; }
.slot-label { font-size: 12px; color: var(--faint); margin-top: 10px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gauto { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gcards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ench { aspect-ratio: 269 / 368; border-radius: 12px; border: 6px solid #0a0b0e; background: linear-gradient(180deg, var(--c, #6b5a3a), #11141a); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { height: 36px; max-width: 280px; font-size: 14px; }
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--ivory); border-bottom-color: var(--gold); }
.table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table .tr { display: grid; grid-template-columns: var(--cols); gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.table .tr:first-child { border-top: 0; background: var(--panel2); font-size: 12px; color: var(--muted); font-variant: small-caps; letter-spacing: .05em; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .ev { position: relative; margin-bottom: 14px; }
.timeline .ev::before { content: ""; position: absolute; left: -23px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--gold); }
.hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; }
.portrait { aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid var(--line2); background: radial-gradient(ellipse at 50% 30%, #262c38, #12151b); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 64px; color: #3a4150; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #13161c; }
.stat .k { font-size: 11px; color: var(--muted); font-variant: small-caps; letter-spacing: .06em; }
.section-card { cursor: pointer; transition: border-color .15s, transform .15s; min-height: 132px; display: flex; flex-direction: column; }
.section-card:hover { border-color: #3d4554; transform: translateY(-2px); }
.section-card .t { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ivory); line-height: 1.1; }
.section-card .s { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.section-card .n { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--gold); }
.canvas-ph { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 39px, #171b22 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, #171b22 39px 40px), #111419; display: flex; align-items: center; justify-content: center; color: var(--faint); }

/* ---------- log in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); }
.auth .art { position: relative; overflow: hidden; background: radial-gradient(ellipse at 30% 35%, rgba(224,188,106,0.10), transparent 55%), radial-gradient(ellipse at 70% 80%, rgba(142,162,220,0.10), transparent 60%), #0b0d11; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth .art h1 { font-family: var(--serif); font-size: clamp(56px, 8vw, 104px); line-height: .9; margin: 0; color: var(--ivory); letter-spacing: .04em; }
.auth .art p { color: var(--muted); max-width: 420px; font-size: 16px; }
.auth .form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 72px); }
.auth .form h2 { font-family: var(--serif); font-size: 34px; margin: 0 0 6px; color: var(--ivory); }
.seg { display: inline-flex; align-self: flex-start; border: 1px solid var(--line2); border-radius: 10px; padding: 3px; margin: 18px 0; }
.seg button { border: 0; background: none; height: 32px; padding: 0 16px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--panel2); color: #fff; }
.roblox-btn { background: #0f1115; border-color: #3a404c; width: 100%; height: 44px; }

/* ---------- admin ---------- */
.people { display: flex; flex-direction: column; gap: 10px; }
.person { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px 18px; align-items: center; }
.person .name { font-weight: 700; font-size: 16px; color: #eef0f3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.person .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- phone ---------- */
@media (max-width: 960px) {
  :root { --top: 54px; }
  .menu-btn { display: inline-flex; }
  .top { padding: 0 12px; gap: 10px; }
  .top .search { display: none; }
  .me .who, .me .roles { display: none; }
  .frame { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 80; left: 0; top: var(--top); bottom: 0; height: auto; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 14px 0 40px rgba(0,0,0,.5); }
  .frame.open .rail { transform: none; }
  .frame.open .scrim { display: block; position: fixed; inset: var(--top) 0 0 0; z-index: 70; background: rgba(0,0,0,.45); }
  main.page { padding: 18px 14px 80px; }
  .ph h1 { font-size: 32px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .art { min-height: 34vh; padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .person { grid-template-columns: minmax(0, 1fr); } .person .acts { justify-content: flex-start; }
  .table .tr { grid-template-columns: var(--cols-phone, var(--cols)); }
}
.tabs .caret { font-size: 10px; margin-left: 5px; opacity: .6; }
.subtabs { display: flex; gap: 6px; margin: -10px 0 22px; overflow-x: auto; scrollbar-width: none; }
.subtabs a { padding: 6px 13px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-weight: 600; }
.subtabs a:hover { color: var(--text); }
.subtabs a.on { color: #14110a; background: var(--gold); border-color: var(--gold); }

/* ---------- real pages: shared pieces ---------- */
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.c { justify-content: center; } .row.end { justify-content: flex-end; }
.grow { flex: 1 1 auto; }
.small { font-size: 12.5px; } .one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.tiny { height: 20px; padding: 0 8px; font-size: 11px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #ecedf0; background: color-mix(in srgb, var(--c) 40%, transparent); border: 1px solid var(--c); white-space: nowrap; }
.btn.icon { width: 30px; padding: 0; } .btn.dashed { border-style: dashed; background: transparent; }
.input.sm { height: 36px; font-size: 14px; padding: 0 11px; border-radius: 8px; }
.input[type=date] { color-scheme: dark; }
.seg.small { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; border: 1px solid var(--line2); background: #101318; align-self: auto; margin: 0; }
.seg.small button { white-space: nowrap; height: 26px; padding: 0 10px; font-size: 12px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; }
.seg.small button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.err:empty { display: none; }
.card.empty { text-align: center; padding: 40px 20px; } .card.empty .t { font-family: var(--serif); font-size: 26px; color: var(--ivory); }

.modal-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(4,5,8,.66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-height: 86vh; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 16px; border: 1px solid var(--line2); background: var(--bg2); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-t { font-family: var(--serif); font-size: 26px; color: var(--ivory); line-height: 1.1; }
.modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.pick-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.pick { display: flex; gap: 12px; align-items: center; text-align: left; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; min-width: 0; }
.pick:hover { border-color: var(--line2); background: var(--panel2); } .pick .grow { min-width: 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4,5,8,.94); display: flex; align-items: center; justify-content: center; }
.big-img { max-width: 92vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.big-n { position: absolute; top: 16px; right: 22px; color: var(--muted); font-size: 14px; }
.big-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; font-size: 34px; cursor: pointer; }
.big-arrow.l { left: 16px; } .big-arrow.r { right: 16px; } .big-arrow:hover { background: rgba(255,255,255,.12); }

/* ---------- lives ---------- */
.lives { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.life-card { display: flex; gap: 16px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), #12151a); transition: border-color .15s, transform .15s; }
.life-card:hover { border-color: #3d4554; transform: translateY(-1px); }
.life-card.ended { opacity: .72; }
.life-card .pic { flex: 0 0 92px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: radial-gradient(ellipse at 50% 30%, #262c38, #12151b); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 44px; color: #4a5263; }
.life-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.life-card .body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.life-card .nm { font-family: var(--serif); font-size: 25px; line-height: 1.05; color: var(--ivory); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.life-card .sub, .life-card .foot { font-size: 12.5px; color: var(--muted); } .life-card .foot { margin-top: auto; }
.life-card .pills { display: flex; gap: 5px; flex-wrap: wrap; }

.life-head { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.pic-col { flex: 0 0 220px; display: flex; flex-direction: column; gap: 8px; }
.portrait.drop { width: 220px; height: 220px; aspect-ratio: auto; overflow: hidden; cursor: zoom-in; transition: border-color .15s; }
.portrait.drop img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.portrait.drop .hint { font-family: var(--sans); font-size: 13px; color: var(--faint); text-align: center; padding: 20px; cursor: default; }
.portrait.drop.over { border-color: var(--blue); }
.life-right { flex: 1 1 360px; min-width: 0; }
.title-input { display: block; width: 100%; margin: -4px 0 2px -8px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--ivory); outline: none; }
.title-input:hover { border-color: var(--line); } .title-input:focus { border-color: var(--line2); background: #101318; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 12px; margin-top: 16px; }
.field .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field .val { height: 36px; display: flex; align-items: center; }
.field .hint { display: block; font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.field .hint.link:hover { color: var(--blue); }

.chap-order { margin: 0 0 -6px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 10px; }
.sec-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--ivory); }
.chapters { padding: 22px 24px; margin-bottom: 22px; }
.prose { font-size: 15px; line-height: 1.7; color: #d4d7dd; white-space: pre-wrap; margin: 0 0 12px; overflow-wrap: anywhere; }
.mention { color: #c9d3f2; background: rgba(142,162,220,.14); border-radius: 5px; padding: 0 4px; }
.chap-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; clear: both; flex-wrap: wrap; }
.chap-h:first-child { margin-top: 0; }
.chap-h i { flex: 0 0 18px; height: 1px; background: var(--line2); } .chap-h i.grow { flex: 1 1 30px; }
.chap-h b { font-weight: 700; color: var(--text); }
.chip.ev { color: #c9d3f2; border-color: #3d4a73; background: rgba(42,51,80,.45); height: 22px; font-size: 12px; }
.fig { margin: 12px auto; text-align: center; clear: both; }
.fig.left, .fig.right { width: 42%; margin-top: 4px; clear: none; } .fig.left { float: left; margin-right: 20px; } .fig.right { float: right; margin-left: 20px; }
.fig img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line2); cursor: zoom-in; } .fig.wide img { max-height: 460px; }
.fig figcaption { font-size: 13px; color: #9aa0ab; font-style: italic; margin-top: 6px; line-height: 1.4; }
.clear { clear: both; }
.chap-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 9px 10px; margin: 18px 0 10px; border-radius: 10px; border: 1px dashed var(--line2); background: #14171d; }
.chap-bar:first-child { margin-top: 0; }
.chap-bar .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chap-bar .input { flex: 1 1 200px; width: auto; height: 32px; } .chap-bar .input.date { flex: 0 0 160px; }
.blocks { display: flex; flex-direction: column; gap: 8px; }
.blk { display: flex; gap: 8px; align-items: flex-start; }
.blk-tools { display: flex; flex-direction: column; gap: 4px; }
.blk.img { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #13161c; }
.blk.img > img { width: 160px; max-height: 140px; object-fit: contain; border-radius: 6px; }
.blk.img .side { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; } .blk.img .blk-tools { flex-direction: row; }
textarea.prose-in { flex: 1; min-height: 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.6; resize: vertical; }

@media (max-width: 960px) {
  .lives { grid-template-columns: 1fr; }
  .life-head { gap: 16px; } .pic-col { flex: 1 1 100%; align-items: center; }
  .title-input { font-size: 32px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fig.left, .fig.right { float: none; width: 100%; margin: 12px 0; }
  .chapters { padding: 16px; }
  .blk.img { flex-direction: column; } .blk.img > img { width: 100%; }
}

/* ---------- events ---------- */
.ev-bar { display: flex; gap: 10px; margin-bottom: 12px; } .ev-bar .input { flex: 1; }
.ev-filters { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.ev-f-left { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 1px 0; }
.ev-f-right { display: flex; gap: 8px; flex: 0 0 auto; }
.fchip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.fchip .fl { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.fb { display: inline-flex; align-items: center; gap: 6px; max-width: 170px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font-size: 12px; cursor: pointer; }
.fb:hover { border-color: var(--blue); } .fb.on { border-color: #3d4a73; background: #232a40; }
.fb .caret { font-size: 9px; color: var(--faint); } .fb .dots { display: inline-flex; gap: 3px; } .fb .dots i { height: 5px; border-radius: 5px; transition: width .15s; }
.link-btn { border: 0; background: none; color: var(--blue); font-size: 12px; cursor: pointer; flex: 0 0 auto; }
.tog { display: inline-flex; height: 26px; border-radius: 999px; border: 1px solid var(--line2); overflow: hidden; }
.tog button { border: 0; padding: 0 10px; font-size: 11px; font-weight: 600; background: var(--panel); color: var(--muted); cursor: pointer; }
.tog button.on { background: rgba(42,51,80,.8); color: var(--text); }
.menu { position: fixed; z-index: 400; min-width: 170px; max-width: 290px; max-height: 300px; overflow-y: auto; padding: 4px; border-radius: 9px; border: 1px solid var(--line2); background: #15181e; box-shadow: 0 14px 30px rgba(0,0,0,.55); display: flex; flex-direction: column; }
.menu button { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: #d4d7dd; font-size: 13px; text-align: left; cursor: pointer; flex: 0 0 auto; }
.menu button:hover, .menu button.hi { background: rgba(142,162,220,.16); } .menu button.on { font-weight: 700; color: #fff; }
.menu .n { font-size: 11px; color: var(--faint); } .menu .ck { color: var(--blue); font-size: 11px; } .menu .sw { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.menu .none { padding: 8px 10px; color: var(--faint); font-size: 13px; }
.menu.finder { max-width: 360px; }

.ev-list { display: flex; flex-direction: column; gap: 10px; }
.ev-empty { padding: 28px; text-align: center; color: var(--faint); border: 1px dashed var(--line2); border-radius: var(--radius); }
.ev-card { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), #12151a); cursor: pointer; transition: border-color .15s, box-shadow .3s; }
.ev-card:hover { border-color: rgba(142,162,220,.45); }
.ev-card.flash { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(142,162,220,.55); }
.ev-card.has-host { padding-bottom: 36px; }
.ev-cover { position: absolute; inset: 0 0 0 auto; width: 50%; background: center / cover no-repeat; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); }
.ev-content { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ev-title-col { min-width: 0; }
.ev-name { font-weight: 700; font-size: 16.5px; color: #eef0f4; }
.ev-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ev-meta .pill { backdrop-filter: blur(2px); }
.ev-arrow { color: #c9ccd2; font-size: 12px; } .ev-arrow.small { font-size: 11px; } .ev-dot { color: var(--muted); }
.loc-chain { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 7px; font-size: 12.5px; color: #b9bec8; }
.ev-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.ev-date { font-size: 14px; color: #c9ccd2; white-space: nowrap; }
.ev-chip { font-size: 12px; color: #c9ccd2; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14); }
.ev-chip.vod { color: #ffb4b4; border-color: rgba(220,70,70,.5); } .ev-chip.vod:hover { background: rgba(160,30,30,.4); }
.ev-death { position: absolute; top: 0; right: 120px; z-index: 2; padding: 4px 12px 5px; border-radius: 0 0 8px 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-top: 0; }
.ev-desc { font-size: 14px; color: #a9aeb8; margin-top: 6px; white-space: pre-wrap; max-width: 72%; }
.ev-desc.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-host { position: absolute; right: 18px; bottom: 12px; z-index: 2; font-size: 13px; color: #b4b8c0; text-shadow: 0 1px 4px rgba(0,0,0,.9); } .ev-host b { color: #e2e2e6; }
.ev-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ev-stats span { padding: 3px 9px; border-radius: 6px; font-size: 12px; color: #c9ccd2; background: #1c2028; border: 1px solid var(--line2); }
.ev-group { margin-top: 12px; } .ev-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; } .ev-group .pill { backdrop-filter: blur(2px); }
.xp-bars { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; max-width: 440px; }
.xp-row { display: flex; align-items: center; gap: 10px; } .xp-row .k { flex: 0 0 90px; font-size: 12px; font-weight: 600; color: #c9ccd2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-row .track { position: relative; flex: 1; height: 5px; border-radius: 5px; background: rgba(42,44,51,.9); overflow: hidden; }
.xp-row .track i { position: absolute; left: 0; top: 0; bottom: 0; background: #4a5370; } .xp-row .track b { position: absolute; top: 0; bottom: 0; background: #a9b8e6; }
.xp-row .v { font-size: 12px; color: var(--muted); white-space: nowrap; } .xp-row .v.lap { color: #c9d3f2; }

.ev-form { max-height: 92vh; overflow-y: auto; padding-bottom: 0; }
.fs { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.fs h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fld .k, .mover .k, .org > .row .k { font-size: 12.5px; font-weight: 600; color: #c9ccd2; margin-bottom: 5px; }
.fld.wide { grid-column: 1 / -1; } .fld .seg.small { margin: 0; }
.ev-form select.input { padding-right: 6px; }
.row.between { justify-content: space-between; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
.org { display: flex; flex-direction: column; gap: 10px; }
.mover .row { flex-wrap: nowrap; } .mover select { flex: 1; min-width: 0; }
.locs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.locs .input { width: 200px; }
.loc { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); font-size: 13px; }
.loc button, .pill.x button { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; font-size: 14px; } .loc button:hover, .pill.x button:hover { opacity: 1; }
.pill.x { padding-right: 5px; gap: 4px; }
.pics { display: flex; flex-wrap: wrap; gap: 10px; }
.pics .pic { position: relative; width: 150px; height: 96px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line2); background: #101318; }
.pics .pic img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; } .pics .pic.cover { border-color: var(--gold); }
.pics .pic .tag { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.65); color: var(--gold); }
.pics .pic .acts { position: absolute; right: 4px; top: 4px; display: flex; gap: 3px; }
.pics .pic .acts button { width: 24px; height: 24px; border-radius: 6px; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.pics .pic.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-style: dashed; }
.vod-prev img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line2); display: block; }
.fs .row > .input:first-child { flex: 1 1 260px; width: auto; }
.item-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 70px 1fr 1fr 30px; gap: 8px; align-items: center; margin-bottom: 6px; }
.item-row .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k2 { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; }
.sl { font-size: 12.5px; font-weight: 600; color: #c9ccd2; margin-bottom: 4px; }
.note { font-size: 11px; color: var(--faint); min-height: 14px; margin-top: 3px; } .note.good { color: #5fae7a; } .note.bad { color: #d06a6a; }
.sac-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sac { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #13161c; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.sac b { min-width: 28px; text-align: center; } .sac b.pos { color: #9ad8ae; } .sac b.neg { color: #e08a8a; }
.sac .dots { display: flex; gap: 3px; } .sac .dots i { width: 9px; height: 9px; border-radius: 2px; background: #252a34; } .sac .dots i.old { background: #6a6f7a; } .sac .dots i.new { background: var(--gold); }
.kept { font-size: 12.5px; color: var(--muted); padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--line2); }
.modal-acts.sticky { position: sticky; bottom: 0; margin: 0 -22px; padding: 12px 22px 18px; background: linear-gradient(180deg, rgba(18,21,27,0), var(--bg2) 30%); }

@media (max-width: 960px) {
  .ev-filters { flex-direction: column; align-items: stretch; } .ev-f-right { justify-content: flex-end; }
  .ev-desc { max-width: 100%; } .ev-cover { width: 70%; opacity: .35; }
  .ev-death { position: static; display: inline-block; margin: -16px 0 8px; border-top: 0; }
  .fgrid { grid-template-columns: 1fr 1fr; } .sac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item-row { grid-template-columns: 1fr 1fr 64px 30px; grid-template-areas: "nm nm qty x" "who who nt nt"; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .item-row .nm { grid-area: nm; } .item-row .qty { grid-area: qty; } .item-row .x { grid-area: x; } .item-row .who { grid-area: who; } .item-row .nt { grid-area: nt; }
  .mover .row { flex-wrap: wrap; } .mover select { flex: 1 1 100%; } .mover .row > .muted { display: none; }
  .mover select + .muted + select { margin-top: -2px; }
  .fld.wide-m { grid-column: 1 / -1; }
  .modal { padding: 16px; } .modal-acts.sticky { margin: 0 -16px; padding: 12px 16px 14px; }
}

/* ---------- events part B ---------- */
.shot { position: absolute; top: 0; right: 0; z-index: 4; width: 26px; height: 26px; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% 100%); background: repeating-linear-gradient(-45deg, rgba(142,162,220,.45) 0 3px, transparent 3px 6px); opacity: 0; transition: opacity .12s, width .12s, height .12s; }
.ev-card:hover .shot { opacity: 1; } .shot:hover { width: 34px; height: 34px; background: repeating-linear-gradient(-45deg, rgba(142,162,220,.85) 0 3px, transparent 3px 6px); }
@media (hover: none) { .shot { opacity: .7; } }
.pill small { font-size: 10.5px; opacity: .7; margin-left: 3px; font-weight: 500; }
.menu button.dim { opacity: .45; }
.prof { display: flex; flex-direction: column; gap: 8px; } .prof .row > .input { flex: 1; }
.xp-edit { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.xp-edit .hit { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.xp-edit .track { position: absolute; left: 0; right: 0; top: 6px; height: 6px; border-radius: 6px; background: #2a2c33; overflow: hidden; }
.xp-edit .track i { position: absolute; left: 0; top: 0; bottom: 0; background: #4a5370; } .xp-edit .track b { position: absolute; top: 0; bottom: 0; background: #a9b8e6; }
.gearbox { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: #13161c; }
.grow-row { display: flex; gap: 8px; align-items: flex-start; } .grow-row > .row { flex: 1; }
.gk { flex: 0 0 74px; padding-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.gearchip { cursor: pointer; height: 28px; gap: 6px; font-size: 13px; } .gearchip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; }
.gearchip.got { color: #cfe9d6; border-color: #5fae7a; background: rgba(95,174,122,.15); } .gearchip.lost { color: #f3c4c4; border-color: #d06a6a; background: rgba(208,106,106,.15); }
.gearchip.add { border-style: dashed; background: transparent; }
.counter { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: #c9ccd2; }
.counter.on { border-color: #3d4a73; background: rgba(42,51,80,.45); } .counter.off { opacity: .5; }
.counter button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #3a404a; background: none; color: inherit; cursor: pointer; } .counter button:disabled { cursor: not-allowed; }
.counter b { min-width: 14px; text-align: center; color: #e2e2e6; }
.counter input { width: 56px; height: 22px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line2); background: #101318; color: #5fae7a; font-size: 12px; }
@media (max-width: 960px) { .grow-row { flex-direction: column; gap: 4px; } .gk { padding-top: 0; } }
@media (max-width: 960px) { .grow-row > .row { flex: none; } .modal.ev-form { padding-bottom: 0; } }
@media (max-width: 960px) { .gk { flex: none; } }

/* ---------- inventory / locker ---------- */
.item-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.weight { display: flex; align-items: center; gap: 16px; } .weight .bag { color: var(--ivory); display: flex; }
.weight b { font-size: 17px; font-weight: 600; color: #e2e2e6; } .weight b.store-t { font-family: var(--serif); font-size: 28px; }
.weight .bad, .bad { color: #e08a8a; }
.bar { height: 6px; border-radius: 6px; background: #2a2c33; overflow: hidden; margin-top: 8px; } .bar i { display: block; height: 100%; border-radius: 6px; background: #9aa0ab; } .bar.over i { background: #b55a5a; }
.item-panel { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.item-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 170px; padding: 18px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(22,27,38,.6); color: var(--text); cursor: pointer; text-align: center; transition: border-color .15s, transform .15s; }
.item-tile:hover { border-color: #3d4554; transform: translateY(-1px); }
.item-tile .pic { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; } .item-tile .pic img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.item-tile .ph-l { width: 64px; height: 64px; border-radius: 12px; background: #1b2029; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 32px; color: #4a5263; }
.item-tile .nm { font-weight: 700; font-size: 14.5px; line-height: 1.25; color: #d4d7dd; } .item-tile .q { color: var(--muted); font-weight: 600; }
.item-tile.add { justify-content: center; border-style: dashed; border-color: var(--line2); color: var(--muted); font-weight: 600; background: transparent; }
.item-tile.add .plus { font-size: 30px; font-weight: 300; line-height: 1; } .item-tile.add:hover { border-color: var(--blue); color: var(--text); }
.item-empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: var(--faint); }
.inspect { display: flex; gap: 22px; align-items: flex-start; } .inspect .pic { flex: 0 0 140px; height: 140px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #13161c; border: 1px solid var(--line); } .inspect .pic img { max-width: 85%; max-height: 85%; object-fit: contain; }
.modal-acts.wrap { flex-wrap: wrap; align-items: center; margin-top: 18px; }
.btn.danger-fill { background: #5a0d0d; border-color: #5a0d0d; color: #f1d5d5; } .btn.danger-fill:hover { background: #6e1414; }
.add-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line2); border-radius: 10px; display: flex; flex-direction: column; }
.add-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; border: 0; background: #101318; color: var(--text); text-align: left; cursor: pointer; font-size: 14px; }
.add-row:nth-child(even) { background: #13161c; } .add-row:hover { background: #1b1f27; }
.add-row .pic { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; } .add-row .pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 960px) { .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inspect { flex-direction: column; } .inspect .pic { width: 100%; flex: none; } }

/* ---------- gear ---------- */
.gear-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.gear-top .gt { font-family: var(--serif); font-size: 28px; color: var(--ivory); line-height: 1.1; }
.big-tog { height: 42px; border-radius: 10px; } .big-tog button { padding: 0 14px; font-size: 13px; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gear-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(22,27,38,.6); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.gear-card:hover { border-color: rgba(142,162,220,.5); transform: translateY(-2px); } .gear-card.lost { border-color: rgba(208,106,106,.3); }
.gear-pic { position: relative; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.3); border: 1px solid #262b35; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.gear-pic img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; } .gear-pic.lost img { filter: grayscale(1) brightness(.55); }
.gear-pic .cog { font-size: 44px; color: #3a404a; }
.gear-pic .stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: 3px 10px; border: 2px solid #d06a6a; border-radius: 4px; color: #d06a6a; font-weight: 800; font-size: 13px; letter-spacing: .08em; background: rgba(20,10,10,.5); }
.gear-pic .pic-bar { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; gap: 4px; justify-content: center; opacity: 0; transition: opacity .15s; } .gear-pic:hover .pic-bar, .gear-pic .pic-bar.on { opacity: 1; }
.gear-pic .pic-bar button { height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid #3a404a; background: rgba(14,16,20,.85); color: var(--text); font-size: 11px; cursor: pointer; }
@media (hover: none) { .gear-pic .pic-bar { opacity: 1; } }
.gname { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 700; font-size: 15px; color: #e2e2e6; } .gear-card.lost .gname { color: #b8bcc4; }
.gen { font-size: 10px; font-weight: 700; color: #aab4d8; padding: 0 7px; border-radius: 999px; border: 1px solid #3d4a73; background: rgba(42,51,80,.45); flex: 0 0 auto; }
.cur { font-size: 10px; font-weight: 700; color: #5fae7a; padding: 0 7px; border-radius: 999px; border: 1px solid #5fae7a88; background: #5fae7a22; flex: 0 0 auto; }
.lv-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; font-size: 11px; color: var(--muted); align-items: center; }
.segs { display: flex; gap: 2px; } .segs i { flex: 1 1 0; height: 3px; border-radius: 3px; background: #2e3138; } .segs i.on { background: #c9ccd2; } .gear-card.lost .segs i.on { background: #8a6a6a; }
.segs.big { gap: 5px; margin-top: 8px; max-width: 520px; } .segs.big i { height: 4px; border-radius: 4px; background: #3a3f48; } .segs.big i.on { background: #c9ccd2; }
.gear-card .spent { margin-top: auto; }
.gear-new-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; } .gear-new-row.two { grid-template-columns: 1fr 1fr; }
.station { gap: 14px; }
.st-top { display: flex; gap: 18px; align-items: flex-start; }
.title-input.sm { font-size: 26px; flex: 0 1 280px; width: auto; margin: 0 0 0 -8px; }
.gen-sel { height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid #3d4a73; background: rgba(42,51,80,.45); color: #aab4d8; font-size: 12px; font-weight: 700; color-scheme: dark; }
.ev-link { color: #aab4d8; } .ev-link:hover { color: #fff; }
.st-acts { flex: 0 0 auto; flex-wrap: nowrap; }
.st-rows { display: flex; flex-direction: column; gap: 6px; } .st-rows.dim { opacity: .6; }
.st-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 10px; background: rgba(22,27,38,.9); border: 1px solid var(--line); }
.st-row b { font-size: 15px; color: #e2e2e6; }
.price { font-size: 13px; color: #5fae7a; padding: 2px 10px; border-radius: 999px; border: 1px solid #5fae7a88; white-space: nowrap; }
.maxed { font-size: 12px; font-weight: 700; color: #5fae7a; }
@media (max-width: 960px) {
  .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gear-card .gear-pic { width: 110px !important; height: 110px !important; }
  .st-top { flex-wrap: wrap; } .st-acts { width: 100%; justify-content: flex-end; }
  .st-row { flex-wrap: wrap; gap: 8px; padding: 10px 12px; } .st-row > .grow { flex: 1 1 100%; }
  .gear-new-row { grid-template-columns: 1fr; } .ev-bar .big-tog { flex: 0 0 auto; }
}
@media (max-width: 960px) { .ev-bar:has(.big-tog) { flex-wrap: wrap; } .ev-bar:has(.big-tog) .input { flex: 1 1 100%; } .ev-bar .big-tog { width: 100%; } .ev-bar .big-tog button { flex: 1; } }
.modal { overflow-y: auto; scrollbar-width: thin; }
.setup { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; border: 1px dashed #5a4a26; background: rgba(224,188,106,.06); margin-top: 6px; }
.setup b { color: var(--gold); } .setup .muted { max-width: 640px; }

/* ---------- progression ---------- */
.ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.ecard { position: relative; aspect-ratio: 269 / 368; container-type: inline-size; border-radius: 12px; background: center / 100% 100% no-repeat; }
.ecard.noframe { background: linear-gradient(to bottom, var(--c), #10131a); border: 6px solid #0a0b0e; }
.ecard .art { position: absolute; left: 12%; right: 12%; top: 16%; height: 48%; display: flex; align-items: center; justify-content: center; } .ecard .art img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.ecard img.q { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ecard .qm { position: absolute; left: 0; right: 0; top: 18%; text-align: center; font-family: Georgia, serif; font-weight: 700; font-size: 40cqw; line-height: 1; color: #f2f2f5; }
.ecard .en { position: absolute; left: 13%; right: 13%; top: 71%; text-align: center; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 7.6cqw; line-height: 1.15; color: #ececf0; text-shadow: 0 1px 3px rgba(0,0,0,.75); }
.ecard.click { cursor: pointer; transition: transform .12s, filter .12s; } .ecard.click:hover { transform: translateY(-3px); filter: brightness(1.08); }
.ecard.add { border: 2px dashed #3a404a; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); cursor: pointer; font-weight: 600; } .ecard.add:hover { border-color: var(--blue); color: var(--text); } .ecard.add .plus { font-size: 34px; font-weight: 300; }
.edetail { display: flex; gap: 28px; align-items: flex-start; } .edetail hr { border: 0; height: 1px; background: #2e333c; margin: 16px 0; }
.k3 { font-variant: small-caps; font-size: 14px; color: #c9ccd2; margin: 6px 0 4px; }
.add-row.dimmed { opacity: .7; } .add-row .tag { width: 56px; text-align: right; font-size: 12px; color: #c9ccd2; } .add-row .tag.on { color: var(--blue); } .add-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.class-row { display: flex; align-items: center; gap: 30px; width: 100%; min-height: 120px; padding: 20px 36px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(22,27,38,.6); color: var(--text); text-align: left; cursor: pointer; }
.class-row:hover:not(:disabled) { border-color: #3d4554; } .class-row:disabled { opacity: .5; cursor: default; } .class-row b { font-size: 20px; } .class-row .arrow { font-size: 30px; color: #6b7079; }
.danger-modal { background: linear-gradient(to bottom, #2c0e12 0%, #170b0e 35%, #0c0c0f 100%); border-color: #3a1a1e; }
.ptabs { display: flex; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; }
.ptabs button { flex: 1 1 0; padding: 16px 6px; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.04); background: #171b24; color: var(--muted); font-size: 16px; cursor: pointer; white-space: nowrap; }
.ptabs button + button { border-left: 1px solid rgba(255,255,255,.04); } .ptabs button.on { background: #1e2330; color: #ececf0; font-weight: 600; border-bottom-color: #e6e6ea; }
.ptree { border-radius: 0 0 14px 14px; padding: 18px 20px 20px; } .pholder { width: 100%; }
.pmsg { min-height: 18px; text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0; }
.pexp { margin-top: 10px; } .pexp b { font-size: 15px; }
.pexp .hit { position: relative; height: 18px; cursor: pointer; touch-action: none; margin-top: 10px; } .pexp .track { position: absolute; left: 0; right: 0; top: 6px; height: 5px; border-radius: 5px; background: #2a2c33; } .pexp .fill { height: 100%; border-radius: 5px; background: #6b7ba6; }
.center { text-align: center; } .pad { padding: 40px; }
.link-btn.quiet { color: var(--faint); } .link-btn.quiet.bad { color: #e08a8a; } .link-btn.strong { color: var(--text); font-weight: 700; font-size: 14px; } .link-btn:disabled { opacity: .35; cursor: default; }
.ntip { position: fixed; z-index: 500; max-width: 300px; padding: 12px 18px 14px; background: #111318; border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); pointer-events: none; }
.sac-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; user-select: none; }
.radar-box { flex: 0 0 auto; max-width: 100%; } .radar { width: 380px; max-width: 100%; height: auto; overflow: visible; display: block; }
.radar .rlabels { opacity: 0; transition: opacity .15s; } .radar:hover .rlabels { opacity: 1; }
.sac-panel { flex: 1 1 420px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 6px; }
.alloc { padding: 4px 4px 18px; margin-bottom: 18px; } .alloc b { font-size: 16px; } .alloc .bar { margin-top: 14px; }
.lg { display: inline-block; width: 14px; height: 5px; border-radius: 5px; margin-left: 8px; }
.sac-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.015); } .sac-card b { font-size: 16px; }
.segrow { display: flex; gap: 5px; max-width: 660px; margin-top: 8px; }
.segrow .sseg { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; } .segrow .sseg.ev { cursor: pointer; }
.segrow .sseg i { width: 100%; height: 5px; border-radius: 5px; transition: height .12s; } .segrow .sseg:hover i { height: 7px; }
.segrow .sseg span { height: 13px; font-size: 10px; line-height: 13px; font-family: ui-monospace, monospace; color: #9fb0e0; opacity: 0; } .segrow .sseg:hover span { opacity: 1; }
.sac-btns { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 960px) {
  .ecards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .edetail { flex-direction: column; align-items: center; }
  .class-row { padding: 16px; gap: 14px; } .ptabs button { font-size: 13px; padding: 12px 4px; } .ptree { padding: 12px; }
  .sac-wrap { flex-direction: column; } .radar-box { width: 100%; display: flex; justify-content: center; } .sac-card { padding: 12px; }
}

/* ---------- logs ---------- */
.log-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.log-head .gt { font-family: var(--serif); font-size: 28px; color: var(--ivory); line-height: 1.1; } .log-head b { color: #e6e6ea; }
.log-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.lday { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--faint); margin: 10px 0 2px 4px; }
.lrow { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 5px 16px; border-radius: 8px; border: 1px solid var(--line); background: rgba(22,27,38,.55); color: var(--text); text-align: left; font-size: 14px; width: 100%; }
.lrow.click { cursor: pointer; } .lrow.click:hover { border-color: rgba(255,255,255,.2); }
.ltype { flex: 0 0 auto; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c); padding: 2px 0; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); }
.lqty { flex: 0 0 64px; font-size: 15px; color: #e6e6ea; font-variant-numeric: tabular-nums; } .lqty.wide { flex-basis: 92px; }
.lmid { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; } .lmid > * { overflow: hidden; text-overflow: ellipsis; } .lmidtext { flex: 0 1 auto; min-width: 0; }
.lname { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.lpic { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.ltag { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 24px; line-height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; border: 1px solid; }
.ltag.ev { color: #c9d3f2; border-color: #4b5d98; background: rgba(75,93,152,.2); } .ltag.ev:hover { border-color: var(--blue); }
.ltag.pd { color: #e8d6a8; border-color: #6a5a3a; background: rgba(106,90,58,.2); } .ltag.gear { color: #c9d3e6; border-color: #5a6f8a; } .ltag.gear.lost { border-color: #9a2e2e; color: #f0b4b4; }
.ltag.comp { color: #f0c6e4; border-color: #8a3a74; } .ltag.plain { color: var(--muted); border-color: var(--line2); }
.lprice { flex: 0 0 auto; font-variant-numeric: tabular-nums; } .ldate, .ltime { flex: 0 0 auto; font-size: 13px; color: var(--muted); min-width: 64px; text-align: right; } .ltime { text-align: left; min-width: 44px; font-variant-numeric: tabular-nums; }
.lmove { flex: 0 0 auto; font-size: 13px; color: var(--muted); } .lmove .to { color: #e2e2e6; font-weight: 600; }
.faint { color: var(--faint); }
.nudge { display: flex; flex-direction: column; opacity: 0; transition: opacity .12s; } .lrow:hover .nudge { opacity: 1; }
.nudge button { border: 0; background: none; color: var(--muted); font-size: 10px; line-height: 1; padding: 1px 4px; cursor: pointer; } .nudge button:disabled { opacity: .25; cursor: default; }
.fgrid.two { grid-template-columns: 1fr 1fr; }
@media (hover: none) { .nudge { opacity: .7; } }
@media (max-width: 960px) {
  .lrow { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; } .lmid { flex: 1 1 100%; order: 5; white-space: normal; flex-wrap: wrap; } .ldate { margin-left: auto; }
  .log-head .row { width: 100%; } .log-head .input.sm { flex: 1; width: auto !important; }
}
.tog { flex: 0 0 auto; } .tog button { white-space: nowrap; }

/* ---------- exams ---------- */
.exam-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; } .exam-head .gt { font-family: var(--serif); font-size: 28px; color: var(--ivory); line-height: 1.1; }
.ring { flex: 0 0 auto; display: flex; }
.phys { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.phys-card { display: flex; flex-direction: column; gap: 12px; } .phys-card b { font-size: 16px; } .phys-card .pts { font-size: 20px; }
.input.big-num { width: 120px; height: 44px; font-size: 20px; font-weight: 700; text-align: center; }
.phys-card .bar i { transition: width .25s; }
.shots { display: flex; gap: 8px; } .shot-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #4a4f58; background: #1a1d24; cursor: pointer; } .shot-dot.on { border-color: #5fae7a; background: radial-gradient(circle, #8fd6a8 0 35%, #2c5a3c 36%); }
.qlist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.qcard { position: relative; padding: 16px 18px 10px; border-radius: 8px; background: rgba(8,10,14,.72); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; } .qcard.compact { padding: 12px 16px; }
.qcard.pending { border-style: dashed; border-color: rgba(217,164,65,.5); } .qcard.lit { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.qn { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .qq { font-size: 15.5px; color: #e6e9ef; margin: 4px 30px 10px 0; line-height: 1.45; white-space: pre-wrap; }
.qbadge { position: absolute; top: 12px; right: 14px; font-size: 11px; color: #d9a441; }
.qopt { display: flex; align-items: center; gap: 12px; padding: 8px 6px; margin: 0 -6px; border-radius: 6px; font-size: 14.5px; color: #c9ccd2; } .qopt.on { color: #f0f2f6; }
.qopt.qpick, .qopt.set { cursor: pointer; } .qopt.qpick:hover, .qopt.set:hover { background: rgba(255,255,255,.04); } .qcard.compact .qopt { padding: 2px 6px; }
.qdot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #4a4f58; display: flex; align-items: center; justify-content: center; background: none; padding: 0; cursor: inherit; }
.qdot i { width: 10px; height: 10px; border-radius: 50%; background: #2c3038; } .qdot.on { border-color: #9aa3b2; } .qdot.on i { background: #e6e9ef; box-shadow: 0 0 6px rgba(230,233,239,.6); }
.qbox { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 4px; border: 2px solid #4a4f58; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #111; } .qbox.on { border-color: #9aa3b2; background: #e6e9ef; }
.qok { color: #5fae7a; font-weight: 700; } .qbad { color: #e08a8a; font-weight: 700; }
textarea.input.qtext { min-height: 34px; padding: 7px 12px; resize: none; font-family: var(--sans); font-size: 14px; margin-bottom: 6px; }
.qx { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line2); background: none; color: var(--muted); cursor: pointer; } .qx:hover { color: #e08a8a; border-color: #4a2c2c; }
.qpage { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; } .qpage i { flex: 1; height: 1px; background: var(--line2); }
.qresults { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.qres { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; font-size: 14px; } .qres:hover { border-color: var(--blue); }
.qnone { padding: 4px 2px; } .qadd { display: flex; flex-direction: column; gap: 6px; } .qadd .row.right .input { border-color: #5fae7a; }
@media (max-width: 960px) { .phys { grid-template-columns: 1fr; } .qq { margin-right: 26px; } }

/* ---------- profile ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stile .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .stile .v { font-family: var(--serif); font-size: 32px; color: var(--ivory); line-height: 1.2; margin: 4px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-t { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ivory); margin: 26px 0 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.scard { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; } .scard.zero { opacity: .55; } .scard b { font-size: 14px; } .big-v { font-size: 20px; font-weight: 700; color: #e6e6ea; font-variant-numeric: tabular-nums; }
.spark { height: 36px; } .spark svg { width: 100%; height: 100%; display: block; } .spark.empty { border-bottom: 1px dashed var(--line2); }
.comp-list { display: flex; flex-direction: column; gap: 8px; }
.comp-row { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.15); color: var(--text); text-align: left; cursor: pointer; width: 100%; }
.comp-row:hover { border-color: rgba(214,93,177,.4); background: rgba(255,255,255,.02); } .comp-row.male:hover { border-color: rgba(93,155,214,.45); }
.comp-row b { font-size: 16px; } .comp-row .arrow { color: var(--muted); font-size: 20px; } .heart { display: flex; }
.cthumb { height: 64px; min-width: 64px; max-width: 120px; border-radius: 8px; overflow: hidden; background: #13161c; display: flex; align-items: center; justify-content: center; } .cthumb img { height: 100%; width: auto; max-width: 120px; object-fit: contain; }
.comp-row.add { justify-content: center; min-height: 64px; border-style: dashed; color: var(--muted); font-weight: 600; } .comp-row.add .plus { font-size: 24px; font-weight: 300; }
.fav { color: #e8b04a; }
.cpic { position: relative; border-radius: 12px; border: 1px solid #3a3240; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; flex: 0 0 auto; min-width: 200px; }
.cpic.empty { border-style: dashed; } .cpic img { max-width: 100%; max-height: 300px; display: block; }
.cpic-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.6); color: #e6e6ea; cursor: pointer; } .cpic-x:hover { background: rgba(90,13,13,.85); border-color: #e08a8a; }
.comp-modal { background: linear-gradient(to bottom, #2a1626 0%, #15101a 22%, #0c0c0f 100%); border-color: #36222f; } .comp-modal.male { background: linear-gradient(to bottom, #1a222e 0%, #11141a 22%, #0c0c0f 100%); border-color: #222a36; }
.comp-top { display: flex; gap: 22px; align-items: flex-start; margin-top: 8px; } .comp-top > .grow { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cbar .hit { position: relative; height: 18px; cursor: pointer; touch-action: none; margin-top: 4px; } .cbar .track { position: absolute; left: 0; right: 0; top: 6px; height: 6px; border-radius: 6px; background: #2a2c33; overflow: hidden; } .cbar .track i { display: block; height: 100%; }
.cnum { width: 46px; height: 24px; padding: 0 6px; text-align: right; border-radius: 6px; border: 1px solid transparent; background: transparent; color: #e2e2e6; font-weight: 700; } .cnum:hover, .cnum:focus { border-color: var(--line2); background: #15161a; outline: none; }
.cstat-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 960px) { .comp-top { flex-direction: column; } .cpic { width: 100%; } .cstat-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .comp-row { padding: 10px 12px; gap: 10px; } }

/* ---------- customisation ---------- */
.cz { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 14px; align-items: start; }
.cz-stage { position: sticky; top: calc(var(--top) + 14px); background: radial-gradient(ellipse at 50% 30%, #262c38, #0f1217 70%); }
.cz-scene { position: relative; display: flex; justify-content: center; } .cz-fig { width: 240px; } .cz-fig svg { width: 100%; height: auto; display: block; }
.cz-face { position: absolute; right: 0; top: 0; width: 118px; height: 118px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 8px 20px rgba(0,0,0,.4); } .cz-face-cv { width: 100%; height: 100%; display: block; }
.cz-menu { font-family: var(--serif); } .cz-main, .cz-subs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cz-main button, .cz-subs button { height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #c9ccd2; font-family: var(--serif); font-size: 18px; cursor: pointer; }
.cz-subs button { height: 32px; font-size: 16px; } .cz-main button.on, .cz-subs button.on { background: #eceef2; color: #111; border-color: #eceef2; }
.cz-panel { padding-top: 6px; }
.czs-h { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-size: 18px; color: #d9dbe0; }
.cz-num { width: 64px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line2); background: #101318; color: var(--text); font-family: var(--sans); font-size: 13px; text-align: center; } .cz-num.wide { width: 92px; }
.czs { position: relative; height: 30px; margin: 0 12px; cursor: pointer; touch-action: none; user-select: none; }
.czs-tr { position: absolute; left: -12px; right: -12px; top: 11px; height: 8px; border-radius: 8px; } .czs-fl { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.czs-k { position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.czsw { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.czdot { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); cursor: pointer; padding: 0; } .czdot.on { box-shadow: 0 0 0 2px #fff; }
.czdot.rainbow { background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.cz-tile { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); cursor: pointer; overflow: hidden; padding: 0; font-family: var(--sans); color: rgba(0,0,0,.55); font-weight: 700; }
.cz-tile img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; pointer-events: none; } .cz-tile.on { border-color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.cz-cloth { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cz-card { position: relative; aspect-ratio: 209 / 176; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #171a20; cursor: pointer; overflow: hidden; padding: 0; }
.cz-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; } .cz-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 13px; color: #eceef2; text-shadow: 0 1px 3px #000; font-family: var(--sans); }
.cz-card.on { border-color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.ok { color: #5fae7a; }
@media (max-width: 960px) { .cz-main button { padding: 0 11px; font-size: 16px; height: 34px; } .cz-subs button { padding: 0 10px; font-size: 14px; } .cz-main, .cz-subs { gap: 6px; } .cz { grid-template-columns: 1fr; } .cz-stage { position: static; } .cz-fig { width: 180px; } .cz-face { width: 96px; height: 96px; } .cz-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cz-cloth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cz-3d { position: relative; height: 580px; margin: -6px -6px 6px; }
.r6-stage { position: absolute; inset: 0; } .r6-cv { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; } .r6-cv.grab { cursor: grabbing; }
.r6-msg { position: absolute; left: 12px; right: 12px; bottom: 8px; text-align: center; font-size: 12px; color: #c9a45a; pointer-events: none; }
.r6-msg:empty { display: none; }
.cz-fv { position: absolute; top: 10px; left: 10px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(16,18,23,.7); color: #d4d7dd; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cz-fv.on { background: #eceef2; color: #111; border-color: #eceef2; }
@media (max-width: 960px) { .cz-3d { height: 440px; } }

/* ---------- home ---------- */
.home-life { display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; background: linear-gradient(to right, rgba(22,27,38,.9), color-mix(in srgb, var(--tint) 22%, transparent)); border: 1px solid rgba(95,174,122,.45); margin-bottom: 16px; }
.home-life .pic { flex: 0 0 180px; height: 180px; background: #0e1014; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.home-life .pic img { width: 100%; height: 100%; object-fit: cover; display: block; } .home-life .pic span { font-size: 64px; font-weight: 700; color: #2f3542; font-family: var(--serif); }
.home-life .info { flex: 1; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.home-life .r1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .home-life .nm { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--ivory); line-height: 1.1; }
.home-life .r2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #a9adb5; }
.home-life .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.home-empty { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.home-cards { columns: 250px; column-gap: 14px; }
.home-card { break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); transition: border-color .12s; }
.home-card:hover { border-color: rgba(142,162,220,.45); }
.home-card .cover { position: relative; display: block; height: 110px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, transparent), #10131a 75%); text-decoration: none; }
.home-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.home-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,14,18,.95), rgba(12,14,18,.2) 65%, transparent); }
.home-card .big-l { position: absolute; right: 14px; top: 2px; font-size: 96px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.07); font-family: var(--serif); }
.home-card .t { position: absolute; left: 16px; right: 16px; bottom: 10px; display: flex; align-items: baseline; gap: 8px; z-index: 1; }
.home-card .t span { font-family: var(--serif); font-size: 21px; font-weight: 700; color: #f2f3f6; text-shadow: 0 1px 6px rgba(0,0,0,.7); } .home-card .t small { margin-left: auto; font-size: 12px; color: #a9adb5; }
.home-card .links { padding: 6px 8px 10px; display: flex; flex-direction: column; }
.home-card .links a { display: flex; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: 14px; font-weight: 600; color: #c9ccd2; text-decoration: none; }
.home-card .links a span { flex: 1; } .home-card .links a i { font-style: normal; color: #5d626b; font-size: 12px; opacity: 0; }
.home-card .links a:hover { background: rgba(255,255,255,.06); color: #f2f3f6; } .home-card .links a:hover i { opacity: 1; }
.home-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; } .home-foot .chip { text-decoration: none; }
@media (max-width: 700px) { .home-life .pic { flex-basis: 110px; height: auto; min-height: 150px; } .home-life .nm { font-size: 24px; } .home-life .info { padding: 14px; } }

/* ---------- catalogue ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chips .chip, .filters > .chip { cursor: pointer; background: none; }
.chips .chip[style*="--c"].on { border-color: var(--c); background: color-mix(in srgb, var(--c) 30%, transparent); }
.cat-group { margin-top: 18px; } .cat-gh { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 20px; color: var(--ivory); }
.cat-gh i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .cat-gh small { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.ecard-link { position: relative; display: block; text-decoration: none; } .emine { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: #2f7a52; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.ench-page { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; } .ecol { display: flex; flex-direction: column; gap: 10px; }
.ecard-big { width: 240px; flex: 0 0 auto; box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: transform .2s; }
.gwin { flex: 1 1 360px; min-width: 0; padding: 28px 32px 22px; border-radius: 14px; background: linear-gradient(to bottom, #1a2230, #10141b 45%, #0b0c10); border: 1px solid rgba(255,255,255,.06); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.gtitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .gtitle > span:first-child { font-size: 24px; font-weight: 600; color: #e2e4e8; }
.rpill { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #ececf0; background: color-mix(in srgb, var(--c) 35%, transparent); border: 1px solid var(--c); }
.tagp { font-size: 11px; color: #8d929b; padding: 1px 8px; border-radius: 999px; border: 1px solid #2e333c; }
.gsub { font-size: 14px; color: #9097a2; line-height: 1.5; margin-top: 4px; }
.gsec { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 30px; } .gsec .gt { font-size: 16px; font-weight: 600; color: #d4d7dd; } .gsec .gd { font-size: 13px; color: #8d929b; line-height: 1.45; margin-top: 2px; }
.gb { display: flex; gap: 8px; flex: 0 0 auto; align-items: center; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; user-select: none; background: transparent; color: #e6e6ea; border: 1.5px solid #c9ccd2; }
.gbtn.white { background: #f2f2f4; color: #111; border-color: #f2f2f4; min-width: 60px; } .gbtn.red { background: #7a0f12; color: #f0d6d6; border-color: #7a0f12; }
.gbars { display: flex; gap: 6px; margin-top: 12px; } .gbars i { flex: 1; height: 5px; border-radius: 3px; background: #5a5f68; }
.gfoot { display: flex; justify-content: flex-end; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.sibs { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.sibs a { color: #9aa0ab; text-decoration: none; } .sibs a:hover { color: #e2e2e6; }
.pcat { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.ptabs small { font-size: 10px; opacity: .6; margin-left: 6px; text-transform: uppercase; letter-spacing: .05em; }
.pside { position: sticky; top: calc(var(--top) + 14px); } .pname { font-family: var(--serif); font-size: 22px; color: var(--ivory); } .pdesc { margin-top: 10px; } .psec { margin-top: 12px; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.prow { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(22,27,38,.55); color: var(--text); cursor: pointer; font: inherit; }
.prow:hover { border-color: #3d4554; } .prow .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .prow .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icat { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.icard { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(22,27,38,.55); text-decoration: none; color: var(--text); }
.icard:hover { border-color: #3d4554; } .icard .ib { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.idesc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ipic { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; background: #0f1217; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ipic img { width: 100%; height: 100%; object-fit: contain; } .ipic span { font-family: var(--serif); font-size: 28px; color: #3a404c; }
.ipic.big { flex-basis: 220px; width: 220px; height: 220px; cursor: zoom-in; } .ipic.big span { font-size: 80px; }
.item-page { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; } .item-page .card { min-width: 280px; }
.lore-list { display: grid; gap: 10px; margin-top: 12px; }
.lore-row { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: var(--text); } .lore-row:hover { border-color: #3d4554; }
.lore-row .ld { flex: 0 0 64px; text-align: center; padding: 6px 0; border-radius: 10px; background: rgba(255,255,255,.04); } .ld b { display: block; font-family: var(--serif); font-size: 26px; color: var(--ivory); line-height: 1; } .ld small { font-size: 11px; color: var(--muted); }
.lt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--serif); font-size: 19px; color: var(--ivory); } .lb { margin-top: 6px; font-size: 13.5px; color: #a9adb5; }
.lore-you { padding: 10px 0; border-top: 1px solid var(--line); } .lore-you:first-of-type { border-top: 0; } .lore-you a { color: var(--blue); text-decoration: none; }
.filters .sel, select.sel { height: 36px; width: auto; padding: 0 10px; }
.rules { margin: 6px 0 0; padding-left: 18px; color: #c9ccd2; line-height: 1.7; } .sac-c b { font-family: var(--serif); font-size: 19px; color: var(--ivory); }
.qcard.editable { position: relative; } .qedit { position: absolute; top: 12px; right: 14px; }
.qedit-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.qmark { flex: 0 0 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: #101318; color: #fff; cursor: pointer; font-weight: 700; } .qmark.on { background: #2f7a52; border-color: #2f7a52; }
@media (max-width: 960px) { .pcat { grid-template-columns: minmax(0, 1fr); } .pside { position: static; } .gwin { padding: 20px 18px; } .ecard-big { width: 200px; } .gsec { flex-direction: column; gap: 10px; } }
.pcat .ptree { border-radius: 14px; } .pcat .ptabs { border: 0; margin: -18px -20px 14px; overflow-x: auto; border-radius: 14px 14px 0 0; } .pcat .ptabs button { white-space: nowrap; }
.filters .seg { margin: 0; }
@media (max-width: 700px) { .home-card .cover { height: 70px; } .home-card .big-l { font-size: 64px; } .home-card .links a { padding: 5px 8px; } }

/* ---------- @mentions ---------- */
.mention { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 2px; margin: 0 1px; border-radius: 999px; vertical-align: -3px; font-size: .92em; font-weight: 600; color: #cfe8df; background: rgba(79,138,120,.18); border: 1px solid rgba(79,138,120,.5); cursor: pointer; white-space: nowrap; }
.mention.main { color: #c9d3f2; background: rgba(75,106,138,.22); border-color: rgba(142,162,220,.5); }
.mention.gone { opacity: .55; cursor: default; filter: grayscale(1); }
.mention .mpic, .mention-drop .mpic { width: 16px; height: 16px; border-radius: 50%; overflow: hidden; background: #0e1014; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #9fc9bb; flex: 0 0 auto; }
.mention .mpic img, .mention-drop .mpic img { width: 100%; height: 100%; object-fit: cover; }
.mention-drop { position: fixed; z-index: 10060; width: 270px; max-height: 260px; overflow: auto; padding: 4px; border-radius: 10px; background: #15191d; border: 1px solid #2a3a36; box-shadow: 0 16px 40px rgba(0,0,0,.55); font-size: 13px; }
.mention-drop .mrow { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; cursor: pointer; color: #d4d7dd; }
.mention-drop .mrow.on, .mention-drop .mrow:hover { background: rgba(79,138,120,.2); } .mention-drop .mpic { width: 22px; height: 22px; font-size: 11px; } .mention-drop small { color: #7d828b; }

/* ---------- players ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; margin-top: 12px; }
.pcard { padding: 12px 14px; border-radius: 12px; background: rgba(16,24,22,.7); border: 1px solid rgba(79,138,120,.25); display: flex; flex-direction: column; gap: 2px; }
.pcard .ph2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; } .pcard .ph2 b { font-size: 14px; color: #e2e4e8; margin-right: auto; }
.pcard .link-btn { align-self: flex-start; margin: 6px 0 0 6px; color: #7fb8a6; } .link-btn.bad { color: #e08a8a !important; }
.prow2 { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 7px; text-decoration: none; color: #d4d7dd; font-weight: 600; font-size: 14px; } .prow2:hover { background: rgba(79,138,120,.14); }
.ppic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #0e1014; border: 1px solid #2f3a37; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #9fc9bb; }
.ppic img { width: 100%; height: 100%; object-fit: cover; } .ppic.sm { flex-basis: 18px; width: 18px; height: 18px; font-size: 9px; border: 0; }
.pp { padding: 26px 28px; background: linear-gradient(to bottom, #172420, #10161a 40%, #0b0c0f); border-color: #1f2e2a; }
.pp-top { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.pp-pic { flex: 0 0 170px; height: 170px; border-radius: 12px; overflow: hidden; cursor: pointer; background: #0e1014; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; }
.pp-pic.empty { border: 1px dashed #2f3a37; color: #5d6b67; font-size: 13px; } .pp-pic.over { border-color: var(--blue); } .pp-pic img { width: 100%; height: 100%; object-fit: cover; }
.pp-info { flex: 1 1 300px; min-width: 0; }
.pp-name { width: 100%; height: 44px; border: 0; border-bottom: 1px solid transparent; background: none; color: #eef0f4; font-family: var(--serif); font-size: 30px; font-weight: 700; padding: 0 2px; } .pp-name:focus { outline: none; border-bottom-color: #3a4a46; }
.pp-f { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; } .pp-f .k { flex: 0 0 70px; font-size: 13px; color: #8d929b; } .pp-f .input { flex: 1; max-width: 320px; height: 34px; }
.pp-sibs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 14px; } .pp-sibs .link-btn { color: #7fb8a6; }
.pp-sib { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 3px; border-radius: 999px; background: rgba(79,138,120,.16); border: 1px solid rgba(79,138,120,.5); font-size: 12px; font-weight: 600; color: #cfe8df; text-decoration: none; }
.pp-cap { margin: 22px 0 6px; } .pp-notes { min-height: 80px; width: 100%; } .pp-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 10px; }
.pp-it { flex: 1 1 240px; min-height: 34px; height: 34px; resize: vertical; } .pp-evb { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 34px; } .pp-evb.on { border-color: var(--blue); color: #c9d3f0; }
.pp-log { display: flex; flex-direction: column; gap: 6px; }
.pp-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.pp-row .d { flex: 0 0 82px; font-size: 12px; color: #7fb8a6; padding-top: 2px; } .pp-row .grow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.pp-row .t { font-size: 14px; color: #d4d7dd; white-space: pre-wrap; } .pp-row .tie { opacity: 0; color: #7d8bb0; } .pp-row:hover .tie { opacity: 1; } @media (hover: none) { .pp-row .tie { opacity: .8; } }
.pp-row .x { border: 0; background: none; color: #5d626b; font-size: 16px; cursor: pointer; } .pp-row .x:hover { color: #e08a8a; }
.evchip { display: inline-flex; align-items: center; height: 22px; max-width: 260px; padding: 0 9px; border-radius: 999px; background: rgba(142,162,220,.14); border: 1px solid rgba(142,162,220,.45); color: #c9d3f0; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .evchip.gone { opacity: .55; }
.pp-men { display: block; padding: 7px 12px; margin-bottom: 5px; border-radius: 8px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); text-decoration: none; color: #d4d7dd; font-size: 13px; } .pp-men:hover { border-color: #3d4554; }
.evpick { position: fixed; z-index: 10050; width: 330px; max-width: calc(100vw - 16px); max-height: 320px; display: flex; flex-direction: column; border-radius: 10px; background: #15191d; border: 1px solid #2a3a36; box-shadow: 0 16px 40px rgba(0,0,0,.55); overflow: hidden; font-size: 13px; }
.evpick .input { border: 0; border-bottom: 1px solid #23302c; border-radius: 0; } .evpick-l { overflow: auto; padding: 4px; }
.evpick-i { display: flex; gap: 10px; align-items: baseline; padding: 7px 9px; border-radius: 7px; cursor: pointer; color: #d4d7dd; } .evpick-i:hover { background: rgba(255,255,255,.05); } .evpick-i.on { background: rgba(79,138,120,.2); } .evpick-i small { color: #7d828b; }
@media (max-width: 700px) { .pp { padding: 18px 16px; } .pp-pic { flex-basis: 120px; height: 120px; } .pp-name { font-size: 24px; } .pp-row { flex-wrap: wrap; } .pp-row .d { flex-basis: 100%; } }
textarea.input.pp-it { min-height: 34px; height: 34px; font-family: inherit; padding: 7px 10px; line-height: 1.4; } textarea.input.pp-notes { min-height: 90px; font-family: inherit; line-height: 1.5; }
.pp-head .ph { display: none; }
@media (max-width: 700px) { .pp-f .muted { flex-basis: 100%; padding-left: 80px; margin-top: -4px; } .pp-f .input { max-width: none; } }

/* ---------- auxiliary ---------- */
.auxhead { margin-bottom: 12px; } .auxsub { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .auxsub .link-btn { text-decoration: none; font-size: 12.5px; }
.row.wrap { flex-wrap: wrap; gap: 14px; }
.auxboxes { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; } .auxboxes .sep { width: 1px; background: var(--line2); margin: 4px 2px; }
.auxbox { min-width: 70px; padding: 6px 14px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); cursor: pointer; color: inherit; font: inherit; text-align: center; }
.auxbox span { display: block; font-size: 12px; color: var(--c); } .auxbox b { font-size: 18px; color: #e2e2e6; } .auxbox.on { background: color-mix(in srgb, var(--c) 28%, transparent); border-color: var(--c); } .auxbox.on span { color: #e6e8ee; }
.auxme { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.auxme .cap { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 5px; gap: 10px; } .auxme .r { text-align: right; } .auxme .big { font-size: 22px; font-weight: 700; line-height: 1.1; }
.auxpill { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #e6e8ee; background: color-mix(in srgb, var(--c) 25%, transparent); border: 1px solid color-mix(in srgb, var(--c) 66%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .auxpill.sm { font-size: 11px; }
.cdbar { display: flex; gap: 2px; width: 100%; height: 8px; } .cdbar.tall { height: 12px; } .cdbar i { flex: 1; border-radius: 2px; background: #2a2c33; } .cdbar i.b { background: #8ea2dc; } .cdbar i.g { background: #5fae7a; }
.auxlist { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; margin-top: 10px; }
.auxrow { display: grid; grid-template-columns: minmax(150px, 1.3fr) 150px minmax(160px, 2fr) 120px 120px; gap: 14px; align-items: center; min-width: 760px; padding: 10px 14px; border-radius: 8px; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.07); }
.auxrow.hd { background: none; border: 0; padding: 0 14px 2px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5d626b; } .auxrow.hd div:nth-child(2) { text-align: center; } .auxrow.hd div:nth-child(n+4) { text-align: right; }
.auxrow.ready { border-color: rgba(95,174,122,.35); } .auxrow.me { border-color: rgba(142,162,220,.5); background: rgba(142,162,220,.08); }
.auxrow .nm { display: flex; align-items: baseline; gap: 6px; min-width: 0; } .auxrow .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; } .auxrow .you { font-size: 11px; font-weight: 700; color: #8ea2dc; }
.auxrow .cp { border: 0; background: none; color: #5d626b; cursor: pointer; opacity: 0; font-size: 11px; } .auxrow:hover .cp { opacity: 1; }
.auxrow .tc { text-align: center; min-width: 0; } .auxrow .la { font-size: 12px; text-align: right; color: #9aa0ab; white-space: nowrap; } .auxrow .ne { text-align: right; white-space: nowrap; }
.elig { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #5fae7a; border: 1px solid #5fae7aaa; } .wait { font-size: 12px; font-weight: 600; color: #d9a441; } .wait.soon { color: #e2c27a; }
@media (max-width: 700px) { .auxme { grid-template-columns: 1fr auto; } .auxme .mid { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- minigames ---------- */
.mg-tabs { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.mg-tabs button { flex: 1 1 0; padding: 11px 0; border: 0; border-bottom: 1.5px solid transparent; background: #171b24; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; } .mg-tabs button + button { border-left: 1px solid rgba(255,255,255,.05); }
.mg-tabs button.on { background: #1e2330; color: #ececf0; font-weight: 600; border-bottom-color: #e6e6ea; }
.mg { border: 1px solid var(--line); border-radius: 12px; background: rgba(22,27,38,.55); padding: 18px; display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.mg-board { flex: 0 0 auto; position: relative; max-width: 100%; } .mg-side { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.mg-card { padding: 14px 16px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(22,27,38,.6) 70%); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); } .mg-card.glow { box-shadow: 0 0 18px color-mix(in srgb, var(--c) 14%, transparent); }
.mg-card .l { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); } .mg-card .b { font-size: 26px; font-weight: 800; color: #e2e2e6; margin-top: 2px; } .mg-card .s { font-size: 12px; color: #a3a8b2; margin-top: 4px; line-height: 1.45; }
.mg-sides { display: flex; gap: 8px; } .mg-sides > div { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #13161d; border: 1px solid #262b35; } .mg-sides > div.on { border-color: var(--c); }
.mg-sides i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .mg-sides small { font-size: 11px; color: #7d828b; } .mg-sides b { margin-left: auto; font-size: 13px; }
.mg-ctl .cap { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d828b; margin-bottom: 8px; } .mg-ctl .row { display: flex; gap: 8px; }
.seg2 { flex: 1; display: flex; border: 1px solid #2a2f3a; border-radius: 7px; overflow: hidden; } .seg2 button { flex: 1 1 0; padding: 7px 0; border: 0; background: #1a1e27; color: #c9ccd2; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; } .seg2 button + button { border-left: 1px solid #2a2f3a; } .seg2 button:hover { background: #232938; }
.ttt-wrap { padding: 10px; border-radius: 14px; background: #10131a; border: 1px solid #262b35; } .ttt { display: grid; gap: 10px; }
.ttt .cell { border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #181c25; border: 1px solid #262b35; user-select: none; } .ttt .cell.free { cursor: pointer; } .ttt .cell.free:hover { background: #1f2430; }
.ttt .cell.last { border-color: #e8b04a; background: rgba(232,176,74,.09); } .ttt .cell.winme { background: rgba(232,176,74,.13); } .ttt .cell.winthem { background: rgba(217,119,111,.13); }
.c4-row { display: grid; } .c4-a { display: flex; align-items: flex-end; justify-content: center; height: 20px; color: #e8b04a; font-size: 16px; line-height: 1; } .c4-n { text-align: center; font-size: 12px; font-weight: 700; color: #6e737c; } .c4-n.on { color: #e8b04a; }
.c4 { position: relative; display: flex; border-radius: 14px; background: linear-gradient(180deg, #24346a, #1c2a57); box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.35); }
.c4-col { display: flex; flex-direction: column-reverse; } .c4-col.free { cursor: pointer; } .c4-col.free:hover { background: rgba(255,255,255,.07); }
.c4-cell { border-radius: 50%; box-shadow: inset 0 3px 6px rgba(0,0,0,.45); } .c4-cell.last { outline: 3px solid #fff; outline-offset: -3px; }
.cb-row { display: flex; gap: 8px; align-items: stretch; } .cb-eval { position: relative; width: 12px; border-radius: 6px; overflow: hidden; background: #2a2f3a; } .cb-eval .f { position: absolute; left: 0; right: 0; bottom: 0; background: #e8b04a; transition: height .3s; } .cb-eval .mid { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.4); }
.cb-wrap { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.4); touch-action: none; } .cb { display: grid; user-select: none; }
.cb .sq { position: relative; display: flex; align-items: center; justify-content: center; } .cb .sq.l { background: #d6dbe5; } .cb .sq.d { background: #7d8ba8; }
.cb .hl { position: absolute; inset: 0; } .cb .hl.me { background: rgba(232,176,74,.44); } .cb .hl.them { background: rgba(142,162,220,.38); }
.cb .rk, .cb .fl { position: absolute; font-weight: 800; pointer-events: none; } .cb .rk { top: 2px; left: 4px; } .cb .fl { bottom: 1px; right: 4px; } .cb .sq.l .rk, .cb .sq.l .fl { color: #7d8ba8; } .cb .sq.d .rk, .cb .sq.d .fl { color: #d6dbe5; }
.cb .pc { position: relative; } .cb .ring { position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #8ea2dc; pointer-events: none; }
.cb .dot { position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(20,24,34,.35); pointer-events: none; } .cb .cap { position: absolute; inset: 3px; border-radius: 50%; border: 6px solid rgba(20,24,34,.35); pointer-events: none; }
.glyph { font-family: "Segoe UI Symbol", "DejaVu Sans", serif; line-height: 1; pointer-events: none; } .glyph.w { color: #f6f3ec; -webkit-text-stroke: 1px #1d2027; } .glyph.b { color: #262a33; -webkit-text-stroke: 1px #9aa3b5; }
.cb-ghost { position: fixed; z-index: 10000; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.promo { display: flex; gap: 8px; padding: 14px; border-radius: 12px; background: #15181e; border: 1px solid #2a2f3a; } .promo button { width: 64px; height: 64px; border: 0; border-radius: 8px; background: #d6dbe5; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cb-moves { flex: 1 1 auto; min-height: 60px; max-height: 240px; overflow-y: auto; border-radius: 8px; background: #13161d; border: 1px solid #262b35; } .cb-moves > div { display: grid; grid-template-columns: 34px 1fr 1fr; font-size: 12px; font-family: ui-monospace, monospace; padding: 3px 10px; } .cb-moves > div:nth-child(even) { background: rgba(255,255,255,.02); } .cb-moves .n { color: #6e737c; } .cb-moves .me { color: #e8b04a; font-weight: 700; }
.bj-table { max-width: 100%; padding: 16px 18px; border-radius: 16px; background: radial-gradient(ellipse at 50% 30%, #1f5a46, #164233 60%, #10302a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), 0 10px 26px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 12px; }
.bj-area { padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; background: rgba(0,0,0,.12); } .bj-area.on { border-color: #e8b04a; background: rgba(232,176,74,.08); }
.bj-area .hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; } .bj-area .hd span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); } .bj-area .hd b { font-size: 13px; color: #fff; }
.bj-area .row { display: flex; gap: 8px; flex-wrap: wrap; } .bj-area .muted { color: rgba(255,255,255,.45); }
.bj-card { position: relative; border-radius: 8px; background: linear-gradient(160deg, #fbfaf6, #e9e6dd); box-shadow: 0 4px 10px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.bj-card span { font-weight: 800; color: #1d2027; font-family: Georgia, serif; } .bj-card .tl { position: absolute; top: 4px; left: 6px; } .bj-slot { border-radius: 8px; border: 2px dashed rgba(255,255,255,.18); flex: 0 0 auto; }
.bj-chip { padding: 1px 7px; border-radius: 5px; background: #f1eee6; color: #1d2027; font-size: 12px; font-weight: 800; }
.bj-pick { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.08); } .bj-pick button { border: 0; border-radius: 6px; background: #f1eee6; color: #1d2027; font-family: Georgia, serif; font-weight: 800; cursor: pointer; } .bj-pick button:disabled { opacity: .45; cursor: default; }
.bj-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bj-opts { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #13161d; border: 1px solid #262b35; } .bj-opts .hd { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 3px; } .bj-opts .hd span { color: #a3a8b2; } .bj-opts .hd b.me { color: #e8b04a; }
.bj-opts .bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #2a2f3a; } .bj-opts .bar i.w { background: #6f9e7f; } .bj-opts .bar i.w.me { background: #e8b04a; } .bj-opts .bar i.p { background: #6b7387; } .bj-opts .bar i.l { background: #d9776faa; }
.bj-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bj-facts > div { padding: 8px 10px; border-radius: 8px; background: #13161d; border: 1px solid #262b35; } .bj-facts b { display: block; font-size: 18px; } .bj-facts small { font-size: 11px; color: #8d929b; }
.bj-rules { font-size: 12px; color: #a3a8b2; } .bj-rules summary { cursor: pointer; color: #c9ccd2; font-weight: 600; } .bj-rules .sel { width: 100%; margin: 8px 0 4px; } .bj-rules label { display: flex; gap: 8px; align-items: center; margin-top: 6px; cursor: pointer; }
@media (max-width: 760px) { .mg { padding: 12px; } .mg-side { flex-basis: 100%; min-width: 0; } }

/* ---------- crosshairs ---------- */
.xhead { margin-bottom: 12px; } .xstrip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.xcat { width: 56px; border: 0; background: none; padding: 0; cursor: pointer; color: #9aa0ab; font: inherit; } .xcat > span { display: block; margin-top: 4px; font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xcat .sq { position: relative; width: 52px; height: 52px; border-radius: 8px; padding: 10px; background: #12151b; border: 1px solid #262b35; } .xcat.on .sq { background: rgba(120,175,255,.08); border-color: rgba(120,175,255,.6); } .xcat.on > span { color: #e6e8ee; font-weight: 700; } .xcat:hover .sq { border-color: rgba(120,175,255,.4); }
.xcat .sq small { position: absolute; top: 2px; right: 4px; font-size: 9px; font-weight: 700; color: #7d828b; }
.holo { width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgba(120,175,255,.5)); opacity: .65; } .holo.on { opacity: 1; filter: drop-shadow(0 0 5px rgba(120,175,255,.85)); }
.holo div { width: 100%; height: 100%; background: repeating-linear-gradient(0deg, rgba(120,175,255,.95) 0 2px, rgba(120,175,255,.45) 2px 3px); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.allg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; height: 100%; } .allg i { border-radius: 2px; background: rgba(120,175,255,.4); } .xcat.on .allg i { background: rgba(120,175,255,.85); }
.xsec { margin-bottom: 18px; } .xsh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .xsh .label { margin: 0; cursor: pointer; } .xsh .label.gold { color: #f2c94c; } .xsh small { font-size: 12px; color: #6e737c; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.xcard { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); transition: border-color .12s, transform .12s; }
.xcard:hover { border-color: rgba(142,162,220,.55); transform: translateY(-2px); } .xcard.eq { border-color: rgba(242,201,76,.6); }
.xcard .img { aspect-ratio: 1; padding: 25%; background: #0e1014; } .xcard .img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.xcard .ft { padding: 6px 8px 8px; text-align: center; } .xcard .ft b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xid { display: inline-block; max-width: 100%; margin-top: 3px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-family: ui-monospace, monospace; color: #8d929b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xid:not(.none):hover { color: #e2e2e6; background: #262b35; } .xid.none { color: #5d626b; } .xid.ok, .cpb.ok { color: #5fae7a !important; }
.blurred { filter: blur(4px); } .blurred:focus { filter: none; }
.xcard .star { position: absolute; top: 4px; left: 7px; z-index: 1; font-size: 13px; color: #f2c94c; }
.xcard .cpb { position: absolute; top: 5px; right: 6px; z-index: 1; width: 22px; height: 22px; border-radius: 5px; border: 1px solid #2f3542; background: rgba(14,16,20,.8); color: #c9ccd2; cursor: pointer; opacity: 0; } .xcard:hover .cpb { opacity: 1; } @media (hover: none) { .xcard .cpb { opacity: .8; } }
.xminis { display: flex; flex-wrap: wrap; gap: 6px; } .xmini { position: relative; width: 44px; height: 44px; padding: 7px; border-radius: 8px; background: #0e1014; border: 1px solid #262b35; cursor: pointer; } .xmini.eq { border-color: rgba(242,201,76,.6); } .xmini:hover { border-color: rgba(142,162,220,.6); }
.xmini img { width: 100%; height: 100%; object-fit: contain; } .xmini .tick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: rgba(14,16,20,.75); color: #5fae7a; font-weight: 700; opacity: 0; transition: opacity .15s; } .xmini.done .tick { opacity: 1; } .xmini.done { border-color: #5fae7a; }
.xh-prev { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; } .xh-stage { width: 220px; height: 220px; border-radius: 10px; padding: 50px; background: #0e1014; border: 1px solid #262b35; } .xh-stage img { width: 100%; height: 100%; object-fit: contain; }
.xh-bgs { display: flex; gap: 6px; margin-top: 8px; justify-content: center; } .xh-bgs button { width: 22px; height: 22px; border-radius: 5px; border: 1px solid #3a404a; cursor: pointer; }
.xh-name { width: 100%; border: 1px solid transparent; background: none; color: #e2e2e6; font-size: 22px; font-weight: 700; padding: 2px 6px; margin-left: -7px; border-radius: 6px; } .xh-name:not(:disabled):focus { border-color: #2a2f3a; background: #1a1d24; outline: none; }
.xh-add { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; } .xh-drop { flex: 0 0 150px; height: 150px; padding: 20px; border-radius: 10px; border: 1px dashed #3a404a; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #7d828b; cursor: pointer; } .xh-drop.over { border-color: var(--blue); } .xh-drop img { width: 100%; height: 100%; object-fit: contain; }
.btn.xgold { color: #f2c94c; border-color: rgba(242,201,76,.4); }

/* ---------- legion logger ---------- */
.lbanner { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(12,14,20,.95), rgba(28,36,56,.85)); margin-bottom: 12px; }
.lbanner .in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 20px; }
.ltag { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #8ea2dc; } .lwho { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #eef0f4; margin-top: 2px; } .lwhosub { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; min-height: 22px; }
.lcounts { display: flex; gap: 8px; } .lcount { min-width: 74px; padding: 6px 12px; border-radius: 8px; text-align: center; background: rgba(15,18,24,.7); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); } .lcount b { display: block; font-size: 20px; color: var(--c); line-height: 1.1; } .lcount small { font-size: 10px; font-weight: 700; color: #a3a8b2; letter-spacing: .06em; }
.lcols { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; } .lleft { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; } .lright { flex: 0 1 380px; min-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.lpanel { border: 1px solid var(--line); border-radius: 10px; background: rgba(22,27,38,.55); overflow: hidden; } .lph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.06); } .lph b { font-size: 14px; }
.lbody { padding: 12px 14px; } .lempty { padding: 14px 6px; text-align: center; font-size: 13px; color: #7d828b; }
.ldrafts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; } .ldraft { flex: 0 0 auto; display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; background: #13161d; border: 1px solid #262b35; max-width: 360px; } .ldraft.old { opacity: .55; }
.ldraft img, .ldraft .noimg { width: 72px; height: 54px; object-fit: cover; border-radius: 5px; cursor: zoom-in; flex: 0 0 auto; } .ldraft .noimg { background: #1a1d24; font-size: 9px; color: #6e737c; display: flex; align-items: center; justify-content: center; cursor: default; } .ldraft b { font-size: 13px; }
.ldraft .btn { text-decoration: none; }
.lforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; } .lform { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 8px; background: #13161d; border: 1px solid #262b35; text-decoration: none; color: #e2e2e6; } .lform:hover { border-color: #8ea2dc; } .lform span { font-size: 12px; color: #8ea2dc; }
.lblk { cursor: pointer; } .lblk + .lblk { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); } .lblk > .row { margin-bottom: 8px; }
.ltiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ltile { min-width: 0; padding: 6px 10px 7px; border-radius: 6px; background: #13161d; border: 1px solid #262b35; } .ltile.done { border-color: rgba(95,174,122,.4); }
.ltile .lt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 5px; } .ltile .lt-top span { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #7d828b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ltile .lt-top b { font-size: 13px; } .ltile .lt-top b.good { color: #5fae7a; } .ltile .lt-top b.nil { color: #4a4f58; }
.lbar { display: flex; gap: 2px; height: 5px; } .lbar i { flex: 1; border-radius: 2px; background: #2a2c33; } .lbar i.b { background: #8ea2dc; } .lbar i.g { background: #5fae7a; } .lbar i.w { background: rgba(214,217,224,.6); }
.lall { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; }
.lrow { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; background: #13161d; border: 1px solid #262b35; } .lrow + .lrow { margin-top: 6px; } .lrow img { width: 56px; height: 42px; object-fit: cover; border-radius: 5px; cursor: zoom-in; } .lrow b { font-size: 13px; }
.ltype { padding: 0 8px; line-height: 17px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.lres { display: flex; flex-direction: column; gap: 4px; } .lres-r { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; background: #13161d; font-size: 12px; } .lres-r .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; } .lres-r.yes .dot { background: #5fae7a; } .lres-r.no .dot { background: #d06a6a; }
@media (max-width: 700px) { .ltiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lright { min-width: 0; flex-basis: 100%; } }

/* ---------- VOD player ---------- */
button.ev-chip { font: inherit; cursor: pointer; }
.vodp { position: fixed; inset: 0; z-index: 10080; background: rgba(5,6,9,.75); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
.vod-box { width: min(1320px, 96vw); max-height: 94vh; border-radius: 12px; overflow: hidden; background: #0b0d11; border: 1px solid #2a3140; box-shadow: 0 24px 60px rgba(0,0,0,.6); display: flex; }
.vod-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #0b0d11; } .vod-right { flex: 0 0 330px; border-left: 1px solid #1d222b; display: flex; flex-direction: column; min-height: 0; background: #0e1116; }
.vod-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0e1116; border-bottom: 1px solid #1d222b; } .vod-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vod-head .btn { text-decoration: none; }
.vod-tag { font-size: 11px; font-weight: 800; color: #e0504a; border: 1.5px solid #e0504a; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.vod-stage { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; max-height: 70vh; } .vod-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vod-left:fullscreen .vod-stage { max-height: none; flex: 1; aspect-ratio: auto; }
.vod-shield { position: absolute; inset: 0; cursor: pointer; } .vod-flash { position: absolute; top: 10px; right: 12px; padding: 2px 8px; border-radius: 5px; background: rgba(0,0,0,.6); color: #e8ebf0; font-size: 12px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.vod-fail { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #0b0d11; color: #c9ccd2; text-align: center; padding: 20px; } .vod-red { background: #e0504a; border-color: #e0504a; color: #fff; text-decoration: none; }
.vod-bar { padding: 6px 12px 8px; display: flex; flex-direction: column; gap: 4px; background: #11141a; border-top: 1px solid #1d222b; }
.vod-seek { position: relative; height: 22px; cursor: pointer; } .vod-seek .track { position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 3px; background: #252a35; } .vod-seek .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: #7fa6ee; }
.vod-seek .marks { position: absolute; inset: 0; pointer-events: none; } .vod-seek .mclip { position: absolute; top: 7px; height: 9px; background: color-mix(in srgb, var(--c) 35%, transparent); border: 1px solid var(--c); border-radius: 2px; } .vod-seek .mpt { position: absolute; top: 4px; width: 3px; height: 15px; margin-left: -1.5px; border-radius: 2px; }
.vod-seek .pend { position: absolute; top: 6px; height: 11px; right: 0; background: rgba(232,197,71,.35); border-left: 2px solid #e8c547; display: none; pointer-events: none; }
.vod-seek .knob { position: absolute; top: 5px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #d6e4ff; box-shadow: 0 0 0 3px rgba(127,166,238,.25); pointer-events: none; }
.vod-seek .tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.85); font-size: 11px; color: #dde; display: none; pointer-events: none; white-space: nowrap; }
.vod-ib { min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: #c9ccd2; font-size: 13px; cursor: pointer; } .vod-ib:hover { background: rgba(255,255,255,.07); }
.vod-time { margin: 0 8px; font-size: 12px; color: #9aa0ab; font-variant-numeric: tabular-nums; white-space: nowrap; } .vod-vol { width: 70px; accent-color: #7fa6ee; }
.vod-ph { padding: 12px 14px 8px; border-bottom: 1px solid #1d222b; display: grid; gap: 8px; } .vod-ph .label { margin: 0; } .vod-hint { min-height: 14px; }
.vod-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 12px; }
.vod-m { margin-bottom: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.025); border: 1px solid #1f2430; border-left: 3px solid var(--c); } .vod-m.on { background: rgba(127,166,238,.1); border-color: #7fa6ee; border-left-color: var(--c); }
.vod-m .vm-top { display: flex; align-items: center; gap: 7px; cursor: pointer; } .vod-m .vm-top b { font-size: 12px; color: #7fa6ee; white-space: nowrap; } .vod-m .k { font-size: 10px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; } .vod-m .lbl { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vod-m .tags, .vtags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; } .vod-m .tags span, .vtags span { font-size: 11px; padding: 0 7px; line-height: 18px; border-radius: 999px; background: #1c2230; color: #a9b3c8; }
.vod-m .acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .vod-m .acts .btn { height: 24px; font-size: 11px; }
.vod-m .edit { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .vod-m .edit .input { height: 30px; } .vod-tin { width: 78px !important; height: 26px !important; text-align: center; font-variant-numeric: tabular-nums; }
.vod-m .kinds { display: flex; gap: 4px; flex-wrap: wrap; } .vod-m .kinds button { font-size: 11px; font-weight: 700; padding: 0 8px; line-height: 22px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--c); color: var(--c); background: none; } .vod-m .kinds button.on { background: var(--c); color: #fff; }
@media (max-width: 900px) { .vod-box { flex-direction: column; overflow-y: auto; } .vod-right { flex: none; border-left: 0; border-top: 1px solid #1d222b; } .vod-list { max-height: none; } .vod-head .muted { display: none; } }

/* ---------- VODs ---------- */
.vbar { margin: 10px 0 12px; align-items: center; } .vbar .sep { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; } .vgrid.sm { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.vcard { border-radius: 10px; overflow: hidden; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); cursor: pointer; transition: border-color .12s, transform .12s; } .vcard:hover { border-color: rgba(224,80,74,.7); transform: translateY(-2px); }
.vcard.mo { border-top: 3px solid var(--c); } .vcard.mo:hover { border-color: var(--c); }
.vcard .pic { position: relative; aspect-ratio: 16/9; background: #000; } .vcard .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; border-radius: 10px; background: #e0504a; color: #fff; display: flex; align-items: center; justify-content: center; opacity: .85; } .vcard:hover .play { opacity: 1; }
.vcard .strip { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.55); } .vcard .strip i { position: absolute; top: 0; bottom: 0; } .vcard .strip i.pt { width: 3px; }
.vcard .tm { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; } .vcard .kd { position: absolute; left: 8px; top: 8px; padding: 1px 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.vcard .info { padding: 10px 12px 12px; display: grid; gap: 3px; } .vcard .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ell { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vcnt { color: #e0504a; font-weight: 600; }
/* ---------- clips ---------- */
.clips { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 10px; }
.cside { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--top) + 14px); }
.cwho-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; border: 1px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; } .cwho-row:hover { background: rgba(255,255,255,.04); } .cwho-row.on { border-color: #5b7bb5; background: rgba(91,123,181,.12); }
.cwho-row .av { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #0e1014; border: 1px solid #2a2f3a; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #8d929b; } .cwho-row .av img { width: 100%; height: 100%; object-fit: cover; }
.cwho-row .grow { min-width: 0; display: flex; flex-direction: column; } .cwho-row .n { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cwho-row small { font-size: 10px; color: #6e737c; } .cwho-row b { font-size: 12px; color: #a9cbff; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ccard { position: relative; border-radius: 8px; overflow: hidden; background: #0e1014; border: 1px solid #262b35; transition: border-color .12s, transform .12s; } .ccard:hover { border-color: #5b7bb5; transform: translateY(-2px); }
.ccard .pic { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; } .ccard video { width: 100%; height: 100%; object-fit: cover; display: block; } .ccard .pl { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: #fff; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.55); pointer-events: none; }
.ccard .ced { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; opacity: 0; } .ccard:hover .ced { opacity: 1; } @media (hover: none) { .ccard .ced { opacity: .85; } }
.ccard .info { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; } .ccard .info b { font-size: 12px; } .cwho { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.cdrop { border-radius: 8px; border: 1px dashed #33405a; background: #0e1014; overflow: hidden; cursor: pointer; text-align: center; } .cdrop.over { border-color: var(--blue); } .cdrop video { width: 100%; max-height: 220px; display: block; background: #000; }
.clip-modal { padding: 12px !important; } .clip-stage { position: relative; background: #000; border-radius: 8px; overflow: hidden; } .clipv { width: 100%; max-height: 72vh; display: block; background: #000; }
.clip-nav { position: absolute; top: 50%; margin-top: -22px; width: 36px; height: 44px; border: 0; border-radius: 8px; background: rgba(0,0,0,.5); color: #fff; font-size: 24px; cursor: pointer; } .clip-nav.l { left: 8px; } .clip-nav.r { right: 8px; }
@media (max-width: 760px) { .clips { grid-template-columns: 1fr; } .cside { position: static; flex-direction: row; flex-wrap: wrap; } .cwho-row { flex: 0 0 auto; } .cwho-row small { display: none; } }

/* ---------- slots ---------- */
.mono { font-family: ui-monospace, monospace; } .clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.sl-card { border-radius: 10px; overflow: hidden; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: var(--text); transition: border-color .12s, transform .12s; } .sl-card:hover { border-color: rgba(142,162,220,.55); transform: translateY(-2px); }
.sl-pic { aspect-ratio: 1; background: #0e1014; display: flex; align-items: center; justify-content: center; padding: 8px; } .sl-pic img { width: 100%; height: 100%; object-fit: contain; } .sl-pic span { font-family: var(--serif); font-size: 48px; color: #2f3542; }
.sl-card .info { padding: 8px 10px 10px; } .sl-card .info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tagchip { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 3px 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #c9d3f2; background: rgba(142,162,220,.14); border: 1px solid rgba(142,162,220,.4); } .tagchip.sm { height: 18px; font-size: 10.5px; padding: 0 7px; }
.tagchip button { border: 0; background: none; color: #aab4d8; cursor: pointer; padding: 0 5px; }
.tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 34px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line2); background: #13161d; } .tagbox input { flex: 1 1 100px; min-width: 80px; border: 0; background: none; color: var(--text); outline: none; font: inherit; font-size: 13px; }
.sl-drop { width: 180px; height: 180px; padding: 10px; border-radius: 10px; background: #0e1014; border: 1px dashed #2f3542; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #5d626b; } .sl-drop img { width: 100%; height: 100%; object-fit: contain; }
.sl-page { padding: 20px 22px; } .sl-top { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; } .sl-left { flex: 0 0 240px; } .sl-right { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-bigpic { width: 240px; height: 240px; padding: 10px; border-radius: 10px; background: #0e1014; border: 1px solid #262b35; display: flex; align-items: center; justify-content: center; cursor: zoom-in; } .sl-bigpic.over { border-color: var(--blue); } .sl-bigpic img { width: 100%; height: 100%; object-fit: contain; }
.sl-id { width: 140px; height: 32px; } textarea.input.sl-desc { min-height: 56px; font-family: inherit; }
.sl-sac { padding: 14px 16px; } .sl-step { display: flex; align-items: center; gap: 4px; } .sl-step b { min-width: 34px; text-align: center; font-family: ui-monospace, monospace; font-size: 13px; } .sl-step b.bad { color: #e08a8a; }
.sl-tiny { width: 22px; height: 22px; padding: 0; border-radius: 5px; border: 1px solid #2a2f3a; background: #1c2028; color: #d4d7dd; cursor: pointer; } .sl-tiny:disabled { opacity: .3; cursor: default; }
.sl-total { margin-top: 10px; height: 5px; border-radius: 5px; background: #2c3038; overflow: hidden; } .sl-total i { display: block; height: 100%; border-radius: 5px; }
.sl-bars { display: flex; flex-direction: column; gap: 9px; min-width: 220px; } .sl-bar { display: flex; align-items: center; gap: 8px; } .sl-bar b { flex: 0 0 82px; font-size: 13px; } .sl-bar .segs { flex: 1; display: flex; gap: 3px; } .sl-bar .segs i { flex: 1; height: 5px; border-radius: 5px; background: #4a4f57; } .sl-bar .segs i.on { background: #c9ccd2; }
.sl-av { margin-top: 18px; } .sl-avrow { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; } .sl-stage { position: relative; width: 320px; max-width: 100%; height: 420px; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #2c3038, #1a1d23 70%); }
.sl-avside { flex: 1 1 280px; min-width: 260px; } .sl-sec { border-bottom: 1px solid rgba(255,255,255,.07); } .sl-sec summary { display: flex; align-items: center; gap: 8px; padding: 12px 2px; cursor: pointer; list-style: none; } .sl-sec summary b { flex: 1; font-size: 14px; } .sl-sec .body { padding: 0 2px 14px; display: grid; gap: 8px; }
.sl-skin { width: 100%; height: 6px; border-radius: 6px; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, rgb(74,46,34), rgb(138,90,62), rgb(196,140,104), rgb(246,206,176)); }
.sl-cloth { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05); } .sl-cloth label { cursor: pointer; font-size: 13px; }
.sl-th { display: flex; align-items: center; gap: 8px; } .sl-th img { width: 58px; height: 55px; object-fit: contain; border-radius: 4px; background: #13161d; border: 1px solid #2a2f3a; }
.sl-acc { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #14171e; border: 1px solid #2a2f3a; } .sl-adj { margin-top: 8px; display: grid; gap: 6px; } .sl-sl input { width: 100%; }
.sl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; align-items: start; } .sl-cols .card { margin-top: 8px; } textarea.input.sl-notes { min-height: 140px; font-family: inherit; margin-top: 8px; }
.sl-lore { display: grid; gap: 8px; } .sl-lore textarea { font-family: inherit; min-height: 60px; } .sl-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
@media (max-width: 760px) { .sl-cols { grid-template-columns: 1fr; } .sl-left { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; } .sl-page { padding: 16px; } .sl-stage { width: 100%; height: 380px; } .sl-avside { min-width: 0; } }
@media (max-width: 760px) { .sl-avrow > div:first-child { width: 100%; } }

/* ---------------------------------------------------------------- Actor Program: Outfit catalogue / Hairdresser / Millinery */
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.wd-card { all: unset; box-sizing: border-box; position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); transition: transform .12s, border-color .12s; min-width: 0; }
.wd-card:hover { border-color: rgba(142,162,220,.55); transform: translateY(-2px); }
.wd-card.picked { border-color: #e8892c; box-shadow: 0 0 0 2px #e8892c; }
.wd-card .stage, .wd-mini .stage, .wd-chipcard .stage { position: relative; aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(180deg, #a9bfd4 0%, #8fa6bc 100%); }
.wd-card .stage img, .wd-mini .stage img, .wd-chipcard .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.wd-card .stage img.front { inset: 5%; width: 90%; height: 90%; }
.wd-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #3d4a5a; }
.wd-err { position: absolute; bottom: 6px; left: 6px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e08a8a; color: #111; font-weight: 800; font-size: 12px; }
.wd-card .foot { padding: 7px 8px 9px; text-align: center; }
.wd-card .foot b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e2e2e6; }
.wd-tags { margin-top: 5px; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 4px; }
.wd-tags span { font-size: 10px; font-weight: 600; padding: 0 7px; line-height: 16px; border-radius: 999px; color: #dfe5f7; background: #8ea2dc2e; border: 1px solid #8ea2dc55; }
.wd-tags span.more { background: none; border: none; color: #8d929b; }
.wd-corner { position: absolute; top: 7px; right: 7px; z-index: 1; }
.wd-combo { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 9px; line-height: 17px; border-radius: 999px; border: 1.5px solid #e8892c; color: #e8892c; background: rgba(10,12,16,.55); }
.wd-combo.hat, .wd-combo.hats { border-color: #a46be0; color: #c39cf0; }
.wd-combo.both { border-color: transparent; background: linear-gradient(rgba(10,12,16,.85), rgba(10,12,16,.85)) padding-box, linear-gradient(115deg, #e8892c 0 50%, #a46be0 50% 100%) border-box; color: #f0b27a; }
.wd-tick { position: absolute; top: 7px; left: 7px; z-index: 2; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #fff; background: rgba(0,0,0,.25); box-sizing: border-box; }
.wd-tick.on { background: #e8892c; border-color: #e8892c; } .wd-tick.on.hat { background: #a46be0; border-color: #a46be0; }
.wd-dock { position: sticky; top: 0; z-index: 5; background: var(--bg, #0d0f14); padding: 8px 0; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.wd-strip { display: flex; gap: 8px; align-items: stretch; }
.wd-vlabel { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a46be0; text-align: center; }
.row-scroll { flex: 1 1 auto; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; align-items: center; min-width: 0; }
.wd-mini { all: unset; flex: 0 0 96px; border-radius: 8px; overflow: hidden; cursor: pointer; background: rgba(22,27,38,.6); border: 1px solid #a46be088; }
.wd-mini .n { display: block; padding: 3px 5px 5px; font-size: 10px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-tray { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid #e8892c66; background: rgba(22,27,38,.92); flex-wrap: wrap; }
.wd-tray .row-scroll { min-height: 44px; }
.wd-chipcard { all: unset; flex: 0 0 44px; height: 44px; border-radius: 6px; overflow: hidden; cursor: pointer; }
.wd-frow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.wd-frow .label { margin: 0 6px 0 0; min-width: 44px; }
.wd-frow.sub { padding-left: 50px; }
.wd-cdot { all: unset; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.25); box-sizing: border-box; }
.wd-cdot.small { width: 16px; height: 16px; } .wd-cdot.on { border-color: #fff; box-shadow: 0 0 0 2px #8ea2dc; }
.wd-sws { position: absolute; top: 7px; left: 7px; display: flex; gap: 3px; align-items: center; padding: 3px 5px; border-radius: 999px; background: rgba(10,12,16,.5); z-index: 1; }
.wd-sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); vertical-align: middle; } .wd-sw.big { width: 12px; height: 12px; }
.wd-fitdot { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; z-index: 1; }
.wd-fit { display: inline-flex; border-radius: 999px; border: 1px solid #2a2f3a; overflow: hidden; align-self: flex-start; }
.wd-fit button { all: unset; padding: 0 14px; line-height: 30px; font-size: 12px; font-weight: 600; cursor: pointer; color: #c9ccd2; border-left: 1px solid #2a2f3a; } .wd-fit button:first-child { border-left: none; } .wd-fit button.on { color: #fff; }
.wd-item { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.wd-left { flex: 0 0 360px; max-width: 100%; }
.wd-3d { position: relative; width: 100%; aspect-ratio: 6/7; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #a9bfd4 0%, #8fa6bc 100%); }
.wd-right { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wd-side { display: flex; flex-direction: column; gap: 10px; }
.wd-side .label { margin: 4px 0 0; }
.wd-name { all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; font-size: 22px; font-weight: 700; padding: 2px 6px; margin-left: -7px; border-radius: 6px; border: 1px solid transparent; }
.wd-name:focus { border-color: #2a2f3a; background: #1a1d24; }
.wd-idrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .wd-idrow .lab { flex: 0 0 48px; font-size: 13px; color: #c9ccd2; } .wd-idrow .input { flex: 1 1 160px; min-width: 0; }
.wd-colour { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; border: 1px solid #2a2f3a; background: #14171e; }
.wd-swatch { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); flex: 0 0 auto; }
.wd-sl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6abb4; } .wd-sl > span:first-child { flex: 0 0 44px; } .wd-sl input[type=range] { flex: 1 1 auto; min-width: 0; } .wd-sl .mono { flex: 0 0 42px; text-align: right; }
.wd-hue { background: linear-gradient(90deg, red, #ff0, lime, cyan, blue, #f0f, red); border-radius: 8px; height: 8px; -webkit-appearance: none; appearance: none; }
.wd-parts { display: flex; flex-direction: column; gap: 6px; }
.wd-part { padding: 6px 10px; border-radius: 6px; background: #14171e; border: 1px solid #2a2f3a; display: flex; flex-direction: column; gap: 6px; }
.wd-adj { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px solid #222731; } .wd-adj[hidden] { display: none; }
.linkish { all: unset; cursor: pointer; color: #8d929b; } .linkish:hover { color: #c9ccd2; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nowrap { white-space: nowrap; }
.wd-slots { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.wd-slot { all: unset; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; } .wd-slot:hover { background: #1a1e27; }
.wd-slot .pic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #0e1014; border: 1px solid #2a2f3a; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #8d929b; }
.wd-slot .pic img { width: 100%; height: 100%; object-fit: cover; }
.wd-offscreen { position: fixed; left: -4000px; top: 0; width: 256px; height: 256px; pointer-events: none; }
@media (max-width: 640px) {
  .wd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wd-left { flex: 1 1 100%; } .wd-3d { aspect-ratio: 1/1; }
  .wd-frow.sub { padding-left: 0; }
}
.wd-col { display: flex; flex-direction: column; gap: 8px; } .wd-col .label { margin: 4px 0 0; }
.wd-card { display: flex; flex-direction: column; justify-content: flex-start; }
.wd-filters { margin: 0 0 6px; }
.wd-select { height: 30px; padding: 0 8px; border-radius: 6px; border: 1px solid #2a2f3a; background: #1a1d24; color: #d4d7dd; font: inherit; font-size: 13px; }
.wd-addrow { display: flex; gap: 8px; } .wd-addrow .input { flex: 1 1 auto; min-width: 0; }

/* ---------------------------------------------------------------- Staff: Discography */
.ds-add { position: relative; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ds-addmsg { position: absolute; top: calc(100% + 4px); left: 0; right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; } .ds-tagbar:empty { display: none; }
.ds-chip { all: unset; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid; user-select: none; }
.ds-chip.on { color: #111 !important; } .ds-chip .n { opacity: .6; font-weight: 500; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; align-items: start; }
.ds-card { display: flex; flex-direction: column; min-width: 0; }
.ds-box { position: relative; box-sizing: border-box; height: 70px; padding: 6px 10px 9px; border-radius: 9px 9px 0 0; background: rgba(20,23,30,.85); border: 1px solid rgba(255,255,255,.07); }
.ds-lip { box-sizing: border-box; min-height: 26px; padding: 3px 8px 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid rgba(255,255,255,.07); border-top-color: rgba(255,255,255,.04); border-radius: 0 0 9px 9px; background: rgba(14,16,21,.85); }
.ds-card:hover .ds-box, .ds-card:hover .ds-lip { border-color: rgba(142,162,220,.35); }
.ds-top { display: flex; align-items: center; gap: 6px; min-width: 0; height: 20px; }
.ds-name { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; color: #e2e4e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-time { flex: 0 0 auto; font-size: 11px; color: #7d828b; font-variant-numeric: tabular-nums; }
.ds-mini { all: unset; flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #7d828b; font-size: 12px; cursor: pointer; opacity: 0; }
.ds-mini:hover { background: rgba(255,255,255,.07); color: #d4d7dd; }
.ds-card:hover .ds-mini, .ds-mini.set, .ds-mini.on { opacity: 1; } .ds-mini.set, .ds-mini.on { color: #e8c547; } .ds-mini.on { background: rgba(232,197,71,.16); }
@media (hover: none) { .ds-mini { opacity: .8; } }
.ds-row { display: flex; align-items: center; gap: 8px; height: 30px; margin-top: 4px; }
.ds-pill { flex: 0 0 30px; display: flex; width: 30px; height: 30px; border-radius: 50%; background: #f2f2f4; overflow: hidden; }
.ds-pill .half { all: unset; width: 15px; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; } .ds-pill .half:hover { background: #dcdde2; }
.ds-pill .div { flex: 0 0 1px; margin: 8px 0; background: #b9bcc4; }
.ds-wave { display: block; flex: 1; min-width: 0; height: 30px; touch-action: none; }
.ds-err { display: none; position: absolute; left: 10px; right: 10px; top: 26px; padding: 2px 6px; border-radius: 4px; background: rgba(20,23,30,.95); font-size: 11px; color: #e08a8a; line-height: 1.3; z-index: 1; }
.ds-tag { all: unset; display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; border: 1px solid; cursor: pointer; }
.ds-tag button { all: unset; cursor: pointer; opacity: .75; }
.ds-addtag { all: unset; height: 16px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; color: #6e737c; cursor: pointer; border: 1px dashed #343a46; display: inline-flex; align-items: center; opacity: 0; }
.ds-card:hover .ds-addtag, .ds-lip > .ds-addtag:only-child { opacity: 1; } @media (hover: none) { .ds-addtag { opacity: .8; } }
.ds-pop { position: fixed; z-index: 10060; padding: 8px; border-radius: 8px; background: #15181e; border: 1px solid #2a2f3a; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
.ds-pop .input { height: 30px; font-size: 12px; }
.ds-cur { display: flex; flex-wrap: wrap; gap: 4px; } .ds-cur:empty { display: none; }
.ds-opts { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; }
.ds-opt { all: unset; padding: 4px 8px; border-radius: 5px; font-size: 12px; cursor: pointer; } .ds-opt.hi, .ds-opt:hover { background: rgba(255,255,255,.06); }
.ds-item { all: unset; display: block; padding: 7px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; color: #d4d7dd; } .ds-item:hover { background: rgba(255,255,255,.06); }
/* ---------------------------------------------------------------- Staff team */
.st-group { margin: 0 0 22px; }
.st-gh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .st-gh b { font-family: var(--serif, inherit); font-size: 18px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.st-card { --st: rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); border-top: 3px solid var(--st); min-width: 0; }
.st-card.hidden { opacity: .55; }
.st-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.st-face { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #0e1014; border: 2px solid #2a2f3a; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: #8d929b; }
.st-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #a9bfd4; }
.st-who { min-width: 0; } .st-who b { font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-title { font-size: 13px; color: #c9a45a; }
.st-duties { font-size: 13.5px; line-height: 1.5; color: #c9ccd2; overflow-wrap: anywhere; }
.st-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.st-meta > div { display: flex; flex-direction: column; min-width: 0; } .st-meta .k { color: #7d828b; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; } .st-meta .v { color: #d4d7dd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.05); }
.st-form { display: flex; flex-direction: column; gap: 6px; } .st-form .label { margin: 6px 0 0; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .st-two > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-colour { width: 40px; height: 34px; padding: 0; border: 1px solid #2a2f3a; border-radius: 6px; background: none; flex: 0 0 auto; }
@media (max-width: 640px) { .st-grid, .ds-grid { grid-template-columns: minmax(0, 1fr); } .st-two { grid-template-columns: minmax(0, 1fr); } .ds-add { flex-wrap: nowrap; width: 100%; } .ds-add .input { width: auto !important; flex: 1 1 auto; min-width: 0; } }

/* ---------------------------------------------------------------- Studio: Enchant maker */
.em-badges { position: absolute; top: 7%; right: 9%; display: flex; flex-direction: column; gap: 3px; }
.em-badges span { width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25); color: #e8ebf0; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.em-new { all: unset; box-sizing: border-box; aspect-ratio: 269/368; border: 2px dashed #3a404a; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: #7d828b; font-size: 13px; font-weight: 600; }
.em-new:hover { border-color: #8ea2dc; color: #c9ccd2; } .em-new .plus { font-size: 42px; line-height: 1; font-weight: 300; }
.ecard.click { cursor: pointer; transition: transform .12s, filter .12s; } .ecard.click:hover { transform: translateY(-3px); filter: brightness(1.08); }
.em-form { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.em-left { flex: 0 0 220px; display: flex; flex-direction: column; gap: 10px; max-width: 100%; }
.em-cardhost .ecard { width: 220px; max-width: 100%; }
.em-right { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .em-right .label { margin: 10px 0 0; }
.em-rar { display: flex; gap: 6px; flex-wrap: wrap; }
.em-r { all: unset; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid; } .em-r.on { color: #fff !important; }
.em-drawbody { display: flex; flex-direction: column; gap: 6px; padding: 0 0 4px 46px; }
.st-tg { display: flex; gap: 10px; align-items: center; padding: 3px 0; } .st-tg b { font-size: 13px; }
.st-sw { all: unset; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 999px; background: #2a2f3a; position: relative; cursor: pointer; transition: background .15s; }
.st-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #c9ccd2; transition: left .15s; }
.st-sw.on { background: #5fae7a; } .st-sw.on::after { left: 17px; background: #fff; }
/* ---------------------------------------------------------------- Studio: Proficiency trees */
.pt-wrap { display: grid; grid-template-columns: 190px minmax(0, 1fr) 280px; gap: 10px; height: max(520px, calc(100vh - 250px)); }
.pt-side, .pt-insp { overflow-y: auto; padding: 10px; box-sizing: border-box; border-radius: 10px; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); }
.pt-insp .label { margin: 12px 0 5px; }
.pt-stage { position: relative; border-radius: 10px; overflow: hidden; background: #0c0e12; border: 1px solid rgba(255,255,255,.08); outline: none; touch-action: none; min-height: 0; }
.pt-stage:focus-visible { border-color: #8ea2dc66; }
.pt-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; touch-action: none; }
.pt-tools { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; right: 10px; pointer-events: none; } .pt-tools > * { pointer-events: auto; }
.btn.on { border-color: #8ea2dc; color: #dfe6ff; background: rgba(142,162,220,.14); }
.pt-zoom { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #6e737c; font-variant-numeric: tabular-nums; pointer-events: none; }
.pt-hint { position: absolute; left: 10px; bottom: 10px; right: 60px; font-size: 11px; color: #565b64; pointer-events: none; }
.pt-empty { position: absolute; inset: 0; display: none; flex-direction: column; gap: 12px; align-items: center; justify-content: center; color: #7d828b; font-size: 14px; pointer-events: none; } .pt-empty button { pointer-events: auto; }
.pt-tree { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #c9ccd2; }
.pt-tree:hover { background: rgba(255,255,255,.05); } .pt-tree.on { background: rgba(142,162,220,.16); color: #fff; }
.pt-pick { position: fixed; z-index: 10070; width: 300px; padding: 8px; border-radius: 8px; background: #15181e; border: 1px solid #2a2f3a; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
.pt-picklist { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.pt-opt { all: unset; display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 5px; font-size: 13px; cursor: pointer; color: #d4d7dd; }
.pt-opt.hi, .pt-opt:hover { background: rgba(255,255,255,.06); } .pt-opt.new { color: #a9cbff; }
.pt-namebtn { all: unset; cursor: pointer; font-size: 18px; font-weight: 700; color: #ececf0; } .pt-namebtn:hover { color: #dfe6ff; }
.pt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pt-stats > div { padding: 8px; border-radius: 8px; background: #14171e; border: 1px solid #2a2f3a; display: flex; flex-direction: column; } .pt-stats b { font-size: 18px; } .pt-stats span { font-size: 11px; color: #8d929b; }
@media (max-width: 900px) {
  .pt-wrap { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pt-side { max-height: 160px; } .pt-stage { height: 62vh; } .pt-hint { display: none; }
  .em-left { flex: 1 1 100%; align-items: center; }
}
.em-right textarea, .pt-insp textarea { font-family: inherit; line-height: 1.45; }
.ecard svg.qsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

/* the drawn card (no card picture in the vault): black rim, rarity colour, lighter at the top, grainy like the game's */
.ecard.noframe { border: 0; box-sizing: border-box; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.45);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.025' numOctaves='4' seed='7'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>"),
    radial-gradient(ellipse 85% 60% at 50% 30%, color-mix(in srgb, var(--c) 78%, #fff 22%) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, #000) 100%);
  background-size: 160px 160px, 300px 300px, 100% 100%; background-blend-mode: soft-light, overlay, normal; }
.ecard.noframe::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 4.2cqw solid #0c0c0e; pointer-events: none; }
.ecard svg.qsvg { position: absolute; inset: 2.6cqw; width: calc(100% - 5.2cqw); height: calc(100% - 5.2cqw); pointer-events: none; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.4)); }
.ecard.noframe .art { z-index: 1; } .ecard.noframe .en { z-index: 1; }

/* ---------------------------------------------------------------- Studio: Map maker */
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mm-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.015); cursor: pointer; min-width: 0; }
.mm-card:hover { border-color: rgba(142,162,220,.45); } .mm-card.asset { cursor: default; }
.mm-card .info { padding: 9px 11px; } .mm-card b { font-size: 14px; }
.mm-pic { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; } .mm-card.asset .mm-pic { aspect-ratio: 1; }
.mm-pic img { width: 100%; height: 100%; object-fit: contain; display: block; } .mm-card.asset .mm-pic img { width: 86%; height: 86%; }
.checker { background-color: #2a2d33; background-image: linear-gradient(45deg,#33363d 25%,transparent 25%),linear-gradient(-45deg,#33363d 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#33363d 75%),linear-gradient(-45deg,transparent 75%,#33363d 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.mm-ed { display: flex; flex-direction: column; gap: 8px; height: calc(100vh - 92px); min-height: 520px; }
.mm-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mm-name { width: 260px; max-width: 50vw; font-weight: 700; }
.mm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 8px; }
.mm-lcol { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.mm-left, .mm-right { overflow-y: auto; padding: 10px; box-sizing: border-box; border-radius: 10px; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); min-height: 0; }
.mm-left { flex: 1; } .mm-left .label, .mm-right .label { margin: 12px 0 6px; }
.mm-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px; border-radius: 10px; background: rgba(22,27,38,.55); border: 1px solid rgba(255,255,255,.08); }
.mm-tool { all: unset; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border-radius: 6px; cursor: pointer; color: #c9ccd2; border: 1px solid transparent; }
.mm-tool:hover { background: rgba(255,255,255,.05); } .mm-tool.on { background: rgba(142,162,220,.18); border-color: #8ea2dc; color: #fff; }
.mm-tool .ic { font-size: 16px; line-height: 20px; } .mm-tool .tl { font-size: 9.5px; white-space: nowrap; }
.mm-stage { position: relative; border-radius: 10px; overflow: hidden; background: #15171c; border: 1px solid rgba(255,255,255,.08); outline: none; touch-action: none; min-height: 0; }
.mm-cv, .mm-ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } .mm-ov { pointer-events: none; }
.mm-zoom { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.7); text-shadow: 0 1px 2px #000; pointer-events: none; }
.mm-col { width: 34px; height: 30px; padding: 0; border: 1px solid #2a2f3a; border-radius: 6px; background: none; } .mm-col.big { width: 44px; height: 36px; }
.mm-sw { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 8px; } .mm-sw button { all: unset; aspect-ratio: 1; border-radius: 3px; cursor: pointer; border: 1px solid rgba(255,255,255,.15); }
.mm-layers { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.mm-layer { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; border: 1px solid transparent; }
.mm-layer:hover { background: rgba(255,255,255,.04); } .mm-layer.on { background: rgba(142,162,220,.14); border-color: rgba(142,162,220,.5); }
.mm-layer button { all: unset; cursor: pointer; color: #8d929b; font-size: 11px; padding: 0 2px; } .mm-layer button:disabled { opacity: .25; cursor: default; } .mm-layer .eye { font-size: 13px; color: #c9ccd2; }
.mm-layer .kind { font-size: 12px; opacity: .8; }
.mm-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.mm-asset { all: unset; aspect-ratio: 1; border-radius: 6px; cursor: grab; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.08); }
.mm-asset:hover { border-color: #8ea2dc; } .mm-asset img { max-width: 84%; max-height: 84%; object-fit: contain; pointer-events: none; }
@media (max-width: 1000px) {
  .mm-ed { height: auto; } .mm-body { grid-template-columns: minmax(0, 1fr); }
  .mm-stage { height: 62vh; order: -1; } .mm-tools { grid-template-columns: repeat(5, 1fr); } .mm-left, .mm-right { max-height: none; }
}
.mm-fin { position: absolute; left: 50%; transform: translateX(-50%); top: 10px; white-space: nowrap; display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(12,14,18,.85); border: 1px solid rgba(255,255,255,.1); z-index: 3; }
.mm-chips { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.mm-plancols { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; } .mm-plancols button { all: unset; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.2); } .mm-plancols button.on { border-color: #fff; box-shadow: 0 0 0 2px #8ea2dc; }
.mm-studs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .mm-studs label { display: flex; flex-direction: column; gap: 2px; } .mm-studs .input { height: 30px; }
.mm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; } .mm-stats > div { padding: 6px 4px; border-radius: 6px; text-align: center; background: #14171e; border: 1px solid #2a2f3a; display: flex; flex-direction: column; } .mm-stats b { font-size: 14px; } .mm-stats span { font-size: 10px; color: #8d929b; }
.mm-leg { margin-top: 8px; padding: 8px; border-radius: 7px; border: 1.5px dashed; } .mm-legrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; } .mm-legrow label { display: flex; flex-direction: column; gap: 2px; } .mm-legrow .input { height: 28px; padding: 0 6px; font-size: 12px; }
.mm-3d { position: absolute; top: 3px; right: 3px; font-size: 9px; font-weight: 800; padding: 0 5px; border-radius: 4px; background: #8ea2dc; color: #111; }
.mm-asset { position: relative; } .mm-asset.fx { flex-direction: column; gap: 2px; font-size: 20px; background: #1a1d24; }
.mm-pic { position: relative; }
.mm-tools { grid-template-columns: repeat(5, 1fr); }
.mm-asset.fx { font-size: 18px; } .mm-asset.fx .tiny { font-size: 10px; line-height: 1.1; }
/* ---------------------------------------------------------------- Catalogue: Blueprints (for everyone but the admin) */
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.bp-card { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: rgba(22,27,38,.55); min-width: 0; }
.bp-pic { all: unset; display: block; width: 100%; aspect-ratio: 80/54; background: #173d6e; cursor: zoom-in; } .bp-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bp-pic.none { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 12px; cursor: default; }
.bp-info { padding: 9px 11px; }

/* ---------------------------------------------------------------- Admin › Server */
.sv { display: grid; gap: 16px; }
.sv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .sv-head .grow { flex: 1; }
.sv-dot { width: 9px; height: 9px; border-radius: 50%; background: #b9a35a; box-shadow: 0 0 0 3px rgba(185,163,90,.15); } .sv-dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(120,200,140,.15); }
.sv-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; }
.sv-stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sv-stat .v { font-size: 18px; color: var(--ivory); font-weight: 600; margin: 2px 0; overflow-wrap: anywhere; }
.sv-bar { height: 6px; border-radius: 4px; background: var(--panel2); margin-top: 14px; overflow: hidden; } .sv-bar i { display: block; height: 100%; background: var(--blue); } .sv-bar.bad i { background: #c45b5b; }
.sv-list { display: grid; gap: 6px; }
.sv-li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.015); flex-wrap: wrap; }
.sv-log { margin: 0; max-height: 360px; overflow: auto; background: #0b0d10; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: #c9ccd2; }
.sv-ll .t { color: #6f7682; } .sv-ll.error { color: #f0a8a8; } .sv-ll.warn { color: #e6cf8d; }
@media (max-width: 600px) { .sv-stats { grid-template-columns: 1fr 1fr; } .sv-stat .v { font-size: 16px; } .sv .row .btn { flex: 1 1 100%; } }
