@font-face {
  font-family: "Evanescent";
  src: url("assets/fonts/kiwisoda/evanescent/evanescent.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 162%;
}

:root {
  --ink: #08090b;
  --ink-2: #0d0e12;
  --panel: #13141a;
  --panel-2: #191b22;
  --line: #23252e;
  --line-2: #32353f;
  --bone: #f0ede6;
  --dim: #8c8f9c;
  --dimmer: #565964;
  --rc: #f0ede6;
  --rainbow: linear-gradient(90deg,#ff4d4d,#ffa23e,#ffe93b,#5cff8f,#4dd2ff,#7d7dff,#e07dff,#ff4d4d);
  --rail-w: 66px;
  --rail-open: 234px;
  --ease: cubic-bezier(.22,.68,.32,1);
  --cur: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%3E%20%3Cg%20fill='none'%20stroke='%23000'%20stroke-opacity='.7'%20stroke-width='4'%20stroke-linecap='round'%3E%3Cpath%20d='M14%202.5v6.5M14%2019v6.5M2.5%2014H9M19%2014h6.5'/%3E%3C/g%3E%20%3Cg%20fill='none'%20stroke='%23f0ede6'%20stroke-width='1.7'%20stroke-linecap='round'%3E%3Cpath%20d='M14%202.5v6.5M14%2019v6.5M2.5%2014H9M19%2014h6.5'/%3E%3C/g%3E%20%3Ccircle%20cx='14'%20cy='14'%20r='1.5'%20fill='%23f0ede6'/%3E%3C/svg%3E") 14 14, crosshair;
  --cur-hot: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2036%2036'%3E%20%3Cg%20fill='none'%20stroke='%23000'%20stroke-opacity='.7'%20stroke-width='4.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%20%3Cpath%20d='M18%203.5v7M18%2025.5v7M3.5%2018h7M25.5%2018h7'/%3E%3Cpath%20d='M7.5%2012.5v-5h5M28.5%2012.5v-5h-5M7.5%2023.5v5h5M28.5%2023.5v5h-5'/%3E%3C/g%3E%20%3Cg%20fill='none'%20stroke='%23ffe93b'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%20%3Cpath%20d='M18%203.5v7M18%2025.5v7M3.5%2018h7M25.5%2018h7'/%3E%3Cpath%20d='M7.5%2012.5v-5h5M28.5%2012.5v-5h-5M7.5%2023.5v5h5M28.5%2023.5v5h-5'/%3E%3C/g%3E%20%3Ccircle%20cx='18'%20cy='18'%20r='2'%20fill='%23ffe93b'/%3E%3C/svg%3E") 16 16, pointer;
  --cur-text: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='28'%20viewBox='0%200%2020%2028'%3E%20%3Cg%20fill='none'%20stroke='%23000'%20stroke-opacity='.7'%20stroke-width='4.6'%20stroke-linecap='round'%3E%3Cpath%20d='M10%205.5v17M6.5%204.5h7M6.5%2023.5h7'/%3E%3C/g%3E%20%3Cg%20fill='none'%20stroke='%23f0ede6'%20stroke-width='1.8'%20stroke-linecap='round'%3E%3Cpath%20d='M10%205.5v17M6.5%204.5h7M6.5%2023.5h7'/%3E%3C/g%3E%3C/svg%3E") 10 14, text;
  --cur-grab: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3E%20%3Cg%20fill='none'%20stroke='%23000'%20stroke-opacity='.7'%20stroke-width='4.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%20%3Cpath%20d='M16%207v18M4.5%2016h23M9.5%2011.5%205%2016l4.5%204.5M22.5%2011.5%2027%2016l-4.5%204.5'/%3E%3C/g%3E%20%3Cg%20fill='none'%20stroke='%23f0ede6'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%20%3Cpath%20d='M16%207v18M4.5%2016h23M9.5%2011.5%205%2016l4.5%204.5M22.5%2011.5%2027%2016l-4.5%204.5'/%3E%3C/g%3E%3C/svg%3E") 16 16, ew-resize;
  --cur-grabbing: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3E%20%3Cg%20fill='none'%20stroke='%23000'%20stroke-opacity='.7'%20stroke-width='4.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%20%3Cpath%20d='M16%207v18M4.5%2016h23M11.5%2011.5%207%2016l4.5%204.5M20.5%2011.5%2025%2016l-4.5%204.5'/%3E%3C/g%3E%20%3Cg%20fill='none'%20stroke='%23ffe93b'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%20%3Cpath%20d='M16%207v18M4.5%2016h23M11.5%2011.5%207%2016l4.5%204.5M20.5%2011.5%2025%2016l-4.5%204.5'/%3E%3C/g%3E%3C/svg%3E") 16 16, grabbing;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body, .scrim { cursor: var(--cur); }
a, button, .card, .tier, .sg, .rel-item, .sp-seg, .fchip, .vs, .star, .slot-x, .seg button, .mark, .dc { cursor: var(--cur-hot); }
input[type=text] { cursor: var(--cur-text); }
input[type=range], .dual, .dual-track { cursor: var(--cur-grab); }

::selection { background: #f0ede6; color: #08090b; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  background: var(--ink);
  color: var(--bone);
  font-family: "Evanescent", Archivo, "Helvetica Neue", system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 999;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 6s steps(6) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3%,2%); }
  40%  { transform: translate(2%,-3%); }
  60%  { transform: translate(-2%,-2%); }
  80%  { transform: translate(3%,1%); }
  100% { transform: translate(0,0); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% -10%, rgba(255,255,255,.045), transparent 55%),
    radial-gradient(120% 100% at 50% 110%, rgba(0,0,0,.55), transparent 60%);
}

kbd {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 10px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--dim);
  background: var(--panel-2);
}

