/* The client's menu look (gui/menu/MenuSkin, MeowTitleScreen, GuiTheme), at GUI scale 2: one GUI pixel is two here. */
@font-face {
  font-family: "Cherry Bomb One";
  src: url("/assets/cherry_bomb_one.ttf") format("truetype");
  font-display: swap;
}

:root {
  --accent: #6400ff;
  --accent-rgb: 100, 0, 255;
  --base-top: #110e18;          /* MenuSkin.BASE_TOP */
  --base-bottom: #07060a;       /* MenuSkin.BASE_BOTTOM */
  --panel: rgba(20, 17, 25, .816); /* MenuSkin.PANEL 0xD0141119 */
  --field: rgba(12, 10, 16, .878); /* text fields 0xE00C0A10 */
  --text: #f4f4f4;              /* GuiTheme.TEXT */
  --label: #e6e6ea;             /* title button label */
  --muted: #c9c9c9;             /* GuiTheme.MUTED */
  --edge: rgba(var(--accent-rgb), .38);
  --radius: 8px;                /* buttons: 4 GUI px */
  --pop: cubic-bezier(.2, .8, .2, 1); /* hover eases at 14/s */
  --out: cubic-bezier(.33, 1, .68, 1); /* easeOutCubic */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: rgba(var(--accent-rgb), .85) rgba(0, 0, 0, .4); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, .4); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), .85); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
::selection { background: rgba(var(--accent-rgb), .6); color: #fff; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--base-top), var(--base-bottom)) fixed;
  color: var(--text);
  font: 17px/1.5 "Cherry Bomb One", system-ui, sans-serif;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; }

/* header: Minecraft's header bar with the accent separator, links as the client's tabs */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px) 0;
  background: rgba(17, 14, 24, .72);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(var(--accent-rgb), .6);
}
.brand { color: var(--accent); font-size: 21px; padding-bottom: 10px; }
.tabs { display: flex; gap: 4px; }
.tabs a {
  position: relative; padding: 7px 16px 8px; border-radius: 8px 8px 0 0;
  background: rgba(20, 17, 25, .56); color: var(--label);
  transition: background-color .2s var(--pop), color .2s var(--pop);
}
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(var(--accent-rgb), .35); transition: background-color .2s var(--pop); }
.tabs a:hover { background: rgba(var(--accent-rgb), .16); color: #fff; }
.tabs a.current { background: rgba(var(--accent-rgb), .30); color: #fff; }
.tabs a.current::after { background: var(--accent); }

/* title screen */
.hero {
  min-height: calc(100vh - 56px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 16px 90px;
}
.title {
  position: relative; margin: 0;
  color: var(--accent);
  font-size: clamp(56px, 10vw, 104px); line-height: 1;
}
/* MeowTitleScreen.drawTitle: the accent's soft glow behind the title */
.title::before {
  content: ""; position: absolute; left: 50%; top: 66%; width: 440px; height: 440px; max-width: 120vw;
  transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .30), rgba(var(--accent-rgb), .17) 25%, rgba(var(--accent-rgb), .07) 50%, rgba(var(--accent-rgb), .015) 75%, transparent);
}
/* the line under the title draws out from the middle */
.line { display: block; width: 112px; height: 2px; margin-top: 10px; background: rgba(var(--accent-rgb), .9); transform-origin: center; animation: draw .55s .1s var(--out) both; }
.lead { margin: 26px 0 0; max-width: 440px; color: var(--muted); font-size: clamp(17px, 2.2vw, 19px); }
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; width: min(300px, 100%); }
.version { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* MenuSkin.button: a dark rounded panel with an accent outline that pops out, fills and brightens on hover */
.button {
  position: relative; isolation: isolate;
  display: grid; place-items: center; height: 40px; padding: 0 22px;
  color: var(--label); font-size: 19px;
  transition: color .2s var(--pop);
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius);
  background-color: var(--panel); box-shadow: inset 0 0 0 2px var(--edge);
  transition: inset .2s var(--pop), box-shadow .2s var(--pop), background-color .2s var(--pop);
}
.button:hover, .button:focus-visible { color: #fff; outline: none; }
.button:hover::before, .button:focus-visible::before {
  inset: -3px -6px;
  box-shadow: inset 0 0 0 2px var(--accent);
  background-color: rgba(41, 13, 85, .86); /* the panel with the accent at .26 over it */
}

/* sections */
.section { max-width: 960px; margin: 0 auto; padding: 76px 16px; scroll-margin-top: 40px; }
.section h2 { margin: 0; text-align: center; color: var(--accent); font-size: clamp(34px, 5vw, 44px); line-height: 1.1; }

/* MenuSkin.card: list rows as cards that pop out and light up while hovered */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 36px; }
.card { position: relative; isolation: isolate; padding: 20px 22px; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px;
  background: var(--panel); box-shadow: inset 0 0 0 2px var(--edge);
  transition: inset .2s var(--pop), box-shadow .2s var(--pop), background-color .2s var(--pop);
}
.card:hover::before { inset: -4px; background-color: rgba(31, 14, 58, .86); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .9); }
.card h3 { margin: 0 0 6px; font-size: 21px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.panel {
  max-width: 560px; margin: 0 auto; padding: clamp(26px, 5vw, 40px); text-align: center;
  border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--edge);
}
.panel > p { margin: 10px 0 0; color: var(--muted); }
.panel .button { display: inline-grid; margin-top: 22px; min-width: 240px; }
/* rows as the list's selection, numbers as checked check boxes */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; text-align: left; }
.steps li {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 6px;
  background: rgba(var(--accent-rgb), .16); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .55);
}
.steps b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 400; box-shadow: inset 0 0 0 2px #fff; }

/* faq rows as the client's text fields: the outline lights up while open */
#faq { max-width: 560px; }
details {
  margin-top: 10px; padding: 0 16px; border-radius: 6px;
  background: var(--field); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .35);
  transition: box-shadow .2s var(--pop);
}
details:first-of-type { margin-top: 32px; }
details:hover, details[open] { box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .95); }
summary { cursor: pointer; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; color: var(--label); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); transition: transform .2s var(--pop); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 13px; color: var(--muted); }

.footer { text-align: center; padding: 34px 16px 52px; color: var(--muted); font-size: 14px; border-top: 2px solid rgba(var(--accent-rgb), .6); background: rgba(0, 0, 0, .22); }
.footer p { margin: 0; }

/* LoadingScreen: a 2px bar along the bottom edge, accent fill over a faint track, glowing at its head */
.bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: 4px; z-index: 10; background: rgba(255, 255, 255, .18); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
.bar i::after { content: ""; position: absolute; right: -36px; top: 50%; width: 72px; height: 72px; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), .55), transparent); }

/* appear(): fade in and rise 16px over .55s, easeOutCubic, in turn */
.appear { animation: rise .55s calc(.3s + var(--i, 0) * .07s) var(--out) both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--out), transform .55s var(--out); transition-delay: calc(var(--i, 0) * .07s); }
.reveal.shown { opacity: 1; transform: none; }

/* while loading: only the backdrop, the title in the middle and the bar */
.loading .bar { display: block; }
.loading .nav, .loading .appear, .loading .line, .loading main > :not(.hero), .loading .footer { visibility: hidden; animation-play-state: paused; }
.loaded .nav { animation: fade .35s var(--out) both; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 480px) {
  .tabs a { padding: 6px 10px 7px; font-size: 15px; }
  .brand { font-size: 18px; }
}
