
:root {
  --void: #000000;
  --glass: #010805;
  --ph: #52f2ae;
  --ph-dim: #2b9a6e;
  --ph-faint: #0f3326;
  --glow: rgba(82, 242, 174, 0.42);
  --f-text: 'Galmuri14', 'Galmuri11', 'Malgun Gothic', sans-serif;
  --f-px: 'Galmuri11', 'Galmuri14', 'Malgun Gothic', sans-serif;
  --f-mono: 'GalmuriMono11', 'Galmuri11', ui-monospace, monospace;
  --f-display: 'Black Han Sans', 'Galmuri11', sans-serif;
  --fs-s: 12px;
  --fs-b: 15px;
  --fs-m: 24px;
  --fs-l: 36px;
  --pad: clamp(0px, 1.6vw, 24px);
  --radius: 22px;
  --line: 1px solid var(--ph-dim);
  --line-strong: 2px solid var(--ph);
  --stripe: repeating-linear-gradient(to bottom, var(--ph) 0 2px, transparent 2px 5px);
}
:root[data-mode='superior'] {
  --glass: #070400;
  --ph: #ffb13b;
  --ph-dim: #b07722;
  --ph-faint: #3a2608;
  --glow: rgba(255, 177, 59, 0.42);
}
*,
*::before,
*::after { box-sizing: border-box; }
html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--glass);
  color: var(--ph);
  font-family: var(--f-text);
  font-size: var(--fs-b);
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: background-color 0.2s;
}
::selection { background: var(--ph); color: var(--glass); text-shadow: none; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-style: dashed; }
:focus-visible {
  outline: 2px solid var(--ph);
  outline-offset: 2px;
}
p, ul, ol, dl, table, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ph);
  color: var(--glass);
  font-family: var(--f-px);
}
.skip:focus { top: 16px; }
.bezel {
  position: fixed;
  inset: var(--pad);
  z-index: 40;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow:
    0 0 0 100vmax var(--void),
    inset 0 0 160px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.bezel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.24) 2px 3px);
}
.app {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--pad) + 16px);
  text-shadow: 0 0 3px var(--glow);
}
.win {
  --bar-h: 49px;
  --nav-w: 103px;
  display: grid;
  grid-template-rows: var(--bar-h) auto minmax(0, 1fr);
  width: min(841px, 100%);
  height: min(870px, calc(100dvh - var(--pad) * 2 - 32px));
  border: var(--line);
  background: var(--glass);
}
.w-bar {
  --logo-w: 240px;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: var(--line);
  background: var(--glass);
  overflow: hidden;
}
.w-logo {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 10px;
  text-decoration: none;
}
.w-logo .striped {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0.01em;
  color: transparent;
  text-shadow: none;
  background: repeating-linear-gradient(to bottom, var(--ph) 0 3px, transparent 3px 5px) 0 2px;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 4px var(--glow));
}
.w-logo:focus-visible { outline-offset: -2px; }
.w-water {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 840px;
  max-width: calc(100% - var(--logo-w));
  filter: drop-shadow(0 0 2px var(--glow));
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px);
  mask-image: linear-gradient(90deg, transparent, #000 48px);
}
.w-water i {
  position: absolute;
  inset: 0;
  background: var(--ph);
  -webkit-mask: url('../img/water-dots.png') right center / auto 48px no-repeat;
  mask: url('../img/water-dots.png') right center / auto 48px no-repeat;
}
.w-water .w-glint {
  -webkit-mask:
    url('../img/water-glints.png') right center / auto 48px no-repeat,
    linear-gradient(90deg, transparent 44%, #000 50%, transparent 56%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask-composite: source-in;
  mask:
    url('../img/water-glints.png') right center / auto 48px no-repeat,
    linear-gradient(90deg, transparent 44%, #000 50%, transparent 56%) 100% 0 / 300% 100% no-repeat;
  mask-composite: intersect;
  animation: glint 5.4s steps(36) infinite;
}
@keyframes glint {
  from { -webkit-mask-position: right center, 100% 0; mask-position: right center, 100% 0; }
  to { -webkit-mask-position: right center, 0% 0; mask-position: right center, 0% 0; }
}
.w-menu {
  display: none;
  position: relative;
  z-index: 1;
  align-self: stretch;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-left: var(--line);
  background: var(--glass);
  color: inherit;
  font-family: var(--f-px);
  font-size: var(--fs-s);
  text-shadow: inherit;
  cursor: pointer;
}
.w-menu[aria-expanded='true'] { background: var(--ph); color: var(--glass); text-shadow: none; }
.w-dept {
  display: grid;
  place-items: center;
  min-height: 79px;
  padding: 0 12px;
  border-bottom: var(--line);
  font-family: var(--f-px);
  font-size: var(--fs-l);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
}
.w-id {
  display: grid;
  grid-template-columns: minmax(0, 420fr) minmax(0, 419fr);
  min-height: 118px;
  border-bottom: var(--line);
}
.w-motto {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--ph);
  color: var(--glass);
  text-shadow: none;
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.2;
  text-wrap: balance;
}
.w-prof {
  position: relative;
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 9px 14px 9px 11px;
  font-family: var(--f-px);
}
.pf-photo {
  flex: none;
  display: grid;
  place-items: center;
  width: 78px;
  height: 96px;
  border: var(--line);
  background: repeating-linear-gradient(to bottom, var(--ph-faint) 0 3px, transparent 3px 6px);
  color: var(--ph-dim);
  font-size: var(--fs-s);
  line-height: 1.5;
  text-align: center;
}
.pf-info { flex: 1; min-width: 0; }
.pf-name {
  padding-right: 64px;
  font-size: var(--fs-m);
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-dl {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding-left: 3px;
  font-size: var(--fs-s);
  line-height: 13px;
}
.pf-dl div { display: grid; grid-template-columns: 38px minmax(0, 1fr); }
.pf-dl dt { color: var(--ph-dim); }
.pf-dl dd {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-out {
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 2px 6px;
  border: 0;
  background: none;
  color: var(--ph);
  font-family: var(--f-px);
  font-size: var(--fs-s);
  line-height: 1.3;
  text-shadow: inherit;
  cursor: pointer;
}
.pf-out:hover,
.pf-out:focus-visible { background: var(--ph); color: var(--glass); text-shadow: none; outline: none; }
.w-body {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  min-height: 0;
}
.w-nav {
  padding: 5px 0;
  border-right: var(--line);
  overflow-y: auto;
  font-family: var(--f-px);
  font-size: var(--fs-s);
  line-height: 15px;
}
.w-nav ul { list-style: none; padding: 0; }
.w-nav a {
  display: block;
  padding: 5px 10px;
  white-space: nowrap;
  text-decoration: none;
}
.w-nav a.is-lock { color: var(--ph-dim); }
.w-nav a:hover { background: var(--ph-faint); }
.w-nav a[aria-current='page'],
.w-nav a:focus-visible {
  background: var(--ph);
  color: var(--glass);
  text-shadow: none;
  outline: none;
}
.w-main {
  min-width: 0;
  padding: 24px 28px 40px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ph-dim) transparent;
}
.w-main:focus { outline: none; }
.page-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-l);
  line-height: 1.15;
  margin-bottom: 24px;
}
.page-lede { max-width: 38em; margin-bottom: 28px; }
.section { margin-top: 40px; }
.section:first-child,
.sr-only + .section { margin-top: 0; }
.section > h2 {
  font-family: var(--f-px);
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--f-px);
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.3;
}
.section-head a { font-family: var(--f-px); font-size: var(--fs-s); }
.prose { max-width: 38em; }
.prose > * + * { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.field label {
  display: block;
  font-family: var(--f-px);
  font-size: var(--fs-s);
  color: var(--ph-dim);
  margin-bottom: 4px;
}
.field input {
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid var(--ph-dim);
  border-radius: 0;
  background: transparent;
  color: var(--ph);
  caret-color: var(--ph);
  font-family: var(--f-mono);
  font-size: var(--fs-m);
  letter-spacing: 0.24em;
  text-shadow: inherit;
}
.field input:focus { outline: none; border-bottom-color: var(--ph); background: var(--ph-faint); }
.field input::placeholder { color: var(--ph-faint); }
.btn {
  display: inline-block;
  justify-self: start;
  padding: 8px 18px;
  border: 2px solid var(--ph);
  background: transparent;
  color: var(--ph);
  font-family: var(--f-px);
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-shadow: inherit;
  cursor: pointer;
}
.btn:hover,
.btn:focus-visible {
  background: var(--ph);
  color: var(--glass);
  text-shadow: none;
  outline: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.list { list-style: none; padding: 0; }
.list li + li { border-top: 1px dashed var(--ph-faint); }
.list a,
.list .row {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  text-decoration: none;
}
.list a:hover { background: var(--ph-faint); }
.list a:focus-visible { background: var(--ph); color: var(--glass); text-shadow: none; outline: none; }
.list .n,
.list .d { font-family: var(--f-mono); font-size: var(--fs-s); color: var(--ph-dim); }
.list a:focus-visible .n,
.list a:focus-visible .d { color: var(--glass); }
.board a,
.board .row { grid-template-columns: 2.6em minmax(0, 1fr) auto; padding: 14px 8px; }
.board .is-redacted { cursor: not-allowed; }
table.kv,
table.grid {
  width: 100%;
  max-width: 820px;
  border-collapse: collapse;
}
.kv th,
.kv td,
.grid th,
.grid td {
  padding: 10px 12px;
  border: var(--line);
  text-align: left;
  vertical-align: top;
}
.kv th {
  width: 9.5em;
  font-family: var(--f-px);
  font-size: var(--fs-s);
  font-weight: 400;
  color: var(--ph-dim);
}
.grid th {
  font-family: var(--f-px);
  font-size: var(--fs-s);
  font-weight: 400;
  color: var(--ph-dim);
}
.mono { font-family: var(--f-mono); }
.redact {
  background: var(--ph);
  color: transparent;
  text-shadow: none;
  box-shadow: 0 0 4px var(--glow);
  user-select: none;
  -webkit-user-select: none;
}
.sealed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ph-dim);
  font-family: var(--f-px);
  font-size: var(--fs-s);
  line-height: 1.8;
}
.sealed::before {
  content: '';
  flex: none;
  width: 2.4em;
  height: 0.9em;
  background: var(--stripe);
}
.bar {
  display: block;
  height: 0.9em;
  margin: 0.45em 0;
  background: var(--stripe);
  opacity: 0.85;
}
.bar.w60 { width: 60%; }
.bar.w80 { width: 80%; }
.bar.w45 { width: 45%; }
.tag {
  font-family: var(--f-px);
  font-size: var(--fs-s);
  color: var(--ph-dim);
}
.tag::before { content: '['; }
.tag::after { content: ']'; }
.locked {
  max-width: 34em;
  padding: 28px 24px;
  border: var(--line);
}
.locked .bars { margin-bottom: 20px; }
.locked p + p, .locked p + .btn-row { margin-top: 16px; }
.tree,
.tree ul { list-style: none; padding: 0; margin: 0; }
.tree ul { padding-left: 28px; }
.tree li { position: relative; padding: 6px 0 6px 0; }
.tree ul > li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  border-left: var(--line);
}
.tree ul > li:last-child::before { bottom: auto; height: 1.4em; }
.tree ul > li::after {
  content: '';
  position: absolute;
  left: -20px;
  top: 1.4em;
  width: 14px;
  border-top: var(--line);
}
.node {
  display: inline-block;
  padding: 2px 10px;
  border: var(--line);
  font-family: var(--f-px);
  font-size: var(--fs-s);
  line-height: 1.8;
}
.node.here { background: var(--ph); color: var(--glass); border-color: var(--ph); text-shadow: none; }
.tree .sealed { margin-left: 8px; }
.code-name { letter-spacing: 0.12em; }
.code { display: grid; max-width: 820px; }
.code div {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: var(--line);
}
.code div:last-child { border-bottom: var(--line); }
.code dt { font-family: var(--f-px); letter-spacing: 0.04em; }
.code dt b { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-m); line-height: 1; margin-right: 1px; }
.code dd { margin: 0; align-self: center; }
@media (max-width: 760px) {
  .code div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; }