.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  flex: 0 0 var(--rail-w);
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, #0b0c10, #08090b);
  border-right: 1px solid var(--line);
  transition: flex-basis .28s var(--ease), width .28s var(--ease);
  overflow: hidden;
}
.rail:hover, .rail:focus-within { flex-basis: var(--rail-open); width: var(--rail-open); }

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--bone);
  flex: 0 0 auto;
}
.mark svg { flex: 0 0 26px; transition: transform .5s var(--ease); }
.mark:hover svg { transform: rotate(180deg); }
.mark-txt {
  font-weight: 900;
  letter-spacing: .16em;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}
.mark-txt b { color: var(--dim); font-weight: 900; }
.rail:hover .mark-txt, .rail:focus-within .mark-txt { opacity: 1; }

.rail-cap {
  font-family: "Azeret Mono", monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dimmer);
  padding: 14px 20px 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}
.rail:hover .rail-cap, .rail:focus-within .rail-cap { opacity: 1; }

.tiers { display: flex; flex-direction: column; overflow: hidden; }

.tier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 40px;
  padding: 0 16px 0 20px;
  border: 0;
  background: none;
  color: var(--dim);
  text-align: left;
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.tier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--rc);
  transform: translateY(-50%);
  transition: height .22s var(--ease);
}
.tier:hover { color: var(--bone); background: rgba(255,255,255,.03); }
.tier:hover::before { height: 16px; }
.tier.on { color: #fff; background: color-mix(in srgb, var(--rc) 13%, transparent); }
.tier.on::before { height: 40px; }
.tier.rb::before { background: var(--rainbow); background-size: 100% 300%; animation: rbY 5s linear infinite; }

.tier-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  background: var(--rc);
  transform: rotate(45deg);
  transition: box-shadow .2s, transform .3s var(--ease);
}
.tier.on .tier-dot, .tier:hover .tier-dot { box-shadow: 0 0 12px var(--rc); transform: rotate(135deg); }
.tier-dot.rb { background: conic-gradient(#ff4d4d,#ffa23e,#ffe93b,#5cff8f,#4dd2ff,#7d7dff,#e07dff,#ff4d4d); }

.tier-name { flex: 1; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; opacity: 0; transition: opacity .2s; }
.tier-n { font-family: "Azeret Mono", monospace; font-size: 10px; color: var(--dimmer); opacity: 0; transition: opacity .2s; }
.rail:hover .tier-name, .rail:focus-within .tier-name,
.rail:hover .tier-n, .rail:focus-within .tier-n { opacity: 1; }
.tier.on .tier-n { color: rgba(255,255,255,.6); }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.rail-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 38px;
  padding: 0 16px 0 21px;
  border: 0;
  background: none;
  color: var(--dim);
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.rail-btn:hover { color: var(--bone); background: rgba(255,255,255,.03); }
.rail-btn.on { color: #ffce4a; }
.rb-ico { flex: 0 0 9px; font-size: 13px; line-height: 1; }
.rb-txt { flex: 1; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.rb-n { font-family: "Azeret Mono", monospace; font-size: 10px; opacity: 0; transition: opacity .2s; }
.rail:hover .rb-txt, .rail:hover .rb-n,
.rail:focus-within .rb-txt, .rail:focus-within .rb-n { opacity: 1; }

.stage { flex: 1 1 auto; min-width: 0; position: relative; z-index: 2; padding: 0 clamp(16px, 3.4vw, 46px); }

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 40px 0 22px;
  border-bottom: 1px solid var(--line);
}
.banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: rbX 7s linear infinite;
  opacity: .8;
}

.banner-main { min-width: 0; }
.banner-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.game-logo {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 0 26px rgba(200,215,255,.22));
  animation: fadeup .8s cubic-bezier(.16,1,.3,1) both;
}
@keyframes fadeup {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
.banner-brand .banner-kick { margin-bottom: 0; border-left: 1px solid var(--line-2); padding-left: 14px; }
.banner-kick {
  display: block;
  font-family: "Azeret Mono", monospace;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 12px;
}

.banner-t {
  position: relative;
  margin: 0;
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-weight: 400;
  font-size: clamp(38px, 6.6vw, 74px);
  line-height: .86;
  letter-spacing: -.01em;
  rotate: -1.6deg;
  transform-origin: left center;
}

.bt-1, .bt-2 {
  display: block;
  width: fit-content;
  font-style: normal;
  opacity: 0;
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}

.bt-1 {
  text-shadow: 4px 5px 0 rgba(0,0,0,.9), 0 0 34px rgba(240,237,230,.18);
  rotate: -5.4deg;
}

.bt-2 {
  margin: -.06em 0 0 .48em;
  transform: skewX(-5deg);
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 4px 6px 0 rgba(0,0,0,.9);
  rotate: 2.9deg;
}

@keyframes spray {
  0%   { opacity: 0; translate: -18px 26px; scale: .92; }
  55%  { opacity: 1; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes sway1 {
  0%, 100% { rotate: -5.4deg; }
  50%      { rotate: -3.9deg; }
}
@keyframes sway2 {
  0%, 100% { rotate: 2.9deg; }
  50%      { rotate: 1.5deg; }
}
@keyframes sway3 {
  0%, 100% { rotate: -.9deg; }
  50%      { rotate: .7deg; }
}

.fonts-ready .bt-1 {
  animation: spray 1.05s cubic-bezier(.16,1,.3,1) .12s both,
             sway1 9s ease-in-out 0s infinite;
}
.fonts-ready .bt-2 {
  animation: spray 1.05s cubic-bezier(.16,1,.3,1) .34s both,
             sway2 11s ease-in-out 0s infinite;
}
.fonts-ready .bt-tag .l1 { animation: tagdraw 1.15s cubic-bezier(.62,.03,.32,1) .55s forwards; }
.fonts-ready .bt-tag .l2 { animation: tagdraw .34s cubic-bezier(.5,0,.4,1) 1.62s forwards; }

.banner-main:hover .bt-1 { transform: translateX(-9px) rotate(-2.6deg); }
.banner-main:hover .bt-2 { transform: skewX(-8.5deg) translateX(11px) rotate(1.8deg); }

.bt-tag {
  display: block;
  width: min(100%, 460px);
  height: 26px;
  margin: 6px 0 0 .18em;
  overflow: visible;
  animation: sway3 13s ease-in-out 0s infinite;
  rotate: -.9deg;
}
.bt-tag .l1 { stroke-dasharray: 420; stroke-dashoffset: 420; }
.bt-tag .l2 { stroke-dasharray: 52; stroke-dashoffset: 52; }
@keyframes tagdraw { to { stroke-dashoffset: 0; } }

.banner-sub { display: block; margin-top: 4px; font-size: 13.5px; color: var(--dim); }

.banner-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  max-width: 330px;
}
.banner-sprite {
  width: 128px;
  height: 128px;
  margin-bottom: -4px;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.65));
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -11px; }
}
.notice {
  margin: 0;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim);
  border-right: 2px solid var(--line-2);
  padding-right: 12px;
}
.dc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #5865f2;
  border-radius: 3px;
  background: color-mix(in srgb, #5865f2 14%, transparent);
  color: var(--bone);
  text-decoration: none;
  transition: background .16s, transform .12s, box-shadow .16s;
}
.dc svg { fill: #8f9bff; transition: fill .16s; }
.dc-name { font-family: "Azeret Mono", monospace; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.dc:hover { background: #5865f2; box-shadow: 0 12px 30px -14px #5865f2; transform: translateY(-1px); }
.dc:hover svg { fill: #fff; }

.hud {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 16px;
  background: linear-gradient(180deg, var(--ink) 72%, transparent);
}

.hud-search { position: relative; flex: 1 1 auto; min-width: 0; }
.hs-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dimmer); pointer-events: none; transition: color .18s; }
.hud-search:focus-within .hs-ico { color: var(--bone); }

#search {
  width: 100%;
  height: 54px;
  padding: 0 92px 0 46px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--bone);
  font-family: "Evanescent", Archivo, sans-serif;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
#search::placeholder { color: var(--dimmer); font-weight: 400; }
#search:focus { border-color: var(--line-2); background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -22px #000; }

.hs-clear, .hs-kbd { position: absolute; top: 50%; transform: translateY(-50%); }
.hs-kbd { right: 18px; pointer-events: none; }
.hs-clear {
  right: 46px;
  border: 0;
  background: none;
  color: var(--dimmer);
  font-size: 13px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, color .15s;
}
.hs-clear.show { opacity: 1; pointer-events: auto; }
.hs-clear:hover { color: var(--bone); }
.hud-search.filled .hs-kbd { opacity: 0; }

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  box-shadow: 0 30px 60px -20px #000;
  max-height: 60vh;
  overflow-y: auto;
  display: none;
  z-index: 60;
}
.suggest.open { display: block; }
.sg { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-left: 2px solid transparent; }
.sg:hover, .sg.active { background: rgba(255,255,255,.045); border-left-color: var(--rc); }
.sg.rb.active, .sg.rb:hover { border-image: var(--rainbow) 1; }
.sg-dot { flex: 0 0 8px; width: 8px; height: 8px; background: var(--rc); transform: rotate(45deg); }
.sg-dot.rb { background: conic-gradient(#ff4d4d,#ffa23e,#ffe93b,#5cff8f,#4dd2ff,#7d7dff,#e07dff,#ff4d4d); }
.sg-name { flex: 1; font-size: 14px; font-weight: 600; }
.sg-name mark { background: none; color: var(--rc); font-weight: 800; }
.sg-tier { font-family: "Azeret Mono", monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer); }
.sg-val { font-family: "Azeret Mono", monospace; font-size: 12px; font-weight: 700; min-width: 64px; text-align: right; }

.hud-acts { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.viewsw { display: flex; height: 54px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); overflow: hidden; }
.vs { width: 46px; border: 0; background: none; color: var(--dimmer); display: grid; place-items: center; transition: color .16s, background .16s; }
.vs svg { fill: currentColor; }
.vs:hover { color: var(--dim); }
.vs.on { color: var(--ink); background: var(--bone); }

.readout {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.ro { flex: 0 0 auto; padding: 13px 26px 13px 0; margin-right: 26px; border-right: 1px solid var(--line); }
.ro:last-child { border-right: 0; }
.ro-lab {
  display: block;
  font-family: "Azeret Mono", monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 5px;
}
.ro-val { font-family: "Azeret Mono", monospace; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.ro-val small { font-size: 11px; color: var(--dim); font-weight: 500; margin-left: 3px; }
.ro-spread { flex: 1 1 240px; border-right: 0; padding-right: 0; margin-right: 0; min-width: 200px; }
.spread { display: flex; height: 22px; gap: 2px; align-items: stretch; }
.sp-seg {
  min-width: 2px;
  background: var(--rc);
  opacity: .55;
  transition: opacity .18s, transform .18s var(--ease);
  transform-origin: bottom;
}
.sp-seg:hover { opacity: 1; transform: scaleY(1.18); }
.sp-seg.on { opacity: 1; }
.sp-seg.rb { background: var(--rainbow); background-size: 200% 100%; animation: rbX 5s linear infinite; }

.controls { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: flex-end; padding-bottom: 18px; }
.ctl { display: flex; flex-direction: column; gap: 8px; }
.ctl-lab { font-family: "Azeret Mono", monospace; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }
.ctl-lab b { color: var(--bone); font-weight: 700; letter-spacing: .06em; }
.ctl-range { flex: 1 1 200px; max-width: 300px; min-width: 170px; }

.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button {
  border: 0;
  background: none;
  color: var(--dim);
  font-family: "Evanescent", Archivo, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 9px 13px;
  border-right: 1px solid var(--line);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--bone); background: rgba(255,255,255,.04); }
.seg button.on { color: var(--ink); background: var(--bone); }
.seg-dir { font-family: "Azeret Mono", monospace !important; width: 32px; padding: 9px 0 !important; }

.dual { position: relative; height: 26px; display: flex; align-items: center; }
.dual-track { position: absolute; left: 0; right: 0; height: 3px; background: var(--line); }
.dual-fill { position: absolute; height: 100%; background: var(--bone); }
.dual input[type=range] {
  position: absolute;
  left: 0;
  z-index: 2;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 26px;
}
.dual input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 13px;
  height: 13px;
  background: var(--bone);
  border: 0;
  transform: rotate(45deg);
  cursor: var(--cur-grab);
  transition: box-shadow .15s;
}
.dual input[type=range]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(240,237,230,.14); }
.dual input[type=range]:active::-webkit-slider-thumb { cursor: var(--cur-grabbing); }
.dual input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 13px;
  height: 13px;
  background: var(--bone);
  border: 0;
  border-radius: 0;
  transform: rotate(45deg);
  cursor: var(--cur-grab);
}

