/* Pony Duel - ponyduel.net. The look is the game's own patch notes screen (Assets/Scripts/PatchNotes.cs):
   its colours, its type (Barlow Condensed, fonts/OFL.txt), its header bands. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/BarlowCondensed-Medium.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/BarlowCondensed-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/BarlowCondensed-Bold.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: italic; font-display: swap; src: url(fonts/BarlowCondensed-BoldItalic.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/BarlowCondensed-ExtraBoldItalic.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 900; font-style: italic; font-display: swap; src: url(fonts/BarlowCondensed-BlackItalic.ttf) format("truetype"); }

:root {
  --bg-top: #1b2030;
  --bg-bottom: #0b0e16;
  --paper: #eef0f2;
  --ink: #1f222b;
  --ink-soft: #404552;
  --ink-faint: #6b7080;
  --cream: #f5f0e3;
  --slab: #dbd9d1;
  --date: #b3bacc;
  --buff: #29a054;
  --nerf: #d63538;
  --change: #8c919f;
  --yt-play: #0b0e16;
  --font: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 500;
  color: var(--cream);
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(ellipse 60% 70% at 18% 4%, rgba(92, 115, 173, 0.16), rgba(92, 115, 173, 0) 70%),
    linear-gradient(180deg, var(--bg-top) 0, #131826 520px, var(--bg-bottom) 1100px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--cream); color: var(--ink); }

/* ---- the header: the name, the one tab, YouTube ---- */
.top { background: var(--bg-bottom); }
.top-in {
  max-width: 1298px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.tabs { display: flex; height: 100%; align-items: center; }
.tab {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  font-weight: 800;
  font-style: italic;
  font-size: 21px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(245, 240, 227, 0.72);
}
.tab:hover { color: var(--cream); background: rgba(255, 255, 255, 0.07); }
.tab.on { background: var(--slab); color: var(--ink); }
.tab.on:hover { background: #fff; }
.yt {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  color: rgba(245, 240, 227, 0.72);
}
.yt svg { display: block; flex: none; }
.yt:hover { color: #fff; }
.yt:focus-visible, .tab:focus-visible, .brand:focus-visible, .patch:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }

/* ---- the page: the patches on the left, the cards ---- */
.page {
  max-width: 1298px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1000px);
  column-gap: 48px;
  justify-content: center;
}
.patches {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: 24px;
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.patch {
  display: block;
  padding: 15px 18px;
  text-decoration: none;
  color: rgba(245, 240, 227, 0.72);
}
.patch:hover { color: var(--cream); background: rgba(255, 255, 255, 0.07); }
.patch.on, .patch.on:hover { background: var(--paper); color: var(--ink); }
.patch b { display: block; font-weight: 700; font-size: 21px; line-height: 1.15; }
.patch small { display: block; margin-top: 2px; font-weight: 600; font-size: 17px; opacity: 0.7; }
.patch.on small { color: var(--ink-faint); opacity: 1; }
.page.has-date .patches { margin-top: 120px; }

.notes { grid-row: 1; grid-column: 2; min-width: 0; }
.ptitle {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--cream);
  min-height: 1.04em;
}
.pdate { margin: 4px 0 0; font-weight: 600; font-size: 22px; color: var(--date); }
.pdate:empty { display: none; }
#cards { margin-top: 30px; }

.sec {
  margin: 34px 0 10px;
  font-weight: 800;
  font-style: italic;
  font-size: 40px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cream);
}
.sec:first-child { margin-top: 0; }

