:root {
  color-scheme: dark;
  --bg: #05090d;
  --bg-2: #081017;
  --panel: #0b141c;
  --panel-2: #101c26;
  --panel-3: #162531;
  --line: #1c2d39;
  --line-2: #2d4453;
  --ink: #e8f1f5;
  --ink-2: #a4b8c3;
  --ink-3: #76909e;
  --sys: #5fe3d0;
  --sys-dim: rgba(95, 227, 208, 0.12);
  --pink: #ff78b4;
  --pink-dim: rgba(255, 120, 180, 0.12);
  --ok: #4fd99f;
  --warn: #f3b53f;
  --serious: #ff8a4c;
  --danger: #ff5a6e;
  --danger-dim: rgba(255, 90, 110, 0.13);
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", "D2Coding", "Cascadia Code", "SF Mono", Consolas, "Malgun Gothic", monospace;
  --rail: 208px;
  --top: 52px;
  --tabs: 60px;
  --tab-bump: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(95, 227, 208, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 227, 208, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font: 400 15px/1.65 var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sys); outline-offset: 2px; }
[hidden] { display: none !important; }
.boot { padding: 48px 24px; text-align: center; font-family: var(--mono); color: var(--ink-2); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 셸 ------------------------------------------------------------------ */
.has-preview { --banner: 28px; }
.preview-banner {
  height: var(--banner); line-height: var(--banner); padding: 0 12px;
  background: var(--warn); color: #241800;
  font-size: 12.5px; font-weight: 700; text-align: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--top);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: rgba(5, 9, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand small { display: none; font-weight: 400; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.status-strip { display: flex; align-items: center; gap: 16px; margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.status-item { display: flex; align-items: center; gap: 6px; }
.status-item b { color: var(--ink); font-weight: 600; }
.status-btn { min-height: 40px; padding: 0 6px; font: inherit; color: inherit; border-radius: 4px; cursor: pointer; }
.status-btn:hover { background: var(--panel-3); }
.online-list .list-row { gap: 6px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
.pulse.off { background: var(--warn); animation: none; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ink-2); border-radius: 4px; flex: none; }
.icon-btn:hover { color: var(--ink); background: var(--panel-2); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.layout { display: block; }
.rail { display: none; }
.view { padding: 16px 16px calc(var(--tabs) + var(--safe-b) + 24px); max-width: 1180px; margin: 0 auto; min-width: 0; }
.view.bare { padding-bottom: 40px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(8, 14, 20, 0.97);
  border-top: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-2); }
.tab[aria-current="page"] { color: var(--sys); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--sys); }
.tab > span { white-space: nowrap; }
/* 가운데 메인 버튼은 하단바 위로 동그랗게 튀어나온다. */
.tab.home { justify-content: flex-end; padding-bottom: 10px; }
.tab.home[aria-current="page"]::before { content: none; }
.tab .tab-home { position: absolute; top: calc(var(--tab-bump) * -1); left: 50%; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--sys); color: var(--sys); box-shadow: 0 -6px 18px -8px rgba(95, 227, 208, 0.45); }
.tab .tab-home .icon { width: 24px; height: 24px; }
.tab.home[aria-current="page"] .tab-home { background: var(--sys); color: #03201c; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: var(--pink); color: #17060e;
  font: 700 10.5px/1 var(--mono);
}
.tab .badge, .icon-btn .badge, .fab .badge { position: absolute; top: 3px; left: calc(50% + 6px); }

.rail-link {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px;
  color: var(--ink-2); border-left: 2px solid transparent;
}
.rail-link:hover { color: var(--ink); background: var(--panel); }
.rail-link[aria-current="page"] { color: var(--sys); background: var(--sys-dim); border-left-color: var(--sys); }
.rail-link .badge { margin-left: auto; }
.rail-group { padding: 16px 14px 6px; font: 500 11px var(--mono); color: var(--ink-3); letter-spacing: 0.1em; }
/* 모바일에서는 햄버거 버튼으로 PC와 같은 메뉴를 연다. */
.rail-backdrop { position: fixed; inset: calc(var(--banner, 0px) + var(--top)) 0 0; z-index: 55; background: rgba(2, 5, 8, 0.7); }
@media (max-width: 1023px) {
  .rail.open {
    display: block; position: fixed; z-index: 60;
    top: calc(var(--banner, 0px) + var(--top)); right: 0; bottom: 0; width: min(280px, 84vw);
    padding: 8px 0 calc(16px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg-2); border-left: 1px solid var(--line-2);
    animation: rise 0.18s ease-out;
  }
  .rail.open .rail-link { height: 48px; }
}

/* 패널 ---------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  min-width: 0;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 0 solid var(--sys);
}
.panel::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.panel::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.panel.alert { border-color: rgba(255, 90, 110, 0.5); }
.panel.alert::before, .panel.alert::after { border-color: var(--danger); }
.panel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 24px; }
.panel-h h2 { font-size: 15px; font-weight: 600; }
.panel-h .more { margin-left: auto; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.panel-h .more:hover { color: var(--sys); }
.code { font: 500 10.5px var(--mono); letter-spacing: 0.08em; color: var(--sys); white-space: nowrap; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.page-head h1 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.page-head p { color: var(--ink-2); font-size: 13.5px; }
.empty { padding: 28px 12px; text-align: center; color: var(--ink-2); font-size: 14px; }

.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }

/* 버튼·폼 --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink);
  font-size: 14px; font-weight: 500; white-space: nowrap; border-radius: 2px;
}
.btn:hover { border-color: var(--sys); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--line-2); }
.btn.primary { background: var(--sys); border-color: var(--sys); color: #03201c; font-weight: 700; }
.btn.primary:hover { background: #84eedd; border-color: #84eedd; }
.btn.danger { border-color: rgba(255, 90, 110, 0.6); color: #ff9aa7; background: var(--danger-dim); }
.btn.danger:hover { border-color: var(--danger); }
.btn.solid-danger { background: var(--danger); border-color: var(--danger); color: #22050a; font-weight: 700; }
.btn.sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line-2); }
.btn.block { width: 100%; }
.link { color: var(--sys); }
.link:hover { text-decoration: underline; }

.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.req { color: var(--pink); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], input[type="datetime-local"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 16px; line-height: 1.5;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sys); box-shadow: 0 0 0 1px var(--sys); }
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--sys); flex: none; }
.adult-check { display: grid; gap: 6px; padding: 10px 12px; border-left: 2px solid var(--warn); background: rgba(243, 181, 63, 0.08); }
.adult-check .check { align-items: flex-start; font-weight: 500; }
.adult-warning { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--warn); }
.form-error { color: #ff9aa7; font-size: 13.5px; padding: 8px 10px; border-left: 2px solid var(--danger); background: var(--danger-dim); }
.segment { display: inline-flex; border: 1px solid var(--line-2); }
.segment > * { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; color: var(--ink-2); font-size: 14px; border-right: 1px solid var(--line-2); white-space: nowrap; }
.segment > *:last-child { border-right: 0; }
.segment > [aria-current="true"], .segment > .on { background: var(--sys-dim); color: var(--sys); }
.scroll-x { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.scroll-x::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; white-space: nowrap; flex: none; }
.chip.on, .chip[aria-current="true"] { color: var(--sys); border-color: var(--sys); background: var(--sys-dim); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; font: 500 11.5px/1.5 var(--mono); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.sys { color: var(--sys); border-color: rgba(95, 227, 208, 0.45); }
.tag.pink { color: var(--pink); border-color: rgba(255, 120, 180, 0.5); }
.tag.warn { color: var(--warn); border-color: rgba(243, 181, 63, 0.5); }
.tag.danger { color: #ff8a98; border-color: rgba(255, 90, 110, 0.6); background: var(--danger-dim); }
.tag.ok { color: var(--ok); border-color: rgba(79, 217, 159, 0.5); }

/* 목록 ---------------------------------------------------------------- */
.list > li + li { border-top: 1px solid var(--line); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; min-height: 48px; }
a.list-row:hover .list-title { color: var(--sys); }
.list-title { font-size: 14.5px; font-weight: 500; min-width: 0; }
.list-meta { font-size: 12px; color: var(--ink-3); font-family: var(--mono); white-space: nowrap; }
.unread-dot { width: 6px; height: 6px; background: var(--pink); flex: none; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line); color: var(--ink-2); font: 13px var(--mono); }
.pager .on { color: var(--sys); border-color: var(--sys); }

.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 500 11.5px var(--mono); color: var(--ink-3); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* 문서 ---------------------------------------------------------------- */
.rich { line-height: 1.8; }
.rich > * + * { margin-top: 12px; }
.rich h2 { font-size: 18px; margin-top: 24px; }
.rich h3 { font-size: 15.5px; margin-top: 18px; }
.rich ul { list-style: disc; padding-left: 20px; }
.rich ol { list-style: decimal; padding-left: 22px; }
.rich blockquote { margin: 12px 0 0; padding: 8px 12px; border-left: 2px solid var(--sys); background: var(--sys-dim); color: var(--ink-2); font-size: 14px; }
.rich a { color: var(--sys); text-decoration: underline; }
.rich strong { color: #fff; }
.rich { overflow-wrap: anywhere; }
.rich h1 { font-size: 20px; margin-top: 24px; }
.rich h4, .rich h5, .rich h6 { font-size: 14.5px; margin-top: 16px; }
.rich img { max-width: 100%; height: auto; }
.rich hr { border: 0; border-top: 1px solid var(--line-2); }
.rich pre { overflow-x: auto; padding: 10px 12px; background: var(--panel-3); font: 13px/1.6 var(--mono); }
.rich table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.rich th, .rich td { padding: 6px 10px; border: 1px solid var(--line-2); overflow-wrap: normal; }
.rich th { background: var(--panel-3); font-weight: 600; }
.title-tag { color: var(--sys); font-weight: 500; }
.title-tag.danger { color: var(--danger); }
.attach-images { display: grid; gap: 8px; margin-top: 16px; }
.attach-images img { border: 1px solid var(--line); max-height: 640px; object-fit: contain; }
.image-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.image-thumb { position: relative; width: 84px; height: 84px; border: 1px solid var(--line-2); }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-thumb button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 14px; }
.image-add { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 12px; cursor: pointer; text-align: center; }
.image-add:hover { border-color: var(--sys); color: var(--sys); }

/* 다이얼로그 ------------------------------------------------------------- */
dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  padding: 0; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-2); overflow: auto;
}
dialog::backdrop { background: rgba(2, 5, 8, 0.75); }
.dialog-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.dialog-h h2 { font-size: 16px; }
.dialog-b { padding: 16px; display: grid; gap: 14px; }
.dialog-f { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 16px; }
#toasts { position: fixed; z-index: 90; top: 60px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { padding: 10px 14px; background: var(--panel-3); border: 1px solid var(--line-2); border-left: 3px solid var(--sys); font-size: 14px; animation: rise 0.18s ease-out; }
.toast.error { border-left-color: var(--danger); }
dialog > .toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); z-index: 5; }
.action-list { display: grid; gap: 8px; }
.action-list .btn { justify-content: flex-start; }

