:root {
  color-scheme: dark;
  --sky: #0b1014;
  --sky-deep: #182429;
  --paper: #10181c;
  --paper-blue: #1b2b2e;
  --ink: #edf4f0;
  --ink-soft: #a3b7b8;
  --line: #456164;
  --line-soft: #2a3b40;
  --accent: #365e5d;
  --accent-dark: #b6e3d6;
  --shadow: rgba(0, 0, 0, 0.58);
  --radius: 18px;
  --heading-font: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #090d11;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.spectral-scene {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 16% 36%, #23393880, transparent 48%),
    radial-gradient(ellipse at 91% 74%, #302b4580, transparent 45%),
    radial-gradient(ellipse at 52% -30%, #26323c, transparent 66%),
    #090d11;
}

.spectral-scene::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, #06090d8c 100%);
  content: "";
}

.spectral-scene::before {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse at 12% 34%, #99dbbf24, transparent 36%),
    radial-gradient(ellipse at 88% 65%, #b4a9de26, transparent 32%);
  content: "";
  animation: spectral-light 12s ease-in-out infinite alternate;
}

.spectral-mist {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 64%;
  background: url("images/spectral-mist.svg?v=2") center / 100% 100% no-repeat;
  animation: mist-current 22s ease-in-out infinite alternate;
}

.spectral-mist--far {
  top: -12%;
  rotate: -12deg;
  animation-delay: -9s;
}

.spectral-mist--middle {
  top: 27%;
  scale: -1 1;
  rotate: 7deg;
  animation-duration: 29s;
  animation-delay: -21s;
}

.spectral-mist--near {
  bottom: -18%;
  rotate: -6deg;
  animation-duration: 18s;
  animation-delay: -5s;
}

.spectral-ghost {
  position: absolute;
  width: clamp(170px, 19vw, 300px);
  aspect-ratio: 26 / 42;
  background: url("images/ghost-veil.svg") center / contain no-repeat;
  animation: ghost-passage 24s linear infinite;
  opacity: 0;
}

.spectral-ghost--left {
  left: max(-84px, calc(50% - 665px));
  top: 22%;
  rotate: -12deg;
  --ghost-presence: .65;
  animation-delay: -7s;
}

.spectral-ghost--right {
  right: max(-84px, calc(50% - 680px));
  bottom: 2%;
  scale: -1 1;
  rotate: 13deg;
  --ghost-presence: .5;
  animation-duration: 31s;
  animation-delay: -18s;
}

@keyframes mist-current {
  0% { transform: translate3d(-9%, 7%, 0) scaleY(.9); opacity: .35; }
  55% { opacity: .95; }
  100% { transform: translate3d(9%, -9%, 0) scaleY(1.12); opacity: .55; }
}

@keyframes ghost-passage {
  0% { transform: translate3d(-30px, 85px, 0) rotate(-8deg); opacity: 0; }
  18% { opacity: var(--ghost-presence); }
  46% { transform: translate3d(24px, -8px, 0) rotate(5deg); }
  68% { opacity: var(--ghost-presence); }
  88%, 100% { transform: translate3d(-12px, -135px, 0) rotate(-4deg); opacity: 0; }
}

@keyframes spectral-light {
  from { transform: translate3d(-2%, 3%, 0); opacity: .25; }
  to { transform: translate3d(3%, -3%, 0); opacity: .95; }
}

.spectral-scene.is-paused *,
.spectral-scene.is-paused::before {
  animation-play-state: paused;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #18262b;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.profile-window {
  position: relative;
  z-index: 0;
  width: min(940px, calc(100% - 40px));
  margin: clamp(28px, 7vh, 72px) auto 38px;
}

.page-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  width: min(770px, calc(100% - 40px));
  margin: 0 0 -1px 18px;
}

.page-tab {
  min-height: 38px;
  padding: 7px 14px 9px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line);
  border-radius: 12px 12px 0 0;
  color: var(--ink-soft);
  background: rgba(8, 13, 18, 0.94);
  box-shadow: inset 0 1px rgba(218, 236, 255, 0.05);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.page-tab > span[aria-hidden="true"] {
  margin-right: 5px;
  font-size: 0.82em;
}

.tab-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: -3px;
}

.page-tab .tab-label {
  white-space: nowrap;
}

.page-tab:hover {
  color: var(--accent-dark);
  background: #253b3c;
  transform: translateY(-2px);
}

.page-tab.active {
  border-bottom-color: var(--paper);
  color: var(--accent-dark);
  background: #18262b;
  font-weight: 700;
  box-shadow: inset 0 2px 0 #a9dace, 0 -5px 20px #a9dace08;
}

