:root {
  /* Overwritten from config.lua */
  --accent: #00eaff;
  --accent2: #ff5a1f;
  --accent-rgb: 0, 234, 255;
  --accent2-rgb: 255, 90, 31;
  --mid: #80a28f;

  --bg: #03080b;
  --panel: rgba(8, 20, 26, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef7fa;
  --muted: #8ea6b0;
  --faint: #56707b;
  --ok: #3ee88f;
  --bad: #ff5f6d;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --gradient: linear-gradient(90deg, var(--accent), var(--mid), var(--accent2));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ---------- Backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  animation: drift 26s ease-in-out infinite alternate;
}

.glow.ice {
  top: -35vmax;
  left: -25vmax;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), transparent 62%);
}

.glow.fire {
  right: -30vmax;
  bottom: -40vmax;
  background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.18), transparent 62%);
  animation-delay: -13s;
}

.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 36rem;
  height: 36rem;
  margin: -18rem 0 0 -18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cursor-rgb, var(--accent-rgb)), 0.24), rgba(var(--cursor-rgb, var(--accent-rgb)), 0.08) 40%, transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-glow.on { opacity: 1; }

@keyframes drift {
  to { transform: translate(6vmax, 4vmax) scale(1.1); }
}

.grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), rgba(var(--accent-rgb), 0.75) 55%, var(--accent2));
  color: #031015;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.25), 0 8px 30px rgba(var(--accent2-rgb), 0.15);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.4), 0 10px 40px rgba(var(--accent2-rgb), 0.25);
}

.btn-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.08);
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.glass {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.05), var(--panel));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  border-color: var(--line);
  background: rgba(3, 8, 11, 0.8);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: -3px 0 10px rgba(var(--accent-rgb), 0.5), 3px 0 10px rgba(var(--accent2-rgb), 0.5);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a {
  position: relative;
}

/* The page you're on: lit up in the nav and the phone tab bar */
html[data-page='home'] [data-nav='home'],
html[data-page='rules'] [data-nav='rules'],
html[data-page='staff'] [data-nav='staff'],
html[data-page='apply'] [data-nav='apply'],
html[data-page='live'] [data-nav='live'] {
  color: var(--text);
}

html[data-page='home'] .nav-links [data-nav='home']::after,
html[data-page='rules'] .nav-links [data-nav='rules']::after,
html[data-page='staff'] .nav-links [data-nav='staff']::after,
html[data-page='apply'] .nav-links [data-nav='apply']::after,
html[data-page='live'] .nav-links [data-nav='live']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

/* ---------- Pages ---------- */

/* index.html sets data-page from the address before anything shows, so the right page appears straight away */
main {
  min-height: 80vh;
}

.page {
  display: none;
  animation: page-in 0.35s ease;
}

html[data-page='home'] .page[data-page='home'],
html[data-page='rules'] .page[data-page='rules'],
html[data-page='staff'] .page[data-page='staff'],
html[data-page='apply'] .page[data-page='apply'],
html[data-page='live'] .page[data-page='live'] {
  display: block;
}

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

.section.page-top {
  padding-top: 130px;
}

.explore {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.explore-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-3px);
}

.explore-card .num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.explore-card h3 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.explore-card p {
  color: var(--muted);
  font-size: 15px;
}

.explore-card .go {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.explore-card:last-child .go {
  color: var(--accent2);
}

.explore-card .go::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}

.explore-card:hover .go::after {
  transform: translateX(4px);
}

.tabbar,
.one-page .nav-links {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 120px 20px 70px;
  text-align: center;
  justify-content: center;
}

.emblem {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 26px;
}

.emblem::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), var(--mid), var(--accent2), var(--mid), var(--accent));
  animation: spin 8s linear infinite;
}

.emblem::after {
  content: '';
  position: absolute;
  inset: -22px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 25% 50%, rgba(var(--accent-rgb), 0.35), transparent 60%),
    radial-gradient(circle at 75% 50%, rgba(var(--accent2-rgb), 0.35), transparent 60%);
  filter: blur(14px);
}

.emblem img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status b {
  color: var(--text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}

.status.online .status-dot {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.4; }
}

.title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(64px, 15vw, 150px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff 40%, #bff7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.5));
}

.tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.55em;
  text-transform: uppercase;
}

.tagline .line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.tagline .line:last-child {
  background: linear-gradient(90deg, var(--accent2), transparent);
}

.intro {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

#hero-links {
  display: contents;
}

.link-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.connect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 7px 8px 7px 12px;
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}

.connect-label {
  color: var(--faint);
}

.connect code {
  color: var(--accent);
}

.connect-copy {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px 20px 30px;
}

.section-head {
  margin-bottom: 34px;
}

.kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  padding: 26px 24px;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}

.feature .num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.feature h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
}

.rules-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rules-search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.rules-search svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: var(--faint);
}

.rules-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 15px;
}

.rules-count {
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.rule-group + .rule-group {
  margin-top: 40px;
}

.rule-group-head {
  margin-bottom: 16px;
}

.rule-group-head .part {
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule-group-head h3 {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rule-group-head p {
  color: var(--muted);
  font-size: 15px;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.rule {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.rule-num {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.rule-num:hover {
  border-color: var(--accent);
}

.rule b {
  display: block;
  font-size: 15px;
}

.rule p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

/* A rule opened from a link like /#rule-22 */
.rule.flash {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.rules-empty {
  color: var(--muted);
}

.punish {
  margin-top: 56px;
}

.punish h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.punish-intro,
.punish-note {
  color: var(--muted);
  font-size: 15px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 14px;
}

/* --tier-rgb runs from accent (tier 1) to accent2 (the last tier) */
.tier {
  position: relative;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(var(--tier-rgb), 0.35);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(var(--tier-rgb), 0.12), rgba(var(--tier-rgb), 0.02) 60%);
}

.tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgb(var(--tier-rgb));
}

.tier-name {
  color: rgb(var(--tier-rgb));
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier p {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
}

.punish-note {
  font-size: 14px;
}

.staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent2-rgb), 0.35));
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
}

.member .name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.role {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border: 1px solid rgba(var(--accent2-rgb), 0.45);
  border-radius: 5px;
  background: rgba(var(--accent2-rgb), 0.12);
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Applications ---------- */

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.apply-layout > .apply {
  grid-column: 1;
  grid-row: 1;
}

.apply-side {
  position: sticky;
  top: 100px;
  grid-column: 2;
  grid-row: 1;
  padding-top: 10px;
}

.steps {
  display: grid;
  gap: 26px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 54px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.steps li:last-child::before {
  border-color: rgba(var(--accent2-rgb), 0.45);
  background: rgba(var(--accent2-rgb), 0.12);
  color: var(--accent2);
}

/* The line joining one step to the next, ice to fire */
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  bottom: -20px;
  left: 17px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent2));
  opacity: 0.35;
}

.steps h3 {
  margin-top: 5px;
  font-size: 17px;
}

.steps p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.apply-side > .btn {
  margin-top: 30px;
}

/* "Already applied?" */
.lookup {
  margin-top: 30px;
  padding: 20px;
}

.lookup h3 {
  font-size: 17px;
}

.lookup > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.lookup-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.lookup-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lookup-row input::placeholder {
  letter-spacing: 0;
  text-transform: none;
}

.lookup-row input:focus {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.lookup-result {
  --result: var(--accent-rgb);
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--result), 0.45);
  border-radius: 10px;
  background: rgba(var(--result), 0.08);
  font-size: 14px;
  animation: page-in 0.25s ease;
}

.lookup-result.accepted {
  --result: 62, 232, 143;
}

.lookup-result.denied,
.lookup-result.error {
  --result: 255, 95, 109;
}

