/* ─────────────────────────────────────────────────────────
   Faithryn's site.

   The channel is Frutiger Aero: glossy aqua, clouds, water,
   sparkles, and panels drawn as old Windows windows. Everything
   here follows that, down to the title bars on each section.
   ───────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito-Italic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --sky-1: #e6f7ff;
  --sky-2: #a9dbfd;
  --sky-3: #62b6ef;
  --sky-4: #2f8ddc;
  --chrome-1: #8fc9fd;
  --chrome-2: #2f6fd0;
  --ink: #15354f;
  --ink-soft: #3f6b8d;
  --glass: rgba(255, 255, 255, .58);
  --glass-line: rgba(255, 255, 255, .85);
  --shadow: 0 18px 40px rgba(24, 78, 126, .22);
  --r: 20px;
  --maxw: 1060px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #cdeeff 0%, var(--sky-2) 38%, #7ec6f3 72%, #4ea6e6 100%) fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Sky: sun, clouds, bubbles ───────────────────────────
   All painted, no image files, so it stays sharp and light. */

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.sun {
  position: absolute;
  left: 50%;
  top: -420px;
  width: 1100px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 246, 214, .55) 45%, transparent 72%);
}

.cloud {
  position: absolute;
  height: 120px;
  width: 320px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
  animation: drift linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before { left: -60px; top: 18px; width: 220px; height: 90px; }
.cloud::after { right: -70px; top: 26px; width: 260px; height: 80px; }

.c1 { top: 12%; left: -20%; animation-duration: 90s; }
.c2 { top: 34%; left: -35%; transform: scale(1.5); animation-duration: 130s; animation-delay: -40s; }
.c3 { top: 62%; left: -25%; transform: scale(.8); animation-duration: 105s; animation-delay: -70s; }
.c4 { top: 82%; left: -30%; transform: scale(1.2); animation-duration: 150s; animation-delay: -20s; }

@keyframes drift { to { left: 130%; } }

.bubbles { position: absolute; inset: 0; }

.bubbles i {
  position: absolute;
  bottom: -80px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 45%, rgba(151, 214, 255, .35));
  box-shadow: inset 0 0 6px rgba(255, 255, 255, .8);
  animation: rise linear infinite;
}

@keyframes rise {
  to { transform: translateY(-115svh) translateX(40px); opacity: 0; }
}

/* ── Shell ───────────────────────────────────────────────── */

.wrap { width: min(100% - 32px, var(--maxw)); margin: 0 auto; }

/* ── Top bar ─────────────────────────────────────────────── */

#top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 6px 22px rgba(24, 78, 126, .12);
}

.bar { display: flex; align-items: center; gap: 18px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  font-size: 18px;
}

.brand img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(24, 78, 126, .25); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-weight: 700; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--chrome-2); }

/* ── Glossy buttons ──────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #7fc4fb 0%, #3b93e0 50%, #2f7fd0 51%, #58aae8 100%);
  box-shadow: 0 8px 18px rgba(24, 78, 126, .28), inset 0 1px 0 rgba(255, 255, 255, .85);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

/* The wet-looking highlight across the top half. */
.btn::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 3px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .1));
  pointer-events: none;
}

.btn:hover { transform: translateY(-2px); filter: saturate(1.1); box-shadow: 0 12px 24px rgba(24, 78, 126, .32), inset 0 1px 0 rgba(255, 255, 255, .9); }
.btn:active { transform: translateY(0); }

.btn-white {
  color: var(--chrome-2);
  background: linear-gradient(180deg, #ffffff 0%, #eaf6ff 50%, #dcefff 51%, #ffffff 100%);
}

.btn-sm { height: 38px; padding: 0 18px; font-size: 15px; }

/* ── Windows ─────────────────────────────────────────────── */

.win {
  margin: 0 0 34px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #a9d8fe 0%, #6fb2f2 48%, #3f8ada 52%, #74b8f4 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(20, 60, 100, .45);
}

.win-bar .flower { width: 18px; height: 18px; margin: 0 auto; flex: none; }

.win-btns { display: flex; gap: 5px; }

.win-btns i {
  width: 17px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25));
  position: relative;
}

.win-btns i::after {
  content: "";
  position: absolute;
  inset: 4px 4px auto;
  height: 2px;
  background: var(--chrome-2);
  border-radius: 1px;
}

.win-btns i:nth-child(2)::after { inset: 3px; height: auto; background: none; border: 2px solid var(--chrome-2); }
.win-btns i:nth-child(3)::after { inset: 0; height: auto; background: none; }
.win-btns i:nth-child(3)::before {
  content: "\00d7";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  color: var(--chrome-2);
}

.win-body { padding: 26px 28px 28px; }