.page-tab:focus-visible,
.browser-actions button:focus-visible,
.quick-panel button:focus-visible,
.mini-button:focus-visible,
.gallery-grid button:focus-visible,
.image-dialog button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(182, 227, 214, 0.6);
  outline-offset: 3px;
}

.browser-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 24, 0.94);
  box-shadow: 0 24px 80px var(--shadow), 0 0 70px #b6e3d608, inset 0 1px #ddfff212;
}

.browser-card::after {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b6e3d677, transparent);
  content: "";
  pointer-events: none;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #233236, #131d23);
}

.browser-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.browser-actions button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #18262b;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.browser-actions button:hover:not(:disabled) {
  color: #fff;
  background: var(--accent);
  transform: translateY(-2px);
}

.browser-actions button:disabled {
  opacity: 1;
  cursor: pointer;
}

.address-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  flex: 1;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(4, 5, 6, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.address-bar strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(3, 4, 5, 0.7);
}

.language-switch button {
  min-width: 34px;
  height: 27px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-switch button:hover {
  color: var(--ink);
  background: rgba(158, 207, 198, 0.14);
}

.language-switch button.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 13px rgba(182, 227, 214, 0.12);
}

.language-switch button:focus-visible {
  outline: 2px solid rgba(182, 227, 214, 0.65);
  outline-offset: 2px;
}