.lookup-result b {
  color: rgb(var(--result));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lookup-result p {
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.lookup-result p:first-of-type {
  color: var(--text);
}

.apply {
  max-width: 760px;
  padding: 28px;
}

.apply-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.apply-tab {
  flex: 1;
  padding: 11px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.apply-tab.active {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.apply-intro {
  margin: 20px 0 6px;
  color: var(--muted);
}

.field {
  display: block;
  margin-top: 18px;
}

.form-section {
  margin: 34px 0 -4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.form-section:first-child { margin-top: 8px; }

.field-hint {
  margin: -2px 0 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.req {
  color: var(--accent2);
}

.field-count {
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.field-count.short {
  color: var(--accent2);
}

.field input[type='text'],
.field input[type='number'],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.field.invalid input,
.field.invalid textarea {
  border-color: rgba(255, 95, 109, 0.7);
}

.field-error {
  margin-top: 6px;
  color: var(--bad);
  font-size: 13px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.field .check {
  margin-top: 4px;
}

.field.invalid .check {
  color: var(--bad);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.privacy {
  flex: 1;
  min-width: 220px;
  color: var(--faint);
  font-size: 13px;
}

.apply-message {
  margin-top: 14px;
  color: var(--bad);
  font-size: 14px;
}

.apply-message:empty {
  display: none;
}

.apply-done {
  padding: 30px 0 10px;
  text-align: center;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gradient);
  color: #031015;
  font-size: 30px;
  font-weight: 800;
}

.apply-done h3 {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apply-done p {
  margin: 6px 0 22px;
  color: var(--muted);
}

.reference {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 10px 10px 16px;
  border: 1px dashed rgba(var(--accent-rgb), 0.45);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}

.reference code {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1140px;
  margin: 80px auto 0;
  padding: 30px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  width: 100%;
}

.offline {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  width: min(560px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(var(--accent2-rgb), 0.5);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  transform: translateX(-50%);
}

/* ---------- Home page polish ---------- */

/* The top of the home page comes in piece by piece */
.hero {
  position: relative;
}

.hero > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero > :nth-child(1) { animation-delay: 0.05s; }
.hero > :nth-child(2) { animation-delay: 0.15s; }
.hero > :nth-child(3) { animation-delay: 0.22s; }
.hero > :nth-child(4) { animation-delay: 0.3s; }
.hero > :nth-child(5) { animation-delay: 0.38s; }
.hero > :nth-child(6) { animation-delay: 0.46s; }
.hero > :nth-child(7) { animation-delay: 0.54s; }
.hero > :nth-child(8) { animation-delay: 0.62s; }
.hero > :nth-child(9) { animation-delay: 0.8s; }
.hero > .title { animation-delay: 0.22s, 1.6s; }
.hero > .emblem { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both, float 6s ease-in-out 0.9s infinite; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* The logo floats, with an ice and a fire spark going round it */
@keyframes float {
  50% { translate: 0 -6px; }
}

.orbit {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: spin 14s linear infinite reverse;
}

.orbit::before,
.orbit::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
}

.orbit::before {
  top: 50%;
  left: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.orbit::after {
  top: 50%;
  left: 100%;
  background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2), 0 0 20px var(--accent2);
}

.emblem::after {
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  50% { opacity: 0.6; }
}

/* A shine sweeps across the title every few seconds */
.title {
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) -200% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #fff 40%, #bff7ff);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px rgba(var(--accent-rgb), 0.16));
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both, shine 7s ease-in-out 1.6s infinite;
}

@keyframes shine {
  0% { background-position: -200% 0, 0 0; }
  30%, 100% { background-position: 200% 0, 0 0; }
}

/* Buttons at the top: a glint on hover */
.hero .btn {
  position: relative;
  overflow: hidden;
}

.hero .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.hero .btn:hover::after {
  transform: translateX(100%);
}

.connect {
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.connect:hover {
  border-color: rgba(var(--accent-rgb), 0.7);
  border-style: solid;
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-1px);
}

/* "Scroll" with a little bouncing arrow at the bottom of the top part */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
  translate: -50% 0;
  transition: color 0.2s;
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-cue i {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  50% { translate: 0 5px; }
}

/* Section titles get a little ice-to-fire bar */
.kicker::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  vertical-align: middle;
}

/* Cards: a glow follows the mouse, and they lift a little */
.feature,
.explore-card {
  --mx: 50%;
  --my: 0%;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, opacity 0.6s, translate 0.6s;
}

.feature::after,
.explore-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.explore-card {
  position: relative;
  overflow: hidden;
}

.explore-card:nth-child(3n)::after {
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent2-rgb), 0.1), transparent 70%);
}

.feature:hover,
.explore-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
  transform: translateY(-3px);
}

.feature:hover::after,
.explore-card:hover::after {
  opacity: 1;
}

.feature::before {
  transition: left 0.3s, right 0.3s, opacity 0.3s;
}

.feature:hover::before {
  left: 0;
  right: 0;
  opacity: 1;
}

.feature .num {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Cards fade in as they come into view (only added when the browser can do it) */
.reveal {
  opacity: 0;
  translate: 0 22px;
}

.reveal.shown {
  opacity: 1;
  translate: 0 0;
  transition-delay: var(--delay, 0s);
}

/* ---------- Live streams ---------- */

.live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 8px #ff3b3b;
  animation: pulse 1.6s ease-in-out infinite;
}

/* "3" next to Live in the menu */
.live-count {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #e5303a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

/* "3 streaming now" on the home page */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 59, 59, 0.4);
  border-radius: 99px;
  background: rgba(255, 59, 59, 0.08);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}

.live-pill:hover {
  border-color: rgba(255, 59, 59, 0.8);
  background: rgba(255, 59, 59, 0.14);
}

.live-note {
  margin: -14px 0 18px;
  color: var(--accent2);
  font-size: 14px;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: stretch;
}

.live-layout:has(.live-chat.hidden) {
  grid-template-columns: minmax(0, 1fr);
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.live-grid[data-count='2'],
.live-grid[data-count='3'],
.live-grid[data-count='4'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-grid[data-count='0'] {
  display: none;
}

/* Three streams: the first one big on top */
.live-grid[data-count='3'] .live-tile:first-child {
  grid-column: span 2;
}

.live-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: page-in 0.3s ease;
}

.live-tile.chatting {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.15);
}

.tile-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.tile-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tile-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  background: rgba(8, 16, 20, 0.95);
  font-size: 13px;
}

.tile-name {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tile-name b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-viewers {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
}

.tile-btn {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tile-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--text);
}

.live-tile.chatting .tile-btn[data-act='chat'] {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
}

.tile-btn.close:hover {
  border-color: rgba(255, 95, 109, 0.6);
  color: var(--bad);
}

.live-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.live-hint {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
}

.live-chat {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  /* No glass blur here: Twitch's chat won't take clicks or typing when a blur sits behind it
     (the browser no longer counts it as plainly visible), so the panel gets a solid background */
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.05), transparent 60%), #07131a;
  backdrop-filter: none;
}

