/* Fonts live on junhots.com (no trip to Google before the page can draw). Variable fonts: one file per family
   covers every weight. Licenses in /fonts. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
/* Shared look for every junhots.com page: one quiet column, flat near-black surfaces, hairline borders, one accent used only for links and focus. The hero portraits and tier colors carry the color. */
:root {
  color-scheme: dark;
  --bg: #12100f;
  --surface: #1a1716;
  --surface-2: #221e1c;
  --line: #332d2a;
  --text: #f4efec;
  --muted: #a89f99;
  --accent: #f58b70;
  --brand: #f26a4b;
  --twitch: #9146ff;
  --good: #5fcf8f;
  --combo: #f5c04a;
  --bad: #ef7d8b;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --display: "Sora", "Geist", "Segoe UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scrollbar-gutter: stable;
} /* pages with and without a scrollbar line up, so nothing jumps sideways */
/* Going from page to page: the new page fades in over the old one (no white flash), the top bar stays still
   and the coral line under the tabs slides to the new tab. The switch that turns this on sits at the very top of
   each page (an inline <style>): when it only lived in this file, the browser sometimes decided before reading it.
   Browsers without this just change pages the normal way. */
nav {
  view-transition-name: topbar;
}
.tab-ind {
  view-transition-name: tab-ind;
}
/* The top bar switches at once (no blend between the old and new bar), so only the line moves */
::view-transition-group(topbar),
::view-transition-new(topbar) {
  animation: none;
}
::view-transition-old(topbar) {
  display: none;
}
::view-transition-group(tab-ind) {
  animation-duration: 0.38s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) {
  animation: vt-out 0.16s cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}
@keyframes vt-out {
  to {
    opacity: 0;
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(900px 380px at 50% -120px, rgba(242, 106, 75, 0.1), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 15px/1.6 var(--sans);
  padding-inline: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Top bar: logo, page tabs, Twitch */
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  padding-block: 18px;
}
h1,
h2 {
  font-family: var(--display);
}
h2 small {
  font-family: var(--sans);
}
.logo span {
  color: var(--brand);
}
.tabs {
  display: flex;
  gap: 24px;
  flex: 1;
  font-size: 14px;
  color: var(--muted);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  position: relative;
  padding-block: 21px;
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--text);
}
.tabs a[aria-current="page"] {
  color: var(--text);
}
.tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
/* The line is its own element (placed under the current tab by a tiny script in each page) so it can slide */
.tabs {
  position: relative;
}
.tab-ind {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  pointer-events: none;
}
.tab-ind.moving {
  transition:
    left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.tabs a {
  transition: color 0.2s;
}
.tabs a.going {
  color: var(--text);
}
.tabs a.leaving {
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .tab-ind.moving,
  .tabs a {
    transition: none;
  }
}
.tabs:has(.tab-ind) a[aria-current="page"]::after {
  display: none;
}
/* "Follow on Twitch" in the top bar of every page (nav.js adds the "Follow on" part; phones and "Live now" drop it) */
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--twitch);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-live:hover {
  background: #9a5cf5;
  color: #fff;
}
.nav-live:active {
  transform: scale(0.97);
}
.nav-live .dot.off {
  background: rgba(255, 255, 255, 0.55);
}
.nav-live .nl-long {
  margin-right: -4px; /* one word space before "Twitch", not the 8px gap */
}
.nav-live.on .nl-long {
  display: none;
}
@media (max-width: 640px) {
  .nav-live .nl-long {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface);
}
.btn:hover {
  background: var(--surface-2);
}
.ico {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn.live {
  background: var(--twitch);
  color: #fff;
  border-color: var(--twitch);
}
.btn.live:hover {
  background: #9a5cf5;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d5e;
  box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6);
  animation: rec 2s ease-out infinite;
}
@keyframes rec {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(255, 77, 94, 0);
  }
}
/* A slow shine across the Twitch button every few seconds */
.btn.live {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn.live::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-20deg);
  animation: shine 5s ease-in-out 1.2s infinite;
}
@keyframes shine {
  0% {
    transform: translateX(-120%) skewX(-20deg);
  }
  22%,
  100% {
    transform: translateX(260%) skewX(-20deg);
  }
}
/* Hover button: a hidden coral dot grows to fill the button while the label slides out and comes back with an arrow */
.btn.hb {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hb-dot {
  position: absolute;
  z-index: -1;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--brand);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.hb-a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.35s,
    opacity 0.25s;
}
.hb-b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #1f0b05;
  font-weight: 600;
  opacity: 0;
  transform: translateX(40px);
  transition:
    transform 0.35s,
    opacity 0.25s;
}
.hb-b svg {
  width: 15px;
  height: 15px;
}
.btn.hb:hover {
  background: var(--surface);
  border-color: var(--brand);
}
.btn.hb:hover .hb-dot,
.btn.hb:focus-visible .hb-dot {
  transform: scale(60);
}
.btn.hb:hover .hb-a,
.btn.hb:focus-visible .hb-a {
  transform: translateX(40px);
  opacity: 0;
}
.btn.hb:hover .hb-b,
.btn.hb:focus-visible .hb-b {
  transform: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hb-dot,
  .hb-a,
  .hb-b {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot,
  .btn.live::after {
    animation: none;
  }
  .btn.live::after {
    display: none;
  }
}

/* Page heading for inner pages */
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 44px 20px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}
/* Art layers (from the wowf.io study): a hero or map painting faded in behind a page title or a box, never under the
   text. site.js artBand() puts one in; the painting sits under a dark fade so the page stays calm and readable.
   - in a .page-head: on the right, fading out to the left and the bottom
   - .strips: several paintings side by side (Tier list: today's S tier)
   - .card: the right half of a box (Patch notes latest card)
   - .face: a narrow face crop on the left edge (Home ending box) */