.site-view {
  min-height: 510px;
  background:
    radial-gradient(ellipse at 0% 18%, #8cd9c40c, transparent 54%),
    radial-gradient(ellipse at 100% 100%, #9c8cb010, transparent 58%),
    linear-gradient(145deg, #121d20e6, #0d1319ed 65%, #171920e6);
}

.site-page {
  min-height: 510px;
  padding: clamp(28px, 5vw, 52px);
  animation: page-in 280ms ease both;
}

.site-page[hidden] {
  display: none;
}

.page-kicker {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: lowercase;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(250px, 1.2fr) minmax(200px, 0.86fr);
  align-items: center;
  gap: clamp(24px, 4vw, 46px);
  min-height: 345px;
}

.profile-picture {
  position: relative;
  width: min(100%, 190px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 48% 48% 14px 14px;
  background: radial-gradient(ellipse at 50% 30%, #b6e3d621, #0c141800 72%);
  box-shadow: 0 12px 30px #0005, 0 0 44px #a8d5cc12, inset 0 0 22px #a8d5cc08;
}

.profile-picture::before,
.profile-picture::after {
  position: absolute;
  inset: -8px;
  border: 1px solid #b6e3d612;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.profile-picture::before {
  inset: -8px;
}

.profile-picture::after {
  inset: -18px;
  border-color: #b6e3d609;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.brand-picture {
  padding: 15px;
}

.brand-picture img {
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.5));
}

.about-copy h1,
.page-heading h1 {
  margin: 0;
  color: var(--accent-dark);
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: lowercase;
}

.about-copy h1::after {
  display: block;
  width: 68px;
  height: 1px;
  margin: 13px 0 17px;
  background: var(--line);
  content: "";
}

.about-copy p {
  margin: 0 0 12px;
  color: #c5d2d0;
  font-size: 1rem;
}

.about-copy .signature {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
}

.mini-button {
  margin-top: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--paper-blue);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.mini-button:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
}

.quick-panel {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 16, 23, 0.78);
  box-shadow: inset 0 1px rgba(208, 238, 230, 0.06), 0 10px 28px rgba(0, 0, 0, 0.2);
}

.quick-panel h2 {
  margin: 0 0 11px;
  color: var(--accent-dark);
  font-family: var(--heading-font);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.quick-panel button {
  display: block;
  width: 100%;
  padding: 7px 4px;
  border: 0;
  border-bottom: 1px dotted var(--line-soft);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  text-align: left;
}

.quick-panel button::before {
  margin-right: 7px;
  content: "♡";
}

.quick-panel button:hover {
  color: var(--accent-dark);
  padding-left: 8px;
}

.quick-panel p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.quick-panel a {
  overflow-wrap: anywhere;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.page-heading p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-heading h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.page-heading > span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-style: normal;
  text-align: right;
}

.game-list {
  display: grid;
  gap: 18px;
}

.game-entry {
  position: relative;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 22px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 17px;
  background: rgba(8, 13, 18, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.game-entry:hover {
  border-color: var(--line);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 28px rgba(164, 204, 196, 0.08);
  transform: translateY(-2px);
}

.game-entry > img {
  width: 142px;
  height: 100%;
  min-height: 170px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  object-fit: cover;
}

.game-entry h2 {
  margin: 2px 0 8px;
  color: var(--accent-dark);
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.game-entry p {
  margin: 0;
  color: #c5d2d0;
  font-size: 1rem;
}

.game-entry .game-label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-entry ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.game-entry li {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-blue);
  font-size: 0.75rem;
}

.entry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-actions a {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #19272c;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.entry-actions a:hover {
  color: #fff;
  background: var(--accent);
}

.entry-actions span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.gallery-grid button {
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--ink);
  background: #19272c;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
  transition: border-color 170ms ease, transform 170ms ease;
}

.gallery-grid button:hover {
  border-color: var(--line);
  transform: translateY(-3px) rotate(-0.4deg);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-grid span {
  display: block;
  padding: 7px 3px 4px;
  font-size: 0.75rem;
  text-align: left;
}

.streamer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.streamer-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(8, 13, 18, 0.9);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.streamer-card:hover,
.streamer-card:focus-visible {
  z-index: 20;
  border-color: var(--accent);
  background: #243c3e;
  transform: translateY(-2px);
}

.streamer-avatar {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0d161b;
}

.streamer-avatar::after {
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid #19272c;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(158, 207, 198, 0.4);
  content: "";
}

.streamer-avatar img,
.streamer-preview > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.streamer-info {
  min-width: 0;
}

.streamer-info b,
.streamer-info small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.streamer-info b {
  font-size: 0.78rem;
}

.streamer-info small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.streamer-arrow {
  color: var(--accent-dark);
  font-size: 0.78rem;
}

.streamer-preview {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: 9px;
  display: grid;
  width: min(300px, calc(100vw - 54px));
  min-height: 148px;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 10px;
  border: 1px solid var(--accent);
  border-radius: 15px;
  background: rgba(6, 9, 12, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.68), 0 0 28px rgba(158, 207, 198, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  transform-origin: left center;
  transition: opacity 170ms ease, transform 170ms ease;
}

.streamer-card:nth-child(even) .streamer-preview {
  right: 9px;
  left: auto;
  transform-origin: right center;
}

.streamer-card:hover .streamer-preview,
.streamer-card:focus-visible .streamer-preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.streamer-preview > img {
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.streamer-preview > span {
  min-width: 0;
}

.streamer-preview small,
.streamer-preview strong,
.streamer-preview em {
  display: block;
}

.streamer-preview small {
  color: var(--accent-dark);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.streamer-preview strong {
  overflow: hidden;
  margin: 5px 0 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--heading-font);
  font-size: 1.05rem;
}

.streamer-preview em {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-style: normal;
}

.links-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(320px, 1.15fr);
  align-items: stretch;
  gap: 22px;
}

.contact-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #27393c, #131820);
  text-align: center;
}

.contact-mark {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: #253538;
  font-size: 1.65rem;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 7px 0 16px;
  color: var(--accent-dark);
  font-family: var(--heading-font);
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.email-link {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.contact-card small {
  max-width: 250px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.link-list {
  display: grid;
  gap: 9px;
}

.link-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(8, 14, 20, 0.86);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.link-list a:hover {
  border-color: var(--line);
  background: var(--paper-blue);
  transform: translateX(3px);
}

.link-list a > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--accent-dark);
  background: #172429;
  font-size: 0.75rem;
  font-weight: 800;
}

.link-list b {
  font-size: 0.8rem;
}

.link-list small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.profile-footer {
  padding: 23px 16px 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-align: center;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 13px;
}

.social-row a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(8, 14, 20, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.social-row a:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-2px);
}

.visitor-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 13px;
}

.visitor-stat {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(158, 207, 198, 0.25);
  border-radius: 999px;
  color: var(--ink-soft);
  background: linear-gradient(145deg, rgba(24, 35, 39, 0.9), rgba(6, 8, 11, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 7px 22px rgba(0, 0, 0, 0.22);
  font-size: 0.75rem;
  white-space: nowrap;
}

.visitor-stat b {
  color: var(--ink);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.visitor-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64eaa4;
  box-shadow: 0 0 0 3px rgba(100, 234, 164, 0.08), 0 0 12px rgba(100, 234, 164, 0.75);
  animation: visitor-pulse 1.8s ease-in-out infinite;
}

.visitor-stats.unavailable .visitor-status-dot {
  background: #7b888f;
  box-shadow: none;
  animation: none;
}

.profile-footer p,
.profile-footer small,
.profile-footer > span {
  display: block;
  margin: 4px 0;
}

.profile-footer small {
  opacity: 0.78;
}

.profile-footer .privacy-link {
  display: inline-block;
  margin: 6px 0 2px;
  color: var(--accent-dark);
  font-weight: 700;
}

.profile-footer .privacy-link:hover {
  color: var(--ink);
}

.profile-footer > span {
  margin-top: 9px;
  letter-spacing: 0.08em;
}

.image-dialog {
  width: min(980px, calc(100% - 28px));
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #152127;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.image-dialog::backdrop {
  background: rgba(2, 3, 5, 0.82);
  backdrop-filter: blur(5px);
}

.image-dialog img {
  width: 100%;
  max-height: calc(100vh - 70px);
  border-radius: 11px;
  object-fit: contain;
}

.image-dialog button {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(8, 16, 24, 0.94);
  cursor: pointer;
  font-size: 1.25rem;
}

.legal-shell {
  position: relative;
  z-index: 0;
  width: min(820px, calc(100% - 32px));
  margin: clamp(24px, 6vh, 60px) auto 36px;
}

.legal-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 16, 0.95);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: #0d161b;
  object-fit: contain;
}

.legal-toolbar .language-switch {
  margin-left: auto;
}

.legal-back {
  padding: 7px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-decoration: none;
}

.legal-back:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.legal-card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 12, 0.96);
  box-shadow: 0 22px 65px var(--shadow);
}

.legal-card > h1 {
  margin: 0;
  color: var(--accent-dark);
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.legal-updated {
  margin: 10px 0 30px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.legal-lead {
  margin: 0 0 26px;
  color: #dce5e1;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-card section {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.legal-card section:last-child {
  padding-bottom: 0;
}

.legal-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.legal-card section p,
.legal-card section li {
  margin: 0;
  color: #c5d2d0;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-card section p + p {
  margin-top: 10px;
}

.legal-card section ul {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.legal-card section li::marker {
  color: var(--accent);
}

.legal-card section a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

.legal-card section a:hover {
  color: var(--ink);
}

.legal-page-footer {
  padding-top: 15px;
}

.browser-card.refreshing .site-view {
  animation: soft-refresh 350ms ease;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-refresh {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes visitor-pulse {
  0%, 100% {
    opacity: 0.68;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 780px) {
  .profile-window {
    width: min(680px, calc(100% - 24px));
    margin-top: 24px;
  }

  .page-tabs {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

  .browser-toolbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .language-switch {
    align-self: center;
  }

  .browser-actions {
    gap: 5px;
  }

  .browser-actions button {
    width: 28px;
    height: 28px;
  }

  .home-layout {
    grid-template-columns: 160px 1fr;
  }

  .quick-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 14px;
  }

  .quick-panel h2,
  .quick-panel p {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streamer-grid {
    grid-template-columns: 1fr;
  }

  .streamer-card:nth-child(even) .streamer-preview {
    right: auto;
    left: 9px;
    transform-origin: left center;
  }

  .links-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 230px;
  }
}

@media (max-width: 560px) {
  .spectral-ghost--left {
    top: 0;
    left: -62px;
    --ghost-presence: .35;
  }

  .spectral-ghost--right {
    right: -68px;
    --ghost-presence: .28;
  }

  .spectral-mist--near {
    display: none;
  }

  .profile-window {
    width: calc(100% - 16px);
    margin: 14px auto 28px;
  }

  .page-tabs {
    width: calc(100% - 18px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 0 auto 7px;
  }

  .page-tab {
    border-bottom-color: var(--line);
    border-radius: 10px;
  }

  .page-tab.active {
    border-bottom-color: var(--line);
    background: #283e41;
  }

  .browser-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .browser-actions {
    justify-content: center;
  }

  .address-bar {
    justify-content: center;
  }

  .site-page {
    padding: 27px 20px;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .profile-picture {
    width: 155px;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy h1::after {
    margin-inline: auto;
  }

  .quick-panel {
    grid-column: auto;
  }

  .page-heading {
    align-items: start;
    flex-direction: column;
  }

  .page-heading > span {
    text-align: left;
  }

  .game-entry {
    grid-template-columns: 1fr;
  }

  .game-entry > img {
    width: 100%;
    height: 190px;
    min-height: 0;
  }

  .entry-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    gap: 9px;
  }

  .link-list a {
    grid-template-columns: 38px 1fr;
  }

  .link-list small {
    grid-column: 2;
    margin-top: -10px;
  }

  .legal-shell {
    width: calc(100% - 16px);
    margin-top: 12px;
  }

  .legal-toolbar {
    flex-wrap: wrap;
  }

  .legal-toolbar .language-switch {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .legal-back {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spectral-scene *,
  .spectral-scene::before {
    animation: none !important;
  }

  .spectral-ghost {
    opacity: var(--ghost-presence);
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