.chat-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
}

.chat-tab {
  min-width: 0;
  padding: 7px 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.chat-tab:hover {
  color: var(--text);
}

.chat-tab.active {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.chat-frames {
  position: relative;
  flex: 1;
  min-height: 400px;
}

.chat-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.chat-foot span {
  flex: 1;
  min-width: 0;
}

.chat-open {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent);
}

.chat-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #18181b;
}

.live-pick,
.live-clips {
  margin-top: 46px;
}

.live-pick h3,
.live-clips h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.live-total {
  color: var(--faint);
  font-size: 22px;
}

.live-pick > p,
.live-clips > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
}

.live-list,
.clip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.live-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.04), var(--panel));
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.live-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
}

.live-card.on {
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
}

.live-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent2-rgb), 0.18)), #05090c;
}

.live-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-tag,
.live-viewers,
.live-watching {
  position: absolute;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.live-tag {
  top: 8px;
  left: 8px;
  background: #e5303a;
  color: #fff;
  letter-spacing: 0.08em;
}

.live-viewers {
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
}

.live-watching {
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #031015;
}

.live-info {
  padding: 10px 12px 12px;
}

.live-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.live-ours {
  padding: 0 7px;
  border: 1px solid rgba(var(--accent2-rgb), 0.45);
  border-radius: 5px;
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-title {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.live-none {
  color: var(--muted);
}

/* Clips */

.clip-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  opacity: 0.85;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

/* The triangle */
.clip-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  transform: translate(-50%, -50%);
}

.clip-card:hover .clip-play {
  background: rgba(var(--accent-rgb), 0.85);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.clip-pick {
  background: var(--accent);
  color: #031015;
}

.clip-length {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.75);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.clip-title {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.clip-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.clip-viewer {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.06), transparent 50%), #061117;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.clip-viewer::backdrop {
  background: rgba(2, 6, 8, 0.8);
  backdrop-filter: blur(4px);
}

.clip-viewer[open] {
  animation: page-in 0.25s ease;
}

.clip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 16px;
  border-bottom: 1px solid var(--line);
}

.clip-head-text {
  flex: 1;
  min-width: 0;
}

.clip-head-text b,
.clip-head-text span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-head-text span {
  color: var(--muted);
  font-size: 13px;
}

.clip-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.clip-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 960px) {
  .live-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-chat {
    min-height: 0;
  }

  .chat-frames {
    min-height: 420px;
  }
}