.has-art {
  position: relative;
  isolation: isolate;
}
.page-head.has-art {
  z-index: 6; /* above the page below it, so the map picker's list still opens over everything */
}
.art-band {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -24px;
  bottom: 0;
  width: min(600px, 54%);
  display: flex;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 30%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 30%, transparent 96%);
  mask-composite: intersect;
}
.art-band.on {
  opacity: 1;
}
.art-band img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  opacity: 0.4;
}
.art-band.strips img + img {
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.6);
}
.art-band.map img {
  opacity: 0.3;
  object-position: 50% 45%;
  filter: saturate(0.75) blur(1.5px);
}
.art-band.map.strips img {
  filter: saturate(0.7);
}
.art-band.card {
  top: 0;
  right: 0;
  width: 56%;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.art-band.card img {
  opacity: 0.5;
  object-position: 50% 20%;
}
.art-band.face {
  left: 0;
  right: auto;
  width: 220px;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent);
  mask-image: linear-gradient(90deg, #000 35%, transparent);
}
.art-band.face img {
  opacity: 0.45;
  object-position: 50% 14%;
}
.close.has-art {
  padding-left: 190px;
}
@media (max-width: 720px) {
  /* Phones: the title takes the full width, so the painting stays small and faint in the top right corner */
  .art-band {
    width: 58%;
    right: -16px;
    bottom: auto;
    height: 160px;
  }
  .art-band img,
  .art-band.map img {
    opacity: 0.22;
  }
  .art-band.card {
    width: 70%;
    height: auto;
    bottom: 0;
  }
  .art-band.card img {
    opacity: 0.2;
  }
  .art-band.face {
    display: none; /* phones: the ending box is narrow and full of text and buttons */
  }
  .close.has-art {
    padding-left: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art-band {
    transition: none;
  }
}
/* A title underline that fades out at both ends (cards on Home) */
.fade-rule {
  display: block;
  height: 1px;
  margin: 10px 0 0;
  background: linear-gradient(90deg, transparent, rgba(242, 106, 75, 0.55) 20%, rgba(242, 106, 75, 0.55) 60%, transparent);
}
.sub {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 60ch;
}
.soon {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

footer {
  margin-top: 64px;
  padding-block: 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
footer .social {
  display: flex;
  flex-wrap: wrap; /* on a phone the links went past the screen edge */
  gap: 8px 18px;
}
footer a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  nav {
    gap: 0 20px;
  }
  .tabs {
    order: 3;
    flex-basis: 100%;
    gap: 20px;
    margin-top: -6px;
  }
  .tabs a {
    padding-block: 12px 14px;
  }
  .nav-live {
    margin-left: auto;
  }
}

/* Role icons (site.js roleIcon) */
.ri {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -3px;
}
.rtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.port {
  position: relative;
  display: block;
}
.port .rb {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  background: #12100f;
  box-shadow: 0 0 0 1px var(--line);
}

/* "New: ..." line (Home, Overlay page): the newest entry from /data/updates.json, links to /updates/ */
.hero-txt {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.whatsnew {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.page-head .whatsnew {
  margin: 14px 0 0;
}
.hero-txt .whatsnew {
  margin-bottom: 0;
}
.whatsnew:hover {
  border-color: rgba(242, 106, 75, 0.5);
  color: var(--text);
}
.whatsnew b {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f0b05;
  background: var(--brand);
  border-radius: 999px;
  padding: 2px 8px;
}
.whatsnew span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whatsnew i {
  font-style: normal;
  color: var(--muted);
}
.whatsnew svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.2s;
}
.whatsnew:hover svg {
  transform: translateX(2px);
}