.chipbar { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 16px; }
.chipbar:empty { display: none; }
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 8px 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--bone);
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.fchip:hover { background: var(--panel-2); border-color: var(--dimmer); }
.fchip i { font-style: normal; color: var(--dimmer); font-size: 12px; }
.fchip:hover i { color: var(--bone); }

main { padding-bottom: 90px; }

.results.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.results.list-view { display: flex; flex-direction: column; }

.card {
  position: relative;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px 16px 15px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  transition: transform .18s var(--ease), box-shadow .18s, background .18s;
  animation: rise .3s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--rc);
  transition: height .18s var(--ease);
}
.card.rb::before { background: var(--rainbow); background-size: 200% 100%; animation: rbX 4.5s linear infinite; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px 260px at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--rc) 26%, transparent), transparent 62%);
  transition: opacity .22s;
}
.card:hover {
  background: var(--panel-2);
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, var(--line)), 0 20px 40px -26px #000;
}
.card:hover::before { height: 5px; }
.card:hover::after { opacity: 1; }
.card.picked { box-shadow: inset 0 0 0 1px var(--rc), 0 0 30px -14px var(--rc); }

.c-tier {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 5px;
  font-family: "Azeret Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rc);
}
.c-tier.rb {
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rbX 4.5s linear infinite;
}
.star {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: none;
  color: var(--line-2);
  font-size: 14px;
  line-height: 1;
  padding: 4px;
  transition: color .15s, transform .15s var(--ease);
}
.star:hover { color: var(--dim); transform: scale(1.25); }
.star.on { color: #ffce4a; }

.c-name {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  min-height: 38px;
}
.c-name mark { background: none; color: var(--rc); }

.c-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  margin: -6px 0 8px;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.6));
  transition: transform .24s var(--ease);
}
.card:hover .c-art { transform: translateX(4px) scale(1.05); }