/* Phones keep 4 on screen at once: 2 by 2, with a smaller bar under each */
@media (max-width: 600px) {
  .clip-viewer {
    width: calc(100% - 16px);
  }

  .live-grid {
    gap: 8px;
  }

  .live-tile {
    border-radius: 10px;
  }

  .tile-bar {
    gap: 5px;
    padding: 5px 5px 5px 8px;
    font-size: 12px;
  }

  .tile-name {
    gap: 6px;
  }

  .live-grid:not([data-count='1']) .tile-viewers,
  .live-grid:not([data-count='1']) .tile-btn[href],
  .live-grid:not([data-count='1']) .tile-name .live-dot {
    display: none;
  }

  .tile-btn {
    padding: 4px 8px;
  }

  .chat-frames {
    min-height: 380px;
  }
}

/* ---------- Phones ---------- */

@media (max-width: 960px) {
  .apply-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .apply-layout > .apply,
  .apply-side {
    position: static;
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .one-page body {
    padding-bottom: 0;
  }

  html:not(.one-page) .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(3, 8, 11, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .tabbar a {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0 4px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  html[data-page='home'] .tabbar [data-nav='home'] svg,
  html[data-page='rules'] .tabbar [data-nav='rules'] svg,
  html[data-page='staff'] .tabbar [data-nav='staff'] svg,
  html[data-page='apply'] .tabbar [data-nav='apply'] svg,
  html[data-page='live'] .tabbar [data-nav='live'] svg,
  html[data-page='store'] .tabbar [data-nav='store'] svg {
    fill: var(--accent);
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6));
  }

  html[data-page='home'] .tabbar [data-nav='home']::before,
  html[data-page='rules'] .tabbar [data-nav='rules']::before,
  html[data-page='staff'] .tabbar [data-nav='staff']::before,
  html[data-page='apply'] .tabbar [data-nav='apply']::before,
  html[data-page='live'] .tabbar [data-nav='live']::before,
  html[data-page='store'] .tabbar [data-nav='store']::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 32%;
    right: 32%;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
  }

  .offline {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .section.page-top {
    padding-top: 100px;
  }

  .nav {
    gap: 12px;
  }

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

  .nav-links {
    display: none;
  }

  #nav-join {
    margin-left: auto;
  }

  .emblem {
    width: 120px;
    height: 120px;
  }

  .tagline {
    letter-spacing: 0.4em;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .apply {
    padding: 20px 16px;
  }

  .apply-foot .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Steam sign-in & dashboard (added 2026-10-12) ---------- */

html[data-page='dashboard'] .page[data-page='dashboard'] {
  display: block;
}

html[data-page='dashboard'] [data-nav='dashboard'] {
  color: var(--text);
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 220px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.nav-account:hover,
html[data-page='dashboard'] .nav-account {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.08);
}

.nav-account img {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.nav-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The apply form waits behind a Steam sign-in */
.apply.locked > :not(#apply-signin) {
  display: none !important;
}

.apply-signin,
.dash-signin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.dash-signin {
  max-width: 620px;
  padding: 30px;
}

.apply-signin h3,
.dash-signin h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.apply-signin p,
.dash-signin p {
  color: var(--muted);
}

.dash-signin .dash-error {
  color: var(--bad);
}

.dash {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-profile {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
}

.dash-avatar {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: -3px 0 14px rgba(var(--accent-rgb), 0.45), 3px 0 14px rgba(var(--accent2-rgb), 0.45);
}

.dash-who {
  flex: 1;
  min-width: 0;
}

.dash-who h3 {
  overflow: hidden;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.dash-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 10px;
}

.dash-ids div {
  display: flex;
  flex-direction: column;
}

.dash-ids span,
.dash-card-head {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dash-ids code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.dash-title {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.dash-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
}

.dash-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 13px;
}

.dash-card-head.online .status-dot {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}

.dash-count b {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.dash-count span {
  color: var(--faint);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
}

.dash-card .btn {
  width: 100%;
}

/* Play / Join before the whitelist is accepted */
.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.dash-note,
.dash-wl-text {
  color: var(--muted);
  font-size: 14px;
}

.dash-wl-text code {
  font-family: var(--mono);
  color: var(--text);
}

.dash-state {
  --state: var(--accent-rgb);
  padding: 4px 12px;
  border: 1px solid rgba(var(--state), 0.45);
  border-radius: 99px;
  background: rgba(var(--state), 0.1);
  color: rgb(var(--state));
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dash-state.accepted {
  --state: 62, 232, 143;
}

.dash-state.denied {
  --state: 255, 95, 109;
}

.dash-state.none {
  --state: 142, 166, 176;
}

.dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.dash-action {
  padding: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.dash-action:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  html[data-page='dashboard'] .tabbar [data-nav='dashboard'] svg {
    fill: var(--accent);
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6));
  }

  html[data-page='dashboard'] .tabbar [data-nav='dashboard']::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 32%;
    right: 32%;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
  }

  /* Phones: just the picture top right (the Account tab does the rest) */
  .nav-account {
    padding: 3px;
  }

  .nav-account span {
    display: none;
  }

  .dash-profile {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }

  .dash-profile .btn {
    width: 100%;
  }
}

/* ---------- Website queue (added 2026-10-12) ---------- */

.queue {
  --q: var(--accent-rgb);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: page-in 0.3s ease;
}

.queue[data-state='ready'],
.queue[data-state='joining'] {
  --q: 62, 232, 143;
}

.queue[data-state='expired'] {
  --q: 255, 95, 109;
}

.queue-bar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border: 1px solid rgba(var(--q), 0.35);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(var(--q), 0.07), var(--panel));
}

.queue-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--q));
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.queue-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--q));
  box-shadow: 0 0 10px rgb(var(--q));
  animation: pulse 1.8s ease-in-out infinite;
}