/* 파이 ---------------------------------------------------------------- */
.pi { display: block; flex: none; overflow: visible; }
.pi-float { animation: float 4.5s ease-in-out infinite; }
.pi-ring { animation: ring 3s ease-in-out infinite; transform-origin: 60px 106px; }
.pi-eyes { animation: blink 5.5s infinite; transform-origin: 60px 54px; }
.pi-card { display: flex; gap: 12px; align-items: flex-start; }
.pi-bubble { position: relative; flex: 1; min-width: 0; padding: 10px 12px; background: var(--pink-dim); border: 1px solid rgba(255, 120, 180, 0.3); }
.pi-bubble.danger { background: var(--danger-dim); border-color: rgba(255, 90, 110, 0.5); }
.pi-bubble p { font-size: 14.5px; white-space: pre-wrap; }
.pi-history > li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pi-toast {
  position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(var(--tabs) + var(--safe-b) + 10px);
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; background: var(--panel-2);
  border: 1px solid rgba(255, 120, 180, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  animation: rise 0.25s ease-out;
}
.pi-toast.danger { border-color: var(--danger); }
.pi-toast p { font-size: 14px; white-space: pre-wrap; max-height: 40vh; overflow: auto; }

/* 음악 퀵메뉴 ------------------------------------------------------------ */
.bgm { position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 35; }
/* 화면을 옮겨도 자리가 바뀌지 않게 하단 메뉴와 채팅 입력창 위로 고정한다. */
.shell-member .bgm { bottom: calc(var(--tabs) + var(--safe-b) + 72px); }
.bgm-fab { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #000; color: #f2f0ea; box-shadow: 0 0 0 1px var(--sys), 0 12px 30px -12px rgba(0, 0, 0, 0.5); transition: transform 0.4s ease; }
.bgm-fab:hover { transform: scale(1.06); }
.bgm-fab:focus-visible, .bgm-hint:focus-visible { outline: 2px solid var(--sys); outline-offset: 3px; }
.bgm-eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.bgm-eq i { width: 3px; height: 40%; border-radius: 1px; background: currentColor; }
.bgm-eq i:nth-child(2) { height: 100%; }
.bgm-eq i:nth-child(3) { height: 65%; }
.bgm-eq i:nth-child(4) { height: 30%; }
.bgm.is-playing .bgm-fab { color: var(--sys); }
.bgm.is-playing .bgm-eq i { animation: bgm-eq 0.9s ease-in-out infinite; }
.bgm.is-playing .bgm-eq i:nth-child(2) { animation-delay: -0.3s; }
.bgm.is-playing .bgm-eq i:nth-child(3) { animation-delay: -0.6s; }
.bgm.is-playing .bgm-eq i:nth-child(4) { animation-delay: -0.15s; }
.bgm-hint { position: absolute; top: 50%; right: calc(100% + 10px); display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: var(--sys); color: #03201c; font: 600 11px/1 var(--sans); letter-spacing: 0.05em; white-space: nowrap; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.45); transform: translateY(-50%); transform-origin: right center; animation: bgm-hint 3s ease infinite; }
.bgm-hint::after { content: ""; position: absolute; top: 50%; right: -4px; width: 10px; height: 10px; border-radius: 2px; background: inherit; transform: translateY(-50%) rotate(45deg); }
.bgm-hint i { display: inline-block; font-style: normal; animation: bgm-nudge 1.2s ease-in-out infinite; }
.bgm.is-playing .bgm-hint, .bgm.is-hint-off .bgm-hint { display: none; }
@keyframes bgm-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes bgm-hint {
  0%, 52%, 100% { transform: translateY(-50%) rotate(0); }
  60% { transform: translateY(-50%) translateX(-6px) rotate(-6deg); }
  68% { transform: translateY(-50%) rotate(5deg); }
  76% { transform: translateY(-50%) rotate(-3deg); }
  84% { transform: translateY(-50%) rotate(1.5deg); }
}
@keyframes bgm-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

.track-audio { display: block; width: 100%; height: 36px; margin-top: 8px; }

/* 추모 ---------------------------------------------------------------- */
.memorial { text-align: center; padding: 28px 16px; }
.memorial-flower { display: block; width: 104px; height: auto; margin: 0 auto 14px; }
.memorial-text { font-size: 19px; font-weight: 600; }
.memorial-name { margin-top: 4px; font-size: 16px; color: var(--ink-2); }

/* 장벽 게이지 ------------------------------------------------------------ */
.barrier-hero { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.barrier-value { font: 700 56px/1 var(--mono); letter-spacing: -0.03em; }
.barrier-value small { font-size: 22px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.barrier-cells { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; margin: 14px 0 8px; }
.barrier-cell { height: 26px; background: var(--panel-3); }
.barrier-cell.on { background: var(--level, var(--ok)); animation: cell 0.4s both; animation-delay: calc(var(--i) * 14ms); }
.barrier-scale { position: relative; height: 16px; font: 11px var(--mono); color: var(--ink-3); }
.barrier-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.barrier-scale span:first-child { transform: none; }
.barrier-scale span:last-child { transform: translateX(-100%); }
.level-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; font-size: 13px; font-weight: 600; border: 1px solid currentColor; color: var(--level); }
.barrier-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.danger-pulse { animation: danger-glow 1.8s ease-in-out infinite; }
.alert-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--danger-dim); border: 1px solid rgba(255, 90, 110, 0.55); color: #ffb5be; font-size: 14px; }

/* 투표 ---------------------------------------------------------------- */
.candidate { display: block; position: relative; padding: 12px; border: 1px solid var(--line); background: var(--panel-2); }
label.candidate { cursor: pointer; }
label.candidate.check { display: flex; gap: 10px; }
label.candidate.check input { position: static; }
label.candidate:hover { border-color: var(--line-2); }
label.candidate:has(input:checked) { border-color: var(--sys); background: var(--sys-dim); }
label.candidate:has(input:focus-visible) { outline: 2px solid var(--sys); outline-offset: 2px; }
.candidate input[type="radio"] { position: absolute; top: 14px; right: 12px; width: 20px; height: 20px; accent-color: var(--sys); }
.candidate-name { font-size: 15.5px; font-weight: 600; padding-right: 28px; }
.candidate.selected { border-color: var(--pink); }
.result-bar { height: 8px; background: var(--panel-3); margin-top: 8px; overflow: hidden; }
.result-fill { height: 100%; background: var(--sys); border-radius: 0 4px 4px 0; transition: width 0.5s ease-out; }
.candidate.selected .result-fill { background: var(--pink); }
.countdown { font: 600 22px var(--mono); }
.turnout { font: 13px var(--mono); color: var(--ink-2); }

/* 채팅 ---------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--panel); }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.chat-head h2 { font-size: 15px; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.chat-day { align-self: center; font: 11px var(--mono); color: var(--ink-3); padding: 2px 8px; border: 1px solid var(--line); }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; align-self: flex-start; }
.msg.mine { align-items: flex-end; align-self: flex-end; }
.msg-meta { display: flex; gap: 8px; font: 11px var(--mono); color: var(--ink-3); margin-bottom: 2px; }
.msg-anon { color: var(--ink-2); font-weight: 600; }
.msg-body { display: block; text-align: left; padding: 7px 11px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; max-width: 100%; }
.msg.mine .msg-body { background: var(--sys-dim); border-color: rgba(95, 227, 208, 0.35); }
.msg.pending .msg-body { opacity: 0.55; }
.msg.failed .msg-body { border-color: var(--danger); }
button.msg-body:hover { border-color: var(--ink-3); }
/* 답글: 말풍선 위 원본 인용과 입력창 위 안내 */
.msg-quote { display: flex; flex-direction: column; gap: 1px; max-width: 100%; margin-bottom: 3px; padding: 4px 9px; text-align: left; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); background: var(--panel-2); border-left: 2px solid var(--line-2); }
.msg-quote b { font: 600 11px var(--mono); color: var(--ink-2); }
.msg-quote b.pi-name { color: var(--pink); }
.msg-quote span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
button.msg-quote:hover { border-left-color: var(--sys); }
.msg-quote.gone { color: var(--ink-3); font-style: italic; }
.msg.to-me .msg-quote { border-left-color: var(--sys); }
.msg.to-me .msg-body { border-color: var(--sys); }
.msg.msg-flash .msg-body { box-shadow: 0 0 0 2px var(--sys); }
/* 오른쪽 여백은 입력창 위에 떠 있는 음악 버튼에 취소 버튼이 가리지 않게 비워 둔다. */
.chat-reply { display: flex; align-items: center; gap: 8px; padding: 6px 72px 6px 12px; border-top: 1px solid var(--line); background: var(--panel-2); flex: none; }
.chat-reply[hidden] { display: none; }
.chat-reply-text { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.4; }
.chat-reply-text b { font: 600 11px var(--mono); color: var(--sys); }
.chat-reply-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.chat-new { position: sticky; bottom: 0; align-self: center; padding: 5px 12px; background: var(--sys); color: #03201c; font-size: 13px; font-weight: 700; z-index: 1; }
.chat-banner { padding: 6px 12px; font-size: 13px; background: rgba(243, 181, 63, 0.12); color: var(--warn); border-bottom: 1px solid rgba(243, 181, 63, 0.25); flex: none; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); flex: none; align-items: flex-end; }
.chat-form textarea { min-height: 44px; max-height: 120px; height: 44px; resize: none; padding: 9px 12px; }
.chat-form .btn { flex: none; height: 44px; }
.chat-page { height: calc(100dvh - var(--banner, 0px) - var(--top) - var(--tabs) - var(--safe-b)); margin: -16px -16px 0; }
.chat-page .chat { border: 0; }
.view.chat-view { padding-bottom: 0; }
/* 파이 대화 퀵메뉴. 모바일은 하단 메뉴 위 버튼과 하단 시트, PC는 오른쪽 아래 버튼과 팝업이다. */
.fab {
  display: flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: calc(var(--tabs) + var(--safe-b) + 12px); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; background: #000;
  box-shadow: 0 0 0 1px var(--pink), 0 12px 30px -12px rgba(0, 0, 0, 0.5); transition: transform 0.4s ease;
}
.fab:hover { transform: scale(1.06); }
.fab:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.fab .badge { top: -3px; left: auto; right: -3px; }
.pi-head-face { display: inline-flex; flex: none; }
.pi-sticker { display: block; line-height: 0; }
.pi-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; padding: 8px 10px; border-top: 1px solid var(--line); flex: none; }
.pi-stickers[hidden] { display: none; }
.pi-sticker-btn { display: flex; justify-content: center; padding: 4px; border-radius: 4px; }
.pi-sticker-btn:hover, .pi-sticker-btn:focus-visible { background: var(--panel-3); }
.chat-form .pi-sticker-toggle { width: 44px; height: 44px; }
.pi-sticker-toggle[aria-pressed="true"] { background: var(--panel-3); box-shadow: 0 0 0 1px var(--pink); }
.chat-form.as-pi textarea { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.msg .msg-body.is-sticker { padding: 0; background: none; border: 0; }
.msg-anon.pi-name { color: var(--pink); }
.pi-member-search { padding: 8px 10px; border-bottom: 1px solid var(--line); flex: none; }
.pi-list { gap: 0; padding: 0; }
.pi-thread { display: grid; gap: 3px; width: 100%; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); flex: none; }
.pi-thread:hover { background: var(--panel-3); }
.pi-thread-top, .pi-thread-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pi-thread-last { overflow: hidden; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.chat-popup {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 82dvh;
  border-top: 1px solid var(--line-2); box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.6); animation: rise 0.18s ease-out;
}
.chat-popup .chat-form { padding-bottom: calc(10px + var(--safe-b)); }
.brand { min-height: 40px; }
@media (max-width: 1023px) {
  /* 떠 있는 버튼 두 개에 마지막 내용이 가리지 않도록 아래를 비워 둔다. */
  .shell-member .view:not(.chat-view) { padding-bottom: calc(var(--tabs) + var(--safe-b) + 150px); }
  .shell-guest .view { padding-bottom: calc(var(--tabs) + var(--safe-b) + 90px); }
  /* 튀어나온 메인 버튼이 입력창을 가리지 않게 그만큼 위로 올린다. */
  .chat-page .chat-form { padding-top: 4px; padding-bottom: calc(2px + var(--tab-bump)); }
}

/* 구경 모드 인트로 ---------------------------------------------------------- */
.intro-on, .intro-on body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; background: #000; color: #eef3f5; overflow: hidden; transition: opacity 2s ease; }
.intro.leaving { opacity: 0; }
.intro-stage, .intro-scene { position: absolute; inset: 0; }
.intro-scene { background: #000; }
.intro-scene > svg { display: block; width: 100%; height: 100%; transform-origin: 50% 45%; }
.intro-skip { position: absolute; z-index: 1; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; min-width: 64px; min-height: 40px; padding: 0 10px; font: 500 13px var(--mono); letter-spacing: 0.08em; color: var(--ink-2); background: rgba(5, 9, 13, 0.7); border: 1px solid var(--line-2); border-radius: 2px; }
.intro-skip:hover { color: var(--sys); border-color: var(--sys); }
.intro-lines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px); }
/* 자막 자리를 뺀 영역에 그림 전체가 들어오게 한다. */
.intro-scene.fit > svg { position: absolute; left: 0; top: 8dvh; height: 60dvh; }
.intro-scene.fit.pos-top > svg { top: 32dvh; }
.intro-scene.fit.pos-center > svg { height: 84dvh; opacity: 0.55; }
.intro-scene:not(.fit):not(.scene-rift) > svg { opacity: 0.6; }
/* 장면 전환 */
.in-fade { animation: intro-in-fade 1.1s ease-out both; }
.in-wipe { animation: intro-in-wipe 0.9s ease-in-out both; }
.in-flash { animation: intro-in-flash 0.8s ease-out both; }
.in-slide { animation: intro-in-slide 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.in-iris { animation: intro-in-iris 1s ease-out both; }
.in-drop { animation: intro-in-drop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
/* 카메라 */
.cam-in > svg { animation: intro-cam-in 18s ease-out both; }
.cam-push > svg { animation: intro-cam-push 14s ease-out both; }
.cam-pan > svg { animation: intro-cam-pan 12s ease-in-out both; }
.cam-tilt > svg { animation: intro-cam-tilt 10s ease-out both; }
.cam-shake > svg { animation: intro-cam-shake 0.5s steps(3) infinite; }
/* 자막 */
.intro-caption { position: absolute; left: 24px; right: 24px; max-width: 720px; margin: 0 auto; text-align: center; }
.intro-caption.at-bottom { bottom: 10dvh; }
.intro-caption.at-top { top: 11dvh; }
.intro-caption.at-center { top: 50%; transform: translateY(-50%); }
.intro-caption.for-pi { top: calc(7dvh + 158px); }
.intro-line { font-size: clamp(16.5px, 4.5vw, 25px); line-height: 1.7; font-weight: 500; text-shadow: 0 2px 12px #000, 0 0 2px #000; }
.line-up { animation: intro-line-up 0.9s ease-out both; }
.line-blur { animation: intro-line-blur 1.2s ease-out both; }
.line-left { animation: intro-line-left 0.8s ease-out both; }
.line-zoom { animation: intro-line-zoom 1s ease-out both; }
.line-track { animation: intro-line-track 1.4s ease-out both; }
.intro-line.quote { font-size: clamp(22px, 6.2vw, 40px); line-height: 1.5; font-weight: 700; animation: intro-quote-in 2.4s ease-out both; }
.intro-line em { font-style: normal; font-weight: 700; color: var(--pink); }
.intro-bubble { min-height: 96px; padding: 14px 16px; text-align: left; font-size: clamp(15.5px, 4.2vw, 21px); line-height: 1.7; color: #ffe6f1; white-space: pre-wrap; background: rgba(38, 12, 28, 0.9); border: 1px solid rgba(255, 120, 180, 0.65); box-shadow: 0 0 34px rgba(255, 120, 180, 0.2); animation: intro-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.intro-pi { position: absolute; top: calc(7dvh + 26px); left: 0; right: 0; display: flex; justify-content: center; }
.intro-faces { position: absolute; top: 10dvh; left: 12px; right: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.intro-faces span { animation: intro-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; animation-delay: var(--d); }
.intro-title { display: grid; gap: 8px; animation: intro-quote-in 3s ease-out both; }
.intro-title small { font: 500 clamp(11px, 3vw, 15px) var(--mono); letter-spacing: 0.34em; color: var(--sys); }
.intro-title strong { font-size: clamp(34px, 10vw, 66px); line-height: 1.2; font-weight: 800; letter-spacing: 0.04em; }
.intro-gate { min-height: 56px; padding: 0 24px; font: 500 15px var(--mono); color: var(--sys); border: 1px solid var(--sys); animation: pulse 2.4s infinite; }
/* 그림 속 움직임. --d로 시작 시각을 늦춘다. */
.intro svg [class*="a-"] { transform-box: fill-box; transform-origin: center; animation-delay: var(--d, 0s); animation-fill-mode: both; }
.a-fade { animation: intro-in-fade 1s ease-out; }
.a-pop { animation: intro-pop-svg 0.5s cubic-bezier(0.2, 1.8, 0.4, 1); }
.intro svg .a-grow { transform-origin: 50% 100%; animation: intro-grow 0.8s cubic-bezier(0.2, 0.9, 0.3, 1); }
.intro svg .a-growx { transform-origin: 0 50%; animation: intro-growx 4s ease-out; }
.a-draw { stroke-dasharray: 1; animation: intro-draw 1.7s ease-in-out; }
.a-draw-slow { stroke-dasharray: 1; animation: intro-draw 5s ease-in-out; }
.a-write { stroke-dasharray: 700; animation: intro-write 4.5s ease-in-out; }
.a-left { animation: intro-from-left-s 0.5s ease-out; }
.a-from-left { animation: intro-from-left 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.a-from-right { animation: intro-from-right 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.a-rise { animation: intro-rise 1.4s ease-out; }
.a-fall { animation: intro-fall 1s cubic-bezier(0.3, 1.3, 0.5, 1); }
.a-drift { animation: intro-drift 1.4s ease-out; }
.a-out { animation: intro-out 1.6s ease-in; }
.a-letter { animation: intro-letter 8s ease-in-out; }
.a-opengate { animation: intro-opengate 6s ease-out; }
.intro svg .a-flame { transform-origin: 50% 100%; animation: intro-flame 0.8s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.a-blink { animation: intro-flicker 0.9s steps(2) infinite; }
.a-blink-slow { animation: intro-flicker 2.2s ease-in-out infinite; }
.a-flicker { animation: intro-draw 1s ease-out, intro-flicker 1.1s steps(2) 1s infinite; }
.a-pulse { animation: pulse 3.2s ease-in-out infinite; }
.intro svg .a-spin { transform-box: view-box; transform-origin: 200px 120px; animation: intro-spin 10s linear infinite; }
.intro svg .a-spin-slow { transform-box: view-box; transform-origin: 200px 96px; animation: intro-spin 40s linear infinite; }
.a-ripple { animation: intro-ripple 2.2s ease-out infinite; }
.a-slash { stroke-dasharray: 1; animation: intro-slash 2.4s ease-in-out infinite; }
.intro svg .a-drain { transform-origin: 50% 100%; animation: intro-drain 7s ease-in; }
.a-sink { animation: intro-sink 8s ease-in; }
.a-up { animation: intro-up 2.6s ease-out infinite; }
.a-stamp { animation: intro-stamp 0.28s cubic-bezier(0.5, 0, 1, 0.6); }
.a-tip { animation: intro-tip 3s ease-in-out; }
.intro svg .a-bounce { transform-origin: 50% 100%; animation: intro-bounce 0.42s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.a-sunrise { animation: intro-sunrise 7s ease-out; }
.a-walk { animation: intro-walk 9s linear infinite; }
.a-scan { animation: intro-scan 3.4s ease-in-out infinite alternate; }
.a-drop { animation: intro-dropcard 2s ease-in 0.5s; }
.a-ascend { animation: intro-ascend 7s ease-out; }
.a-tear { animation: intro-tear 0.35s steps(2) infinite; }
.a-shake { animation: intro-shake-x 0.22s steps(2) infinite; }
.a-cardin { animation: intro-cardin 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.intro svg .a-topple { transform-origin: 50% 100%; animation: intro-topple 1.1s ease-in 1.8s; }
.intro svg .a-swing { transform-origin: 50% 0; animation: intro-swing 2.4s ease-in-out infinite alternate; }
.intro svg .a-swing-fast { transform-origin: 50% 0; animation: intro-swing-fast 0.32s ease-in-out infinite alternate; }
.a-penmove { animation: intro-pen 5s ease-in-out; }
@keyframes intro-in-fade { from { opacity: 0; } }
@keyframes intro-in-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes intro-in-flash { from { filter: brightness(6); } }
@keyframes intro-in-slide { from { transform: translateX(100%); } }
@keyframes intro-in-iris { from { clip-path: circle(0 at 50% 40%); } to { clip-path: circle(150% at 50% 40%); } }
@keyframes intro-in-drop { from { transform: translateY(-100%); } }
@keyframes intro-cam-in { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes intro-cam-push { from { transform: scale(1); } to { transform: scale(1.32); } }
@keyframes intro-cam-pan { from { transform: scale(1.06) translateX(-2.5%); } to { transform: scale(1.06) translateX(2.5%); } }
@keyframes intro-cam-tilt { from { transform: rotate(-2deg) scale(1.03); } to { transform: rotate(2deg) scale(1.08); } }
@keyframes intro-cam-shake { 0% { transform: translate(0, 0); } 50% { transform: translate(-3px, 2px); } 100% { transform: translate(3px, -2px); } }
@keyframes intro-line-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes intro-line-blur { from { opacity: 0; filter: blur(7px); } }
@keyframes intro-line-left { from { opacity: 0; transform: translateX(-16px); } }
@keyframes intro-line-zoom { from { opacity: 0; transform: scale(0.9); } }
@keyframes intro-line-track { from { opacity: 0; letter-spacing: 0.16em; } }
@keyframes intro-quote-in { from { opacity: 0; transform: scale(1.14); filter: blur(7px); } }
@keyframes intro-pop { from { opacity: 0; transform: scale(0.8); } }
@keyframes intro-pop-svg { from { transform: scale(0); } }
@keyframes intro-grow { from { transform: scaleY(0); opacity: 0; } }
@keyframes intro-growx { from { transform: scaleX(0); } }
@keyframes intro-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes intro-write { 0% { stroke-dashoffset: 700; fill: transparent; } 70% { stroke-dashoffset: 0; fill: transparent; } 100% { stroke-dashoffset: 0; fill: #5fe3d0; } }
@keyframes intro-from-left-s { from { opacity: 0; transform: translateX(-14px); } }
@keyframes intro-from-left { from { transform: translateX(-120px); } }
@keyframes intro-from-right { from { transform: translateX(150px); opacity: 0; } }
@keyframes intro-rise { from { transform: translateY(70px); opacity: 0; } }
@keyframes intro-fall { from { transform: translateY(-230px); opacity: 0; } }
@keyframes intro-drift { from { transform: translateY(16px); opacity: 0; } }
@keyframes intro-out { to { opacity: 0.07; } }
@keyframes intro-letter { 0% { transform: translate(0, -90px) rotate(-14deg); } 25% { transform: translate(-36px, -20px) rotate(10deg); } 50% { transform: translate(30px, 50px) rotate(-8deg); } 75% { transform: translate(-16px, 110px) rotate(6deg); } 100% { transform: translate(0, 150px) rotate(0); } }
@keyframes intro-opengate { from { transform: scaleX(0.08); } }
@keyframes intro-flame { from { transform: scaleY(0.62); } to { transform: scaleY(1.08); } }
@keyframes intro-flicker { 50% { opacity: 0.22; } }
@keyframes intro-spin { to { transform: rotate(360deg); } }
@keyframes intro-ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
@keyframes intro-slash { 0% { stroke-dashoffset: 1; opacity: 1; } 35% { stroke-dashoffset: 0; opacity: 1; } 60%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes intro-drain { to { transform: scaleY(0.07); fill: #ff5a6e; } }
@keyframes intro-sink { to { transform: translateY(-70px); opacity: 0.15; } }
@keyframes intro-up { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-210px); opacity: 0; } }
@keyframes intro-stamp { from { transform: scale(3); opacity: 0; } }
@keyframes intro-tip { from { transform: rotate(8deg); } to { transform: rotate(-13deg); } }
@keyframes intro-bounce { from { transform: scaleY(0.12); } to { transform: scaleY(1); } }
@keyframes intro-sunrise { from { transform: translateY(150px); } }
@keyframes intro-walk { from { transform: translateX(-40px); } to { transform: translateX(440px); } }
@keyframes intro-scan { from { transform: translateY(0); } to { transform: translateY(297px); } }
@keyframes intro-dropcard { from { transform: translateY(-110px); } to { transform: translateY(150px); } }
@keyframes intro-ascend { to { transform: translateY(-150px) scale(1.7); } }
@keyframes intro-tear { 50% { transform: translateX(-28px); } 100% { transform: translateX(28px); } }
@keyframes intro-shake-x { 50% { transform: translateX(-4px); } 100% { transform: translateX(4px); } }
@keyframes intro-cardin { from { transform: scale(0.3) rotate(-16deg); opacity: 0; } }
@keyframes intro-topple { to { transform: rotate(72deg); opacity: 0.25; } }
@keyframes intro-swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes intro-swing-fast { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes intro-pen { from { transform: translate(60px, 112px); } to { transform: translate(310px, 112px); } }

/* 파이 표정의 눈물과 땀 */
.pi-tear { animation: pi-drip 1.3s ease-in infinite; }
.pi-tear + .pi-tear { animation-delay: 0.6s; }
.pi-sweat { animation: pi-drip 2s ease-in infinite; }
@keyframes pi-drip { 0% { transform: translateY(-3px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* 알림함 --------------------------------------------------------------- */
.bell-panel {
  position: fixed; z-index: 60; left: 0; right: 0; top: calc(var(--banner, 0px) + var(--top));
  max-height: calc(100dvh - var(--banner, 0px) - var(--top)); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 16px calc(16px + var(--safe-b));
  background: var(--bg-2); border-bottom: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  animation: rise 0.18s ease-out;
}
.bell-item { display: block; padding: 11px 0; }
a.bell-item:hover .list-title { color: var(--sys); }
.bell-msg { display: block; margin-top: 5px; font-size: 14px; white-space: pre-wrap; }
.bell-item .link { display: inline-block; margin-top: 4px; }
.member-pick { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.member-pick legend { padding: 0; margin-bottom: 6px; }
.member-pick .row input { flex: 1; min-width: 0; }
.member-pick .row .btn { flex: none; min-height: 44px; }
.member-picks { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--line-2); }
.member-picks .check { min-height: 40px; }

/* 개인 단말 ------------------------------------------------------------- */
.terminal { padding: 0; border-color: var(--line-2); }
.terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.terminal-head h1 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.terminal-link { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 500 11px var(--mono); letter-spacing: 0.08em; color: var(--ok); }
.terminal-link.off { color: var(--ink-3); }
.terminal-body { display: grid; gap: 16px; padding: 16px; }
.terminal-left { display: grid; gap: 12px; align-content: start; min-width: 0; }
.terminal-ability { padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); }
.terminal-ability-text { margin-top: 2px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.terminal-id { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.terminal-name { font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.kv.terminal-kv { grid-template-columns: 58px minmax(0, 1fr); gap: 4px 8px; font-size: 13.5px; }
.terminal-kv dt { font-size: 12.5px; }
.terminal-vital { padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--level, var(--sys)); min-width: 0; }
.vital-name { font-size: 14px; font-weight: 600; }
.vital-value { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; color: var(--level); }
.vital-value b { font: 700 54px/1 var(--mono); letter-spacing: -0.03em; }
.vital-value small { font: 500 14px var(--mono); color: var(--ink-3); }
.vital-cells { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; margin-top: 12px; }
.vital-cells i { height: 16px; background: var(--panel-3); }
.vital-cells i.on { background: var(--level); }
.vital-alert { margin-top: 12px; padding: 9px 11px; font-size: 14px; font-weight: 600; color: var(--warn); background: rgba(243, 181, 63, 0.1); border-left: 3px solid var(--warn); }
.vital-alert.severe { color: #ffb5be; background: var(--danger-dim); border-left-color: var(--danger); animation: danger-glow 1.8s ease-in-out infinite; }
.vital-control { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.vital-control .btn { flex: none; width: 44px; min-height: 44px; padding: 0; font: 500 20px var(--mono); }
.vital-control input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--level); cursor: pointer; }
.vital-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.vital-scale li { display: grid; gap: 1px; padding: 5px 2px; text-align: center; border: 1px solid var(--line); color: var(--ink-3); }
.vital-scale b { font-size: 12.5px; font-weight: 500; }
.vital-scale span { font: 10.5px var(--mono); }
.vital-scale li.on { border-color: var(--level); color: var(--level); background: var(--panel-2); }
.vital-scale li.on b { font-weight: 700; }
.terminal-note { padding: 0 16px 14px; }
.terminal > .form-error { margin: 0 16px 14px !important; }

/* 구경 모드 ------------------------------------------------------------- */
.shell-guest .bgm { bottom: calc(var(--tabs) + var(--safe-b) + 12px); }
.tabs.four { grid-template-columns: repeat(4, 1fr); }

/* 요원 명단 ------------------------------------------------------------- */
.citizen-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.citizen-ability { flex: 0 0 100%; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.citizen-ability b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--sys); }
.citizen-ability p { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }
.citizen.dead .citizen-ability { border-top-color: #c2c9cb; }
.citizen.dead .citizen-ability b { color: #566166; }
.citizen.dead .citizen-ability p { color: #1c2529; }
.citizen { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line-2); border-top: 2px solid var(--sys); min-width: 0; }
/* 증명사진 3:4 */
.citizen-photo { display: block; flex: none; align-self: flex-start; width: clamp(108px, 40%, 150px); aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel-3); border: 1px solid var(--line-2); }
.citizen-photo.small { width: 60px; }
.citizen-photo img { width: 100%; height: 100%; object-fit: cover; }
.citizen-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--ink-3); }
.citizen-empty .icon { width: 36px; height: 36px; }
.citizen-body { flex: 1 1 0; min-width: 0; }
.citizen-org { font: 500 10px var(--mono); letter-spacing: 0.1em; color: var(--sys); }
.citizen-name { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 17px; line-height: 1.35; font-weight: 700; }
.citizen-name span { min-width: 0; }
.citizen-flower { width: 28px; height: 28px; flex: none; }
.citizen-vital { color: var(--level); font-weight: 600; }
.battery { position: relative; display: inline-block; width: 54px; height: 16px; margin-right: 10px; padding: 2px; border: 1.5px solid currentColor; border-radius: 3px; vertical-align: -3px; }
.battery::after { content: ""; position: absolute; top: 3px; right: -5px; width: 3px; height: 7px; background: currentColor; border-radius: 0 2px 2px 0; }
.battery i { display: block; height: 100%; background: var(--level); border-radius: 1px; }
/* 사진은 3:4를 기본으로 하되, 오른쪽 정보가 더 길면 능력 칸 위 선까지 함께 늘어난다. */
.citizen > .citizen-photo { position: relative; align-self: stretch; width: clamp(130px, 50%, 180px); }
.citizen > .citizen-photo img, .citizen > .citizen-photo .citizen-empty { position: absolute; inset: 0; }
.citizen.dead .citizen-vital { color: inherit; }
.citizen-info { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 8px; margin: 8px 0 0; font-size: 13.5px; }
.citizen-info dt { color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.citizen-info dd { margin: 0; }
/* 사망한 요원은 흰빛으로 바래게 하고 사진은 흑백으로 둔다. */
.citizen.dead { background: rgba(255, 255, 255, 0.96); border-color: rgba(255, 255, 255, 0.5); border-top-color: #9aa5ab; color: #1c2529; opacity: 0.9; }
.citizen.dead .citizen-photo { background: #dfe3e3; border-color: #c2c9cb; }
.citizen.dead .citizen-photo img { filter: grayscale(1); }
.citizen.dead .citizen-empty { color: #7e898e; }
.citizen.dead .citizen-org, .citizen.dead .citizen-info dt { color: #566166; }
.avatar-setting { display: flex; gap: 12px; align-items: flex-start; }
.tip-reply { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-top: 8px; background: var(--bg-2); border-left: 2px solid var(--line-2); }
.tip-reply.from-pi { background: var(--pink-dim); border-left-color: var(--pink); }
.setting-list { margin-top: 12px; border-top: 1px solid var(--line); }
.setting-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setting-name { font-size: 14.5px; font-weight: 500; }
.setting-row .btn { flex: none; min-width: 76px; min-height: 40px; }
.guest-intro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guest-intro h1 { font-size: 17px; line-height: 1.4; }
.guest-intro .grow { flex: 1 1 220px; }
.visit-invite { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }

/* 주간 일정 ------------------------------------------------------------- */
.week-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.week-nav .btn { min-width: 40px; min-height: 40px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 6px 0; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); }
.week-day:hover { border-color: var(--line-2); }
.week-day.on { border-color: var(--sys); background: var(--sys-dim); color: var(--ink); }
.week-day.today .week-date { color: var(--sys); font-weight: 700; }
.week-day.sun .week-name { color: #ff9aa7; }
.week-name { font-size: 12.5px; }
.week-date { font-size: 15px; }
.week-dot { width: 6px; height: 6px; border-radius: 50%; }
.week-dot.has { background: var(--sys); }
.week-detail { margin-top: 10px; padding: 10px 12px; background: var(--bg-2); border-left: 2px solid var(--sys); min-height: 64px; }
.week-list { display: grid; gap: 8px; margin-top: 6px; }

/* 인증 화면 --------------------------------------------------------------- */
.auth-wrap { display: grid; gap: 20px; max-width: 980px; margin: 0 auto; padding-top: 8px; }
.auth-hero { display: flex; gap: 16px; align-items: center; }
.auth-hero h1 { font-size: 24px; line-height: 1.3; font-weight: 700; }
.auth-hero .eyebrow { font: 500 11.5px var(--mono); letter-spacing: 0.12em; color: var(--sys); margin-bottom: 4px; }
.auth-form { max-width: 460px; width: 100%; }
.rank-pick { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rank-pick legend { padding: 0; margin-bottom: 6px; }
.rank-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rank-option { position: relative; display: grid; justify-items: center; gap: 1px; min-height: 54px; padding: 7px 2px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.rank-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rank-option b { font: 700 17px var(--mono); }
.rank-option small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.rank-option:hover { border-color: var(--sys); }
.rank-option:has(input:checked) { border-color: var(--sys); background: var(--sys-dim); color: var(--sys); }
.rank-option:has(input:focus-visible) { outline: 2px solid var(--sys); outline-offset: 2px; }
/* 마감된 등급은 회색으로 두고 누를 수 없다. */
.rank-option:has(input:disabled) { border-color: var(--line); background: #1a1d20; color: #5a6066; cursor: not-allowed; }
.rank-option:has(input:disabled) small { color: #5a6066; }
.rank-option input:disabled { cursor: not-allowed; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 16px; }
.step { padding-top: 6px; border-top: 2px solid var(--line-2); font-size: 11.5px; color: var(--ink-3); }
.step.on { border-color: var(--sys); color: var(--sys); }
.step.done { border-color: var(--ok); color: var(--ink-2); }
.dev-code { padding: 10px 12px; border: 1px dashed var(--warn); color: var(--warn); font-size: 13.5px; }
.dev-code b { font: 700 18px var(--mono); letter-spacing: 0.15em; }
.public-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; }
.public-nav a { padding: 6px 8px; color: var(--ink-2); white-space: nowrap; }
.public-nav a:hover, .public-nav a[aria-current="page"] { color: var(--sys); }
.intro-replay { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; background: none; border: 0; color: var(--ink-2); font-size: 12.5px; letter-spacing: 0.04em; white-space: nowrap; cursor: pointer; }
.intro-replay:hover { color: var(--sys); }
.intro-replay svg { flex: none; }

/* 세계관 --------------------------------------------------------------- */
.world-layout { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.world-nav { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; cursor: grab; user-select: none; }
.world-nav::-webkit-scrollbar { display: none; }
.world-nav a { flex: none; padding: 7px 12px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.world-nav a[aria-current="page"] { color: var(--sys); border-color: var(--sys); background: var(--sys-dim); }

/* 시설 안내: 위에서 아래로 층이 쌓인 건물 */
.bldg { max-width: 560px; margin: 0 auto; }
.bldg-roof { display: block; width: 100%; height: auto; }
/* 지면. 건물보다 넓게 그어 위는 지상, 아래는 지하로 나눈다. */
.bldg-ground { height: 4px; margin: 0 -10px; background: #67e8f0; }
.bldg-beacon { animation: pulse 1.6s ease-in-out infinite; }
.bldg-zone { --zone: var(--sys); padding: 8px 8px 6px; background: var(--panel-2); border: 2px solid #3d6d80; border-width: 0 2px 2px; }
.bldg-zone:first-of-type { border-top-width: 2px; }
.zone-medical { --zone: var(--pink); }
.zone-living { --zone: #8fb8ff; }
.zone-welfare { --zone: var(--ok); }
.zone-lobby { --zone: var(--warn); }
.zone-secret { --zone: var(--danger); }
.bldg-zone h3 { padding: 2px 4px 6px; font-size: 12.5px; font-weight: 700; color: var(--zone); }
.floor { margin-top: 4px; background: var(--bg-2); border-left: 3px solid var(--zone); }
.floor summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; cursor: pointer; list-style: none; }
.floor summary::-webkit-details-marker { display: none; }
.floor summary:hover { background: var(--panel-3); }
.floor[open] summary { background: var(--panel-3); }
.floor-no { flex: none; min-width: 36px; font: 700 14px var(--mono); color: var(--zone); }
.floor-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; }
/* 층마다 불 켜진 창문을 그린다. */
.floor-windows { flex: none; width: 58px; height: 14px; opacity: 0.55; background: repeating-linear-gradient(90deg, var(--zone) 0 8px, transparent 8px 13px); }
.floor-text { padding: 8px 12px 12px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.bldg-under { background: #150609; border: 2px dashed var(--danger); border-top: 0; }
.bldg-under .floor { background: #0d0406; }

/* 운영 콘솔 --------------------------------------------------------------- */
.scroll-x.admin-tabs { margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 10px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-size: 13px; }
.kv dd { margin: 0; }
.card-row { padding: 12px 0; border-top: 1px solid var(--line); }
.card-row:first-child { border-top: 0; padding-top: 0; }
.snapshot { padding: 8px 10px; background: var(--bg-2); border-left: 2px solid var(--line-2); font-size: 13.5px; white-space: pre-wrap; max-height: 180px; overflow: auto; }

/* 태블릿 이상 --------------------------------------------------------------- */
@media (min-width: 720px) {
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; padding-top: 7vh; }
  .auth-hero { flex-direction: column; align-items: flex-start; }
  .auth-hero h1 { font-size: 34px; }
  .pi-toast { left: auto; right: 24px; bottom: 96px; width: 400px; }
  .brand small { display: inline; }
  .vital-scale { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bgm-fab, .fab { width: 56px; height: 56px; }
  /* 버튼이 커진 만큼 올려 채팅 버튼과의 간격을 12px로 유지한다. */
  .shell-member .bgm { bottom: calc(var(--tabs) + var(--safe-b) + 80px); }
  .bgm-hint { right: calc(100% + 14px); padding: 10px 14px; font-size: 12px; }
}

/* PC ------------------------------------------------------------------ */
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail {
    display: block; position: sticky; top: var(--top);
    height: calc(100dvh - var(--top)); overflow-y: auto;
    padding: 8px 0 16px; border-right: 1px solid var(--line); background: rgba(8, 16, 23, 0.7);
  }
  .tabs { display: none; }
  [data-only-sm] { display: none; }
  .rail-backdrop { display: none; }
  .bell-panel { left: auto; right: 16px; width: 400px; max-height: min(640px, calc(100dvh - var(--banner, 0px) - var(--top) - 24px)); border: 1px solid var(--line-2); }
  .terminal-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .view { padding: 24px 24px 80px; width: 100%; }
  /* 오른쪽은 음악 버튼 자리로 비워 둔다. */
  .view.chat-view { padding: 24px 96px 24px 24px; }
  .chat-page { height: calc(100dvh - var(--banner, 0px) - var(--top) - 48px); margin: 0; border: 1px solid var(--line); }
  .dash { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .dash > .d7 { grid-column: span 7; }
  .dash > .d5 { grid-column: span 5; }
  .dash > .d12 { grid-column: span 12; }
  .dash > div.d7 { display: grid; }
  .dash > div.d5 { grid-template-rows: auto 1fr; }
  .pi-toast { bottom: 88px; left: calc(var(--rail) + 24px); right: auto; }
  .world-layout { grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
  .world-nav { flex-direction: column; margin: 0; padding: 0; position: sticky; top: calc(var(--top) + 24px); overflow: visible; cursor: auto; }
  .world-nav a { border: 0; border-left: 2px solid var(--line); }
  .world-nav a[aria-current="page"] { border-left-color: var(--sys); }
  .scroll-x { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .fab { right: 24px; bottom: 20px; }
  .bgm { right: 32px; bottom: 32px; }
  /* 채팅 버튼 바로 위에 고정한다. 채팅 팝업이 열리면 팝업 뒤로 가려진다. */
  .shell-guest .bgm { bottom: 32px; }
  .shell-member .bgm { right: 24px; bottom: 88px; }
  .chat-popup {
    left: auto; right: 24px; bottom: 84px; z-index: 40;
    width: 380px; height: min(600px, calc(100dvh - 150px));
    border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); animation: rise 0.18s ease-out;
  }
}

/* 운영 다이얼로그는 모바일에서 하단 시트로 ---------------------------------------- */
@media (max-width: 719px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 92dvh; border-width: 1px 0 0; }
  .terminal-id .citizen-photo { width: 90px; }
  .status-strip .hide-sm { display: none; }
  .status-strip { gap: 2px; }
  .status-strip .status-item { margin-right: 4px; }
  .topbar { gap: 8px; padding: 0 8px 0 12px; }
  .public-nav a, .intro-replay { padding: 6px 5px; }
  /* 좁은 폰에서는 메뉴가 잘리지 않게 로고 글자를 빼고 그림만 남긴다. */
  @media (max-width: 380px) {
    .topbar-public .brand span { display: none; }
    /* 좁은 폰에서 오른쪽 정보가 줄바꿈되어 사진이 지나치게 길어지지 않게 한다. */
    .citizen > .citizen-photo { width: 44%; }
    .citizen-info { grid-template-columns: 54px minmax(0, 1fr); }
  }
  .list-meta.hide-sm { display: none; }
  .dialog-f .btn { flex: 1; }
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ring { 0%, 100% { opacity: 0.95; transform: scaleX(1); } 50% { opacity: 0.55; transform: scaleX(0.9); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes cell { from { opacity: 0; } }
@keyframes danger-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 110, 0); } 50% { box-shadow: 0 0 22px 0 rgba(255, 90, 110, 0.25); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
