:root {
  color-scheme: dark;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  background: var(--n-200);
  color: var(--text);
  border: 1px solid var(--n-500);
  border-radius: 6px;
  padding: 8px 13px;
  min-height: 38px;
}
a.button {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
}
button:hover,
a.button:hover {
  background: var(--n-400);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: var(--accent);
  color: var(--n-200);
  border-color: var(--accent);
  font-weight: 700;
}
a {
  color: var(--green-100);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.4;
}
h2 {
  font-size: 17px;
  line-height: 1.5;
}
h3 {
  font-size: 15px;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
  color: var(--muted);
}
header {
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand b {
  font-size: 21px;
  letter-spacing: 0.5px;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 13px;
  margin-left: 5px;
}
.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--n-800);
  margin-right: 8px;
}
.status-dot.live {
  background: var(--green-500);
}
.status {
  font-size: 12px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}
nav {
  padding: 22px 12px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 16px;
  color: var(--muted);
}
nav button[aria-current='page'] {
  background: var(--n-300);
  color: var(--green-100);
  font-weight: 700;
}
.nav-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 14px 0;
  font-size: 12px;
  color: var(--muted);
}
main {
  padding: 28px 30px 40px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.page-heading p {
  margin-top: 5px;
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 1fr);
  gap: 18px;
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.label {
  font-size: 12px;
  color: var(--muted);
}
.badge {
  font-size: 12px;
  color: var(--green-100);
  border: 1px solid var(--n-500);
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
}
.badge.wait {
  border-color: var(--n-500);
  color: var(--warning);
}
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 17px 20px;
  background: var(--n-200);
  border-left: 3px solid var(--n-700);
  border-radius: 5px;
}
.connection p {
  font-size: 13px;
  margin-top: 3px;
}
.connection.ok {
  border-color: var(--green-500);
}
.match-pair {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  gap: 12px;
  align-items: center;
}
.hero {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}
.hero img,
.hero-placeholder {
  width: 54px;
  height: 62px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--n-300);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--muted);
}
.hero b {
  font-size: 17px;
  display: block;
}
.hero small {
  display: block;
}
.vs {
  font-size: 12px;
  color: var(--n-700);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
}
.metric b {
  display: block;
  font-size: 23px;
  letter-spacing: -0.7px;
  margin-top: 3px;
}
.metric .unit {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}
.opponents {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.opponents button {
  font-size: 12px;
  min-height: 32px;
  padding: 5px 9px;
}
.opponents button.selected {
  border-color: var(--green-500);
  background: var(--n-400);
}
.advice {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.advice h3 {
  color: var(--green-100);
  font-size: 18px;
  margin-bottom: 7px;
  line-height: 1.5;
}
.advice p {
  font-size: 14px;
  line-height: 1.8;
}
.wide {
  grid-column: 1/-1;
}
.muted {
  color: var(--muted);
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 13px;
  line-height: 1.8;
}
.shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.shortcut:last-child {
  border: 0;
}
kbd {
  background: var(--n-300);
  border: 1px solid var(--n-500);
  border-radius: 4px;
  font:
    12px 'Segoe UI',
    sans-serif;
  color: var(--n-950);
  padding: 2px 6px;
}
.inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.space {
  margin-top: 16px;
}
.stack {
  display: grid;
  gap: 18px;
}
.setting {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.setting p {
  font-size: 12px;
  margin-top: 4px;
}
.setting input[type='range'] {
  width: 150px;
  accent-color: var(--accent);
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
select,
input[type='password'],
input[type='number'] {
  background: var(--n-100);
  border: 1px solid var(--n-500);
  border-radius: 5px;
  color: var(--text);
  padding: 8px;
  max-width: 100%;
}
input[type='password'] {
  width: 100%;
}
input[type='number'] {
  width: 100px;
}
.form-row {
  margin: 15px 0;
}
.form-row label {
  display: block;
  margin-bottom: 7px;
}
.error {
  color: var(--red-300);
  font-size: 13px;
  margin-top: 10px;
}
.guide-top {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.guide-top button.selected {
  background: var(--n-400);
  border-color: var(--green-500);
}
/* 게임 연결: the two ways in, each with whether the game folder changes. */
.connection-tabs button {
  text-align: left;
}
.connection-tabs button small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.7;
}
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.skill {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.skill-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.skill-title img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.skill p {
  font-size: 13px;
  line-height: 1.8;
}
.skill .response {
  color: var(--green-100);
  margin-top: 8px;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  gap: 20px;
}
.map {
  aspect-ratio: 1;
  position: relative;
  background: var(--n-50);
  border-radius: 8px;
  overflow: hidden;
}
.map > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.camp {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  min-height: 0;
  border: 2px solid var(--n-200);
  border-radius: 50%;
  padding: 0;
  background: var(--green-300);
  box-shadow: 0 0 0 2px #0007;
}
.camp.selected {
  background: var(--amber-100);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber-100) 33%, transparent);
}
.list {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}
.empty {
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}
.preview-chip {
  background: var(--n-150);
  border: 1px solid var(--n-600);
  border-radius: 7px;
  padding: 11px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  max-width: 280px;
  margin: 18px 0;
  color: var(--n-950);
  font-size: 13px;
}
.preview-chip small {
  font-size: 11px;
}
.demo-controls {
  border: 1px dashed var(--n-600);
  padding: 14px 17px;
  margin-bottom: 18px;
  border-radius: 6px;
}
.demo-controls .selected {
  background: var(--n-400);
  border-color: var(--green-100);
}
.small-link {
  font-size: 12px;
}
.step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  margin: 16px 0;
}
.step span {
  color: var(--green-100);
}
.step p {
  font-size: 13px;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 12px;
}
dialog,
#toast {
  display: none;
}
.chip-label {
  color: var(--n-900);
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  main {
    padding: 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .map-layout {
    grid-template-columns: 1fr 270px;
  }
  .head-actions .status {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
:is(h1, h2, h3, p, .hero b) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero > div {
  min-width: 0;
}
.hero img {
  flex-shrink: 0;
}
.vision-preview {
  position: relative;
  min-height: 120px;
  background: var(--n-50);
  margin-top: 20px;
  border: 1px solid var(--n-500);
  border-radius: 5px;
  overflow: hidden;
}
.vision-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.vision-preview img[hidden] {
  display: none;
}
.vision-preview > p {
  padding: 34px 24px;
}
.vision-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.vision-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: end;
}
.vision-fields label {
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.vision-fields input {
  width: 110px;
}
.vision-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.vision-results b,
.vision-results small {
  display: block;
}
.vision-results b {
  font-size: 20px;
  margin: 6px 0;
}
.inline .selected {
  border-color: var(--green-100);
  background: var(--n-400);
}
#vision-panel > .card {
  margin-bottom: 18px;
}
#vision-panel summary {
  cursor: pointer;
  color: var(--green-100);
}
#vision-panel button {
  min-height: 42px;
}

.coach-list article {
  padding: 16px 0;
  border-bottom: 1px solid var(--n-400);
}
.coach-list article:last-child {
  border: 0;
}
.coach-list p {
  font-size: 14px;
  line-height: 1.7;
}
.coach-list small {
  display: block;
  color: var(--n-800);
  line-height: 1.6;
}
.item-path {
  color: var(--green-100);
}
.vision-preview[hidden] {
  display: none;
}
.vision-results {
  grid-template-columns: 1fr 1fr;
}
.vision-results b {
  font-size: 19px;
}

.jungle-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--n-500);
  border-radius: 8px;
  background: var(--n-150);
}
.jungle-status span {
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}
.jungle-map {
  position: relative;
  align-self: start;
  background: var(--n-50);
  border: 1px solid var(--n-400);
  border-radius: 12px;
  aspect-ratio: 1;
  overflow: hidden;
}
.jungle-map > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
}
.jungle-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  background: var(--n-300);
  color: #fff;
  border: 1px solid var(--n-800);
  line-height: 22px;
  z-index: 1;
}
.jungle-dot.selected {
  background: var(--green-100);
  color: var(--n-150);
  outline: 3px solid #fff6;
  z-index: 2;
}
.jungle-dot.strong {
  border-color: var(--amber-500);
}
.jungle-dot.vault {
  border-color: var(--gold-500);
}
/* Lane and base objectives: orange = bottom base team, blue = top base team. */
.jungle-obj {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--team, #c9c9c9);
  background: color-mix(in srgb, var(--team, #c9c9c9) 30%, #111c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: help;
  z-index: 1;
}
.jungle-obj.team-0 {
  --team: #ff9a3c;
}
.jungle-obj.team-1 {
  --team: #4f8dff;
}
.jungle-obj img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.jungle-obj.base_guardian {
  width: 18px;
  height: 18px;
}
.jungle-obj.base_guardian img {
  width: 12px;
  height: 12px;
}
.jungle-obj.patron,
.jungle-obj.mid_boss {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.jungle-obj:hover,
.jungle-obj:focus-visible,
.jungle-dot[data-j-building]:hover {
  outline: 3px solid #fff8;
  z-index: 3;
}
.jm-tip {
  position: fixed;
  z-index: 50;
  width: 300px;
  padding: 10px 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--n-500);
  background: var(--n-150);
  color: var(--n-950);
  box-shadow: 0 10px 30px #0008;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}
.jm-tip img {
  display: block;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}
.jm-tip img.icon {
  float: left;
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin: 0 10px 4px 0;
  padding: 4px;
  background: #0006;
}
.jm-tip b {
  display: block;
  font-size: 14px;
}
.jm-tip em {
  display: block;
  font-style: normal;
  color: var(--gold-500);
  font-weight: 700;
}
.jm-tip p {
  margin: 6px 0 0;
  clear: both;
}
.jm-tip small {
  display: block;
  margin-top: 6px;
  color: var(--n-800);
}
.jungle-legend {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: color-mix(in srgb, var(--n-100) 91%, transparent);
  color: var(--n-950);
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12px;
}
.jungle-timer {
  font-size: 44px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 20px 0 8px;
  color: var(--green-100);
}
.jungle-timer small {
  font-size: 16px;
  margin-left: 4px;
}
.camp-facts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin: 24px 0;
  font-size: 13px;
}
.camp-facts dt {
  color: var(--n-800);
}
.camp-facts dd {
  margin: 0;
  text-align: right;
}
.floor-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.floor-select select {
  max-width: 170px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.jungle-dot {
  min-height: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}
.grid.intel {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.guide-search input {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ffffff26;
  background: #ffffff0d;
  color: inherit;
  margin-bottom: 10px;
}
.guide-top.heroes {
  flex-wrap: wrap;
}
.guide-top.heroes button.enemy {
  border-color: color-mix(in srgb, var(--red-300) 60%, transparent);
}
.guide-top.heroes button.ally {
  border-color: color-mix(in srgb, var(--blue-500) 60%, transparent);
}
.comp-teams {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}
.comp-row {
  display: grid;
  grid-template-columns: 96px repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.comp-row.active {
  border-color: color-mix(in srgb, var(--green-300) 40%, transparent);
  background: color-mix(in srgb, var(--green-300) 5%, transparent);
}
.comp-row.them.active {
  border-color: color-mix(in srgb, var(--red-300) 40%, transparent);
  background: color-mix(in srgb, var(--red-300) 5%, transparent);
}
.comp-label {
  font-weight: 700;
}
.comp-slot {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
}
.comp-slot img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.comp-traits {
  margin-bottom: 4px;
}
.comp-suggest {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #ffffff14;
}
.comp-suggest img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.comp-suggest div {
  flex: 1;
}
.comp-suggest small {
  display: block;
  color: var(--n-800);
  font-size: 11px;
}
.guide-top.heroes button:disabled {
  opacity: 0.35;
}
table.history {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.history th,
table.history td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #ffffff14;
}
table.history td img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}
table.history tr.win td:nth-child(3) {
  color: var(--green-500);
}
table.history tr.loss td:nth-child(3) {
  color: var(--red-300);
}
.connection-tabs ~ .grid .setting .inline button {
  white-space: nowrap;
}
/* 패치노트 (desktop.js patchesPage): the notes as tabs, then the open note. */
.patch-list button {
  display: grid;
  gap: 2px;
  text-align: left;
}
.patch-list button small {
  font-size: 11px;
  color: var(--n-600);
}
.patch-new {
  justify-self: start;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--amber-500);
  color: var(--n-0);
}
.side nav .nav-new {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--amber-500);
}
.patch-note .card-head {
  align-items: flex-start;
}
.patch-body h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  color: var(--n-800);
}
.patch-body h3:first-child {
  margin-top: 0;
}
.patch-body ul {
  margin: 0;
  padding-left: 18px;
}
.patch-body li,
.patch-body p {
  margin: 0 0 6px;
  line-height: 1.55;
  font-size: 13.5px;
}
.patch-body .patch-raw {
  color: var(--n-700);
}
.patch-en {
  display: block;
  font-size: 11.5px;
  color: var(--n-600);
}
