/* 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;
}
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.nav-live:hover {
  color: var(--text);
}

.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;
}
.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;
  gap: 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);
}