.queue-bar b {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.queue-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 24px 38px;
  border: 1px solid rgba(var(--q), 0.6);
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--q), 0.12), transparent 70%), var(--panel);
  box-shadow: 0 0 40px rgba(var(--q), 0.12), inset 0 0 30px rgba(var(--q), 0.05);
  text-align: center;
}

.queue-box h3 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.queue-box > p {
  max-width: 520px;
  color: var(--muted);
}

.queue-clock {
  color: var(--text);
  font-family: var(--mono);
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.queue-actions .btn {
  min-width: 170px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-error {
  color: var(--bad);
  font-size: 14px;
}

@media (max-width: 720px) {
  .queue-box {
    padding: 32px 16px 28px;
  }

  .queue-actions .btn {
    width: 100%;
  }
}

html[data-page='store'] .page[data-page='store'] {
  display: block;
}

html[data-page='store'] [data-nav='store'] {
  color: var(--text);
}

.store {
  --cut: 22px;
  --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 20px 40px;
}

.shop-head {
  position: relative;
  padding: 30px 0 46px;
  text-align: center;
}

.shop-head::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), rgba(var(--accent2-rgb), 0.6), transparent);
}

.shop-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.shop-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shop-intro {
  max-width: 640px;
  margin: 14px auto 26px;
  color: var(--muted);
}

.shop-search {
  --cut: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 18px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background: rgba(8, 20, 26, 0.85);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
  transition: box-shadow 0.2s;
}

.shop-search:focus-within {
  box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 24px rgba(var(--accent-rgb), 0.15);
}

.shop-search svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.shop-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 16px;
}

.shop-search input::placeholder {
  color: var(--faint);
}

.shop-section-title {
  margin: 56px 0 28px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.shop-browse {
  position: relative;
  margin-top: 70px;
  padding-top: 50px;
  scroll-margin-top: 90px;
}

.shop-browse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), rgba(var(--accent2-rgb), 0.6), transparent) top / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 56 16v33L28 65 0 49V16zM28 65l28 16v33M28 65 0 81v33' fill='none' stroke='%23ffffff' stroke-opacity='.035'/%3E%3C/svg%3E") top / 56px 98px,
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.05), rgba(3, 8, 11, 0) 500px);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 40px;
  margin-bottom: 20px;
}