.c-val {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Azeret Mono", monospace;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.c-val.na { font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; padding: 6px 0; }

.c-vals {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.c-vals .c-val { flex: 0 1 auto; }

.c-kc {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding-left: 34px;
  font-family: "Azeret Mono", monospace;
}
.c-kc i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 2px 5px;
  color: var(--rc);
  border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
  border-radius: 2px;
}
.c-kc b {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--bone);
}
.c-kc.na b {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--dim);
}
.c-kc.na i { color: var(--dimmer); border-color: var(--line-2); }

.c-scale { position: relative; z-index: 1; height: 2px; background: var(--line); margin: 11px 0 13px; }
.c-scale i { position: absolute; inset: 0 auto 0 0; background: var(--rc); }
.c-scale.rb i { background: var(--rainbow); background-size: 300% 100%; animation: rbX 4.5s linear infinite; }

.pips { position: relative; z-index: 1; display: flex; gap: 2px; align-items: center; }
.pip { flex: 1; height: 11px; background: var(--line); clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%); transition: background .2s, opacity .2s; }
.pip.on { background: var(--rc); }
.pips.rb .pip.on { background: var(--rainbow); background-size: 800% 100%; animation: rbX 4.5s linear infinite; }
.pip-n { font-family: "Azeret Mono", monospace; font-size: 10px; font-weight: 700; color: var(--dim); margin-left: 8px; flex: 0 0 auto; }