/* ── Type ────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; line-height: 1.15; }

.gloss {
  font-style: italic;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
  text-shadow:
    0 1px 0 #cfe9ff,
    0 2px 0 #a9d3f4,
    0 6px 18px rgba(26, 86, 140, .45);
}

h2.gloss {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  margin-bottom: 18px;
  color: #2b6fc2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 3px 10px rgba(24, 78, 126, .2);
}
.lead { font-size: 19px; color: var(--ink-soft); }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.kao { font-family: 'Segoe UI Symbol', 'Nunito', sans-serif; color: var(--ink-soft); }

/* ── Hero ────────────────────────────────────────────────── */

.hero { padding: 72px 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 645px); gap: 36px; align-items: center; }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-shadow:
    0 2px 0 #d5ecff,
    0 4px 0 #a9d3f4,
    0 10px 30px rgba(20, 74, 122, .5);
}

.hero .tag { margin: 14px 0 0; font-size: 21px; font-weight: 700; color: #1d4f79; }
.hero .ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; justify-self: center; }

.hero-art .frame {
  width: min(645px, 92vw);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  box-shadow: 0 24px 44px rgba(20, 74, 122, .34), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.hero-art .win-bar { border-radius: 0; }

/* A ring of light behind the window. */
.hero-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

/* ── Live ───────────────────────────────────────────────
   Filled in by live.js. Nothing blinks: the dot is either on
   and red, or off and grey. */

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(24, 78, 126, .14);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
}

.status[hidden] { display: none; }
.status b { width: 10px; height: 10px; border-radius: 50%; background: #9fb3c2; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8); }
.status.on { color: #b01f3a; }
.status.on b { background: radial-gradient(circle at 34% 30%, #ff9d9d, #e12d4e 60%, #b3122f); box-shadow: 0 0 0 4px rgba(225, 45, 78, .16); }

.player { background: #0d1b26; aspect-ratio: 16 / 9; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }

.live-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px 16px; }
.live-meta span { flex: 1; min-width: 7rem; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.live-meta .btn { margin-left: auto; }

/* ── About ───────────────────────────────────────────────── */

.about { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: start; }
.about img { border-radius: 14px; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(24, 78, 126, .25); }

/* ── Schedule ────────────────────────────────────────────
   Filled in by schedule.js in the visitor's own timezone. */

.sched-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.sched-when { margin: 0; margin-right: auto; }
.sched-when b { display: block; font-size: 26px; font-style: italic; color: #2b6fc2; text-shadow: 0 1px 0 rgba(255, 255, 255, .95); }
.sched-when span { font-size: 15px; color: var(--ink-soft); }

.week { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }

.day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .45));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff;
}

.day b { font-size: 17px; min-width: 7.5rem; }
.day em { font-style: normal; font-size: 14px; color: var(--ink-soft); }
.day .time { margin-left: auto; font-weight: 700; color: var(--chrome-2); white-space: nowrap; }

/* Tonight's stream, and the one happening right now. */
.day.next { border-color: #fff; box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(24, 78, 126, .18); }
.day.live { background: linear-gradient(180deg, #fff, #dff3ff); }

.tagnow {
  flex: none;
  margin-left: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #62d896, #2fae70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.tagnow.next { background: linear-gradient(180deg, #7fc4fb, #2f7fd0); }

.games { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.games li {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--chrome-2);
  background: linear-gradient(180deg, #fff, #dcefff);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 4px 10px rgba(24, 78, 126, .14);
}

/* ── Rules ───────────────────────────────────────────────── */

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; }

.rules li::before {
  content: "";
  flex: none;
  margin-top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, #8fd0ff 55%, #3f8ada);
  box-shadow: 0 2px 5px rgba(24, 78, 126, .3);
}

/* ── Socials ─────────────────────────────────────────────── */

.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.social {
  display: block;
  padding: 20px;
  border-radius: 16px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .55));
  border: 1px solid #fff;
  box-shadow: 0 10px 22px rgba(24, 78, 126, .16), inset 0 1px 0 #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.social:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(24, 78, 126, .22), inset 0 1px 0 #fff; }
.social span { display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(24, 78, 126, .25); }
.social b { display: block; font-size: 18px; }
.social small { color: var(--ink-soft); font-size: 14px; }

.s-twitch span { background: linear-gradient(180deg, #b79bff, #9146ff); }
.s-discord span { background: linear-gradient(180deg, #8f98f8, #5865f2); }
.s-x span { background: linear-gradient(180deg, #5a5a5a, #111); }
.s-tiktok span { background: linear-gradient(180deg, #25f4ee, #fe2c55); }

/* ── Footer ──────────────────────────────────────────────── */

.foot { padding: 10px 0 48px; text-align: center; color: #15486f; font-size: 14px; }
.foot a { color: #0f5e9c; }
.foot .credits { margin-bottom: 8px; }

/* ── Small screens ───────────────────────────────────────── */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero .ctas { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art .frame { width: min(645px, 100%); }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about img { width: 180px; }
  .rules li { text-align: left; }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .day { flex-wrap: wrap; gap: 6px 10px; }
  .day b { min-width: 0; }
  .day .time { margin-left: auto; }
  .tagnow { margin-left: 0; order: 3; }
  .win-body { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .bubbles i { animation: none; }
  .bubbles { display: none; }
}