.shop-filter-group {
  display: grid;
  gap: 10px;
}

.shop-filter-wide {
  flex: 1;
}

.shop-filter-sort {
  margin-left: auto;
}

.shop-filter-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 26, 0.75);
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.shop-chip:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
}

.shop-chip.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.2);
}

.shop-chip-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.shop-chip.active .shop-chip-count {
  color: var(--accent);
}

.shop-sort {
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 26, 0.9);
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-sort option {
  background: #071219;
  text-transform: none;
}

.shop-count {
  margin-bottom: 18px;
  color: var(--faint);
  font-size: 14px;
}

.shop-empty {
  padding: 50px 0;
  color: var(--muted);
  text-align: center;
}

.shop-note {
  margin-top: 30px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.pcard {
  --cut: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 20px;
  clip-path: var(--chamfer);
  background: linear-gradient(170deg, rgba(var(--accent-rgb), 0.07), rgba(8, 20, 26, 0.92) 40%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45);
}

.pcard-cat {
  min-height: 18px;
  margin: 0 0 10px 4px;
  font-size: 13px;
  font-weight: 700;
}

.pcard-media {
  --cut: 16px;
  position: relative;
  aspect-ratio: 16 / 10;
  clip-path: var(--chamfer);
  container-type: inline-size;
}

.store-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #071219;
  background-position: center;
  background-size: cover;
}

.store-art.no-image {
  background-image:
    radial-gradient(circle at 18% 12%, rgba(var(--accent-rgb), 0.42), transparent 58%),
    radial-gradient(circle at 88% 92%, rgba(var(--accent2-rgb), 0.42), transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.store-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 11, 0) 55%, rgba(3, 8, 11, 0.75));
}

.store-waiting {
  position: absolute;
  inset: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 10px;
  text-align: center;
}

.store-waiting svg {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  fill: var(--accent);
  opacity: 0.75;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.5));
}

.store-waiting-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-waiting-sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pcard-price {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.pcard-price small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pcard-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent2-rgb), 0.2);
  box-shadow: inset 0 0 0 1px rgba(var(--accent2-rgb), 0.7);
  color: #ffb08f;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pcard-body {
  flex: 1;
  padding: 18px 4px 0;
}

.pcard-name {
  font-family: var(--display);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.05;
}

.pcard-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.pcard-foot {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 0 4px;
}

.store-btn {
  --cut: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 0;
  clip-path: var(--chamfer);
  background: rgba(3, 8, 11, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.store-btn-buy {
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 18px rgba(var(--accent-rgb), 0.25);
}

.store-btn-buy:hover {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  box-shadow: none;
  color: #031015;
}

.store-details {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 26px 24px 90px;
  overflow: auto;
  background: linear-gradient(170deg, rgba(7, 22, 29, 0.98), rgba(3, 8, 11, 0.99));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.store-details h4 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
}

.pcard.open .store-details {
  opacity: 1;
  pointer-events: auto;
}

.store-points {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  list-style: none;
}

.store-points li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}

.store-points li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.store-delivery {
  color: var(--muted);
  font-size: 14px;
}

.store-delivery b {
  color: var(--accent);
  font-weight: 600;
}

.store-how {
  padding: 80px 0 20px;
  scroll-margin-top: 90px;
}

.store-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  list-style: none;
}

.store-step {
  --cut: 16px;
  padding: 24px 22px;
  clip-path: var(--chamfer);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), rgba(8, 20, 26, 0.7));
  box-shadow: inset 0 0 0 1px var(--line);
}

.store-step-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.store-step h3 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
}

.store-step p {
  color: var(--muted);
  font-size: 15px;
}

.store-loading {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.store:not(.ready) .shop-featured,
.store:not(.ready) .shop-browse,
.store:not(.ready) .store-how {
  display: none;
}

@media (max-width: 720px) {
  .store {
    padding-top: 96px;
  }

  .shop-filter-sort {
    margin-left: 0;
  }

  .shop-sort {
    width: 100%;
  }

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