.c-rank { display: none; font-family: "Azeret Mono", monospace; font-size: 11px; color: var(--dimmer); order: 1; }

.results.list-view .card {
  display: grid;
  grid-template-columns: 40px minmax(120px,1fr) 96px 88px 84px 130px 24px;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  height: 50px;
  clip-path: none;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
  background: none;
  transform: none !important;
  animation: none;
}
.results.list-view .card::before { inset: 0 auto 0 0; width: 0; height: auto; transition: width .18s var(--ease); }
.results.list-view .card:hover::before { width: 3px; height: auto; }
.results.list-view .card:hover { background: rgba(255,255,255,.028); }
.results.list-view .card.picked { background: color-mix(in srgb, var(--rc) 10%, transparent); }
.results.list-view .c-rank { display: block; }
.results.list-view .c-tier { margin: 0; order: 3; overflow: hidden; text-overflow: ellipsis; }
.results.list-view .star { position: static; order: 7; padding: 0; }
.results.list-view .c-name { margin: 0; min-height: 0; font-size: 14px; order: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results.list-view .c-val { order: 4; font-size: 15px; justify-content: flex-end; }
.results.list-view .c-val.na { font-size: 10.5px; padding: 0; }
.results.list-view .c-scale, .results.list-view .c-art { display: none; }
.results.list-view .c-vals { display: contents; }
.results.list-view .c-kc { order: 5; display: block; margin: 0; padding-left: 0; text-align: right; }
.results.list-view .c-kc i { display: none; }
.results.list-view .c-kc b { font-size: 15px; }
.results.list-view .c-kc.na b { font-size: 11px; }
.results.list-view .pips { order: 6; }
.results.list-view .pip { height: 9px; }

.tier-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 26px 0 10px; }
.tier-head:first-child { padding-top: 4px; }
.th-name { font-size: 12px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; color: var(--rc); white-space: nowrap; }
.th-name.rb {
  background: var(--rainbow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rbX 4.5s linear infinite;
}
.th-line { flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 50%, transparent), transparent); }
.th-n { font-family: "Azeret Mono", monospace; font-size: 10px; color: var(--dimmer); }