.kinds div { padding: 14px 16px; border: var(--line); }
.kinds dt { font-family: var(--f-px); font-size: var(--fs-s); font-weight: 700; margin-bottom: 6px; }
.kinds dd { margin: 0; }
.levels { list-style: none; padding: 0; max-width: 820px; }
.level {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: var(--line);
}
.level:last-child { border-bottom: var(--line); }
.lv-head { font-family: var(--f-px); }
.lv-num { font-size: var(--fs-m); font-weight: 700; line-height: 1.2; }
.meter { display: flex; gap: 3px; margin-top: 8px; }
.meter i { width: 14px; height: 10px; border: 1px solid var(--ph-dim); }
.meter i.on { background: var(--ph); border-color: var(--ph); }
.level ul { padding-left: 1.2em; list-style: square; }
.level li + li { margin-top: 4px; }
.article { max-width: 760px; border: var(--line); }
.article-head { padding: 18px 20px; border-bottom: var(--line); }
.article-head h2 { font-size: var(--fs-m); font-family: var(--f-px); font-weight: 700; line-height: 1.4; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 8px;
  font-family: var(--f-px);
  font-size: var(--fs-s);
  color: var(--ph-dim);
}
.article-body { padding: 20px; }
.article-body > * + * { margin-top: 1em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body table { margin-top: 1em; }
.held { color: var(--ph-dim); }
.attach { padding-top: 12px; border-top: 1px dashed var(--ph-dim); }
.article-foot { padding: 12px 20px; border-top: var(--line); }
.dossier { max-width: 860px; border: var(--line-strong); }
.dossier-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: var(--line-strong);
  font-family: var(--f-px);
  font-size: var(--fs-s);
}
.dossier-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.photo {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-right: var(--line-strong);
  background: repeating-linear-gradient(to bottom, var(--ph-faint) 0 3px, transparent 3px 6px);
}
.dossier .kv { max-width: none; }
.dossier .kv th, .dossier .kv td { border-width: 0 0 1px 0; }
.dossier .kv tr:last-child th, .dossier .kv tr:last-child td { border-bottom: 0; }
.dossier-sub { padding: 10px 16px; border-top: var(--line-strong); font-family: var(--f-px); font-size: var(--fs-s); font-weight: 700; }
.dossier .grid { max-width: none; }
.dossier .grid th, .dossier .grid td { border-left: 0; border-right: 0; border-bottom: 0; }
.notice-bar {
  max-width: 860px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: var(--line);
  border-left: 6px solid var(--ph);
}
body.gated { overflow: hidden; }
body.gated .app { visibility: hidden; }
.gate {
  --gs: 1.5;
  --g-font: 'Galmuri14', 'Galmuri11', 'Malgun Gothic', sans-serif;
  --g-note-font: 'Galmuri9', 'Galmuri11', 'Malgun Gothic', sans-serif;
  --g-note-size: 10px;
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--glass);
  color: var(--ph);
  font-family: var(--g-font);
  font-weight: 400;
  line-height: normal;
  text-shadow: 0 0 3px var(--glow);
}
@media (max-width: 760px), (max-height: 520px) {
  .gate {
    --gs: 1;
    --g-font: 'Galmuri9', 'Galmuri11', 'Malgun Gothic', sans-serif;
    --g-note-font: 'Galmuri7', 'Galmuri9', 'Malgun Gothic', sans-serif;
    --g-note-size: 8px;
  }
}
.gate-box {
  width: min(calc(485px * var(--gs)), 100%);
  height: calc(250px * var(--gs));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(22px * var(--gs)) 16px calc(24px * var(--gs));
  border: var(--line);
}
.gate-logo {
  position: relative;
  flex: none;
  width: calc(180px * var(--gs));
  height: calc(87px * var(--gs));
  overflow: hidden;
  filter: drop-shadow(0 0 4px var(--glow));
}
.gate-logo i {
  position: absolute;
  left: -7.07%;
  top: -15.94%;
  width: 114.15%;
  height: 131.89%;
  background: var(--ph);
  -webkit-mask: url('../img/yoonseul-logo.png') center / 100% 100% no-repeat;
  mask: url('../img/yoonseul-logo.png') center / 100% 100% no-repeat;
}
.gate-msg {
  margin-top: calc(10px * var(--gs));
  font-size: calc(10px * var(--gs));
  font-weight: 400;
  line-height: calc(12px * var(--gs));
  text-align: center;
}
.gate-note {
  margin-top: calc(6px * var(--gs));
  font-family: var(--g-note-font);
  font-size: var(--g-note-size);
  line-height: calc(7px * var(--gs));
  color: var(--ph-dim);
  text-align: center;
}
.gate-fields {
  display: grid;
  gap: calc(6px * var(--gs));
  width: calc(173px * var(--gs));
  margin-top: calc(32px * var(--gs));
}
.gate-row {
  display: grid;
  grid-template-columns: calc(33px * var(--gs)) minmax(0, 1fr);
  height: calc(15px * var(--gs));
  border-bottom: 1px solid var(--ph-dim);
  font-size: calc(10px * var(--gs));
  line-height: calc(12px * var(--gs));
}
.gate-row:focus-within { border-bottom-color: var(--ph); box-shadow: 0 1px 0 var(--ph); }
.gate-row label { padding-top: calc(2px * var(--gs)); color: var(--ph-dim); }
.gate-row:focus-within label { color: var(--ph); }
.gate-row input {
  width: 100%;
  min-width: 0;
  height: calc(14px * var(--gs));
  margin: 0;
  padding: calc(2px * var(--gs)) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ph);
  caret-color: var(--ph);
  font: inherit;
  line-height: calc(12px * var(--gs));
  text-shadow: inherit;
  outline: none;
}
.gate-error {
  position: absolute;
  top: calc(50% + 125px * var(--gs) + 12px);
  left: 16px;
  right: 16px;
  font-size: calc(10px * var(--gs));
  line-height: 1.4;
  text-align: center;
}
.gate-error:not(:empty)::before { content: '[ '; }
.gate-error:not(:empty)::after { content: ' ]'; }
.gate-ts {
  position: absolute;
  top: calc(50% + 125px * var(--gs) + 48px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}
.gate-ts:empty { display: none; }
.gate-legal {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  font-family: 'Galmuri11', 'Malgun Gothic', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ph-dim);
  text-align: center;
  word-break: keep-all;
}
.warn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0 3px, rgba(0, 0, 0, 0.7) 3px 6px);
}
.warn[hidden] { display: none; }
.warn-box {
  width: min(calc(300px * var(--gs)), 100%);
  padding: calc(16px * var(--gs)) calc(18px * var(--gs)) calc(14px * var(--gs));
  border: 2px solid var(--ph);
  background: var(--glass);
  box-shadow: 0 0 0 4px var(--glass), 0 0 18px var(--glow);
  text-align: center;
}
.warn-title {
  font-size: calc(10px * var(--gs));
  line-height: calc(12px * var(--gs));
  letter-spacing: 0.1em;
}
.warn-msg {
  margin-top: calc(10px * var(--gs));
  font-size: calc(10px * var(--gs));
  line-height: calc(15px * var(--gs));
  word-break: keep-all;
}
.warn-btns {
  display: flex;
  justify-content: center;
  gap: calc(10px * var(--gs));
  margin-top: calc(14px * var(--gs));
}
.warn-btns .btn { min-width: calc(56px * var(--gs)); font-family: var(--g-font); font-weight: 400; }
.gate.leaving { animation: gate-out 0.18s steps(4) forwards; }
@keyframes gate-out { to { opacity: 0; } }
.boot {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--pad) + 32px) calc(var(--pad) + 28px);
  background: var(--glass);
  text-shadow: 0 0 3px var(--glow);
  cursor: pointer;
}
.boot pre {
  margin: 0;
  font-family: var(--f-px);
  font-size: var(--fs-s);
  line-height: 2;
  white-space: pre-wrap;
}
.boot.off { animation: crt-on 0.5s steps(12) forwards; }
@keyframes crt-on {
  0% { clip-path: inset(0 0 0 0); opacity: 1; }
  60% { clip-path: inset(49.6% 0 49.6% 0); opacity: 1; }
  100% { clip-path: inset(50% 50% 50% 50%); opacity: 0; }
}
.app.pc-off { animation: pc-off 0.22s steps(6) forwards; }
.app.pc-on { animation: pc-on 0.42s steps(10) both; }
@keyframes pc-off {
  to { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(2.2); }
}
@keyframes pc-on {
  from { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(2.2); }
  to { clip-path: inset(0 0 0 0); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .boot.off,
  .gate.leaving,
  .app.pc-off,
  .app.pc-on { animation: none; }
  body { transition: none; }
  .w-water .w-glint {
    animation: none;
    -webkit-mask: url('../img/water-glints.png') right center / auto 48px no-repeat;
    mask: url('../img/water-glints.png') right center / auto 48px no-repeat;
    opacity: 0.7;
  }
}
@media (min-width: 761px) and (max-height: 620px) {
  .win { height: auto; grid-template-rows: var(--bar-h) auto auto; }
  .w-main { overflow: visible; }
}
@media (max-width: 760px) {
  .app { display: block; padding: var(--pad); }
  .win {
    width: 100%;
    height: auto;
    grid-template-rows: var(--bar-h) auto auto;
  }
  .w-bar { --logo-w: 196px; position: sticky; top: var(--pad); z-index: 30; }
  .w-logo .striped { font-size: 32px; }
  .w-menu { display: flex; justify-content: center; width: 60px; padding: 0; }
  .w-water { right: 60px; max-width: calc(100% - var(--logo-w) - 60px); }
  .w-dept {
    min-height: 0;
    padding: 14px 8px;
    font-size: clamp(var(--fs-b), 6.2vw, var(--fs-m));
    letter-spacing: 0.02em;
  }
  .w-id { grid-template-columns: minmax(0, 1fr); }
  .w-motto { padding: 16px; font-size: clamp(22px, 6.4vw, 28px); }
  .w-prof { padding: 12px 8px 12px 12px; }
  .w-body { grid-template-columns: minmax(0, 1fr); }
  .w-nav {
    display: none;
    position: fixed;
    top: calc(var(--pad) + var(--bar-h));
    left: var(--pad);
    right: var(--pad);
    bottom: var(--pad);
    z-index: 25;
    padding: 8px 0;
    border: var(--line);
    border-top: 0;
    background: var(--glass);
    font-size: var(--fs-b);
    line-height: 1.4;
  }
  .w-nav.open { display: block; }
  .w-nav a { padding: 12px 16px; }
  body.menu-open { overflow: hidden; }
  .w-main { overflow: visible; padding: 24px 16px 48px; }
}
@media (max-width: 640px) {
  :root { --radius: 0px; }
  .kv th { width: 6.5em; }
  .kv th, .kv td, .grid th, .grid td { padding: 8px; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .level { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lv-head { display: flex; align-items: center; gap: 14px; }
  .meter { margin-top: 0; }
  .dossier-body { grid-template-columns: minmax(0, 1fr); }
  .photo { min-height: 140px; border-right: 0; border-bottom: var(--line-strong); }
  .list a, .board a, .board .row { grid-template-columns: 2.4em minmax(0, 1fr); }
  .list .d { grid-column: 2; }
}