/* ---- a card: the header band in her colour, the changes on paper ---- */
.card { margin-bottom: 24px; --bh: 64px; --ns: 32px; }
.card.has-img { --bh: 98px; --ns: 44px; }
.card.has-char { --bh: 120px; --ns: 54px; }
.band {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--bh);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--b) 0%, var(--b) 6%, var(--b-mid) 50%, var(--b-end) 94%, var(--b-end) 100%);
}
.band.ink { color: var(--ink); }
/* two light slants, leaning like the HUD */
.band::before, .band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  transform: skewX(-22.8deg);
  pointer-events: none;
}
.band::before { left: 58%; width: calc(var(--bh) * 0.62); background: rgba(255, 255, 255, 0.07); }
.band::after { left: calc(58% + var(--bh) * 0.8); width: calc(var(--bh) * 0.16); background: rgba(255, 255, 255, 0.06); }
/* a mode's picture on the right, fading into the band */
.bimg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.5) 35%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.5) 35%, #000 70%);
}
.bimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bimg::after { content: ""; position: absolute; inset: 0; background: var(--b-tint); }
/* her portrait on the left, melting into the band */
.portrait {
  position: relative;
  z-index: 1;
  flex: none;
  width: calc(var(--bh) * 1.75);
  height: 100%;
  background: radial-gradient(closest-side at 55% 50%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(90deg, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 76%, transparent 100%);
}
.portrait .ini {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-style: italic;
  font-size: calc(var(--bh) * 0.45);
  opacity: 0.5;
}
.name {
  position: relative;
  z-index: 1;
  margin: 0 24px 0 30px;
  font-weight: 800;
  font-style: italic;
  font-size: var(--ns);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.has-char .name { margin-left: 16px; }

.body { background: var(--paper); color: var(--ink-soft); padding: 22px 32px 18px; }
.grp + .grp { margin-top: 20px; }
.grp h4 { margin: 0 0 6px; font-weight: 700; font-size: 23px; line-height: 1.15; color: var(--ink); }
.grp ul { list-style: none; margin: 0; padding: 0; }
.grp li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 7px;
  font-size: 20px;
  line-height: 1.3;
}
.grp li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.65em - 2.5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--change);
}
.grp li.buff::before, .grp li.nerf::before {
  left: 2px;
  top: calc(0.65em - 6px);
  width: 14px;
  height: 12px;
  border-radius: 0;
}
.grp li.buff::before { background: var(--buff); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.grp li.nerf::before { background: var(--nerf); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.grp li.note { padding-left: 0; font-weight: 700; font-style: italic; font-size: 19px; color: var(--ink-faint); margin: 2px 0 10px; }
.grp li.note::before { content: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.empty { margin: 0; font-weight: 600; font-size: 24px; color: rgba(245, 240, 227, 0.7); }

/* no patches yet: one title card (the game's own, PatchNotes.DrawRelease) */
.page.no-patches { grid-template-columns: minmax(0, 1000px); }
.no-patches .patches, .no-patches .ptitle, .no-patches .pdate { display: none; }
.no-patches .notes { grid-column: 1; }
.no-patches #cards { margin-top: 0; }
.card.release { --bh: 240px; }
.release .band { --b: #6b40a1; --b-mid: #5c3789; --b-end: #4d2e75; }
.release .name { margin: 0 48px; font-weight: 900; font-size: clamp(60px, 9vw, 120px); line-height: 1; }
.js-anim .card.release { animation: release-in 0.5s cubic-bezier(0.33, 1, 0.68, 1) both; }
@keyframes release-in { from { opacity: 0; transform: translateY(40px); } }

/* cards ease in as they come into view (as in the game) */
.js-anim .rise { opacity: 0; transform: translateY(40px); }
.js-anim .rise.in { opacity: 1; transform: none; transition: opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1), transform 0.5s cubic-bezier(0.33, 1, 0.68, 1); }
@media (prefers-reduced-motion: reduce) {
  .js-anim .rise { opacity: 1; transform: none; }
}

/* ---- home: the name, Play, Update, over the title screen's fight (media/hero.*, Tools/promo/encode_attract.ps1) ---- */
.is-home { background: var(--bg-bottom); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #241f36; }
/* the clip's first frame (the poster) under the clip itself, which fades in once it really plays (home.js) */
.hero-bg img, .hero-bg video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* (2026-10-14) visible from the start, over its own poster: Firefox won't play a video it can't see (opacity 0) */
.hero-bg video { opacity: 1; }
/* no clip yet: the Cathedral thumbnail, held back */
.hero-bg img.fallback { object-position: 50% 30%; filter: blur(3px) brightness(0.5) saturate(0.85); transform: scale(1.04); }
/* legibility: dark at the top behind the name and buttons, clear through the middle where the fight is, settling at the foot */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 50% 26%, rgba(11, 14, 22, 0.58), rgba(11, 14, 22, 0) 72%),
    linear-gradient(180deg, rgba(11, 14, 22, 0.72) 0%, rgba(11, 14, 22, 0.34) 30%, rgba(11, 14, 22, 0.08) 58%, rgba(11, 14, 22, 0.12) 76%, rgba(11, 14, 22, 0.82) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg video { display: none; }
}
.hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 9vh, 110px) 16px 24px;
  text-align: center;
}
.logo {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(78px, 14vw, 210px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
}
/* the buttons: solid slabs leaning like the HUD, no outlines */
.play, .update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  font-style: italic;
  transform: skewX(-12deg);
}
.play > span, .update > span { transform: skewX(12deg); }
.play {
  margin-top: clamp(26px, 4.5vh, 44px);
  min-width: 340px;
  height: 92px;
  padding: 0 64px;
  font-weight: 900;
  font-size: 62px;
  letter-spacing: 0.02em;
  background: var(--slab);
  color: var(--ink);
}
.play:hover { background: #fff; }
.play:active { background: #c8c6be; }
.update {
  margin-top: 16px;
  height: 48px;
  padding: 0 28px;
  font-weight: 800;
  font-size: 22px;
  background: #222a3b;
  color: rgba(245, 240, 227, 0.9);
}
.update:hover { background: #2f3a52; color: #fff; }
.play:focus-visible, .update:focus-visible, .nohandler a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.nohandler { margin: 14px 0 0; font-weight: 600; font-size: 20px; color: rgba(245, 240, 227, 0.78); }
.nohandler a { color: var(--cream); font-weight: 700; text-underline-offset: 3px; }

/* ---- narrower ---- */
@media (max-width: 1060px) {
  .page { grid-template-columns: 190px minmax(0, 1fr); column-gap: 28px; }
}
@media (max-width: 820px) {
  .top-in { padding: 0 16px; gap: 14px; height: 56px; }
  .brand { font-size: 26px; }
  .tab { height: 36px; padding: 0 12px; font-size: 19px; }
  .page { display: block; padding: 24px 16px 60px; }
  .patches, .page.has-date .patches {
    position: static;
    margin: 0 -16px 22px;
    padding: 0 16px;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .patches::-webkit-scrollbar { display: none; }
  .patch { flex: none; padding: 10px 14px; }
  .patch b { font-size: 18px; }
  .patch small { font-size: 15px; }
  .patches.single { display: none; }
  .pdate { font-size: 19px; }
  #cards { margin-top: 22px; }
  .sec { font-size: 32px; margin-top: 28px; }
  .card { margin-bottom: 18px; --bh: 56px; --ns: 27px; }
  .card.has-img { --bh: 80px; --ns: 34px; }
  .card.has-char { --bh: 92px; --ns: 34px; }
  .body { padding: 18px 18px 12px; }
  .grp h4 { font-size: 21px; }
  .grp li { font-size: 18px; padding-left: 22px; }
  .grp li.buff::before, .grp li.nerf::before { left: 0; width: 12px; height: 10px; top: calc(0.65em - 5px); }
  .grp li::before { left: 3px; }
  .name { margin-left: 18px; margin-right: 14px; }
  .has-char .name { margin-left: 8px; }
  .card.release { --bh: 150px; }
  .release .name { margin: 0 24px; font-size: clamp(44px, 11vw, 88px); }
  .hero { min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); }
  .play { min-width: 260px; height: 78px; padding: 0 48px; font-size: 52px; }
  .update { height: 46px; padding: 0 22px; font-size: 20px; }
  .hero-in { padding-top: clamp(40px, 11vh, 110px); }
}
@media (max-width: 480px) {
  .yt span { display: none; }
  .brand { font-size: 23px; }
  .tab { font-size: 17px; padding: 0 10px; }
  .card.has-char { --ns: 29px; }
  .update { font-size: 18px; padding: 0 16px; }
}

/* (2026-10-14) the legal line at the foot of every page */
.legal { max-width: 1100px; margin: 0 auto; padding: 28px 24px 36px; color: #8f97a8; font-family: "Barlow Condensed", system-ui, sans-serif; font-weight: 500; font-size: 15px; line-height: 1.45; text-align: center; letter-spacing: 0.01em; }
.legal p { margin: 0 0 6px; }