.empty { padding: 90px 20px; text-align: center; }
.empty-mark { font-size: 52px; color: var(--line-2); line-height: 1; margin-bottom: 16px; }
.empty p { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.empty span { color: var(--dim); font-size: 14px; }

.outro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
  padding: 34px 0 8px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.outro::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(560px, 90%);
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(140,160,255,.13), transparent);
  pointer-events: none;
}
.outro-art { width: 100%; max-width: 220px; height: auto; filter: drop-shadow(0 20px 26px rgba(0,0,0,.7)); animation: floaty 7s ease-in-out infinite; }
.art-l { justify-self: end; transform: scaleX(-1); }
.art-r { justify-self: start; animation-delay: -3.4s; }
.outro-mid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 22px; }
.outro-logo { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 0 30px rgba(200,215,255,.2)); }
.outro-t { margin: 0; font-size: 13.5px; color: var(--dim); text-align: center; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-family: "Azeret Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--dimmer);
}
.foot-keys { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4,5,7,.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.inspector {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(438px, 100vw);
  height: 100vh;
  background: var(--ink-2);
  border-left: 1px solid var(--line-2);
  transform: translateX(102%);
  transition: transform .34s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.inspector.on { transform: none; }
.insp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  background: rgba(10,11,14,.7);
  color: var(--dim);
  border-radius: 3px;
  transition: color .15s, border-color .15s;
}
.insp-close:hover { color: var(--bone); border-color: var(--dim); }

.ib-hero { position: relative; padding: 46px 26px 24px; overflow: hidden; border-bottom: 1px solid var(--line); }
.ib-hero::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto -20%;
  height: 220px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 55%, transparent), transparent);
  opacity: .5;
}
.ib-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rc); }
.ib-hero.rb::after { background: var(--rainbow); background-size: 200% 100%; animation: rbX 4.5s linear infinite; }
.ib-tier {
  position: relative;
  font-family: "Azeret Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rc);
  margin-bottom: 10px;
}
.ib-name { position: relative; margin: 0; font-size: clamp(26px, 4.6vw, 36px); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; }
.ib-sub { position: relative; margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ib-art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  margin-top: 18px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.65));
}
.tag {
  font-family: "Azeret Mono", monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  color: var(--dim);
}
.tag.hot { color: #ff6b4a; border-color: #ff6b4a55; }
.tag.lock { color: #7d8bff; border-color: #7d8bff55; }

.ib-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ib-cell { padding: 20px 26px; border-right: 1px solid var(--line); }
.ib-cell:nth-child(2n) { border-right: 0; }
.ib-cell.ib-wide { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
.ib-k { font-family: "Azeret Mono", monospace; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 8px; }
.ib-v { font-family: "Azeret Mono", monospace; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ib-v small { font-size: 12px; color: var(--dim); font-weight: 500; }
.ib-v.small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--dim); }

.gauge { display: flex; align-items: center; gap: 14px; }
.gauge svg { flex: 0 0 62px; }
.gauge-track { stroke: var(--line); }
.gauge-fill { stroke: var(--rc); stroke-linecap: butt; transition: stroke-dasharray .6s var(--ease); }
.gauge-n { font-family: "Azeret Mono", monospace; font-size: 22px; font-weight: 700; }
.gauge-t { font-size: 11px; color: var(--dim); margin-top: 2px; }

.ib-sec { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.ib-cap { font-family: "Azeret Mono", monospace; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 14px; }
.meter { margin-bottom: 14px; }
.meter:last-child { margin-bottom: 0; }
.meter-top { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 6px; color: var(--dim); }
.meter-top b { color: var(--bone); font-family: "Azeret Mono", monospace; font-weight: 700; }
.meter-bar { height: 5px; background: var(--line); position: relative; overflow: hidden; }
.meter-bar i { position: absolute; inset: 0 auto 0 0; background: var(--rc); width: 0; transition: width .7s var(--ease); }

.rel { display: flex; flex-direction: column; gap: 1px; }
.rel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-left: 2px solid transparent;
  transition: background .14s, border-color .14s;
}
.rel-item:hover { background: rgba(255,255,255,.04); border-left-color: var(--rc); }
.rel-dot { flex: 0 0 7px; width: 7px; height: 7px; background: var(--rc); transform: rotate(45deg); }
.rel-name { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-val { font-family: "Azeret Mono", monospace; font-size: 11.5px; color: var(--dim); }

.ib-acts { display: flex; gap: 8px; padding: 20px 26px 40px; }
.ib-btn {
  flex: 1;
  height: 42px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--bone);
  font-family: "Evanescent", Archivo, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .15s, border-color .15s, color .15s;
}
.ib-btn:hover { background: var(--panel-2); border-color: var(--dim); }
.ib-btn.on { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.tray {
  position: fixed;
  left: calc(var(--rail-w) + 18px);
  bottom: 18px;
  z-index: 65;
  width: 340px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  box-shadow: 0 30px 60px -24px #000;
  animation: rise .26s var(--ease) both;
}
.tray-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tray-t { font-family: "Azeret Mono", monospace; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); flex: 1; }
.tray-n { font-family: "Azeret Mono", monospace; font-size: 10px; color: var(--dimmer); }
.tray-x { border: 0; background: none; color: var(--dimmer); font-size: 10.5px; text-decoration: underline; }
.tray-x:hover { color: var(--bone); }
.tray-slots { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.slot {
  display: grid;
  grid-template-columns: 1fr 62px 54px 18px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-left: 2px solid var(--rc);
  background: rgba(255,255,255,.02);
}
.slot-n { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-v { font-family: "Azeret Mono", monospace; font-size: 11.5px; text-align: right; }
.slot-b { height: 4px; background: var(--line); position: relative; }
.slot-b i { position: absolute; inset: 0 auto 0 0; background: var(--rc); }
.slot-x { border: 0; background: none; color: var(--dimmer); font-size: 11px; }
.slot-x:hover { color: var(--bone); }

@keyframes rbX { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes rbY { from { background-position: 50% 0%; } to { background-position: 50% 300%; } }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

@media (max-width: 900px) {
  body { flex-direction: column; }

  .rail {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
    mask-image: linear-gradient(90deg, #000 94%, transparent);
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail:hover, .rail:focus-within { flex-basis: auto; width: 100%; }
  .mark { padding: 0 12px 0 6px; flex: 0 0 auto; }
  .mark-txt, .tier-name, .tier-n, .rb-txt, .rb-n { opacity: 1 !important; }
  .rail-cap { display: none; }
  .tiers { flex-direction: row; flex: 0 0 auto; }
  .tier { height: 46px; padding: 0 11px; gap: 8px; flex: 0 0 auto; }
  .tier::before { inset: auto 0 0 0; top: auto; width: auto; height: 0; transform: none; }
  .tier:hover::before, .tier.on::before { height: 3px; }
  .tier-name { font-size: 11.5px; }
  .rail-foot { margin: 0; flex-direction: row; flex: 0 0 auto; }
  .rail-btn { height: 46px; padding: 0 11px; }

  .hud { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .hud-search { flex: 1 1 260px; }

  .banner { padding: 24px 0 18px; align-items: flex-start; gap: 18px; }
  .banner-side { align-items: flex-start; max-width: 100%; }
  .notice { text-align: left; border-right: 0; border-left: 2px solid var(--line-2); padding: 0 0 0 12px; }
  .banner-brand { gap: 10px; }
  .game-logo { height: 40px; }
  .banner-sprite { width: 96px; height: 96px; align-self: flex-start; }
  .bt-tag { height: 22px; }

  .tray { left: 12px; right: 12px; width: auto; }

  .outro { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 26px; margin-top: 26px; }
  .outro-mid { grid-column: 1 / -1; order: -1; padding-bottom: 8px; }
  .outro-art { max-width: 150px; }
  .art-l, .art-r { justify-self: center; }

  .results.list-view .card { grid-template-columns: 1fr 88px 76px 24px; height: auto; padding: 12px 10px; gap: 8px; }
  .results.list-view .c-rank, .results.list-view .pips, .results.list-view .c-tier { display: none; }
}

@media (max-width: 560px) {
  .stage { padding: 0 14px; }

  .banner { padding: 18px 0 14px; gap: 14px; }
  .banner-t { font-size: clamp(30px, 10.5vw, 46px); }
  .bt-2 { margin-left: .3em; }
  .bt-tag { height: 18px; }
  .banner-brand { flex-wrap: wrap; gap: 8px; }
  .banner-brand .banner-kick { border-left: 0; padding-left: 0; }
  .game-logo { height: 34px; }
  .banner-sprite { width: 84px; height: 84px; }
  .banner-sub { font-size: 12.5px; margin-top: 2px; }
  .notice { font-size: 12px; }
  .bt-1 { text-shadow: 3px 4px 0 rgba(0,0,0,.9), 0 0 24px rgba(240,237,230,.18); }

  .hud { flex-wrap: nowrap; gap: 8px; }
  .hud-search { flex: 1 1 auto; min-width: 0; }
  .hud-acts { flex: 0 0 auto; gap: 8px; }
  #search { height: 46px; padding: 0 38px 0 40px; }
  .hs-ico { left: 13px; }
  .hs-kbd { display: none; }
  .hs-clear { right: 11px; }
  .viewsw { height: 46px; }
  .vs { width: 42px; }
  .sg { gap: 9px; padding: 9px 10px; }
  .sg-tier { display: none; }
  .sg-name { font-size: 13px; }
  .sg-val { min-width: 46px; font-size: 11px; }

  .readout { display: grid; grid-template-columns: 1fr 1fr; }
  .ro { padding: 11px 12px; margin: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .ro:nth-child(2n+1) { padding-left: 0; }
  .ro:nth-child(2n) { border-right: 0; }
  .ro:nth-last-child(2) { border-right: 0; }
  .ro-val { font-size: 16px; }
  .ro-spread { grid-column: 1 / -1; border-bottom: 0; padding: 12px 0; min-width: 0; }

  .controls { gap: 14px; padding-bottom: 14px; }
  .ctl { width: 100%; }
  .ctl-range { max-width: none; min-width: 0; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; min-width: 0; padding: 10px 4px; font-size: 11px; text-align: center; }
  .seg-dir { flex: 0 0 34px !important; }

  .results.grid-view { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .c-name { min-height: 0; }

  .inspector { width: 100vw; }
  .ib-grid { grid-template-columns: 1fr; }
  .ib-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .ib-cell:last-child { border-bottom: 0; }
  .ib-hero { padding: 42px 20px 20px; }
  .ib-sec, .ib-acts { padding-left: 20px; padding-right: 20px; }

  .empty { padding: 56px 16px; }
  .foot { justify-content: center; text-align: center; }
  .foot-keys { display: none; }

  .outro-art { max-width: 118px; }
  .outro-logo { width: min(190px, 55vw); }
}

@media (hover: none) {
  .card:hover { transform: none; }
  .card::after { display: none; }
  .star { padding: 9px; margin: -5px; }
  .banner-main:hover .bt-1 { transform: none; }
  .banner-main:hover .bt-2 { transform: skewX(-5deg); }
  .sp-seg:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
