/* La Fronteriza — cinematic western identity */
:root {
  --bg: #090604;
  --bg2: #100b07;
  --panel: rgba(22, 14, 9, .91);
  --panel2: rgba(40, 25, 15, .91);
  --text: #f5ead6;
  --muted: #bdab90;
  --line: rgba(218, 168, 99, .19);
  --accent: #7d241c;
  --accent2: #d9a35e;
  --glow: rgba(210, 133, 57, .28);
  --frontier-gold: #d8ae72;
  --frontier-gold-bright: #f1d19a;
  --frontier-red: #8f2d24;
  --frontier-ink: #080503;
  --frontier-display: "Copperplate Gothic", "Rockwell Extra Bold", Rockwell, Georgia, serif;
  --frontier-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --modern-radius: 3px;
  --modern-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(172, 88, 35, .2), transparent 38%),
    linear-gradient(135deg, #0c0704, #040302 70%);
  color: var(--text);
  font-family: var(--frontier-body);
}

body::before {
  opacity: .35;
  background-image:
    repeating-linear-gradient(92deg, rgba(255,255,255,.015) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 20% 30%, rgba(216,174,114,.08), transparent 22%),
    radial-gradient(circle at 80% 70%, rgba(125,36,28,.08), transparent 26%);
  background-size: auto;
  mask-image: none;
}

.topbar {
  height: 88px;
  flex-basis: 88px;
  padding: 0 clamp(16px, 2.3vw, 38px);
  gap: clamp(12px, 2vw, 28px);
  background: linear-gradient(180deg, rgba(15,9,5,.97), rgba(7,4,3,.93));
  border-bottom: 1px solid rgba(222, 173, 106, .26);
  box-shadow: 0 16px 54px rgba(0,0,0,.52), inset 0 -1px rgba(255,225,170,.03);
  backdrop-filter: blur(22px) saturate(.9);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--frontier-gold), transparent);
  opacity: .58;
}

.brand {
  min-width: 230px;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(226,183,119,.34);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 3px rgba(116,68,31,.18), 0 10px 28px rgba(0,0,0,.45);
  filter: sepia(.08) saturate(.95) contrast(1.08);
}

.brand strong {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: .28em;
  color: #eee0c9;
  font-family: var(--frontier-display);
  font-size: clamp(14px, 1.28vw, 19px);
  letter-spacing: .1em;
  text-shadow: 0 2px 10px #000;
}

.brand strong em {
  color: var(--frontier-gold-bright);
  font-style: normal;
}

.brand strong small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #8e7b62;
  font-family: var(--frontier-body);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .22em;
}

.nav {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-btn {
  min-height: 42px;
  padding: 0 clamp(8px, .85vw, 14px);
  border-radius: 0;
  color: #a9977e;
  font-size: 9px;
  letter-spacing: .11em;
}

.nav-btn::before {
  content: "◆";
  margin-right: 8px;
  color: #6d5b45;
  font-size: 5px;
  opacity: 0;
  transform: scale(.4);
  transition: .2s ease;
}

.nav-btn:hover {
  color: var(--frontier-gold-bright);
  background: rgba(216,174,114,.045);
  transform: none;
}

.nav-btn.active {
  color: var(--frontier-gold-bright);
  background: transparent;
  box-shadow: none;
}

.nav-btn.active::before { opacity: 1; transform: scale(1); }

.nav-btn.active::after {
  display: block;
  left: 12px;
  right: 12px;
  bottom: -23px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--frontier-gold), transparent);
  box-shadow: 0 0 12px rgba(216,174,114,.4);
}

.icon-btn,
.steam-profile-btn,
.lang-select,
.mobile-menu {
  border-color: rgba(216,174,114,.18);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(70,44,25,.26), rgba(18,11,7,.72));
  color: #d6c3a7;
  backdrop-filter: blur(14px);
}

.icon-btn:hover,
.steam-profile-btn:hover,
.mobile-menu:hover {
  border-color: rgba(226,179,108,.64);
  background: rgba(128,71,32,.24);
  color: #fff0cf;
  transform: translateY(-1px);
}

.steam-profile-btn img { border: 1px solid rgba(216,174,114,.26); }

#page-home,
#page-home .home { background: #030201; }

#page-home .home-video {
  z-index: 1;
  filter: saturate(.82) contrast(1.08) brightness(.75) sepia(.08);
}

#page-home .home-fallback {
  z-index: 0;
  filter: saturate(.78) contrast(1.08) brightness(.64) sepia(.13);
}

#page-home .home-tint {
  z-index: 2;
  opacity: 1;
  mix-blend-mode: normal;
  background:
    linear-gradient(90deg, rgba(4,2,1,.84) 0%, rgba(5,3,2,.52) 37%, rgba(5,3,2,.1) 64%, rgba(5,3,2,.32) 100%),
    linear-gradient(180deg, rgba(0,0,0,.24), transparent 35%, rgba(0,0,0,.5));
}

.frontier-hero {
  position: absolute;
  z-index: 6;
  left: clamp(24px, 6.2vw, 105px);
  top: 50%;
  width: min(650px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #f5ead7;
  text-shadow: 0 3px 18px rgba(0,0,0,.75);
  animation: frontierHeroIn .9s cubic-bezier(.18,.75,.2,1) both;
}

@keyframes frontierHeroIn {
  from { opacity: 0; transform: translateY(calc(-50% + 22px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

.frontier-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--frontier-gold-bright);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.frontier-eyebrow::before {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--frontier-gold));
}

.frontier-hero h1 {
  margin: 16px 0 10px;
  color: #efe2cc;
  font-family: var(--frontier-display);
  font-size: clamp(48px, 8vw, 112px);
  line-height: .78;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.frontier-hero h1 span {
  display: block;
  margin-left: .68em;
  color: var(--frontier-gold-bright);
  font-size: .57em;
  letter-spacing: .045em;
}

.frontier-hero p {
  max-width: 520px;
  margin: 22px 0 0;
  color: #d0bea3;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

.frontier-motto {
  margin-top: 17px;
  color: #9c8465;
  font-family: var(--frontier-display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.frontier-actions {
  display: flex;
  gap: 11px;
  margin-top: 28px;
}

.frontier-cta {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225,180,111,.48);
  background: linear-gradient(135deg, #8b3024, #5d1814);
  color: #fff3db;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0,0,0,.36);
  transition: .22s ease;
}

.frontier-cta.secondary { background: rgba(12,8,5,.58); }
.frontier-cta:hover { transform: translateY(-2px); border-color: var(--frontier-gold-bright); filter: brightness(1.08); }

.frontier-est {
  position: absolute;
  right: clamp(24px, 3vw, 54px);
  bottom: 34px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(216,174,114,.33);
  border-radius: 50%;
  color: #d3b382;
  font-family: var(--frontier-display);
  font-size: 11px;
  letter-spacing: .12em;
  text-align: center;
  background: rgba(8,5,3,.42);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 5px rgba(216,174,114,.04);
}

.video-sound-control {
  left: clamp(24px, 6.2vw, 105px);
  bottom: 24px;
  z-index: 8;
  border-color: rgba(216,174,114,.25);
  border-radius: 2px;
  background: rgba(8,5,3,.76);
  box-shadow: 0 12px 36px rgba(0,0,0,.34);
}

.video-sound-control button {
  border-color: rgba(216,174,114,.24);
  border-radius: 50%;
  background: #2c1b10;
  color: var(--frontier-gold-bright);
}

.sound-block span { color: #a89475; }
.sound-block input { accent-color: #b26f35; }

@media (max-width: 1180px) {
  .brand { min-width: auto; }
  .brand strong { display: none; }
  .nav-btn { padding-inline: 8px; }
  .nav-btn::before { display: none; }
}

@media (max-width: 760px) {
  .topbar { height: 72px; flex-basis: 72px; }
  .brand img { width: 48px; height: 48px; }
  .nav { top: 72px; margin: 0; padding: 9px; border-radius: 0; background: rgba(10,6,4,.98); }
  .nav-btn.active { background: rgba(124,57,31,.25); }
  .nav-btn.active::after { display: none; }
  .frontier-hero { top: 46%; left: 24px; width: calc(100% - 48px); }
  .frontier-hero h1 { font-size: clamp(50px, 17vw, 76px); }
  .frontier-hero p { max-width: 92%; font-size: 15px; }
  .frontier-actions { flex-direction: column; align-items: stretch; width: min(310px, 100%); }
  .frontier-est { display: none; }
  .video-sound-control { left: 24px; bottom: 18px; }
  .wolf-watermark { display: none; }
}

/* WolfCore / Framework: portada, catálogo, medios y publicación */
#page-store.framework-redesigned {
  background:
    radial-gradient(circle at 50% 10%, rgba(137,78,33,.2), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.008) 0 1px, transparent 1px 6px),
    #050403 !important;
}
#page-store.framework-redesigned::before { display: none !important; }
.framework-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; color: #d9c7af; }
.framework-hero {
  position: relative;
  height: clamp(330px, 26.4vw, 442px);
  overflow: hidden;
  border-bottom: 1px solid #9d6330;
  background: #070504;
  box-shadow: inset 0 -70px 74px rgba(0,0,0,.5), 0 12px 35px rgba(0,0,0,.7);
}
.framework-hero > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-4.5vw);
  filter: saturate(1.03) contrast(1.03);
}
.framework-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.2), transparent 28% 72%, rgba(0,0,0,.2)), linear-gradient(180deg, transparent 66%, rgba(0,0,0,.72));
  box-shadow: inset 0 0 90px rgba(0,0,0,.52);
  pointer-events: none;
}
.framework-pillars {
  width: min(1600px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #7f512a;
  background: rgba(5,4,3,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.72);
}
.framework-pillars article {
  min-width: 0;
  min-height: 178px;
  padding: 20px 16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
  border-right: 1px solid rgba(156,99,48,.52);
  background: radial-gradient(circle at 50% 0, rgba(168,101,42,.12), transparent 60%);
}
.framework-pillars article:last-child { border-right: 0; }
.framework-pillars article > span { color: #f0c697; font-size: 2.1rem; line-height: 1; text-shadow: 0 0 22px rgba(202,125,56,.28); }
.framework-pillars h2 { margin: 0; color: #e7c294 !important; font-family: var(--frontier-display); font-size: clamp(.77rem, 1.05vw, 1.05rem); letter-spacing: .04em; text-transform: uppercase; }
.framework-pillars p { margin: 0; color: #b4aa9d; font-family: Georgia, serif; font-size: .72rem; line-height: 1.55; }
.framework-hero-action { padding: 12px 20px 20px; display: grid; place-items: center; border-bottom: 1px solid rgba(149,91,42,.5); }
.framework-hero-action button,
.framework-publisher button[type="submit"] {
  min-width: min(360px, 100%);
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid #c99155;
  color: #f3d5ad;
  background: linear-gradient(180deg, #744723, #26180f);
  box-shadow: inset 0 0 0 3px #0b0907, 0 0 22px rgba(176,103,42,.25);
  font-family: var(--frontier-display);
  font-size: .9rem;
  letter-spacing: .08em;
}
.framework-hero-action button:hover,
.framework-publisher button[type="submit"]:hover { background: linear-gradient(180deg, #966036, #352014); transform: translateY(-1px); }
.framework-hero-action b { margin-left: 22px; font-size: 1.4rem; }
.framework-library,
.framework-publisher { width: min(1500px, calc(100% - 36px)); margin: 28px auto; }
.framework-library > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(176,113,53,.58);
}
.framework-library > header > div:first-child > span,
.framework-publisher-heading > span { color: #c59258; font-family: var(--frontier-display); font-size: .65rem; letter-spacing: .16em; }
.framework-library h1 { margin: 6px 0 4px; color: #ecd1aa !important; font-family: var(--frontier-display); font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: .02em; }
.framework-library header p,
.framework-publisher-heading p { margin: 0; color: #aaa094; font-family: Georgia, serif; font-size: .8rem; line-height: 1.55; }
.framework-tools { display: flex; align-items: end; gap: 10px; }
.framework-tools label { display: grid; gap: 5px; color: #b88750; font-size: .55rem; font-weight: 800; letter-spacing: .12em; }
.framework-tools input,
.framework-tools select,
.framework-publisher :is(input,select,textarea) {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(152,97,47,.55);
  outline: none;
  background: #090807;
  color: #ead9c3;
}
.framework-tools input:focus,
.framework-tools select:focus,
.framework-publisher :is(input,select,textarea):focus { border-color: #d19250; box-shadow: 0 0 0 2px rgba(190,119,51,.12); }
.framework-catalog-status { margin: 10px 0 14px; color: #8f8578; font-size: .62rem; letter-spacing: .06em; }
.framework-script-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.framework-script-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #79502c;
  background: linear-gradient(180deg, rgba(15,13,11,.98), rgba(5,5,4,.98));
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.68), 0 12px 30px rgba(0,0,0,.42);
}
.framework-script-previews {
  height: 225px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #986034 #111;
  border-bottom: 1px solid rgba(149,91,43,.55);
  background: #080604;
}
.framework-script-previews > :is(img,video) { min-width: 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.framework-script-previews.fallback { display: grid; place-items: center; background: radial-gradient(circle, rgba(174,103,43,.18), transparent 60%), #080604; }
.framework-script-previews.fallback img { width: 140px; min-width: 140px; height: 140px; object-fit: contain; }
.framework-script-body { padding: 19px; display: flex; flex: 1; flex-direction: column; }
.framework-script-body > span { color: #c5894c; font-size: .55rem; font-weight: 800; letter-spacing: .13em; }
.framework-script-body h2 { margin: 7px 0 1px; color: #edd0a9 !important; font-family: var(--frontier-display); font-size: 1.45rem; }
.framework-script-body > b { color: #a47b50 !important; font-family: Georgia, serif; font-size: .7rem; font-weight: 500; }
.framework-script-body > p { margin: 13px 0; color: #b4aa9d; font-family: Georgia, serif; font-size: .77rem; line-height: 1.6; }
.framework-changelog { margin-top: auto; padding: 13px; border: 1px solid rgba(132,89,48,.42); background: rgba(0,0,0,.3); }
.framework-changelog > strong { color: #d7a874 !important; font-family: var(--frontier-display); font-size: .65rem; letter-spacing: .09em; }
.framework-changelog ul { margin: 9px 0 0; padding-left: 17px; color: #afa597; font-family: Georgia, serif; font-size: .7rem; line-height: 1.55; }
.framework-changelog li::marker { color: #c78747; }
.framework-requirements { margin-top: 9px; display: block; color: #82786c; font-size: .55rem; letter-spacing: .05em; }
.framework-downloads { margin-top: 13px; display: grid; gap: 7px; }
.framework-download {
  min-height: 41px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ad7440;
  color: #f0d0a7;
  background: linear-gradient(180deg, #5c381d, #25160d);
  font-family: var(--frontier-display);
  font-size: .7rem;
  letter-spacing: .05em;
}
button.framework-download { width: 100%; cursor: pointer; }
.framework-download:hover { background: linear-gradient(180deg, #81502c, #332014); }
.framework-download.secondary { background: #0b0907; }
.framework-empty { padding: 44px; border: 1px dashed rgba(158,101,48,.45); color: #998d80; text-align: center; }
.framework-publisher {
  border: 1px solid #84532b;
  background: linear-gradient(145deg, rgba(18,14,11,.98), rgba(6,5,4,.98));
  box-shadow: inset 0 0 0 3px #050403, 0 18px 50px rgba(0,0,0,.5);
}
.framework-publisher[hidden] { display: none !important; }
.framework-publisher summary { padding: 18px 22px; cursor: pointer; color: #e5bd8e; font-family: var(--frontier-display); font-size: .9rem; letter-spacing: .08em; }
.framework-publisher summary span { margin-left: 12px; color: #82776c; font-family: Arial, sans-serif; font-size: .58rem; letter-spacing: .03em; }
.framework-publisher form { padding: 22px; display: grid; grid-template-columns: 1fr .55fr .8fr; gap: 13px; border-top: 1px solid rgba(147,91,42,.45); }
.framework-publisher label { display: grid; gap: 6px; color: #c79a68; font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.framework-publisher .full { grid-column: 1 / -1; }
.framework-publisher textarea { resize: vertical; line-height: 1.5; }
.framework-file-drop { padding: 17px; border: 1px dashed rgba(198,133,67,.65); background: rgba(0,0,0,.3); text-align: center; cursor: pointer; }
.framework-file-drop input { padding: 9px; }
.framework-file-drop > span { color: #d6b085; font-family: Georgia, serif; font-size: .75rem; text-transform: none; }
.framework-file-drop > small { color: #81766b; font-size: .56rem; }
.framework-selected-files { display: grid; gap: 5px; }
.framework-selected-files span { padding: 7px 10px; border-left: 2px solid #a66b35; color: #9f968a; background: rgba(0,0,0,.25); font-size: .62rem; }
.framework-upload-progress { height: 34px; position: relative; overflow: hidden; border: 1px solid rgba(160,103,51,.5); background: #080706; }
.framework-upload-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #70411f, #c28549); transition: width .2s ease; }
.framework-upload-progress span { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; color: #f5dcc0; font-size: .62rem; }
.framework-upload-message { margin: 0; color: #d5a46d; font-size: .72rem; text-align: center; }
.framework-footer {
  min-height: 72px;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid #855129;
  color: #938779;
  background: #030302;
  font-family: Georgia, serif;
  font-size: .58rem;
  line-height: 1.55;
  letter-spacing: .1em;
}
.framework-footer strong { color: #c6955e !important; font-family: var(--frontier-display); font-size: .75rem; letter-spacing: .18em; }
.framework-footer span:last-child { text-align: right; }

/* El arte de referencia ya contiene el título; evitamos superponer una segunda marca. */
.frontier-status-hero-copy { display: none !important; }
.frontier-status-hero {
  min-height: clamp(275px, 24vw, 405px) !important;
  background-image: url("status-reference.png") !important;
  background-repeat: no-repeat !important;
  background-size: 100% auto !important;
  background-position: center -4.5vw !important;
}
#page-contact.support-redesigned::before,
#page-contact.support-redesigned > :not(.support-content) { display: none !important; }
.support-hero-reference {
  height: clamp(285px, 19.2vw, 365px) !important;
  background-size: 100% auto !important;
  background-position: center -4.5vw !important;
}

@media (max-width: 1180px) {
  .framework-pillars { grid-template-columns: repeat(3, 1fr); }
  .framework-pillars article:nth-child(3n) { border-right: 0; }
  .framework-pillars article:nth-child(-n+3) { border-bottom: 1px solid rgba(156,99,48,.52); }
  .framework-script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .framework-hero { height: 300px; }
  .framework-hero > img { width: auto; height: 360px; min-width: 100%; transform: translate(-50%, -26px); left: 50%; max-width: none; }
  .framework-pillars { width: calc(100% - 20px); grid-template-columns: repeat(2, 1fr); }
  .framework-pillars article { min-height: 150px; border-bottom: 1px solid rgba(156,99,48,.52); }
  .framework-pillars article:nth-child(odd) { border-right: 1px solid rgba(156,99,48,.52); }
  .framework-pillars article:nth-child(even) { border-right: 0; }
  .framework-library > header { align-items: stretch; flex-direction: column; }
  .framework-tools { align-items: stretch; flex-direction: column; }
  .framework-script-grid { grid-template-columns: 1fr; }
  .framework-publisher form { grid-template-columns: 1fr; }
  .framework-publisher form > * { grid-column: 1 !important; }
  .framework-footer { grid-template-columns: 1fr; gap: 9px; text-align: center; }
  .framework-footer span:last-child { text-align: center; }
  .frontier-status-hero,
  .support-hero-reference { background-size: auto 355px !important; background-position: center -27px !important; }
}

@media (max-width: 480px) {
  .actions .icon-btn:nth-of-type(1),
  .actions .icon-btn:nth-of-type(2),
  .actions .lang-select { display: none; }
  .frontier-eyebrow { font-size: 8px; letter-spacing: .18em; }
  .frontier-eyebrow::before { width: 28px; }
  .frontier-hero h1 { margin-top: 13px; }
  .frontier-hero p { line-height: 1.55; }
  .frontier-motto { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .frontier-hero { animation: none; }
}

/* Interior pages */
.page:not(#page-home) {
  background:
    radial-gradient(circle at 12% 8%, rgba(145, 73, 31, .13), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(109, 32, 25, .13), transparent 28%),
    linear-gradient(145deg, #100b07, #060402 72%);
}

.page:not(#page-home)::before {
  content: "";
  position: fixed;
  inset: 88px 0 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 1px, transparent 1px 7px),
    linear-gradient(120deg, transparent 0 49.8%, rgba(218,168,99,.055) 50%, transparent 50.2%);
}

.page:not(#page-home) > .content,
.page:not(#page-home) .content {
  position: relative;
  z-index: 2;
}

.content {
  width: min(1280px, calc(100% - 64px));
  padding: 64px 0 92px;
}

.head {
  position: relative;
  align-items: end;
  margin-bottom: 34px;
  padding: 0 0 24px 24px;
  border-bottom: 1px solid rgba(216,174,114,.15);
}

.head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--frontier-gold), rgba(143,45,36,.35));
  box-shadow: 0 0 18px rgba(216,174,114,.2);
}

.head::after {
  content: "✦";
  position: absolute;
  right: 0;
  bottom: -8px;
  padding-left: 13px;
  background: #080503;
  color: #8a6740;
  font-size: 12px;
}

.head h1,
h1,
.panel h2,
.body h3,
.social h3,
.community-hero h2,
.server-feature-card h3,
.rule-card h3,
.gallery-info h3,
.modal-card h2,
.rust-logs-heading h2 {
  font-family: var(--frontier-display);
}

.head h1,
h1 {
  margin-top: 10px;
  color: #f0e1c7;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: .9;
  letter-spacing: -.045em;
  text-shadow: 0 4px 28px rgba(0,0,0,.48);
}

.head p {
  max-width: 560px;
  color: #bba98d;
  font-size: 1rem;
  line-height: 1.72;
}

.kicker,
.body small,
.social > span,
.server-feature-card > span,
.gallery-info > small,
.rule-card > span {
  color: var(--frontier-gold);
  font-size: .72rem;
  letter-spacing: .2em;
}

.panel,
.card,
.stat,
.community-box,
.contact-form,
.contact-info,
.server-feature-card,
.rule-card,
.gallery-card,
.social,
.support-entry,
.winner-card,
.member-card,
.admin-card,
.media-upload,
.bot-rust-lock,
.rust-bot-chat,
.rust-logs-panel {
  position: relative;
  border: 1px solid rgba(216,174,114,.18);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(45,28,17,.88), rgba(13,9,6,.94)),
    var(--panel);
  box-shadow: 0 26px 72px rgba(0,0,0,.4), inset 0 1px rgba(255,226,174,.035);
  backdrop-filter: blur(16px) saturate(.86);
}

.panel::before,
.card::before,
.social::before,
.server-feature-card::before,
.rule-card::before,
.contact-form::before,
.contact-info::before,
.community-hero::before,
.rust-bot-chat::before,
.rust-logs-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -1px;
  left: 24px;
  width: 72px;
  height: 1px;
  background: var(--frontier-gold);
  box-shadow: 0 0 12px rgba(216,174,114,.28);
  pointer-events: none;
}

.panel { padding: clamp(24px, 3vw, 38px); }
.panel h2 { margin: 9px 0 14px; color: #ead8bc; font-size: clamp(28px, 3vw, 42px); }
.panel p,
.body p,
.server-feature-card p,
.rule-card p,
.community-box p,
.contact-info p,
.social p,
.gallery-info p,
.bot-rust-lock p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.68;
}

.grid,
.free-grid,
.server-feature-grid,
.social-grid,
.gallery,
.stats,
.server-grid,
.contact-grid {
  gap: 20px;
}

.grid,
.free-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { overflow: hidden; }
.card:hover,
.gallery-card:hover,
.social:hover,
.member-card:hover,
.winner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226,179,108,.48);
  box-shadow: 0 32px 86px rgba(0,0,0,.55), 0 0 0 1px rgba(151,77,34,.14);
}

.cover {
  height: 210px;
  border-bottom: 1px solid rgba(216,174,114,.16);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(180,102,45,.25), transparent 44%),
    linear-gradient(145deg, #24150d, #080503);
}

.cover::before {
  background: linear-gradient(180deg, rgba(0,0,0,.02) 45%, rgba(6,3,2,.76));
}

.cover span {
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  border-color: rgba(216,174,114,.24);
  background: rgba(10,6,4,.75);
  color: #dbc095;
  font-size: .68rem;
  letter-spacing: .16em;
}

.cover b { color: var(--frontier-gold); text-shadow: 0 0 24px rgba(216,174,114,.25); }
.body { padding: 24px; }
.body h3 { margin: 11px 0 9px; color: #ecdcc2; font-size: 1.45rem; }
.body p { min-height: 70px; }
.meta { gap: 7px; margin: 17px 0; }
.meta span,
.role-badge {
  padding: 6px 8px;
  border-color: rgba(216,174,114,.15);
  border-radius: 1px;
  color: #b7a589;
  font-size: .72rem;
  background: rgba(216,174,114,.035);
}

.bottom { padding-top: 16px; border-top-color: rgba(216,174,114,.14); }
.bottom strong { color: var(--frontier-gold-bright); font-family: var(--frontier-display); }

.action,
.bottom a,
.download,
.epic-btn,
.gallery-download,
.discord-join-epic,
.provider,
button.save,
.contact-form button,
.admin-actions button,
.rust-chat-form button,
.support-ai-form button {
  border: 1px solid rgba(225,180,111,.42);
  border-radius: 1px;
  background: linear-gradient(135deg, #8c3025, #5f1915);
  color: #fff1d5;
  box-shadow: 0 12px 28px rgba(31,10,7,.32), inset 0 1px rgba(255,235,197,.08);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.action:hover,
.bottom a:hover,
.download:hover,
.epic-btn:hover,
.gallery-download:hover,
.discord-join-epic:hover,
.provider:hover,
button.save:hover,
.contact-form button:hover,
.admin-actions button:hover,
.rust-chat-form button:hover,
.support-ai-form button:hover {
  border-color: var(--frontier-gold-bright);
  filter: brightness(1.08);
  box-shadow: 0 17px 38px rgba(35,10,6,.45), 0 0 18px rgba(216,174,114,.12);
}

.server-tabs,
.community-tabs,
.rules-tabs,
.store-tabs,
.gallery-tabs {
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  gap: 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  border: 1px solid rgba(216,174,114,.16);
  border-radius: 1px;
  background: rgba(8,5,3,.7);
}

.server-tab,
.store-tab,
.gallery-tab {
  min-height: 42px;
  padding-inline: 15px;
  border-radius: 1px;
  color: #a9977d;
  font-size: .74rem;
  letter-spacing: .08em;
}

.server-tab:hover,
.store-tab:hover,
.gallery-tab:hover { color: #f5e7cc; background: rgba(216,174,114,.055); }
.server-tab.active,
.store-tab.active,
.gallery-tab.active {
  background: linear-gradient(135deg, rgba(130,49,36,.94), rgba(80,24,18,.94));
  color: #fff0d1;
  box-shadow: inset 0 0 0 1px rgba(219,172,103,.28), 0 8px 20px rgba(0,0,0,.24);
}

.server-bg img,
.community-bg img,
.socials-bg img,
.raffle-bg img {
  filter: sepia(.18) saturate(.72) contrast(1.1) brightness(.48);
}

.server-bg::after,
.community-bg::after,
.socials-bg::after,
.raffle-bg::after {
  background:
    radial-gradient(circle at 50% 35%, rgba(113,62,26,.08), rgba(5,3,2,.6) 58%, rgba(3,2,1,.92) 100%),
    linear-gradient(180deg, rgba(30,15,7,.34), rgba(2,1,1,.78));
}

.server-grid { align-items: stretch; }
.server-grid > * { min-height: 420px; }
.status { gap: 9px; }
.status div,
.req {
  border-color: rgba(216,174,114,.16);
  border-radius: 1px;
  background: rgba(216,174,114,.035);
}
.status span { color: #907e65; font-size: .72rem; letter-spacing: .09em; }
.status strong { margin-top: 8px; color: #e5d2b3; font-size: .93rem; }

.server-wolf.frontier-art {
  position: relative;
  overflow: hidden;
  align-content: center;
  border-color: rgba(216,174,114,.25);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 45%, rgba(150,75,30,.26), transparent 55%),
    #090603;
}

.server-wolf.frontier-art::after {
  content: "HONOR · LEALTAD · LIBERTAD";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: rgba(237,207,158,.72);
  font-family: var(--frontier-display);
  font-size: .66rem;
  letter-spacing: .2em;
  text-align: center;
}

.frontier-art img {
  width: min(84%, 450px) !important;
  max-height: 330px !important;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.48)) sepia(.08) saturate(.9) !important;
}

.frontier-title {
  color: #ead5b2;
  font-family: var(--frontier-display);
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: .1em;
}
.frontier-year { color: var(--frontier-gold); font-size: .82rem; }

.community-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(216,174,114,.2);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 32%, rgba(163,86,36,.23), transparent 36%),
    linear-gradient(160deg, rgba(40,24,14,.92), rgba(8,5,3,.96));
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
}

.community-hero img {
  width: min(70%, 500px) !important;
  height: auto !important;
  max-height: 330px !important;
  margin-bottom: 24px;
  object-fit: contain !important;
  filter: drop-shadow(0 24px 42px rgba(0,0,0,.55)) sepia(.08) saturate(.92) !important;
}

.community-hero h2 {
  margin: 10px 0;
  color: #edddc3;
  font-size: clamp(32px, 4.2vw, 54px);
  letter-spacing: -.02em;
}
.community-hero p { max-width: 680px; font-size: 1rem; }
.discord-join-epic { min-width: 270px; min-height: 52px; }
.community-hero small { color: #9e8a6c; font-size: .75rem; }

.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 34px 18px; text-align: left; }
.stat strong {
  color: var(--frontier-gold-bright);
  font-family: var(--frontier-display);
  font-size: 2.4rem;
}
.stat span { color: var(--muted); font-size: .78rem; letter-spacing: .08em; }

.community-box { padding: 28px; }
.community-box p { max-width: 720px; }

.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-card { overflow: hidden; }
.gallery-shot {
  height: 230px;
  border-radius: 0;
  border-bottom-color: rgba(216,174,114,.14);
  background: radial-gradient(circle, rgba(166,84,35,.18), transparent 58%), #090603;
}
.gallery-shot::before { background: linear-gradient(180deg, transparent 50%, rgba(5,3,2,.64)); }
.gallery-info { padding: 21px; }
.gallery-info h3 { color: #ebdac0; font-size: 1.3rem; }

.social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.social { min-height: 270px; padding: 26px; }
.social-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  border: 1px solid rgba(216,174,114,.32);
  border-radius: 50%;
  color: var(--frontier-gold-bright);
  background: rgba(216,174,114,.04);
  font-family: var(--frontier-display);
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 5px rgba(216,174,114,.025);
}
.social h3 { color: #ead9bf; font-size: 1.35rem; }
.social b { color: var(--frontier-gold); font-size: .74rem; letter-spacing: .1em; }

.contact-form,
.contact-info { padding: 30px; }
input,
select,
textarea,
.whitelist-form input,
.whitelist-form select,
.whitelist-form textarea,
.admin-field input,
.admin-field textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(216,174,114,.18);
  border-radius: 1px;
  background: rgba(9,6,4,.68);
  color: #f0dfc5;
  font-size: .92rem;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(225,180,111,.66);
  box-shadow: 0 0 0 3px rgba(176,107,50,.12);
  background: rgba(25,15,9,.82);
}

.support-ai-head,
.rust-chat-head {
  border-bottom-color: rgba(216,174,114,.13);
  background: linear-gradient(90deg, rgba(141,62,32,.18), transparent);
}
.support-ai-avatar,
.rust-chat-avatar {
  border: 1px solid rgba(221,175,106,.38);
  border-radius: 50%;
  background: linear-gradient(145deg, #8c3528, #4f1712);
  color: #ffe8bd;
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
}
.support-ai-message,
.rust-chat-message > div {
  border-color: rgba(216,174,114,.12);
  border-radius: 2px 13px 13px 13px;
  background: rgba(216,174,114,.045);
  color: #e7d8c1;
  font-size: .9rem;
}
.support-ai-message.user,
.rust-chat-message.user > div {
  border-radius: 13px 2px 13px 13px;
  border-color: rgba(216,174,114,.28);
  background: linear-gradient(135deg, #803027, #521814);
}
.support-ai-prompts button,
.rust-chat-suggestions button {
  border-color: rgba(216,174,114,.24);
  background: rgba(216,174,114,.055);
  color: #dcc7a6;
  font-size: .72rem;
}
.support-ai-prompts button:hover,
.rust-chat-suggestions button:hover {
  border-color: rgba(225,180,111,.6);
  background: rgba(216,174,114,.1);
}

.rules-grid { gap: 18px; }
.rule-card { padding: 26px; }
.rule-card h3 { color: #e8d6bb; font-size: 1.28rem; }

.members-grid { gap: 16px; }
.member-card { padding: 18px; }
.member-avatar { border-color: rgba(216,174,114,.24); }
.member-name { color: #ecdcc2; font-size: .95rem; }
.member-user,
.member-activity { font-size: .78rem; }

.winner-card { padding: 20px; }
.winner-card h3 { color: #e9d8bc; font-family: var(--frontier-display); font-size: 1.1rem; }
.winner-card strong { color: var(--frontier-gold); font-size: .86rem; }

.raffle-bg::after { backdrop-filter: saturate(.78) contrast(1.04); }
.raffle-side-art { filter: sepia(.15) saturate(.75) drop-shadow(0 0 26px rgba(216,174,114,.2)) drop-shadow(0 18px 22px rgba(0,0,0,.7)); }
.raffle-console,
.raffle-admin-panel,
.raffle-stock-panel,
.stock-panel {
  border-color: rgba(216,174,114,.18) !important;
  border-radius: 2px !important;
  background: linear-gradient(145deg, rgba(42,26,16,.92), rgba(10,7,5,.95)) !important;
}
.raffle-wheel { filter: sepia(.08) saturate(.88); }
.skin-showcase { filter: sepia(.05) saturate(.9); }

.light-panel,
.modal-card {
  border: 1px solid rgba(216,174,114,.28);
  border-radius: 2px;
  background: linear-gradient(145deg, #24160e, #080503);
  box-shadow: 0 28px 80px rgba(0,0,0,.58);
}
.light-option { color: #dfcfb5; background: rgba(216,174,114,.04); }
.light-option.active { border-color: rgba(216,174,114,.3); }
.modal-card img { border-radius: 50%; border: 1px solid rgba(216,174,114,.28); }
.modal-card h2 { color: #ecdbc1; }

.wolf-watermark {
  right: 16px;
  bottom: 13px;
  border-color: rgba(216,174,114,.15);
  border-radius: 1px;
  background: rgba(8,5,3,.7);
  color: rgba(218,202,176,.7);
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
}
.wolf-watermark strong { color: #dfc9a5; }
.wolf-watermark b { color: var(--frontier-gold-bright); }

body.music-needs-click .video-sound-control {
  border-color: rgba(233,176,93,.62);
  animation: musicHint 1.7s ease-in-out infinite;
}
@keyframes musicHint {
  50% { box-shadow: 0 0 0 5px rgba(216,174,114,.055), 0 14px 42px rgba(0,0,0,.4); }
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #080503; }
::-webkit-scrollbar-thumb {
  border: 3px solid #080503;
  border-radius: 0;
  background: linear-gradient(#b27a43, #713121);
}

body.day {
  --bg: #c6ad83;
  --bg2: #d4bc92;
  --panel: rgba(227, 205, 168, .9);
  --panel2: rgba(239, 220, 186, .92);
  --text: #28170e;
  --muted: #685440;
  --line: rgba(81, 45, 23, .22);
  --accent: #7c2c23;
  --accent2: #8b542a;
  --glow: rgba(116, 69, 32, .2);
}
body.day .page:not(#page-home) {
  background:
    radial-gradient(circle at 12% 8%, rgba(122,73,35,.14), transparent 28%),
    linear-gradient(145deg, #d8c39c, #bfa276);
}
body.day .head::after { background: #cbb187; color: #704524; }
body.day .head h1,
body.day h1,
body.day .panel h2,
body.day .body h3,
body.day .social h3,
body.day .gallery-info h3 { color: #2c190f; text-shadow: none; }
body.day .panel,
body.day .card,
body.day .stat,
body.day .community-box,
body.day .contact-form,
body.day .contact-info,
body.day .server-feature-card,
body.day .rule-card,
body.day .gallery-card,
body.day .social,
body.day .support-entry,
body.day .winner-card,
body.day .member-card,
body.day .admin-card,
body.day .media-upload,
body.day .bot-rust-lock {
  background: linear-gradient(145deg, rgba(242,224,192,.92), rgba(207,179,135,.92));
  box-shadow: 0 24px 62px rgba(68,39,20,.18);
}
body.day input,
body.day select,
body.day textarea { background: rgba(255,245,221,.55); color: #2c190f; }

@media (max-width: 1050px) {
  .content { width: min(100% - 36px, 1280px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page:not(#page-home)::before { inset: 72px 0 0; }
  .content { width: min(100% - 28px, 1280px); padding: 42px 0 78px; }
  .head { align-items: flex-start; gap: 14px; padding-left: 18px; }
  .head h1,
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .head p { font-size: .95rem; }
  .grid,
  .free-grid,
  .gallery,
  .social-grid,
  .stats { grid-template-columns: 1fr; }
  .cover { height: 220px; }
  .body p { min-height: 0; }
  .server-grid > * { min-height: auto; }
  .community-hero { min-height: 510px; padding: 30px 18px; }
  .community-hero img { width: min(94%, 460px) !important; max-height: 290px !important; }
  .contact-form,
  .contact-info { padding: 22px; }
  .server-tabs,
  .community-tabs,
  .rules-tabs,
  .store-tabs,
  .gallery-tabs { width: 100%; }
}

/* Epic cinematic layer */
.app::before {
  content: "";
  position: fixed;
  inset: 10px;
  z-index: 190;
  pointer-events: none;
  border: 1px solid rgba(226, 177, 104, .075);
  box-shadow: inset 0 0 70px rgba(0,0,0,.24);
}

.topbar {
  height: 94px;
  flex-basis: 94px;
  background:
    linear-gradient(90deg, rgba(102,48,24,.1), transparent 22% 78%, rgba(102,48,24,.1)),
    linear-gradient(180deg, rgba(15,9,5,.985), rgba(6,4,2,.955));
}

.brand img {
  width: 64px;
  height: 64px;
  border-color: rgba(238,194,124,.48);
  box-shadow:
    0 0 0 3px rgba(121,70,31,.22),
    0 0 32px rgba(207,125,49,.16),
    0 14px 32px rgba(0,0,0,.55);
}

.brand strong { font-size: clamp(15px, 1.35vw, 21px); }
.brand strong small { color: #aa8e68; font-size: 8px; }

.nav-btn { min-height: 48px; font-size: .74rem; }
.nav-btn.active::after { bottom: -25px; height: 2px; }

.stage::before,
.stage::after {
  content: "";
  position: fixed;
  z-index: 88;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
}
.stage::before { top: 94px; background: linear-gradient(180deg, rgba(0,0,0,.4), transparent); }
.stage::after { bottom: 0; background: linear-gradient(0deg, rgba(0,0,0,.46), transparent); }

.page.active { animation: epicPageReveal .55s cubic-bezier(.18,.74,.2,1); }
@keyframes epicPageReveal {
  from { opacity: 0; filter: blur(5px); transform: scale(1.008); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.page:not(#page-home)::after {
  content: attr(data-chapter);
  position: fixed;
  z-index: 1;
  top: 112px;
  right: clamp(18px, 3vw, 58px);
  color: transparent;
  font-family: var(--frontier-display);
  font-size: clamp(120px, 17vw, 270px);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(221,174,105,.065);
  pointer-events: none;
}

.content { width: min(1360px, calc(100% - 72px)); padding-top: 72px; }

.head {
  min-height: 158px;
  padding: 18px 0 29px 30px;
  background:
    linear-gradient(90deg, rgba(156,75,32,.09), transparent 46%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.06));
}

.head::before { top: 18px; bottom: 29px; width: 3px; }
.head::after { content: "◆"; color: #b2864f; }

.chapter-badge {
  position: absolute;
  top: -2px;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(216,174,114,.15);
  color: #9d8767;
  background: rgba(8,5,3,.54);
  font-family: var(--frontier-display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.head h1,
h1 {
  color: #f4e4c9;
  font-size: clamp(52px, 6.1vw, 88px);
  text-shadow: 0 5px 34px rgba(0,0,0,.62), 0 0 24px rgba(216,174,114,.05);
}

.head h1::first-letter { color: var(--frontier-gold-bright); }

.panel,
.card,
.stat,
.community-box,
.contact-form,
.contact-info,
.server-feature-card,
.rule-card,
.gallery-card,
.social,
.support-entry,
.winner-card,
.member-card,
.admin-card,
.media-upload,
.bot-rust-lock,
.rust-bot-chat,
.rust-logs-panel,
.community-hero,
.server-wolf.frontier-art {
  background-image:
    linear-gradient(90deg, var(--frontier-gold) 0 22px, transparent 22px),
    linear-gradient(180deg, var(--frontier-gold) 0 22px, transparent 22px),
    linear-gradient(270deg, var(--frontier-gold) 0 22px, transparent 22px),
    linear-gradient(0deg, var(--frontier-gold) 0 22px, transparent 22px),
    linear-gradient(145deg, rgba(48,29,17,.91), rgba(10,7,5,.965));
  background-position: left top, left top, right bottom, right bottom, center;
  background-repeat: no-repeat;
  background-size: 1px 22px, 22px 1px, 1px 22px, 22px 1px, 100% 100%;
}

.card,
.gallery-card,
.social,
.member-card,
.winner-card {
  isolation: isolate;
  transition: transform .36s cubic-bezier(.18,.72,.2,1), border-color .36s ease, box-shadow .36s ease;
}

.card::after,
.gallery-card::after,
.social::after,
.member-card::after,
.winner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 0, rgba(217,153,79,.16), transparent 45%);
  transition: opacity .35s ease;
}

.card:hover,
.gallery-card:hover,
.social:hover,
.member-card:hover,
.winner-card:hover {
  transform: translateY(-9px) scale(1.012);
  border-color: rgba(237,192,122,.58);
  box-shadow: 0 42px 96px rgba(0,0,0,.6), 0 0 28px rgba(174,87,35,.1);
}
.card:hover::after,
.gallery-card:hover::after,
.social:hover::after,
.member-card:hover::after,
.winner-card:hover::after { opacity: 1; }

.cover { height: 232px; }
.cover img:not(.fallback-logo) { transition: transform .7s cubic-bezier(.18,.72,.2,1), filter .5s ease; }
.card:hover .cover img:not(.fallback-logo) { transform: scale(1.055); filter: sepia(.1) saturate(.92) contrast(1.05); }

.action,
.bottom a,
.download,
.epic-btn,
.gallery-download,
.discord-join-epic,
.provider,
button.save,
.contact-form button,
.admin-actions button,
.rust-chat-form button,
.support-ai-form button,
.frontier-cta {
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.action::after,
.bottom a::after,
.download::after,
.epic-btn::after,
.gallery-download::after,
.discord-join-epic::after,
.provider::after,
button.save::after,
.frontier-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,233,190,.2), transparent);
  transition: transform .65s ease;
}
.action:hover::after,
.bottom a:hover::after,
.download:hover::after,
.epic-btn:hover::after,
.gallery-download:hover::after,
.discord-join-epic:hover::after,
.provider:hover::after,
button.save:hover::after,
.frontier-cta:hover::after { transform: translateX(120%) skewX(-18deg); }

.frontier-hero {
  width: min(720px, calc(100% - 48px));
  padding-left: 24px;
  border-left: 2px solid rgba(222,174,103,.52);
}
.frontier-hero::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border: 1px solid rgba(222,174,103,.6);
  background: #130b06;
}

.frontier-hero h1 {
  color: transparent;
  font-size: clamp(62px, 9vw, 132px);
  line-height: .74;
  -webkit-text-stroke: 1px #e5c89b;
  text-shadow: 0 10px 42px rgba(0,0,0,.72), 0 0 22px rgba(218,153,71,.1);
}
.frontier-hero h1 span {
  color: #f0d5a7;
  -webkit-text-stroke: 0;
  text-shadow: 0 7px 34px rgba(0,0,0,.78);
}
.frontier-motto { color: #d4b27f; }

.frontier-hero-crest {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 5vw, 94px);
  top: 50%;
  width: min(37vw, 560px);
  max-height: calc(100% - 130px);
  transform: translateY(-50%);
  object-fit: contain;
  opacity: .42;
  filter: sepia(.12) saturate(.84) contrast(1.08) drop-shadow(0 30px 70px rgba(0,0,0,.72));
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, rgba(0,0,0,.72) 62%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 42%, rgba(0,0,0,.72) 62%, transparent 80%);
  pointer-events: none;
  animation: crestBreathe 7s ease-in-out infinite;
}
@keyframes crestBreathe {
  50% { opacity: .52; transform: translateY(-51%) scale(1.018); }
}

.frontier-est {
  width: 104px;
  height: 104px;
  border-color: rgba(230,183,112,.45);
  box-shadow: inset 0 0 0 5px rgba(216,174,114,.04), 0 0 30px rgba(174,91,34,.11);
}

.frontier-embers {
  position: fixed;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
}
.frontier-embers i {
  position: absolute;
  left: var(--x);
  bottom: -14px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #ffc36f;
  box-shadow: 0 0 7px #d76f24;
  opacity: 0;
  animation: emberRise var(--duration) linear var(--delay) infinite;
}
@keyframes emberRise {
  0% { opacity: 0; transform: translate3d(0,0,0) scale(.5); }
  12% { opacity: .8; }
  62% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(var(--drift),-105vh,0) scale(1.6); }
}

.cinematic-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(116,49,20,.05), rgba(3,2,1,.42) 42%, rgba(0,0,0,.86) 92%),
    linear-gradient(90deg, rgba(0,0,0,.7), transparent 34% 66%, rgba(0,0,0,.7));
  backdrop-filter: saturate(.78) contrast(1.08);
  transition: opacity .8s ease, visibility .8s ease;
}
.cinematic-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: sepia(.08) saturate(.9) contrast(1.1) brightness(.82);
  transform: scale(1.025);
  transition: opacity .65s ease;
}
.cinematic-intro.video-ready .cinematic-video { opacity: 1; }
.cinematic-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.44) 38%, rgba(0,0,0,.08) 68%, rgba(0,0,0,.32) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 36%, rgba(0,0,0,.62));
}
.cinematic-intro.video-error {
  background:
    linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.26)),
    url("la-fronteriza.png") center / cover no-repeat,
    #050301;
}
.cinematic-intro::before,
.cinematic-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8vh;
  z-index: 6;
  background: #000;
}
.cinematic-intro::before { top: 0; }
.cinematic-intro::after { bottom: 0; }
.cinematic-intro.leaving { opacity: 0; visibility: hidden; }

.cinematic-frame {
  position: absolute;
  inset: calc(8vh + 18px) 22px;
  border: 1px solid rgba(225,179,108,.2);
  z-index: 3;
  pointer-events: none;
}
.cinematic-frame::before,
.cinematic-frame::after {
  content: "◆";
  position: absolute;
  top: -9px;
  color: #d2a261;
  font-size: 12px;
  text-shadow: 0 0 16px rgba(222,158,71,.4);
}
.cinematic-frame::before { left: -6px; }
.cinematic-frame::after { right: -6px; }

.cinematic-copy {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 7vw, 120px);
  bottom: clamp(72px, 12vh, 150px);
  width: min(650px, calc(100% - 56px));
  padding: 0 0 0 24px;
  display: grid;
  justify-items: start;
  border-left: 2px solid rgba(227,181,111,.54);
  text-align: left;
  text-shadow: 0 5px 25px rgba(0,0,0,.9);
  animation: cinematicCopyIn 1.15s cubic-bezier(.18,.72,.2,1) both;
}
@keyframes cinematicCopyIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.cinematic-overline {
  color: #d7b27d;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.cinematic-copy > img {
  width: clamp(92px, 9vw, 138px);
  height: clamp(92px, 9vw, 138px);
  margin: 8px 0 0;
  object-fit: contain;
  filter: sepia(.08) saturate(.88) drop-shadow(0 24px 42px rgba(0,0,0,.8));
}
.cinematic-title { display: grid; gap: 4px; }
.cinematic-title small {
  color: #b79d77;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.cinematic-title strong {
  color: #f0d9b1;
  font-family: var(--frontier-display);
  font-size: clamp(46px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.cinematic-copy > p {
  margin: 13px 0 17px;
  color: #c7b496;
  font-size: 1rem;
  letter-spacing: .04em;
}
.cinematic-progress {
  width: min(360px, 80vw);
  height: 1px;
  overflow: hidden;
  background: rgba(216,174,114,.18);
}
.cinematic-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #7f3424, #efc27e);
  box-shadow: 0 0 12px #bd7135;
  animation: introProgress 5.2s linear both;
}
@keyframes introProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cinematic-copy button {
  min-height: 44px;
  margin-top: 19px;
  padding: 0 22px;
  border: 1px solid rgba(231,186,116,.48);
  background: rgba(17,10,6,.72);
  color: #f1d6a8;
  font-family: var(--frontier-display);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: .22s ease;
}
.cinematic-copy button:hover {
  border-color: #f0c681;
  background: linear-gradient(135deg, #8a3528, #541813);
  transform: translateY(-2px);
  box-shadow: 0 15px 38px rgba(0,0,0,.42), 0 0 22px rgba(211,139,61,.12);
}
.cinematic-copy em {
  margin-top: 10px;
  color: #82725c;
  font-size: .68rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand { cursor: pointer; outline: none; }
.brand:focus-visible {
  outline: 2px solid rgba(234,190,120,.68);
  outline-offset: 6px;
}

body[data-route]:not([data-route="home"]) .frontier-embers { opacity: .55; }

body.intro-active .topbar { transform: translateY(-110%); opacity: 0; }
body.intro-active .frontier-hero,
body.intro-active .frontier-est { opacity: 0; }
body.intro-finished .topbar { animation: topbarReturn .75s cubic-bezier(.18,.72,.2,1) both; }
body.intro-finished .frontier-hero { animation: heroReturn 1s .12s cubic-bezier(.18,.72,.2,1) both; }
@keyframes topbarReturn { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes heroReturn { from { opacity: 0; transform: translateY(calc(-50% + 28px)); } to { opacity: 1; transform: translateY(-50%); } }

.community-hero {
  min-height: 620px;
  background-image:
    linear-gradient(90deg, var(--frontier-gold) 0 28px, transparent 28px),
    linear-gradient(180deg, var(--frontier-gold) 0 28px, transparent 28px),
    linear-gradient(270deg, var(--frontier-gold) 0 28px, transparent 28px),
    linear-gradient(0deg, var(--frontier-gold) 0 28px, transparent 28px),
    radial-gradient(circle at 50% 33%, rgba(172,91,36,.28), transparent 38%),
    linear-gradient(160deg, rgba(44,25,14,.94), rgba(7,5,3,.98));
  background-size: 1px 28px, 28px 1px, 1px 28px, 28px 1px, 100% 100%, 100% 100%;
}
.community-hero img { width: min(72%, 570px) !important; max-height: 370px !important; }

.gallery-shot { height: 260px; }
.social { min-height: 300px; }

@media (max-width: 1180px) {
  .frontier-hero-crest { right: 20px; width: min(34vw, 430px); opacity: .3; }
}

@media (max-width: 900px) {
  .frontier-hero-crest { display: none; }
  .frontier-hero { width: min(680px, calc(100% - 48px)); }
  .chapter-badge { position: static; width: fit-content; margin-bottom: 8px; }
  .page:not(#page-home)::after { font-size: 130px; opacity: .75; }
}

@media (max-width: 760px) {
  .app::before { display: none; }
  .topbar { height: 74px; flex-basis: 74px; }
  .stage::before { top: 74px; }
  .brand img { width: 50px; height: 50px; }
  .content { width: min(100% - 28px, 1360px); padding-top: 48px; }
  .head { min-height: auto; padding: 12px 0 25px 20px; }
  .head::before { top: 12px; bottom: 25px; }
  .head h1,
  h1 { font-size: clamp(43px, 14vw, 62px); }
  .frontier-hero { left: 22px; width: calc(100% - 44px); padding-left: 16px; }
  .frontier-hero h1 { font-size: clamp(57px, 18vw, 86px); }
  .frontier-hero p { font-size: .95rem; }
  .frontier-est { display: none; }
  .frontier-embers i:nth-child(n+13) { display: none; }
  .cinematic-frame { inset-inline: 10px; }
  .cinematic-video { object-position: 58% center; }
  .cinematic-shade {
    background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.18) 38%, rgba(0,0,0,.86) 83%);
  }
  .cinematic-copy {
    left: 22px;
    right: 22px;
    bottom: 10vh;
    width: auto;
    padding-left: 16px;
  }
  .cinematic-copy > img { width: 92px; height: 92px; }
  .cinematic-title strong { font-size: clamp(40px, 13vw, 60px); }
  .cinematic-copy > p { font-size: .9rem; }
  .community-hero { min-height: 540px; }
  .gallery-shot { height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .frontier-embers,
  .cinematic-progress { display: none; }
  .frontier-hero-crest,
  .cinematic-copy,
  body.intro-finished .topbar,
  body.intro-finished .frontier-hero { animation: none !important; }
}

/* Reference-driven homepage and navigation */
.topbar {
  height: 92px;
  flex-basis: 92px;
  padding: 0 22px;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(15,13,11,.99), rgba(5,5,4,.985)),
    #080706;
  border-bottom: 1px solid #8c5528;
  box-shadow: 0 2px 0 rgba(219,157,85,.16), 0 14px 42px rgba(0,0,0,.62);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 12% 50%, rgba(189,119,52,.2), transparent 22%);
}
.topbar::after { left: 0; right: 0; bottom: 2px; opacity: .8; }

.brand {
  min-width: 335px;
  height: 100%;
  padding-right: 28px;
  border-right: 1px solid rgba(215,164,99,.18);
}
.brand img {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  filter: sepia(.12) saturate(.8) contrast(1.12) drop-shadow(0 0 12px rgba(213,151,78,.2));
}
.brand strong {
  color: #dcc09a;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: .08em;
}
.brand strong em { color: #f0cf9f; }
.brand strong small {
  margin-top: 7px;
  color: #c39d6c;
  font-family: var(--frontier-display);
  font-size: .78rem;
  letter-spacing: .25em;
  text-align: center;
}

.nav {
  height: 100%;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
}
.nav-btn,
.nav-more-button {
  position: relative;
  min-width: 103px;
  min-height: 100%;
  padding: 12px 12px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid rgba(215,164,99,.16);
  border-radius: 0;
  background: transparent;
  color: #c9ac86;
  font-family: var(--frontier-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-btn::before { display: none; }
.nav-btn::after,
.nav-more-button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, #f3b966, transparent);
  box-shadow: 0 0 13px rgba(242,165,76,.8);
  transition: transform .24s ease;
}
.nav-btn:hover,
.nav-more-button:hover,
.nav-btn.active {
  color: #f0cf9e;
  background: linear-gradient(180deg, rgba(188,111,48,.07), rgba(188,111,48,.015));
  transform: none;
}
.nav-btn:hover::after,
.nav-more-button:hover::after,
.nav-btn.active::after { display: block; transform: scaleX(1); }

.nav-glyph {
  display: block;
  height: 25px;
  color: #e8bb82;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  text-shadow: 0 0 13px rgba(216,147,68,.18);
}

.nav-more { position: relative; height: 100%; }
.nav-more-button { height: 100%; cursor: pointer; }
.nav-more-menu {
  position: absolute;
  z-index: 300;
  top: calc(100% + 1px);
  right: 0;
  min-width: 220px;
  padding: 7px;
  display: none;
  border: 1px solid rgba(218,166,98,.28);
  background: rgba(8,7,5,.98);
  box-shadow: 0 24px 60px rgba(0,0,0,.64);
}
.nav-more.open .nav-more-menu { display: grid; }
.nav-more-menu .nav-btn {
  width: 100%;
  min-height: 54px;
  padding: 9px 14px;
  flex-direction: row;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid rgba(218,166,98,.12);
}
.nav-more-menu .nav-glyph { width: 30px; height: auto; font-size: 1rem; text-align: center; }
.nav-more-menu .nav-btn::after { bottom: 0; }

.actions {
  min-width: 310px;
  justify-content: flex-end;
  padding-left: 18px;
}
.actions > .icon-btn:not(#musicBtn),
.actions > .lang-select { display: none; }
#musicBtn {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-color: rgba(220,166,97,.24);
  color: #e7be8a;
}
.steam-profile-btn {
  min-width: 255px;
  max-width: 280px;
  height: 62px;
  padding: 7px 15px 7px 8px;
  border: 1px solid #9f622e;
  outline: 1px solid rgba(181,112,49,.3);
  outline-offset: -5px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(36,25,16,.96), rgba(10,9,7,.98));
  box-shadow: inset 0 0 20px rgba(194,119,48,.06), 0 8px 26px rgba(0,0,0,.45);
}
.steam-profile-btn img {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 1px solid rgba(216,164,97,.25);
  border-radius: 50%;
  filter: sepia(.2) saturate(.7);
}
.steam-profile-copy small {
  color: #a98760;
  font-family: var(--frontier-display);
  font-size: .63rem;
  letter-spacing: .11em;
}
.steam-profile-copy strong {
  color: #efd0a1;
  font-family: var(--frontier-display);
  font-size: .93rem;
  letter-spacing: .05em;
}

#page-home .home-video,
#page-home .home-fallback,
#page-home .home-tint,
.frontier-hero-crest,
.frontier-est { display: none !important; }

.reference-home-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #050403;
}
.reference-home-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), transparent 68%, rgba(0,0,0,.25)),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.24));
  pointer-events: none;
}
.reference-home-scene img {
  position: absolute;
  top: -92px;
  left: 0;
  width: 100%;
  height: calc(100% + 92px);
  object-fit: cover;
  object-position: center top;
  filter: saturate(.94) contrast(1.03) brightness(.93);
  animation: referenceSceneIn 1.3s cubic-bezier(.18,.72,.2,1) both;
}
@keyframes referenceSceneIn {
  from { opacity: .25; transform: scale(1.025); filter: saturate(.7) contrast(1.08) brightness(.55); }
  to { opacity: 1; transform: scale(1); filter: saturate(.94) contrast(1.03) brightness(.93); }
}

.frontier-hero {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: auto;
  padding: 0;
  border: 0;
  transform: none;
  pointer-events: none;
  animation: none;
}
.frontier-hero::before,
.frontier-hero > :not(.frontier-actions) { display: none; }
.frontier-actions {
  position: absolute;
  top: 49.5%;
  left: 50%;
  width: 230px;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.frontier-cta {
  width: 100%;
  min-height: 51px;
  border: 1px solid #a66b35;
  outline: 1px solid rgba(218,164,92,.28);
  outline-offset: -5px;
  background: linear-gradient(180deg, rgba(24,20,15,.94), rgba(6,6,5,.96));
  color: #eac08a;
  font-family: var(--frontier-display);
  font-size: 1rem;
  letter-spacing: .15em;
  box-shadow: 0 8px 26px rgba(0,0,0,.62), inset 0 0 18px rgba(205,128,52,.08);
}
.frontier-cta.secondary { display: none; }

body.intro-finished .frontier-hero {
  opacity: 1;
  transform: none;
  animation: referenceCtaIn .8s .12s ease both;
}
@keyframes referenceCtaIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-sound-control {
  left: auto;
  right: 24px;
  bottom: 18px;
  z-index: 9;
  padding: 8px 10px;
  border-color: rgba(223,171,103,.32);
  background: rgba(6,6,5,.78);
}
.sound-block { width: 112px; }

.cinematic-video {
  opacity: 1;
  filter: saturate(.95) contrast(1.05) brightness(.9);
}
.cinematic-intro:not(.video-ready) .cinematic-video { opacity: 1; }
.cinematic-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.12) 58%, rgba(0,0,0,.25)),
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 55%, rgba(0,0,0,.62));
}
.cinematic-copy { bottom: clamp(66px, 9vh, 112px); }

#page-rules .rules-tabs {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: 100%;
  padding: 7px;
  justify-content: center;
  background: rgba(7,6,5,.94);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}
#page-rules .rule-card {
  grid-column: 1 / -1;
  padding: clamp(24px, 4vw, 46px);
}
#page-rules .rule-card[hidden] { display: none !important; }
#page-rules .rule-card li { margin-bottom: 13px; color: #c9b89d; font-size: 1rem; line-height: 1.65; }

body[data-route="rules"] .nav-btn[data-page="rules"],
body[data-route^="rules-"] .nav-btn[data-page="rules"],
body[data-route="donations"] .nav-btn[data-page="donations"] {
  color: #f0cf9e;
  background: linear-gradient(180deg, rgba(188,111,48,.08), rgba(188,111,48,.02));
}
body[data-route="rules"] .nav-btn[data-page="rules"]::after,
body[data-route^="rules-"] .nav-btn[data-page="rules"]::after,
body[data-route="donations"] .nav-btn[data-page="donations"]::after { display: block; transform: scaleX(1); }

@media (max-width: 1500px) {
  .brand { min-width: 265px; padding-right: 18px; }
  .brand img { width: 62px; height: 62px; }
  .brand strong { font-size: 1.05rem; }
  .brand strong small { font-size: .65rem; }
  .nav-btn,
  .nav-more-button { min-width: 84px; padding-inline: 8px; font-size: .61rem; }
  .actions { min-width: 255px; }
  .steam-profile-btn { min-width: 210px; }
}

@media (max-width: 1120px) {
  .topbar { padding: 0 14px; }
  .mobile-menu { display: grid; place-items: center; margin-right: 12px; }
  .brand { min-width: 220px; flex: 1; border-right: 0; }
  .brand strong { display: grid; }
  .nav {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - 92px);
    padding: 10px;
    display: none;
    overflow-y: auto;
    background: rgba(7,6,5,.99);
    border-bottom: 1px solid #815027;
    box-shadow: 0 24px 60px rgba(0,0,0,.68);
  }
  .nav.open { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-btn,
  .nav-more-button { min-height: 76px; width: 100%; border-bottom: 1px solid rgba(215,164,99,.12); }
  .nav-more { height: auto; }
  .nav-more-menu {
    position: static;
    min-width: 0;
    padding: 0;
    grid-column: 1 / -1;
    border: 0;
    box-shadow: none;
  }
  .nav-more.open .nav-more-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-more-menu .nav-btn { min-height: 66px; justify-content: center; }
  .actions { min-width: auto; }
}

@media (max-width: 760px) {
  .topbar { height: 74px; flex-basis: 74px; padding: 0 10px; }
  .brand { min-width: 0; padding-right: 8px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: .86rem; }
  .brand strong small { margin-top: 4px; font-size: .55rem; }
  .nav { top: 74px; max-height: calc(100vh - 74px); }
  .nav.open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-more.open .nav-more-menu { grid-template-columns: 1fr; }
  .actions { padding-left: 4px; }
  #musicBtn { display: none; }
  .steam-profile-btn { min-width: 46px; width: 46px; height: 46px; padding: 3px; outline: none; }
  .steam-profile-btn img { width: 38px; height: 38px; }
  .steam-profile-copy { display: none; }
  .reference-home-scene img {
    top: -74px;
    height: calc(100% + 74px);
    width: 177.8vh;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
    object-position: center top;
  }
  @keyframes referenceSceneIn {
    from { opacity: .25; transform: translateX(-50%) scale(1.025); filter: saturate(.7) contrast(1.08) brightness(.55); }
    to { opacity: 1; transform: translateX(-50%) scale(1); filter: saturate(.94) contrast(1.03) brightness(.93); }
  }
  .frontier-actions { top: 49.5%; width: 205px; }
  .frontier-cta { min-height: 46px; font-size: .84rem; }
  .video-sound-control { right: 12px; bottom: 12px; }
  #page-rules .rules-tabs { justify-content: flex-start; }
}

/* Exact desktop composition from the supplied La Fronteriza reference */
.nav-aux-routes,
.nav-more { display: none !important; }

.nav-glyph svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-route="home"] .topbar {
  display: none !important;
}

body[data-route="home"] .stage,
body[data-route="home"] #page-home,
body[data-route="home"] #page-home .home {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 540px;
}

body[data-route="home"] .stage::before,
body[data-route="home"] .stage::after,
body[data-route="home"] .app::before,
body[data-route="home"] .frontier-embers,
body[data-route="home"] .video-sound-control,
body[data-route="home"] .frontier-hero {
  display: none !important;
}

body[data-route="home"] .reference-home-scene::after { display: none; }

.reference-home-scene {
  display: grid;
  place-items: center;
}

.reference-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050403;
}

body[data-route="home"] .reference-canvas img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center;
  filter: none;
  transform: none;
  animation: referenceExactIn .65s ease-out both;
}

@keyframes referenceExactIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reference-hotspots {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.reference-hotspot {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.reference-hotspot:hover { background: rgba(222, 166, 96, .035); }
.reference-hotspot:focus-visible {
  outline: 2px solid #e8b777;
  outline-offset: -5px;
  box-shadow: inset 0 0 24px rgba(232, 183, 119, .12);
}

.reference-home { left: 21.55%; top: 0; width: 7.55%; height: 9.65%; }
.reference-rules { left: 29.10%; top: 0; width: 7.95%; height: 9.65%; }
.reference-donations { left: 37.05%; top: 0; width: 8.50%; height: 9.65%; }
.reference-support { left: 45.55%; top: 0; width: 7.05%; height: 9.65%; }
.reference-status { left: 52.60%; top: 0; width: 6.15%; height: 9.65%; }
.reference-framework { left: 58.75%; top: 0; width: 8.25%; height: 9.65%; }
.reference-community { left: 67%; top: 0; width: 8.35%; height: 9.65%; }
.reference-login { left: 84.25%; top: 1.55%; width: 14.25%; height: 6.75%; }
.reference-start { left: 43.05%; top: 51.15%; width: 13.75%; height: 5.45%; }

@media (min-width: 1121px) {
  .nav { flex: 1 1 auto; }
  .nav > .nav-btn { flex: 1 1 0; min-width: 92px; }
}

@media (max-width: 1120px) {
  body[data-route="home"] .topbar { display: none !important; }
  body[data-route="home"] .stage,
  body[data-route="home"] #page-home,
  body[data-route="home"] #page-home .home {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }
}

/* Keep the seven main categories visible throughout every inner route */
body[data-route]:not([data-route="home"]) .topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
}

body[data-route]:not([data-route="home"]) .mobile-menu { display: none !important; }

body[data-route]:not([data-route="home"]) #nav {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body[data-route]:not([data-route="home"]) .topbar,
body[data-route]:not([data-route="home"]) .nav-btn {
  pointer-events: auto !important;
}

body[data-route]:not([data-route="home"]) .topbar::before,
body[data-route]:not([data-route="home"]) .topbar::after {
  pointer-events: none !important;
}

body[data-route="contact"] .nav-btn[data-page="contact"],
body[data-route="server"] .nav-btn[data-page="server"],
body[data-route="store"] .nav-btn[data-page="store"],
body[data-route="free"] .nav-btn[data-page="store"],
body[data-route="community"] .nav-btn[data-page="community"],
body[data-route="members"] .nav-btn[data-page="community"] {
  color: #f0cf9e;
  background: linear-gradient(180deg, rgba(188,111,48,.08), rgba(188,111,48,.02));
}

body[data-route="contact"] .nav-btn[data-page="contact"]::after,
body[data-route="server"] .nav-btn[data-page="server"]::after,
body[data-route="store"] .nav-btn[data-page="store"]::after,
body[data-route="free"] .nav-btn[data-page="store"]::after,
body[data-route="community"] .nav-btn[data-page="community"]::after,
body[data-route="members"] .nav-btn[data-page="community"]::after {
  display: block;
  transform: scaleX(1);
}

@media (max-width: 1120px) {
  body[data-route]:not([data-route="home"]) .topbar {
    height: 154px;
    min-height: 154px;
    flex-basis: 154px;
    padding: 0 14px;
    display: grid !important;
    grid-template-columns: minmax(190px, 1fr) auto;
    grid-template-rows: 76px 78px;
    gap: 0;
  }

  body[data-route]:not([data-route="home"]) .brand {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-width: 0;
    height: 76px;
  }

  body[data-route]:not([data-route="home"]) .actions {
    grid-column: 2;
    grid-row: 1;
    height: 76px;
  }

  body[data-route]:not([data-route="home"]) #nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 78px;
    max-height: none;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: stretch;
    background: transparent;
    border: 0;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(220,166,97,.45) transparent;
  }

  body[data-route]:not([data-route="home"]) #nav > .nav-btn {
    flex: 1 0 92px;
    width: auto;
    min-width: 92px;
    min-height: 78px;
    padding: 8px 7px 7px;
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  body[data-route]:not([data-route="home"]) .topbar {
    height: 144px;
    min-height: 144px;
    flex-basis: 144px;
    grid-template-columns: minmax(150px, 1fr) auto;
    grid-template-rows: 70px 74px;
    padding-inline: 9px;
  }

  body[data-route]:not([data-route="home"]) .brand,
  body[data-route]:not([data-route="home"]) .actions { height: 70px; }

  body[data-route]:not([data-route="home"]) #nav { height: 74px; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn {
    flex-basis: 84px;
    min-width: 84px;
    min-height: 74px;
    font-size: .56rem;
  }
  body[data-route]:not([data-route="home"]) .nav-glyph svg { width: 23px; height: 23px; }
}

/* Unified La Fronteriza redesign for every category and subcategory */
.page.frontier-redesigned {
  isolation: isolate;
  background: #050403 !important;
}

.page.frontier-redesigned::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,4,3,.78), rgba(5,3,2,.94) 58%, #040302),
    linear-gradient(90deg, rgba(0,0,0,.42), transparent 48%, rgba(0,0,0,.5)),
    url("fronteriza-home-reference.png") center 36% / cover no-repeat;
  filter: saturate(.68) sepia(.08);
}

.page.frontier-redesigned::after {
  z-index: 1;
  color: rgba(218,174,114,.055);
  opacity: 1;
}

.page.frontier-redesigned > .content,
.page.frontier-redesigned .content {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - 64px));
  padding: 54px 0 100px;
}

.page.frontier-redesigned .head {
  position: relative;
  min-height: 230px;
  margin: 0 0 32px;
  padding: 42px 270px 38px 42px;
  display: block !important;
  overflow: hidden;
  border: 1px solid rgba(222,173,105,.55) !important;
  border-radius: 0 !important;
  outline: 1px solid rgba(222,173,105,.16);
  outline-offset: -7px;
  background:
    linear-gradient(90deg, rgba(6,5,4,.96), rgba(11,8,5,.88) 58%, rgba(8,6,4,.74)),
    url("fronteriza-home-reference.png") center 43% / cover no-repeat !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 60px rgba(0,0,0,.38) !important;
}

.page.frontier-redesigned .head::before {
  top: 22px;
  bottom: 22px;
  left: 19px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #d5a260, transparent);
}

.page.frontier-redesigned .head::after {
  content: "LA FRONTERIZA  ·  1860";
  right: auto;
  left: 42px;
  bottom: 20px;
  padding: 0;
  background: transparent;
  color: rgba(218,181,127,.58);
  font-family: var(--frontier-display);
  font-size: .64rem;
  letter-spacing: .24em;
}

.page.frontier-redesigned .head > :not(.section-brand-mark) {
  position: relative;
  z-index: 2;
}

.page.frontier-redesigned .head h1 {
  max-width: 850px;
  margin: 15px 0 12px;
  color: #f0d8b3 !important;
  font-size: clamp(48px, 5.7vw, 82px) !important;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 5px 28px #000, 0 0 22px rgba(218,163,91,.08) !important;
}

.page.frontier-redesigned .head p {
  max-width: 720px;
  margin-bottom: 16px;
  color: #c6b193 !important;
  font-size: 1rem !important;
  line-height: 1.68;
}

.page.frontier-redesigned .chapter-badge,
.page.frontier-redesigned .kicker {
  color: #d7ab70 !important;
  font-family: var(--frontier-display);
  font-size: .72rem !important;
  letter-spacing: .2em !important;
  text-transform: uppercase;
}

.section-brand-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 38px;
  width: 190px;
  height: 190px;
  object-fit: contain;
  transform: translateY(-50%);
  opacity: .82;
  filter: sepia(.14) saturate(.85) contrast(1.12) drop-shadow(0 18px 28px rgba(0,0,0,.68));
}

.page.frontier-redesigned :is(
  .panel, .card, .stat, .community-box, .contact-form, .contact-info,
  .server-feature-card, .rule-card, .gallery-card, .social, .support-entry,
  .winner-card, .member-card, .admin-card, .media-upload, .bot-rust-lock,
  .rust-bot-chat, .rust-logs-panel, .community-hero, .raffle-console,
  .raffle-stock-card, .owner-profile
) {
  border: 1px solid rgba(218,174,114,.3) !important;
  border-radius: 0 !important;
  outline: 1px solid rgba(218,174,114,.075);
  outline-offset: -6px;
  background:
    linear-gradient(145deg, rgba(27,18,11,.96), rgba(8,6,4,.98)),
    #0b0805 !important;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), inset 0 1px rgba(255,229,187,.04) !important;
  backdrop-filter: blur(16px) saturate(.75);
}

.page.frontier-redesigned :is(
  .panel, .card, .community-box, .contact-form, .contact-info,
  .server-feature-card, .rule-card, .gallery-card, .social,
  .winner-card, .member-card, .admin-card, .community-hero
)::before {
  background: linear-gradient(90deg, transparent, #d9a45f, transparent) !important;
  box-shadow: 0 0 14px rgba(217,164,95,.22) !important;
}

.page.frontier-redesigned :is(h2, h3, h4, strong) {
  color: #ead5b4;
}

.page.frontier-redesigned :is(p, li, label, .meta, .server-hint) {
  color: #bca98c;
}

.page.frontier-redesigned :is(.server-bg, .community-bg, .raffle-bg, .socials-bg) {
  display: none !important;
}

.page.frontier-redesigned :is(.server-tabs, .community-tabs, .rules-tabs, .store-tabs, .gallery-tabs) {
  width: 100%;
  padding: 6px;
  gap: 5px;
  border: 1px solid rgba(218,174,114,.32) !important;
  border-radius: 0 !important;
  background: rgba(6,5,3,.94) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.34);
}

.page.frontier-redesigned :is(.server-tab, .store-tab, .gallery-tab) {
  min-height: 48px;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #aa9475 !important;
  font-family: var(--frontier-display);
  letter-spacing: .08em;
}

.page.frontier-redesigned :is(.server-tab, .store-tab, .gallery-tab):hover {
  border-color: rgba(218,174,114,.22) !important;
  color: #f0d7b0 !important;
}

.page.frontier-redesigned :is(.server-tab, .store-tab, .gallery-tab).active {
  border-color: rgba(228,185,120,.45) !important;
  background: linear-gradient(180deg, rgba(83,51,25,.82), rgba(22,15,9,.96)) !important;
  color: #f3d9af !important;
  box-shadow: inset 0 0 18px rgba(218,158,79,.08), 0 8px 22px rgba(0,0,0,.34) !important;
}

.page.frontier-redesigned :is(
  .action, .download, .epic-btn, .gallery-download, .discord-join-epic,
  .provider, button.save, .contact-form button, .admin-actions button,
  .rust-chat-form button, .support-ai-form button, .bottom a
) {
  min-height: 44px;
  border: 1px solid #9e6634 !important;
  border-radius: 0 !important;
  outline: 1px solid rgba(218,174,114,.13);
  outline-offset: -5px;
  background: linear-gradient(180deg, #2b1d11, #0b0805) !important;
  color: #efd2a4 !important;
  font-family: var(--frontier-display);
  letter-spacing: .09em;
  box-shadow: 0 12px 30px rgba(0,0,0,.42), inset 0 0 16px rgba(215,151,72,.05) !important;
}

.page.frontier-redesigned :is(
  .action, .download, .epic-btn, .gallery-download, .discord-join-epic,
  .provider, button.save, .contact-form button, .admin-actions button,
  .rust-chat-form button, .support-ai-form button, .bottom a
):hover {
  border-color: #e3b777 !important;
  background: linear-gradient(180deg, #4b3019, #171008) !important;
  color: #fff0d2 !important;
}

.page.frontier-redesigned :is(input, textarea, select) {
  border: 1px solid rgba(218,174,114,.28) !important;
  border-radius: 0 !important;
  background: rgba(5,4,3,.88) !important;
  color: #ead8bd !important;
  box-shadow: inset 0 8px 18px rgba(0,0,0,.24) !important;
}

.page.frontier-redesigned :is(input, textarea, select):focus {
  border-color: #d6a45f !important;
  outline: 1px solid rgba(214,164,95,.25) !important;
}

.page.frontier-redesigned .cover {
  border-radius: 0 !important;
  border-bottom-color: rgba(218,174,114,.25) !important;
  background:
    linear-gradient(180deg, rgba(7,5,3,.12), rgba(6,4,3,.78)),
    radial-gradient(circle at 50% 35%, rgba(159,90,38,.24), transparent 55%),
    #0a0704 !important;
}

.page.frontier-redesigned :is(.status div, .req, .support-entry, .raffle-stock-card) {
  border-radius: 0 !important;
  border-color: rgba(218,174,114,.2) !important;
  background: rgba(216,174,114,.035) !important;
}

.page.frontier-redesigned :is(.server-wolf.frontier-art, .skin-showcase, .chest-scene) {
  border-radius: 0 !important;
  border-color: rgba(218,174,114,.32) !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(171,95,39,.2), transparent 52%),
    linear-gradient(145deg, #171008, #050403) !important;
}

.page.frontier-redesigned :is(.card, .gallery-card, .social, .member-card, .winner-card):hover {
  transform: translateY(-4px);
  border-color: rgba(231,190,126,.58) !important;
  box-shadow: 0 34px 82px rgba(0,0,0,.62), 0 0 22px rgba(190,111,47,.09) !important;
}

@media (max-width: 900px) {
  .page.frontier-redesigned > .content,
  .page.frontier-redesigned .content {
    width: min(100% - 28px, 1420px);
    padding-top: 26px;
  }

  .page.frontier-redesigned .head {
    min-height: 205px;
    padding: 32px 30px 44px;
  }

  .section-brand-mark {
    right: 20px;
    width: 150px;
    height: 150px;
    opacity: .18;
  }

  .page.frontier-redesigned .head::after { left: 30px; }
}

@media (max-width: 560px) {
  .page.frontier-redesigned .head {
    min-height: 185px;
    padding: 27px 22px 42px;
  }
  .page.frontier-redesigned .head h1 { font-size: clamp(38px, 13vw, 58px) !important; }
  .page.frontier-redesigned .head p { font-size: .94rem !important; }
  .page.frontier-redesigned .head::after { left: 22px; font-size: .55rem; }
  .section-brand-mark { display: none; }
}

/* Normativas library and animated books */
.rules-library[hidden],
.rule-reader[hidden] { display: none !important; }

.rules-library {
  position: relative;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(218,174,114,.34);
  outline: 1px solid rgba(218,174,114,.09);
  outline-offset: -7px;
  background:
    linear-gradient(180deg, rgba(17,11,7,.94), rgba(6,4,3,.98)),
    #080503;
  box-shadow: 0 36px 92px rgba(0,0,0,.58);
}

.rules-library::before,
.rules-library::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
}
.rules-library::before { top: 12px; left: 12px; border-top: 1px solid #c78f4f; border-left: 1px solid #c78f4f; }
.rules-library::after { right: 12px; bottom: 12px; border-right: 1px solid #c78f4f; border-bottom: 1px solid #c78f4f; }

.rules-library-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}
.rules-library-heading > span {
  color: #c9985d;
  font-family: var(--frontier-display);
  font-size: .72rem;
  letter-spacing: .22em;
}
.rules-library-heading h2 {
  margin: 12px 0 10px;
  color: #efd6ae;
  font-family: var(--frontier-display);
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: .92;
  text-transform: uppercase;
}
.rules-library-heading p { margin: 0; color: #ae9b80; font-size: 1rem; }

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

.rule-volume {
  min-height: 292px;
  padding: 18px;
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 25px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(218,174,114,.22);
  background:
    radial-gradient(circle at 20% 40%, rgba(151,77,31,.12), transparent 36%),
    linear-gradient(145deg, rgba(29,19,11,.9), rgba(8,6,4,.96));
  box-shadow: inset 0 0 40px rgba(0,0,0,.25), 0 18px 42px rgba(0,0,0,.34);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.rule-volume:hover {
  transform: translateY(-5px);
  border-color: rgba(231,188,119,.55);
  box-shadow: inset 0 0 40px rgba(0,0,0,.25), 0 28px 58px rgba(0,0,0,.5);
}

.rule-volume-cover {
  position: relative;
  width: 176px;
  height: 250px;
  padding: 24px 17px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 2px solid #7b4a25;
  outline: 1px solid rgba(227,181,111,.35);
  outline-offset: -8px;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 36%, rgba(164,92,38,.22), transparent 45%),
    linear-gradient(135deg, #2b190e, #0b0704 75%);
  box-shadow: 12px 16px 30px rgba(0,0,0,.48), inset 9px 0 16px rgba(0,0,0,.48);
}
.rule-volume-cover::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(218,174,114,.2);
  pointer-events: none;
}
.rule-volume-cover > span {
  position: relative;
  z-index: 1;
  color: #d8a964;
  font-family: var(--frontier-display);
  font-size: .7rem;
  letter-spacing: .18em;
}
.rule-volume-cover img {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: sepia(.2) saturate(.78) contrast(1.12) drop-shadow(0 10px 16px #000);
}
.rule-volume-cover strong {
  position: relative;
  z-index: 1;
  color: #efd2a4 !important;
  font-family: var(--frontier-display);
  font-size: .92rem;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}
.rule-volume-cover small {
  position: relative;
  z-index: 1;
  color: #96734b;
  font-family: var(--frontier-display);
  font-size: .52rem;
  letter-spacing: .12em;
}

.rule-volume-copy > span {
  color: #b98245;
  font-family: var(--frontier-display);
  font-size: .66rem;
  letter-spacing: .18em;
}
.rule-volume-copy h3 {
  margin: 11px 0 12px;
  color: #ead2ac !important;
  font-family: var(--frontier-display);
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.02;
  text-transform: uppercase;
}
.rule-volume-copy p {
  min-height: 70px;
  margin: 0 0 20px;
  color: #aa987d !important;
  font-size: .94rem;
  line-height: 1.55;
}
.rule-volume-copy :is(button, a),
.rule-reader-bar button,
.rule-reader-controls button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #9e6634;
  border-radius: 0;
  outline: 1px solid rgba(218,174,114,.14);
  outline-offset: -5px;
  background: linear-gradient(180deg, #2c1d11, #090704);
  color: #efd1a2;
  font-family: var(--frontier-display);
  font-size: .7rem;
  letter-spacing: .1em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.rule-volume-copy :is(button, a):hover,
.rule-reader-bar button:hover,
.rule-reader-controls button:hover:not(:disabled) {
  border-color: #e4b878;
  background: linear-gradient(180deg, #53361c, #171008);
  color: #fff0d3;
}

.page.book-is-open .head { display: none !important; }
.page.book-is-open > .content,
.page.book-is-open .content { padding-top: 26px; }

.rule-reader {
  position: relative;
  min-height: 720px;
  padding: 18px 18px 26px;
  border: 1px solid rgba(218,174,114,.36);
  background:
    radial-gradient(circle at 50% 35%, rgba(151,81,34,.12), transparent 42%),
    linear-gradient(180deg, rgba(16,11,7,.98), rgba(5,4,3,.99));
  box-shadow: 0 40px 100px rgba(0,0,0,.65);
}

.rule-reader-bar {
  min-height: 70px;
  padding: 8px 10px 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(218,174,114,.18);
}
.rule-reader-bar > div { display: grid; gap: 4px; }
.rule-reader-bar span {
  color: #b68145;
  font-family: var(--frontier-display);
  font-size: .65rem;
  letter-spacing: .18em;
}
.rule-reader-bar strong {
  color: #ead0a6;
  font-family: var(--frontier-display);
  font-size: clamp(20px, 2vw, 30px);
  text-transform: uppercase;
}

.rule-book-shell {
  width: 100%;
  padding: clamp(22px, 4vw, 54px) clamp(8px, 2vw, 28px) 28px;
  overflow-x: auto;
  perspective: 2200px;
}

.rule-book {
  position: relative;
  width: min(1160px, 100%);
  min-width: 820px;
  height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  filter: drop-shadow(0 34px 34px rgba(0,0,0,.58));
}

.rule-book::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -13px -16px -17px;
  border: 2px solid #5e351c;
  border-radius: 8px 8px 13px 13px;
  background: linear-gradient(135deg, #3a2111, #120b06 58%, #2a170c);
  box-shadow: inset 0 0 0 4px rgba(157,95,47,.24), 0 36px 60px rgba(0,0,0,.62);
}

.book-page {
  position: relative;
  min-width: 0;
  padding: 56px 54px 42px;
  overflow: hidden;
  color: #2d1b10;
  background:
    repeating-linear-gradient(0deg, rgba(82,48,24,.025) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.42), transparent 44%),
    linear-gradient(100deg, #c7a875, #e0c99e 16%, #ead8b4 78%, #b89463);
  box-shadow: inset 0 0 48px rgba(81,46,23,.2);
}
.book-page-left { border-radius: 5px 0 0 5px; box-shadow: inset -24px 0 35px rgba(73,41,20,.2), inset 0 0 48px rgba(81,46,23,.18); }
.book-page-right { border-radius: 0 5px 5px 0; box-shadow: inset 24px 0 35px rgba(73,41,20,.2), inset 0 0 48px rgba(81,46,23,.18); }
.book-page::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(75,42,22,.28);
  pointer-events: none;
}
.book-page::after {
  content: "✦";
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(82,46,23,.52);
  font-size: .8rem;
}

.book-spine {
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 30px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(69,37,18,.22), rgba(255,244,215,.18) 46%, rgba(63,34,17,.27));
  box-shadow: -7px 0 13px rgba(66,36,18,.13), 7px 0 13px rgba(66,36,18,.13);
}

.book-page-number {
  position: absolute;
  top: 32px;
  right: 38px;
  color: rgba(67,38,20,.62);
  font-family: Georgia, serif;
  font-size: .78rem;
}
.book-page-left .book-page-number { right: auto; left: 38px; }
.book-kicker,
.book-volume {
  color: #76502d;
  font-family: Georgia, serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.book-page h2 {
  position: relative;
  margin: 17px 0 20px;
  padding-bottom: 15px;
  color: #3a2112 !important;
  font-family: Georgia, serif;
  font-size: clamp(29px, 3vw, 43px);
  line-height: 1.02;
}
.book-page h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 1px;
  background: #76502d;
}
.book-page p {
  color: #4b3421 !important;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
}
.book-page ol,
.book-page ul { margin: 25px 0 0; padding-left: 24px; }
.book-page li {
  margin: 0 0 17px;
  padding-left: 8px;
  color: #3f2b1c !important;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.55;
}
.book-page li::marker { color: #7b502d; font-weight: 700; }
.book-page ul li::marker { content: "✦  "; font-size: .72em; }
.book-alert {
  margin: 0 0 15px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(112,64,31,.46);
  border-left: 4px solid #7b3d23;
  background: rgba(112,59,27,.12);
  color: #4a2918;
  font-family: Georgia, serif;
  font-size: .92rem;
  line-height: 1.45;
}
.book-alert > span { color: #7b3d23; font-size: 1.15rem; }
.book-alert strong { color: #432416 !important; }
.book-page li.book-important {
  margin-left: -8px;
  padding: 8px 9px 8px 16px;
  border-left: 3px solid rgba(124,59,31,.68);
  background: linear-gradient(90deg, rgba(130,65,31,.11), transparent 88%);
  color: #321c12 !important;
  font-weight: 700;
}
.book-page li.book-important u,
.book-page p u {
  text-decoration-color: #8a3e25;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.book-page p strong { color: #4b2417 !important; }
.book-page li em { color: #5f3a25; }

.book-cover {
  padding-inline: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #e3c08e;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 36%, rgba(178,102,42,.24), transparent 42%),
    linear-gradient(135deg, #392112, #130c07 74%) !important;
  box-shadow: inset -24px 0 36px rgba(0,0,0,.38), inset 0 0 0 9px rgba(155,94,46,.18), inset 0 0 0 11px rgba(224,176,104,.18);
}
.book-cover::before { inset: 28px; border: 1px solid rgba(226,178,106,.28); }
.book-cover::after { color: rgba(224,177,105,.68); }
.book-cover img,
.book-closing img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: sepia(.12) saturate(.82) drop-shadow(0 15px 22px #000);
}
.book-cover h2,
.book-cover p { color: #eed0a0 !important; text-align: center; }
.book-cover h2::after { left: 50%; transform: translateX(-50%); background: #b98248; }
.book-cover small { color: #a27a4c; font-family: Georgia, serif; font-size: .64rem; letter-spacing: .17em; }
.book-closing { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.book-closing h2::after { left: 50%; transform: translateX(-50%); }
.book-empty { display: grid; place-items: center; }
.book-paper-mark { color: rgba(88,53,29,.25); font-family: Georgia, serif; letter-spacing: .22em; transform: rotate(-12deg); }

.book-turning-page {
  position: absolute;
  z-index: 20;
  top: 0;
  width: 50%;
  height: 100%;
  display: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(82,48,24,.025) 0 1px, transparent 1px 5px),
    linear-gradient(100deg, #e4cfa8, #b99766);
  box-shadow: inset 22px 0 34px rgba(70,38,18,.2), -12px 0 24px rgba(0,0,0,.2);
}
.book-turning-page > div {
  position: absolute;
  inset: 42px;
  opacity: .35;
  background: repeating-linear-gradient(180deg, #76502d 0 1px, transparent 1px 28px);
}
.rule-book.turn-next .book-turning-page {
  right: 0;
  display: block;
  transform-origin: left center;
  animation: turnBookNext .74s cubic-bezier(.42,0,.2,1) both;
}
.rule-book.turn-previous .book-turning-page {
  left: 0;
  display: block;
  transform-origin: right center;
  animation: turnBookPrevious .74s cubic-bezier(.42,0,.2,1) both;
}
@keyframes turnBookNext {
  0% { transform: rotateY(0deg); filter: brightness(1); }
  48% { filter: brightness(.72); }
  100% { transform: rotateY(-180deg); filter: brightness(.9); }
}
@keyframes turnBookPrevious {
  0% { transform: rotateY(0deg); filter: brightness(1); }
  48% { filter: brightness(.72); }
  100% { transform: rotateY(180deg); filter: brightness(.9); }
}

.rule-reader-controls {
  padding: 12px 10px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.rule-reader-controls .book-prev { justify-self: start; }
.rule-reader-controls .book-next { justify-self: end; }
.rule-reader-controls button:disabled { opacity: .32; cursor: not-allowed; }
.book-page-indicator {
  color: #b68a53;
  font-family: var(--frontier-display);
  font-size: .68rem;
  letter-spacing: .16em;
}

@media (max-width: 1050px) {
  .rules-volume-grid { grid-template-columns: 1fr; }
  .rule-reader { min-height: 0; }
}

@media (max-width: 700px) {
  .rules-library { padding: 22px 14px; }
  .rule-volume { grid-template-columns: 112px 1fr; gap: 16px; min-height: 220px; padding: 12px; }
  .rule-volume-cover { width: 112px; height: 190px; padding: 21px 10px 14px; }
  .rule-volume-cover img { width: 64px; height: 64px; }
  .rule-volume-cover strong { font-size: .68rem; }
  .rule-volume-cover small { display: none; }
  .rule-volume-copy p { min-height: 0; font-size: .86rem; }
  .rule-reader { padding: 10px 8px 18px; }
  .rule-reader-bar { align-items: flex-start; flex-direction: column; }
  .rule-book-shell { padding: 25px 4px; }
  .rule-book { min-width: 780px; height: 550px; }
  .book-page { padding: 50px 45px 38px; }
  .rule-reader-controls { grid-template-columns: 1fr 1fr; }
  .book-page-indicator { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .rule-reader-controls .book-prev { grid-column: 1; grid-row: 2; }
  .rule-reader-controls .book-next { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .rule-book.turn-next .book-turning-page,
  .rule-book.turn-previous .book-turning-page { animation-duration: .01ms; }
}

/* Donations design based on the supplied reference */
#page-donations.donations-redesigned {
  background: #050403 !important;
}

#page-donations .donations-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 30px !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.donations-hero-reference {
  position: relative;
  width: 100%;
  height: clamp(290px, 21.55vw, 420px);
  overflow: hidden;
  border-bottom: 1px solid #94602e;
  background-image: url("donaciones-reference.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center -5vw;
  box-shadow: inset 0 -35px 50px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.45);
}

.donations-hero-reference::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 75%, rgba(4,3,2,.3));
}

.donations-catalog {
  width: min(1480px, calc(100% - 42px));
  margin: 0 auto;
  padding: 16px 0 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.donation-product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #95602e;
  outline: 1px solid rgba(226,176,103,.18);
  outline-offset: -5px;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.012) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #171009, #070504 76%);
  box-shadow: 0 18px 44px rgba(0,0,0,.5), inset 0 0 28px rgba(0,0,0,.36);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.donation-product::before,
.donation-product::after {
  content: "✦";
  position: absolute;
  z-index: 4;
  bottom: 5px;
  color: #c88d4c;
  font-size: .55rem;
}
.donation-product::before { left: 7px; }
.donation-product::after { right: 7px; }
.donation-product:hover {
  transform: translateY(-5px);
  border-color: #dba65f;
  box-shadow: 0 28px 58px rgba(0,0,0,.62), 0 0 20px rgba(190,112,45,.09);
}

.donation-product-art {
  position: relative;
  width: 100%;
  aspect-ratio: 226 / 100;
  overflow: hidden;
  border-bottom: 1px solid rgba(213,153,81,.44);
  background: #0c0805;
}
.donation-product-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(5,3,2,.4));
}
.donation-product-art img {
  position: absolute;
  width: 679.65%;
  height: auto;
  max-width: none;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  pointer-events: none;
}

.donation-product-body {
  min-height: 185px;
  padding: 15px 13px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.donation-product-body h2 {
  min-height: 40px;
  margin: 0 0 5px;
  display: grid;
  place-items: center;
  color: #edcf9f !important;
  font-family: var(--frontier-display);
  font-size: clamp(.9rem, 1.2vw, 1.12rem);
  line-height: 1.08;
  text-transform: uppercase;
}
.donation-product-body > strong {
  color: #e5ad68 !important;
  font-family: var(--frontier-display);
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.donation-product-body p {
  flex: 1;
  margin: 8px 0 12px;
  color: #c6b89e !important;
  font-family: Georgia, serif;
  font-size: .78rem;
  line-height: 1.35;
}
.donation-product-body a,
.donation-product-body .donation-buy {
  width: min(150px, 92%);
  min-height: 31px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #9c632f;
  outline: 1px solid rgba(223,170,96,.14);
  outline-offset: -4px;
  background: linear-gradient(180deg, #2b1c10, #090704);
  color: #e9c48f;
  font-family: var(--frontier-display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.donation-product-body a:hover,
.donation-product-body .donation-buy:hover {
  border-color: #e1b16d;
  background: linear-gradient(180deg, #503219, #160f08);
  color: #fff0d2;
}
.donation-product-body .donation-buy:disabled { cursor: wait; opacity: .68; }

.frontier-purchase-status {
  width: min(920px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 20px clamp(18px, 3vw, 34px);
  border: 1px solid #a06a35;
  outline: 1px solid rgba(222,166,93,.18);
  outline-offset: -6px;
  background: linear-gradient(135deg, rgba(43,29,17,.96), rgba(7,6,4,.98));
  box-shadow: 0 18px 50px rgba(0,0,0,.58), inset 0 0 35px rgba(170,103,46,.06);
  text-align: center;
}
.frontier-purchase-status[hidden] { display: none !important; }
.frontier-purchase-status > span { color: #b4814d; font-family: var(--frontier-display); font-size: .58rem; letter-spacing: .14em; }
.frontier-purchase-status h2 { margin: 8px 0; color: #eccb9c !important; font-family: var(--frontier-display); font-size: 1.15rem; letter-spacing: .05em; }
.frontier-purchase-status p { margin: 0 auto; max-width: 720px; color: #b9aa98; font-family: Georgia, serif; font-size: .82rem; line-height: 1.55; }
.frontier-redeem-code { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.frontier-redeem-code[hidden] { display: none !important; }
.frontier-redeem-code code { min-height: 46px; padding: 12px; overflow-wrap: anywhere; border: 1px solid rgba(184,127,66,.35); background: #050504; color: #d7c09d; font: .68rem/1.45 Consolas, monospace; text-align: left; }
.frontier-redeem-code button { min-width: 136px; border: 1px solid #a8733d; background: linear-gradient(180deg, #59391c, #1d130c); color: #efd0a4; font-family: var(--frontier-display); font-size: .66rem; letter-spacing: .06em; }

@media (max-width: 620px) {
  .frontier-redeem-code { grid-template-columns: 1fr; }
  .frontier-redeem-code button { min-height: 42px; }
}

.donations-footer {
  width: min(1480px, calc(100% - 42px));
  min-height: 74px;
  margin: 0 auto;
  padding: 18px 5px 4px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(218,174,114,.16);
  color: #9f8562;
  font-family: var(--frontier-display);
  font-size: .58rem;
  letter-spacing: .18em;
}
.donations-footer strong {
  color: #d2ac78 !important;
  font-size: .8rem;
  letter-spacing: .2em;
  text-align: center;
}
.donations-footer span:last-child { text-align: right; }

@media (max-width: 1320px) {
  .donations-catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .donations-hero-reference {
    height: 310px;
    background-size: auto 590px;
    background-position: center -48px;
  }
  .donations-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .donations-hero-reference {
    height: 260px;
    background-size: auto 500px;
    background-position: center -40px;
  }
  .donations-catalog { width: min(100% - 24px, 1480px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .donation-product-body { min-height: 195px; padding-inline: 9px; }
  .donation-product-body h2 { font-size: .8rem; }
  .donations-footer { width: min(100% - 24px, 1480px); grid-template-columns: 1fr; text-align: center; }
  .donations-footer span:last-child { text-align: center; }
}
@media (max-width: 460px) {
  .donations-catalog { grid-template-columns: 1fr; }
  .donation-product-body { min-height: 170px; }
}

/* Soporte: centro de ayuda inspirado en la referencia */
#page-contact.support-redesigned {
  background:
    radial-gradient(circle at 50% 10%, rgba(130, 72, 29, .18), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.008) 0 1px, transparent 1px 5px),
    #050403;
}
#page-contact.support-redesigned .support-content {
  width: 100%;
  max-width: none;
  padding: 0 0 18px;
}
.support-hero-reference {
  height: clamp(290px, 21vw, 390px);
  position: relative;
  border-bottom: 2px solid #8b5828;
  background-image: url("soporte-reference.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center -5vw;
  box-shadow: inset 0 -55px 62px rgba(0,0,0,.32), 0 8px 30px rgba(0,0,0,.62);
}
.support-hero-reference::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.12), transparent 24% 76%, rgba(0,0,0,.14));
}
.support-workspace {
  width: min(1490px, calc(100% - 36px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: minmax(255px, 330px) minmax(480px, 1fr) minmax(255px, 330px);
  align-items: stretch;
  gap: 14px;
}
.support-help-categories,
.frontier-support-assistant,
.support-information article {
  border: 1px solid #78502c;
  outline: 1px solid rgba(211,157,91,.13);
  outline-offset: -5px;
  background:
    linear-gradient(rgba(8,7,6,.95), rgba(4,4,3,.97)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.02) 5px 6px);
  box-shadow: inset 0 0 26px rgba(0,0,0,.72), 0 8px 26px rgba(0,0,0,.38);
}
.support-help-categories {
  padding: 19px 16px 16px;
}
.support-help-categories h2,
.support-information h2 {
  margin: 0 0 13px;
  color: #dfbd8a !important;
  font-family: var(--frontier-display);
  font-size: .92rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.support-help-categories > button {
  width: 100%;
  min-height: 54px;
  margin: 0 0 9px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 37px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #65431f;
  border-radius: 2px;
  background: linear-gradient(100deg, rgba(54,34,17,.72), rgba(10,8,6,.88));
  color: #e5c89c;
  text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.support-help-categories > button:hover,
.support-help-categories > button:focus-visible {
  transform: translateX(3px);
  border-color: #c8904d;
  background: linear-gradient(100deg, rgba(99,59,24,.8), rgba(17,11,7,.92));
  outline: none;
}
.support-help-categories > button > span {
  color: #efc38c;
  font-size: 1.4rem;
  text-align: center;
}
.support-help-categories button strong {
  color: #dfc092 !important;
  font-family: Georgia, serif;
  font-size: .85rem;
  font-weight: 500;
}
.support-help-categories button small {
  margin-top: 2px;
  display: block;
  color: #978a79;
  font-family: Georgia, serif;
  font-size: .66rem;
  font-weight: 400;
}
.support-help-categories button b { color: #c7975e; font-size: 1.25rem; }

.frontier-support-assistant {
  min-width: 0;
  min-height: 585px;
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto auto auto;
  overflow: hidden;
}
.frontier-support-head {
  min-height: 77px;
  padding: 12px 17px;
  display: grid;
  grid-template-columns: 47px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(210,158,98,.18);
  background: linear-gradient(90deg, rgba(30,23,17,.8), rgba(7,7,6,.78));
}
.frontier-support-head > img,
.frontier-support-message > img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(195,120,50,.3));
}
.frontier-support-head div { min-width: 0; display: grid; gap: 5px; }
.frontier-support-head strong { color: #f0e0c6 !important; font-size: .9rem; }
.frontier-support-head strong i { color: #4ccc72; font-size: .62rem; font-style: normal; font-weight: 500; }
.frontier-support-head div > span { overflow: hidden; color: #9e9588; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.support-clear {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid #55504a;
  border-radius: 3px;
  background: #121211;
  color: #bdb4a8;
  font-size: .66rem;
}
.support-clear:hover { border-color: #a57742; color: #f0d5ad; }
.frontier-support-messages {
  min-height: 330px;
  max-height: 48vh;
  padding: 22px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #76502c #0a0908;
  background:
    radial-gradient(circle at 50% 30%, rgba(83,53,25,.09), transparent 55%),
    #070807;
}
.frontier-support-message {
  width: 100%;
  margin-bottom: 17px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.frontier-support-message.user { justify-content: flex-end; }
.frontier-support-message > img { width: 39px; height: 39px; flex: 0 0 auto; }
.frontier-support-message > div {
  max-width: min(72%, 560px);
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 5px 13px 13px 13px;
  background: linear-gradient(145deg, #242526, #1a1b1c);
  color: #e7dfd3;
  font-family: Georgia, serif;
  font-size: .78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: 0 7px 18px rgba(0,0,0,.32);
}
.frontier-support-message.user > div {
  border-color: rgba(172,112,55,.28);
  border-radius: 13px 5px 13px 13px;
  background: linear-gradient(145deg, #5b3c24, #382617);
  color: #f4e4cc;
}
.frontier-support-message.typing > div { display: flex; align-items: center; gap: 5px; }
.frontier-support-message.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9c9b98;
  animation: supportTyping 1.15s infinite ease-in-out;
}
.frontier-support-message.typing i:nth-child(2) { animation-delay: .14s; }
.frontier-support-message.typing i:nth-child(3) { animation-delay: .28s; }
.frontier-support-message.typing span { margin-left: 4px; color: #a7a29b; font-size: .66rem; }
@keyframes supportTyping { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-4px); opacity: 1; } }

.frontier-support-quick {
  padding: 9px 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid rgba(211,158,98,.13);
  background: #090908;
}
.frontier-support-quick button {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid #574129;
  border-radius: 20px;
  background: #15110d;
  color: #c8ae88;
  font-size: .61rem;
}
.frontier-support-quick button:hover { border-color: #b77d40; color: #f1d4aa; }
.frontier-support-form {
  padding: 11px 16px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  background: #090908;
}
.frontier-support-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #454440;
  border-radius: 3px;
  outline: none;
  background: #101111;
  color: #efe5d7;
  font-size: .75rem;
}
.frontier-support-form input:focus { border-color: #af7940; box-shadow: 0 0 0 2px rgba(175,121,64,.12); }
.frontier-support-form button {
  min-width: 116px;
  border: 1px solid #a06a34;
  border-radius: 3px;
  background: linear-gradient(180deg, #714522, #2d1d10);
  color: #f5d7ad;
  font-family: var(--frontier-display);
  font-size: .75rem;
  letter-spacing: .08em;
}
.frontier-support-form button:hover { background: linear-gradient(180deg, #98602e, #3a2413); }
.frontier-support-form button:disabled { opacity: .6; cursor: wait; }
.frontier-support-disclaimer {
  padding: 0 17px 11px;
  display: block;
  background: #090908;
  color: #746e67;
  font-size: .57rem;
  line-height: 1.4;
}

.support-information { min-width: 0; display: grid; align-content: start; gap: 12px; }
.support-information article {
  padding: 18px 15px;
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 11px;
}
.support-information article > span { color: #efc68f; font-size: 1.15rem; text-align: center; }
.support-information h2 { margin-bottom: 9px; font-size: .78rem; }
.support-information p { margin: 0 0 11px; color: #afa595; font-family: Georgia, serif; font-size: .72rem; line-height: 1.55; }
.support-information button,
.support-information a {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #87592b;
  background: linear-gradient(180deg, #281a0f, #0b0805);
  color: #e9c58e;
  font-family: var(--frontier-display);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.support-information article > div > strong { color: #63cf73 !important; font-family: Georgia, serif; font-size: .72rem; line-height: 1.5; }
.support-information .support-direct a { width: 100%; margin-top: 7px; justify-content: flex-start; text-align: left; }
.support-information .support-direct a small { margin-left: 8px; display: inline; color: #82786b; font-family: Arial, sans-serif; font-size: .55rem; letter-spacing: 0; text-transform: none; }
.support-footer {
  width: min(1490px, calc(100% - 36px));
  min-height: 73px;
  margin: 14px auto 0;
  padding: 17px 5px 2px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(218,174,114,.18);
  color: #8f785d;
  font-family: var(--frontier-display);
  font-size: .57rem;
  letter-spacing: .17em;
}
.support-footer strong { color: #cda775 !important; font-size: .76rem; letter-spacing: .2em; text-align: center; }
.support-footer span:last-child { text-align: right; }

@media (max-width: 1150px) {
  .support-workspace { grid-template-columns: minmax(245px, .75fr) minmax(470px, 1.75fr); }
  .support-information { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .support-hero-reference { height: 310px; background-size: auto 590px; background-position: center -48px; }
}
@media (max-width: 820px) {
  .support-workspace { width: min(100% - 24px, 1490px); grid-template-columns: 1fr; }
  .frontier-support-assistant { order: 1; min-height: 560px; }
  .support-help-categories { order: 2; }
  .support-information { order: 3; grid-column: auto; grid-template-columns: 1fr; }
  .support-footer { width: min(100% - 24px, 1490px); grid-template-columns: 1fr; text-align: center; }
  .support-footer span:last-child { text-align: center; }
}
@media (max-width: 720px) {
  .support-hero-reference { height: 260px; background-size: auto 500px; background-position: center -40px; }
}
@media (max-width: 560px) {
  .frontier-support-head { grid-template-columns: 42px 1fr; }
  .frontier-support-head > img { width: 40px; height: 40px; }
  .support-clear { grid-column: 1 / -1; width: 100%; }
  .frontier-support-message > div { max-width: 88%; }
  .frontier-support-form { grid-template-columns: 1fr; }
  .frontier-support-form button { min-height: 43px; }
}

/* Acceso: reemplazo completo del modal heredado */
body.frontier-auth-open { overflow: hidden !important; }
.modal.frontier-auth-modal {
  padding: 22px;
  z-index: 1000;
  background:
    radial-gradient(circle at 50% 45%, rgba(113,67,29,.2), transparent 48%),
    rgba(2,2,2,.91);
  backdrop-filter: blur(12px) saturate(.7);
}
.modal.frontier-auth-modal.open { display: grid; }
.frontier-auth-shell {
  width: min(980px, calc(100vw - 44px));
  min-height: min(590px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: minmax(330px, .92fr) minmax(390px, 1.08fr);
  overflow: hidden;
  position: relative;
  border: 1px solid #a26d37;
  outline: 1px solid rgba(226,176,106,.2);
  outline-offset: -7px;
  background: #080705;
  box-shadow: 0 32px 90px rgba(0,0,0,.82), inset 0 0 40px rgba(196,119,47,.06);
  animation: frontierAuthArrive .32s cubic-bezier(.2,.75,.22,1) both;
}
.frontier-auth-shell::before,
.frontier-auth-shell::after {
  content: "◆";
  position: absolute;
  z-index: 5;
  top: 9px;
  color: #b77a3a;
  font-size: .65rem;
}
.frontier-auth-shell::before { left: 11px; }
.frontier-auth-shell::after { right: 11px; }
@keyframes frontierAuthArrive {
  from { opacity: 0; transform: translateY(16px) scale(.975); }
  to { opacity: 1; transform: none; }
}
.frontier-auth-art {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(202,143,76,.35);
  background-image:
    linear-gradient(180deg, rgba(3,2,1,.05), rgba(3,2,1,.82)),
    linear-gradient(90deg, rgba(3,2,1,.12), transparent 56%, rgba(3,2,1,.72)),
    url("fronteriza-home-reference.png");
  background-repeat: no-repeat;
  background-size: cover, cover, auto 100%;
  background-position: center, center, 12% center;
}
.frontier-auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 40% 35%, transparent 12%, rgba(0,0,0,.28) 72%, rgba(0,0,0,.68));
  box-shadow: inset -25px 0 45px rgba(0,0,0,.48);
}
.frontier-auth-art-copy {
  position: absolute;
  z-index: 2;
  inset: auto 34px 32px;
  display: grid;
  justify-items: start;
  color: #ead0a7;
  text-shadow: 0 3px 12px #000;
}
.frontier-auth-art-copy img {
  width: 92px;
  height: 92px;
  margin-bottom: 10px;
  object-fit: contain;
  filter: sepia(.25) drop-shadow(0 7px 15px #000);
}
.frontier-auth-art-copy > span {
  margin-bottom: 8px;
  color: #c9975e;
  font-family: var(--frontier-display);
  font-size: .8rem;
  letter-spacing: .19em;
}
.frontier-auth-art-copy strong {
  color: #f0d5ac !important;
  font-family: var(--frontier-display);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.18;
  letter-spacing: .08em;
}
.frontier-auth-art-copy small {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(222,171,105,.42);
  color: #a68a67;
  font-family: Georgia, serif;
  font-size: .75rem;
  letter-spacing: .15em;
}
.frontier-auth-panel {
  min-width: 0;
  padding: 54px clamp(34px, 5vw, 68px) 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(10,8,6,.97), rgba(4,4,3,.985)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.02) 5px 6px);
}
.frontier-auth-close.close {
  width: 42px;
  height: 42px;
  padding: 0;
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191,134,73,.42);
  background: rgba(18,13,9,.86);
  color: #cfac7d;
  font-size: 1.65rem;
  line-height: 1;
}
.frontier-auth-close.close:hover { border-color: #d19a5b; color: #fff0d1; background: #2b1c10; }
.frontier-auth-emblem {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189,130,65,.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114,69,31,.34), rgba(10,7,5,.3) 70%);
  box-shadow: 0 0 30px rgba(175,102,38,.12);
}
.frontier-auth-emblem img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: sepia(.18) drop-shadow(0 5px 10px rgba(0,0,0,.72));
}
.frontier-auth-kicker,
.frontier-auth-status {
  display: block;
  color: #b98955;
  font-family: var(--frontier-display);
  font-size: .76rem;
  letter-spacing: .2em;
}
.frontier-auth-status { margin-bottom: 10px; color: #67c977; letter-spacing: .12em; }
.frontier-auth-panel h2 {
  margin: 10px 0 12px;
  color: #ecd0a3 !important;
  font-family: var(--frontier-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.frontier-auth-panel p {
  max-width: 410px;
  margin: 0 auto 23px;
  color: #b7ab99;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
}
.frontier-auth-panel .provider.frontier-auth-primary {
  width: 100%;
  min-height: 54px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #b87939;
  outline: 1px solid rgba(228,177,106,.16);
  outline-offset: -5px;
  background: linear-gradient(180deg, #70451f, #29190d);
  color: #f5d8ad;
  font-family: var(--frontier-display);
  font-size: .95rem;
  letter-spacing: .09em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.frontier-auth-panel .provider.frontier-auth-primary:hover {
  transform: translateY(-2px);
  border-color: #e0aa69;
  background: linear-gradient(180deg, #945d2a, #382211);
}
.frontier-auth-security {
  margin-top: 18px;
  padding: 15px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid rgba(202,150,86,.18);
}
.frontier-auth-security span { color: #8fb892; font-size: .76rem; letter-spacing: .05em; }
.frontier-auth-security small { grid-column: 1 / -1; color: #7f7669; font-size: .75rem; line-height: 1.5; }
.frontier-auth-panel .frontier-auth-logout {
  margin-top: 11px;
  border: 1px solid rgba(157,111,65,.38);
  background: transparent;
  color: #9e866a;
  font-family: var(--frontier-display);
  font-size: .78rem;
  letter-spacing: .08em;
}
.frontier-auth-panel .frontier-auth-logout:hover { border-color: #a36835; color: #d7b78f; }
.frontier-auth-panel footer {
  margin-top: 28px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-top: 1px solid rgba(195,142,78,.14);
  color: #756650;
  font-family: var(--frontier-display);
  font-size: .7rem;
  letter-spacing: .13em;
}
.frontier-auth-panel footer strong { color: #a97b49 !important; font-size: .72rem; }

@media (max-width: 760px) {
  .modal.frontier-auth-modal { padding: 12px; }
  .frontier-auth-shell {
    width: min(570px, calc(100vw - 24px));
    min-height: 0;
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .frontier-auth-art { min-height: 165px; border-right: 0; border-bottom: 1px solid rgba(202,143,76,.35); background-size: cover, cover, auto 330%; background-position: center, center, 28% 34%; }
  .frontier-auth-art-copy { inset: auto 24px 18px; }
  .frontier-auth-art-copy img { display: none; }
  .frontier-auth-art-copy > span { margin-bottom: 4px; font-size: .67rem; }
  .frontier-auth-art-copy strong { font-size: 1.35rem; }
  .frontier-auth-art-copy small { display: none; }
  .frontier-auth-panel { padding: 35px 24px 22px; }
  .frontier-auth-close.close { top: 12px; right: 12px; }
  .frontier-auth-emblem { width: 76px; height: 76px; }
  .frontier-auth-emblem img { width: 62px; height: 62px; }
  .frontier-auth-panel h2 { font-size: 2rem; }
}
@media (max-width: 430px) {
  .frontier-auth-panel { padding-inline: 17px; }
  .frontier-auth-security { grid-template-columns: 1fr; }
  .frontier-auth-security small { grid-column: auto; }
}

/* Cuenta completa — registro, Discord obligatorio y Steam opcional */
.frontier-account-page {
  inset: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
  background:
    linear-gradient(180deg, rgba(3,2,1,.18), rgba(3,2,1,.82)),
    url("login-reference.png") center / cover fixed,
    #050302 !important;
  color: #e8d5b6;
}

.frontier-account-page::before {
  inset: 0 !important;
  opacity: 1 !important;
  background:
    radial-gradient(circle at 34% 20%, rgba(192,111,47,.16), transparent 29%),
    linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.76) 33%, rgba(0,0,0,.84) 68%, rgba(0,0,0,.42)) !important;
}

.frontier-account-page::after { display: none !important; }

.frontier-account-layout,
.frontier-account-features {
  position: relative;
  z-index: 1;
}

.frontier-account-layout {
  width: min(1536px, 100%);
  min-height: max(760px, calc(100vh - 88px - 118px));
  margin: 0 auto;
  padding: 36px clamp(24px, 3vw, 48px) 30px;
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(500px, 1.08fr) minmax(350px, .9fr);
  align-items: stretch;
  gap: 16px;
}

.frontier-account-art,
.frontier-account-card,
.frontier-account-benefits {
  min-width: 0;
  position: relative;
  border: 1px solid rgba(191,129,62,.64);
  outline: 1px solid rgba(229,178,109,.18);
  outline-offset: -7px;
  background-color: rgba(7,5,3,.95);
  box-shadow: 0 22px 55px rgba(0,0,0,.66), inset 0 0 38px rgba(174,99,40,.05);
}

.frontier-account-art::before,
.frontier-account-card::before,
.frontier-account-benefits::before {
  content: "◆";
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 8px;
  color: #b17a41;
  font-size: 9px;
}

.frontier-account-art {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2,2,1,.46), transparent 21%, rgba(2,2,1,.22) 58%, rgba(2,2,1,.93)),
    linear-gradient(90deg, rgba(4,2,1,.05), transparent 54%, rgba(4,2,1,.78)),
    url("login-reference.png") 0 58% / auto 112% no-repeat;
}

.frontier-account-art > div {
  width: min(230px, 82%);
  margin: 30px auto 0;
  display: grid;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(176,120,64,.36);
  background: rgba(10,7,4,.66);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}

.frontier-account-art > div span {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(195,143,80,.16);
  color: #d8b587;
  font-family: var(--frontier-display);
  font-size: clamp(.72rem, .9vw, .9rem);
  line-height: 1.15;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: 0 2px 5px #000;
}

.frontier-account-art > div span:last-child { border-bottom: 0; }

.frontier-account-art footer {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c29765;
  font-family: var(--frontier-display);
  font-size: .72rem;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px #000;
}

.frontier-account-art footer img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: sepia(.22) drop-shadow(0 4px 8px #000);
}

.frontier-account-card {
  padding: clamp(24px, 3.1vw, 44px) clamp(27px, 4vw, 54px) 20px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(6,5,4,.975), rgba(5,4,3,.985)),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.018) 5px 6px);
}

.frontier-account-brand {
  display: grid;
  justify-items: center;
  text-align: center;
}

.frontier-account-brand img {
  width: 96px;
  height: 96px;
  margin-bottom: 3px;
  object-fit: contain;
  filter: sepia(.16) drop-shadow(0 7px 13px rgba(0,0,0,.8));
}

.frontier-account-brand strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  color: #efd1a2 !important;
  font-family: var(--frontier-display);
  font-size: clamp(1.75rem, 2.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: .035em;
  text-shadow: 0 3px 10px #000;
}

.frontier-account-brand strong small {
  color: #c38a4d;
  font-size: .56em;
  letter-spacing: .1em;
}

.frontier-account-brand > span {
  margin-top: 17px;
  color: #dfbd8e;
  font-family: var(--frontier-display);
  font-size: .84rem;
  letter-spacing: .25em;
}

.frontier-account-brand p {
  margin: 7px 0 21px;
  color: #9e927f;
  font-family: Georgia, serif;
  font-size: .9rem;
  line-height: 1.45;
}

.frontier-auth-view,
.frontier-profile-view { margin-top: 0; }

.frontier-account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  border: 1px solid rgba(170,123,72,.42);
  background: #070706;
}

.frontier-account-tabs button {
  min-height: 52px;
  margin: 0;
  border: 0;
  border-right: 1px solid rgba(170,123,72,.24);
  border-radius: 0;
  background: transparent;
  color: #8f897f;
  font-family: var(--frontier-display);
  font-size: .82rem;
  letter-spacing: .08em;
}

.frontier-account-tabs button:last-child { border-right: 0; }
.frontier-account-tabs button:hover { color: #e4c49a; background: rgba(117,70,32,.16); }
.frontier-account-tabs button.active {
  color: #ffe0b4;
  background: linear-gradient(180deg, rgba(118,70,32,.48), rgba(47,28,14,.32));
  box-shadow: inset 0 -2px #dda05b, 0 7px 14px rgba(183,105,41,.11);
}

.frontier-account-form {
  display: grid;
  gap: 15px;
}

.frontier-account-form[hidden],
.frontier-auth-view[hidden],
.frontier-profile-view[hidden] { display: none !important; }

.frontier-account-form > label:not(.frontier-remember) { display: grid; gap: 7px; }
.frontier-account-form > label > span {
  color: #a38d70;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.frontier-account-form label > div {
  min-height: 52px;
  display: grid;
  grid-template-columns: 44px 1fr 42px;
  align-items: center;
  border: 1px solid #484540;
  background: linear-gradient(180deg, rgba(13,14,14,.97), rgba(7,8,8,.98));
  transition: border-color .2s ease, box-shadow .2s ease;
}

.frontier-account-form label > div:focus-within {
  border-color: #b77a3e;
  box-shadow: 0 0 0 3px rgba(189,119,53,.1);
}

.frontier-account-form label > div > b {
  color: #a7a7a4 !important;
  font-size: 1.06rem;
  text-align: center;
}

.frontier-account-form input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  padding: 0 8px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1e4cf;
  font-size: 1rem;
}

.frontier-account-form input::placeholder { color: #6e6d6a; }
.frontier-account-form [data-toggle-password] {
  width: 42px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f8b83;
  font-size: 1.1rem;
}

.frontier-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aaa397;
  font-size: .82rem;
}

.frontier-remember input { accent-color: #a56630; }

.frontier-account-submit,
.frontier-account-logout,
.frontier-link-card > a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b77b40;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), transparent 20% 80%, rgba(0,0,0,.35)),
    linear-gradient(180deg, #6c421f, #27170b);
  color: #f3d2a2;
  font-family: var(--frontier-display);
  font-size: .88rem;
  letter-spacing: .1em;
  text-decoration: none;
  box-shadow: inset 0 0 0 4px rgba(255,211,146,.06);
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}

.frontier-account-submit:hover,
.frontier-account-logout:hover,
.frontier-link-card > a:hover { transform: translateY(-2px); filter: brightness(1.16); border-color: #e0a862; }
.frontier-account-submit:disabled { cursor: wait; opacity: .66; transform: none; }
.frontier-account-form > small { color: #7e7568; font-size: .74rem; line-height: 1.5; text-align: center; }

.frontier-account-message {
  min-height: 21px;
  margin-top: 12px;
  color: #b9aa96;
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
}

.frontier-account-message[data-state="success"] { color: #7ed68b; }
.frontier-account-message[data-state="warning"] { color: #efb665; }
.frontier-account-message[data-state="error"] { color: #ef8176; }
.frontier-account-message[data-state="preview"] { color: #c8a677; }

.frontier-account-card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid rgba(184,132,72,.14);
  color: #8c6e49;
  font-family: var(--frontier-display);
  font-size: .7rem;
  letter-spacing: .16em;
  text-align: center;
}

.frontier-profile-identity {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(176,122,63,.34);
  background: rgba(33,22,13,.42);
}

.frontier-profile-identity img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #a66f39;
  border-radius: 50%;
  background: #050403;
}

.frontier-profile-identity span { color: #aa8c65; font-size: .65rem; letter-spacing: .13em; }
.frontier-profile-identity h1 { margin: 4px 0 2px; color: #f0d2a5; font-family: var(--frontier-display); font-size: 1.34rem; }
.frontier-profile-identity p { margin: 0; color: #8e8980; font-size: .78rem; overflow-wrap: anywhere; }

.frontier-profile-progress { margin: 16px 0; }
.frontier-profile-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.frontier-profile-progress strong { color: #d8a25d !important; font-family: var(--frontier-display); font-size: 1.08rem; }
.frontier-profile-progress span { color: #8d806e; font-size: .67rem; letter-spacing: .11em; }
.frontier-profile-progress > div:nth-child(2) { height: 7px; margin-top: 8px; overflow: hidden; border: 1px solid rgba(185,126,63,.28); background: #080706; }
.frontier-profile-progress i { width: 50%; height: 100%; display: block; background: linear-gradient(90deg, #874b21, #d59a52); box-shadow: 0 0 13px rgba(218,143,66,.38); transition: width .4s ease; }
.frontier-profile-progress p { margin: 8px 0 0; color: #a79b89; font-family: Georgia, serif; font-size: .8rem; line-height: 1.45; }

.frontier-link-card {
  min-height: 101px;
  margin-bottom: 13px;
  padding: 14px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(135,126,112,.34);
  background: linear-gradient(100deg, rgba(28,24,19,.84), rgba(9,9,9,.9));
}

.frontier-link-card.required { border-left: 3px solid #5865f2; }
.frontier-link-card.optional { border-left: 3px solid #92969c; }
.frontier-link-card.linked { border-color: rgba(78,178,96,.52); border-left-color: #4eb260; }
.frontier-link-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.25rem; }
.frontier-link-icon.discord { color: #7f8cff; }
.frontier-link-icon.steam { color: #cbd3df; }
.frontier-link-card small { color: #d29553; font-size: .6rem; letter-spacing: .13em; }
.frontier-link-card h2 { margin: 2px 0 4px; color: #ead0aa !important; font-family: var(--frontier-display); font-size: 1rem; }
.frontier-link-card p { margin: 0; color: #918d86; font-size: .73rem; line-height: 1.35; }
.frontier-link-card > a { min-height: 38px; padding: 0 14px; font-size: .67rem; }
.frontier-link-card > a.disabled { pointer-events: none; border-color: #397345; background: rgba(39,92,49,.3); color: #86d090; }
.frontier-account-logout { width: 100%; min-height: 42px; margin-top: 3px; border-color: rgba(156,102,56,.42); background: transparent; color: #9e8566; font-size: .72rem; }

.frontier-account-benefits {
  padding: 0 clamp(22px, 2.6vw, 38px) 28px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(7,7,6,.9), rgba(4,4,3,.98));
}

.frontier-benefit-hero {
  min-height: 186px;
  margin: 0 calc(clamp(22px, 2.6vw, 38px) * -1) 8px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(191,130,65,.44);
  background:
    linear-gradient(rgba(5,3,2,.19), rgba(5,3,2,.7)),
    url("login-reference.png") 89% 17% / 365% auto no-repeat;
}

.frontier-benefit-hero strong {
  padding: 0 20px;
  color: #efd3aa !important;
  font-family: Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.55;
  letter-spacing: .12em;
  text-align: center;
  text-shadow: 0 3px 10px #000;
}

.frontier-account-benefits > article {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(180,131,75,.13);
}

.frontier-account-benefits > article > span {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid #8f5d31;
  border-radius: 50%;
  color: #e0b379;
  font-size: 1.25rem;
}

.frontier-account-benefits h2 { margin: 0 0 4px; color: #ddb989 !important; font-family: var(--frontier-display); font-size: .9rem; letter-spacing: .04em; }
.frontier-account-benefits p { margin: 0; color: #a69c8d; font-family: Georgia, serif; font-size: .81rem; line-height: 1.45; }
.frontier-account-benefits > footer { margin-top: auto; padding-top: 24px; color: #b9824b; font-family: Georgia, serif; font-size: .95rem; font-style: italic; line-height: 1.7; text-align: center; }
.frontier-account-benefits > footer span { color: #80684d; font-family: var(--frontier-display); font-size: .65rem; font-style: normal; letter-spacing: .12em; }

.frontier-account-features {
  min-height: 118px;
  padding: 20px clamp(40px, 15vw, 240px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(195,138,73,.42);
  background: rgba(4,3,2,.96);
  box-shadow: 0 -14px 45px rgba(0,0,0,.5);
}

.frontier-account-features > span { display: grid; justify-items: center; align-content: center; gap: 7px; color: #d4a16a; font-size: 1.45rem; text-align: center; }
.frontier-account-features b { color: #b49267 !important; font-family: var(--frontier-display); font-size: .63rem; line-height: 1.35; letter-spacing: .07em; }

@media (max-width: 1220px) {
  .frontier-account-layout { grid-template-columns: minmax(480px, 1.05fr) minmax(340px, .8fr); max-width: 1030px; }
  .frontier-account-art { display: none; }
  .frontier-account-features { padding-inline: 8vw; }
}

@media (max-width: 860px) {
  .frontier-account-layout { min-height: 0; grid-template-columns: 1fr; max-width: 650px; padding: 20px 14px; }
  .frontier-account-card { min-height: 690px; padding: 30px 30px 20px; }
  .frontier-account-benefits { display: none; }
  .frontier-account-features { grid-template-columns: repeat(3, 1fr); padding: 20px 24px; }
}

@media (max-width: 520px) {
  .frontier-account-layout { padding: 10px 8px 16px; }
  .frontier-account-card { min-height: 0; padding: 24px 16px 17px; }
  .frontier-account-brand img { width: 73px; height: 73px; }
  .frontier-account-brand strong { font-size: 1.55rem; }
  .frontier-account-brand > span { font-size: .72rem; }
  .frontier-account-tabs button { min-height: 48px; padding-inline: 6px; font-size: .68rem; }
  .frontier-link-card { grid-template-columns: 42px 1fr; }
  .frontier-link-icon { width: 40px; height: 40px; }
  .frontier-link-card > a { grid-column: 1 / -1; width: 100%; }
  .frontier-account-card-footer { margin-top: 24px; font-size: .58rem; }
  .frontier-account-features { grid-template-columns: repeat(2, 1fr); padding-inline: 12px; }
}

/* Status: live frontier dashboard based on the supplied reference */
#page-server.status-redesigned {
  background: #030302 !important;
}

#page-server.status-redesigned::before,
#page-server.status-redesigned > .server-bg { display: none !important; }

.frontier-status-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d9c8b2;
}

.frontier-status-hero {
  position: relative;
  min-height: clamp(245px, 29vw, 365px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #8a5428;
  background:
    linear-gradient(90deg, rgba(4,3,2,.72), rgba(4,3,2,.2) 28%, rgba(4,3,2,.16) 70%, rgba(4,3,2,.74)),
    linear-gradient(180deg, rgba(2,2,2,.08), rgba(2,2,2,.12) 55%, rgba(2,2,2,.82)),
    url("status-reference.png") center 23% / cover no-repeat;
}

.frontier-status-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0,0,0,.74), inset 0 -45px 50px rgba(0,0,0,.76);
}

.frontier-status-hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 82vw);
  padding-top: 12px;
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 4px 15px #000, 0 0 30px #000;
}

.frontier-status-hero-copy img {
  width: clamp(70px, 7vw, 104px);
  height: clamp(70px, 7vw, 104px);
  margin-bottom: -17px;
  object-fit: contain;
  filter: sepia(.12) saturate(.78) drop-shadow(0 5px 9px #000);
}

.frontier-status-hero-copy h1 {
  margin: 0;
  color: #e3c49b !important;
  font-family: var(--frontier-display);
  font-size: clamp(2.35rem, 5.7vw, 5.4rem);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.frontier-status-hero-copy h1 small {
  display: block;
  margin-top: 13px;
  color: #dfb77d;
  font-size: .35em;
  letter-spacing: .32em;
}

.frontier-status-hero-copy > span {
  margin-top: 12px;
  color: #d7b78e;
  font-family: Georgia, serif;
  font-size: clamp(.68rem, 1.1vw, .94rem);
  letter-spacing: .25em;
}

.frontier-status-hero-copy p {
  max-width: 610px;
  margin: 11px 0 0;
  color: #d7cdc0;
  font-family: Georgia, serif;
  font-size: clamp(.75rem, 1vw, .93rem);
  line-height: 1.4;
}

.frontier-status-dashboard {
  width: min(1620px, calc(100% - 42px));
  margin: 0 auto;
  padding: 12px 0 14px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 11px;
}

.frontier-status-card {
  position: relative;
  min-width: 0;
  padding: 15px 17px;
  overflow: hidden;
  border: 1px solid #77502e;
  outline: 1px solid rgba(184,126,67,.18);
  outline-offset: -5px;
  background:
    linear-gradient(135deg, rgba(29,24,18,.86), rgba(5,5,4,.96) 68%),
    repeating-linear-gradient(5deg, rgba(255,255,255,.016) 0 1px, transparent 1px 5px);
  box-shadow: 0 8px 25px rgba(0,0,0,.48), inset 0 0 30px rgba(0,0,0,.52);
}

.frontier-status-card::before,
.frontier-status-card::after {
  content: "◆";
  position: absolute;
  top: 4px;
  color: #a5713c;
  font-size: .42rem;
}
.frontier-status-card::before { left: 5px; }
.frontier-status-card::after { right: 5px; }

.frontier-status-card h2 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(197,143,82,.22);
  color: #dfbd8f !important;
  font-family: var(--frontier-display);
  font-size: clamp(.75rem, .95vw, .96rem);
  letter-spacing: .06em;
}

.frontier-status-card h2 > span { color: #f2c58d; font-size: 1.05em; }
.server-state-card,
.player-state-card,
.server-map-card,
.services-card { grid-column: span 3; min-height: 278px; }
.performance-card,
.activity-card,
.events-card,
.frontier-status-quote { grid-column: span 3; min-height: 198px; }

.server-live-state {
  position: relative;
  padding-left: 42px;
  display: grid;
  align-content: center;
  min-height: 60px;
}
.server-live-state > i {
  position: absolute;
  left: 3px;
  top: 12px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #2fd064;
  box-shadow: 0 0 20px rgba(47,208,100,.65);
}
.server-live-state strong { color: #49db73 !important; font-family: var(--frontier-display); font-size: clamp(1.45rem, 2vw, 2.1rem); letter-spacing: .04em; }
.server-live-state small { color: #aaa094; font-family: Georgia, serif; font-size: .7rem; }
.server-live-state.offline > i { background: #8e6c45; box-shadow: none; }
.server-live-state.offline strong { color: #b6956e !important; }

.server-facts { margin: 7px 0 12px; }
.server-facts > div { padding: 6px 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; border-top: 1px solid rgba(205,171,128,.12); }
.server-facts dt { color: #cbb18f; font-family: var(--frontier-display); font-size: .62rem; letter-spacing: .06em; }
.server-facts dd { margin: 0; color: #8f8981; font-size: .67rem; }

.frontier-status-connect {
  width: 100%;
  min-height: 43px;
  border: 1px solid #b37a42;
  outline: 1px solid rgba(223,165,95,.2);
  outline-offset: -5px;
  background: linear-gradient(180deg, #60401f, #24170e);
  color: #efd0a7;
  font-family: var(--frontier-display);
  font-size: .7rem;
  letter-spacing: .07em;
  box-shadow: inset 0 0 18px rgba(237,177,101,.12);
}
.frontier-status-connect:hover { background: linear-gradient(180deg, #82562b, #312014); }
.frontier-status-guide { margin-top: 8px; padding: 8px 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; border: 1px solid rgba(185,128,67,.48); color: #d2ad7e; font-family: var(--frontier-display); font-size: .62rem; }
.frontier-status-guide span { color: #8f867a; font-family: Georgia, serif; font-size: .66rem; }
.frontier-status-guide b { font-size: 1.3rem; }

.player-total { margin: 17px 0 10px; display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.player-total strong { color: #f0d3ad !important; font-family: var(--frontier-display); font-size: clamp(2.4rem, 4vw, 4rem); }
.player-total span { color: #756a5e; font-size: 2.2rem; }
.player-total b { color: #9e9183 !important; font-family: var(--frontier-display); font-size: clamp(1.6rem, 2.4vw, 2.45rem); }
.player-meter { height: 13px; padding: 3px; overflow: hidden; border-radius: 8px; background: #191917; box-shadow: inset 0 0 5px #000; }
.player-meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #29b94f, #50df78); box-shadow: 0 0 12px rgba(46,207,97,.35); transition: width .5s ease; }
.player-percent { margin: 6px 0 17px; color: #a39a90; font-size: .68rem; text-align: right; }
.player-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.player-summary span { padding: 10px 5px; display: grid; gap: 3px; justify-items: center; border: 1px solid rgba(193,144,85,.18); color: #8e867e; font-size: .58rem; }
.player-summary b { color: #ddb782 !important; font-family: var(--frontier-display); font-size: 1rem; }
.player-summary span:first-child b { color: #40d96d !important; }

.server-map-card { display: flex; flex-direction: column; }
.server-map-art {
  position: relative;
  min-height: 172px;
  flex: 1;
  overflow: hidden;
  opacity: .9;
  background:
    linear-gradient(rgba(7,6,4,.08), rgba(7,6,4,.2)),
    url("status-reference.png") 63% 59% / 355% auto no-repeat;
  filter: sepia(.2) contrast(1.08);
}
.server-map-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 34px #060504; pointer-events: none; }
.server-map-art span { position: absolute; z-index: 2; color: #d3a66f; font-family: var(--frontier-display); font-size: .51rem; text-shadow: 0 2px 4px #000; }
.server-map-art span:nth-child(1) { top: 18%; left: 43%; }
.server-map-art span:nth-child(2) { top: 32%; right: 10%; }
.server-map-art span:nth-child(3) { top: 53%; left: 8%; }
.server-map-art span:nth-child(4) { top: 68%; right: 15%; }
.server-map-art span:nth-child(5) { bottom: 9%; left: 35%; }
.server-map-card > a { align-self: end; margin-top: 8px; padding: 8px 12px; border: 1px solid #8d5d32; color: #dab686; font-family: var(--frontier-display); font-size: .58rem; }

.services-card ul,
.activity-card ul,
.events-card ul { margin: 0; padding: 0; list-style: none; }
.services-card li { min-height: 20px; display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; color: #c2bbb1; font-size: .65rem; }
.services-card li i,
.activity-card li > i { width: 8px; height: 8px; border-radius: 50%; background: #36d264; box-shadow: 0 0 8px rgba(54,210,100,.45); }
.services-card li b { color: #3ed969 !important; font-family: var(--frontier-display); font-size: .5rem; letter-spacing: .06em; }

.performance-grid { height: 135px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.performance-grid > span { position: relative; padding: 10px 8px; display: grid; align-content: start; gap: 5px; overflow: hidden; border: 1px solid rgba(194,141,82,.14); }
.performance-grid small { color: #8d857c; font-size: .51rem; }
.performance-grid b { color: #d8c1a2 !important; font-family: var(--frontier-display); font-size: 1.17rem; }
.performance-grid i { position: absolute; left: 7px; right: 7px; bottom: 8px; height: 48px; clip-path: polygon(0 85%, 15% 68%, 28% 76%, 42% 43%, 54% 56%, 70% 22%, 84% 46%, 100% 8%, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(64,197,97,.72), rgba(64,197,97,.04)); }
.performance-grid > span:nth-child(2) i { background: linear-gradient(180deg, rgba(58,153,226,.72), rgba(58,153,226,.04)); }
.performance-grid > span:nth-child(3) i { background: linear-gradient(180deg, rgba(230,149,54,.75), rgba(230,149,54,.04)); }

.activity-card li { min-height: 38px; display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: center; border-bottom: 1px solid rgba(192,143,85,.1); color: #c2b9ad; font-size: .67rem; }
.activity-card li small { grid-column: 2; margin-top: -8px; color: #77716b; font-size: .55rem; }
.events-card li { min-height: 40px; display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: center; border-bottom: 1px solid rgba(192,143,85,.1); color: #c9bfb1; font-size: .67rem; }
.events-card li > b { color: #e1bc87 !important; font-size: .95rem; text-align: center; }
.events-card li span { display: grid; gap: 2px; }
.events-card li small { color: #77716b; font-size: .55rem; }

.frontier-status-quote {
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid #77502e;
  outline: 1px solid rgba(184,126,67,.18);
  outline-offset: -5px;
  background:
    linear-gradient(rgba(4,3,2,.5), rgba(4,3,2,.78)),
    url("status-reference.png") 83% 71% / 365% auto no-repeat;
  color: #ecd2ac;
  text-align: center;
  text-shadow: 0 3px 9px #000;
}
.frontier-status-quote strong { font-family: Georgia, serif; font-size: .86rem; line-height: 1.65; letter-spacing: .14em; }
.frontier-status-quote span { color: #a87641; font-family: var(--frontier-display); font-size: .57rem; letter-spacing: .1em; }

.frontier-status-footer {
  min-height: 68px;
  padding: 12px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #79502b;
  background: #050403;
  color: #8d806f;
  font-family: Georgia, serif;
  font-size: .59rem;
  line-height: 1.5;
  letter-spacing: .12em;
}
.frontier-status-footer strong { color: #bf9564 !important; font-family: var(--frontier-display); font-size: .67rem; letter-spacing: .16em; text-align: center; }
.frontier-status-footer span:last-child { text-align: right; }

.rule-volume-count {
  display: block;
  margin: -4px 0 13px;
  color: #9f754a !important;
  font-family: var(--frontier-display);
  font-size: .58rem !important;
  letter-spacing: .08em;
}

/* One navigation bar, one height and one visual language on every inner page */
body[data-route]:not([data-route="home"]) .topbar {
  height: 92px !important;
  min-height: 92px !important;
  flex-basis: 92px !important;
  padding: 0 18px !important;
  display: flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0 !important;
}
body[data-route]:not([data-route="home"]) .brand {
  width: auto !important;
  min-width: clamp(210px, 21vw, 335px) !important;
  height: 92px !important;
  flex: 0 1 clamp(210px, 21vw, 335px);
  padding-right: 18px;
}
body[data-route]:not([data-route="home"]) .brand img { width: 66px; height: 66px; }
body[data-route]:not([data-route="home"]) #nav {
  position: static !important;
  width: auto !important;
  height: 92px !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  padding: 0 !important;
  display: flex !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  justify-content: stretch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  scrollbar-width: none;
}
body[data-route]:not([data-route="home"]) #nav::-webkit-scrollbar { display: none; }
body[data-route]:not([data-route="home"]) #nav > .nav-btn {
  width: auto !important;
  min-width: 82px !important;
  min-height: 92px !important;
  flex: 1 0 82px !important;
  padding: 9px 7px 8px !important;
  font-size: clamp(.54rem, .68vw, .7rem) !important;
}
body[data-route]:not([data-route="home"]) .actions {
  width: auto !important;
  min-width: clamp(190px, 19vw, 310px) !important;
  height: 92px !important;
  flex: 0 1 clamp(190px, 19vw, 310px);
  padding-left: 12px !important;
}
body[data-route]:not([data-route="home"]) #musicBtn {
  position: fixed;
  right: 17px;
  bottom: 17px;
  z-index: 700;
  border-color: #8f5e32;
  background: rgba(12,9,6,.92);
  box-shadow: 0 7px 22px rgba(0,0,0,.5);
}

@media (max-width: 1180px) {
  body[data-route]:not([data-route="home"]) .topbar { padding-inline: 10px !important; }
  body[data-route]:not([data-route="home"]) .brand { min-width: 176px !important; flex-basis: 176px; padding-right: 9px; }
  body[data-route]:not([data-route="home"]) .brand img { width: 54px; height: 54px; }
  body[data-route]:not([data-route="home"]) .brand strong { font-size: .86rem; }
  body[data-route]:not([data-route="home"]) .actions { min-width: 58px !important; flex-basis: 58px; padding-left: 7px !important; }
  body[data-route]:not([data-route="home"]) .steam-profile-btn { min-width: 48px; width: 48px; height: 48px; padding: 3px; }
  body[data-route]:not([data-route="home"]) .steam-profile-btn img { width: 40px; height: 40px; }
  body[data-route]:not([data-route="home"]) .steam-profile-copy { display: none; }
  .frontier-status-dashboard { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .server-state-card, .player-state-card, .server-map-card, .services-card,
  .performance-card, .activity-card, .events-card, .frontier-status-quote { grid-column: span 3; }
}

@media (max-width: 760px) {
  body[data-route]:not([data-route="home"]) .topbar {
    height: 74px !important;
    min-height: 74px !important;
    flex-basis: 74px !important;
    padding-inline: 7px !important;
  }
  body[data-route]:not([data-route="home"]) .brand { min-width: 56px !important; height: 74px !important; flex-basis: 56px; padding: 0 6px 0 0; }
  body[data-route]:not([data-route="home"]) .brand img { width: 48px; height: 48px; }
  body[data-route]:not([data-route="home"]) .brand strong { display: none; }
  body[data-route]:not([data-route="home"]) #nav { height: 74px !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn { min-width: 68px !important; min-height: 74px !important; flex-basis: 68px !important; gap: 4px; padding-inline: 3px !important; font-size: .5rem !important; }
  body[data-route]:not([data-route="home"]) .nav-glyph svg { width: 21px; height: 21px; }
  body[data-route]:not([data-route="home"]) .actions { display: none; }
  body[data-route]:not([data-route="home"]) #musicBtn { display: grid !important; width: 40px; height: 40px; }
  .frontier-status-dashboard { width: min(100% - 16px, 620px); grid-template-columns: 1fr; gap: 9px; }
  .server-state-card, .player-state-card, .server-map-card, .services-card,
  .performance-card, .activity-card, .events-card, .frontier-status-quote { grid-column: 1; min-height: 0; }
  .frontier-status-hero { min-height: 245px; }
  .frontier-status-hero-copy p { max-width: 88%; }
  .frontier-status-footer { grid-template-columns: 1fr; padding: 18px; text-align: center; }
  .frontier-status-footer span:last-child { text-align: center; }
}

.performance-grid > span { position: relative; overflow: hidden; }
.performance-grid svg {
  width: 100%;
  height: 38px;
  margin-top: 8px;
  display: block;
  overflow: visible;
  border-top: 1px solid rgba(163,107,54,.22);
  background: linear-gradient(180deg, rgba(188,119,54,.06), transparent);
}
.performance-grid polyline {
  fill: none;
  stroke: #d28c42;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(210,140,66,.45));
  transition: points .45s ease;
}
.services-card li.offline i { background: #a94436 !important; box-shadow: 0 0 9px rgba(169,68,54,.5) !important; }
.services-card li.offline b { color: #b66c5c !important; }
.support-ticket-action {
  margin-top: 10px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b97a3d;
  color: #f1d0a5 !important;
  background: linear-gradient(180deg, #69401f, #2a190f);
  font-family: var(--frontier-display);
  font-size: .62rem;
  letter-spacing: .06em;
}
.support-ticket-action:hover { background: linear-gradient(180deg, #87542c, #352014); }
.donation-reward {
  margin: -2px 0 10px;
  display: block;
  color: #d39a59 !important;
  font-size: .55rem !important;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .04em !important;
}

/* Final shared header: identical proportions on every category and subpage */
body[data-route]:not([data-route="home"]) .topbar {
  --lf-header-height: 92px;
  position: sticky !important;
  top: 0;
  z-index: 500;
  width: 100%;
  height: var(--lf-header-height) !important;
  min-height: var(--lf-header-height) !important;
  flex: 0 0 var(--lf-header-height) !important;
  padding: 0 clamp(12px, 1.65vw, 28px) !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  border-bottom: 1px solid #8f572c !important;
  background:
    linear-gradient(90deg, rgba(91,46,22,.12), transparent 22% 78%, rgba(91,46,22,.09)),
    linear-gradient(180deg, rgba(14,13,11,.995), rgba(5,5,4,.99)) !important;
  box-shadow: 0 2px 0 rgba(219,157,85,.14), 0 12px 34px rgba(0,0,0,.58) !important;
}
body[data-route]:not([data-route="home"]) .mobile-menu { display: none !important; }
body[data-route]:not([data-route="home"]) .brand {
  width: clamp(230px, 18vw, 300px) !important;
  min-width: clamp(230px, 18vw, 300px) !important;
  height: var(--lf-header-height) !important;
  flex: 0 0 clamp(230px, 18vw, 300px) !important;
  padding: 0 18px 0 0 !important;
  gap: 11px !important;
  border-right: 1px solid rgba(215,164,99,.18) !important;
}
body[data-route]:not([data-route="home"]) .brand img {
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px;
}
body[data-route]:not([data-route="home"]) .brand strong {
  display: grid !important;
  color: #e2c49b !important;
  font-size: clamp(1.02rem, 1.34vw, 1.4rem) !important;
  letter-spacing: .075em !important;
  white-space: nowrap;
}
body[data-route]:not([data-route="home"]) .brand strong small {
  margin-top: 7px !important;
  color: #bd9363 !important;
  font-size: .72rem !important;
  letter-spacing: .3em !important;
}
body[data-route]:not([data-route="home"]) #nav {
  position: static !important;
  width: auto !important;
  height: var(--lf-header-height) !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  scrollbar-width: none;
}
body[data-route]:not([data-route="home"]) #nav::-webkit-scrollbar { display: none; }
body[data-route]:not([data-route="home"]) #nav > .nav-btn {
  width: auto !important;
  min-width: 84px !important;
  min-height: var(--lf-header-height) !important;
  flex: 1 1 92px !important;
  padding: 10px 7px 8px !important;
  gap: 6px !important;
  border-right: 1px solid rgba(215,164,99,.16) !important;
  color: #c9ac86 !important;
  font-size: clamp(.6rem, .7vw, .72rem) !important;
  line-height: 1 !important;
  letter-spacing: .055em !important;
}
body[data-route]:not([data-route="home"]) #nav > .nav-btn:hover,
body[data-route]:not([data-route="home"]) #nav > .nav-btn.active {
  color: #f2d1a3 !important;
  background: linear-gradient(180deg, rgba(188,111,48,.085), rgba(188,111,48,.018)) !important;
}
body[data-route]:not([data-route="home"]) #nav > .nav-btn::after {
  left: 15px !important;
  right: 15px !important;
  bottom: 4px !important;
}
body[data-route]:not([data-route="home"]) .nav-glyph,
body[data-route]:not([data-route="home"]) .nav-glyph svg {
  width: 28px !important;
  height: 28px !important;
}
body[data-route]:not([data-route="home"]) .actions {
  width: clamp(205px, 17vw, 270px) !important;
  min-width: clamp(205px, 17vw, 270px) !important;
  height: var(--lf-header-height) !important;
  flex: 0 0 clamp(205px, 17vw, 270px) !important;
  padding: 0 0 0 16px !important;
  display: flex !important;
  align-items: center !important;
}
body[data-route]:not([data-route="home"]) .steam-profile-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 62px !important;
}
body[data-route]:not([data-route="home"]) #musicBtn {
  position: fixed !important;
  right: 17px;
  bottom: 17px;
  z-index: 700;
}

@media (max-width: 1180px) {
  body[data-route]:not([data-route="home"]) .brand {
    width: 176px !important;
    min-width: 176px !important;
    flex-basis: 176px !important;
    padding-right: 9px !important;
  }
  body[data-route]:not([data-route="home"]) .brand img { width: 54px !important; height: 54px !important; flex-basis: 54px; }
  body[data-route]:not([data-route="home"]) .brand strong { font-size: .84rem !important; }
  body[data-route]:not([data-route="home"]) .brand strong small { font-size: .54rem !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn { min-width: 76px !important; flex-basis: 76px !important; }
  body[data-route]:not([data-route="home"]) .actions { width: 58px !important; min-width: 58px !important; flex-basis: 58px !important; padding-left: 8px !important; }
  body[data-route]:not([data-route="home"]) .steam-profile-btn { width: 48px !important; height: 48px !important; padding: 3px !important; }
  body[data-route]:not([data-route="home"]) .steam-profile-btn img { width: 40px !important; height: 40px !important; }
  body[data-route]:not([data-route="home"]) .steam-profile-copy { display: none !important; }
}

@media (max-width: 760px) {
  body[data-route]:not([data-route="home"]) .topbar {
    --lf-header-height: 74px;
    padding-inline: 7px !important;
  }
  body[data-route]:not([data-route="home"]) .brand { width: 56px !important; min-width: 56px !important; flex-basis: 56px !important; padding-right: 6px !important; }
  body[data-route]:not([data-route="home"]) .brand img { width: 48px !important; height: 48px !important; flex-basis: 48px; }
  body[data-route]:not([data-route="home"]) .brand strong { display: none !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn { min-width: 68px !important; flex-basis: 68px !important; padding-inline: 3px !important; gap: 4px !important; font-size: .5rem !important; }
  body[data-route]:not([data-route="home"]) .nav-glyph,
  body[data-route]:not([data-route="home"]) .nav-glyph svg { width: 21px !important; height: 21px !important; }
  body[data-route]:not([data-route="home"]) .actions { display: none !important; }
  body[data-route]:not([data-route="home"]) #musicBtn { display: grid !important; width: 40px !important; height: 40px !important; }
}

/* New black-and-red cinematic entry sequence */
.cinematic-intro {
  background: #020202 !important;
  backdrop-filter: saturate(.72) contrast(1.12) !important;
}
.cinematic-video {
  opacity: .78 !important;
  filter: grayscale(.2) saturate(.78) contrast(1.18) brightness(.58) !important;
  transform: scale(1.035) !important;
}
.cinematic-shade {
  background:
    radial-gradient(circle at 50% 45%, rgba(135,20,16,.08), transparent 36%),
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.34) 48%, rgba(0,0,0,.82)),
    linear-gradient(180deg, rgba(0,0,0,.52), transparent 34%, rgba(0,0,0,.9)) !important;
}
.cinematic-intro::before,
.cinematic-intro::after {
  height: clamp(34px, 5.8vh, 64px) !important;
  background:
    linear-gradient(90deg, transparent, rgba(133,22,18,.65), transparent) bottom / 100% 1px no-repeat,
    #020202 !important;
}
.cinematic-intro::after {
  background:
    linear-gradient(90deg, transparent, rgba(133,22,18,.65), transparent) top / 100% 1px no-repeat,
    #020202 !important;
}
.cinematic-frame {
  inset: calc(clamp(34px, 5.8vh, 64px) + 13px) 18px !important;
  border-color: rgba(152,35,27,.36) !important;
  box-shadow: inset 0 0 80px rgba(0,0,0,.36), 0 0 32px rgba(100,12,10,.1);
}
.cinematic-frame::before,
.cinematic-frame::after { color: #b83a2d !important; text-shadow: 0 0 16px rgba(180,30,24,.55) !important; }
.cinematic-copy {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: min(720px, calc(100% - 52px)) !important;
  padding: clamp(24px, 4.5vw, 44px) clamp(22px, 5vw, 54px) 28px !important;
  display: grid !important;
  justify-items: stretch !important;
  border: 1px solid rgba(132,30,24,.72) !important;
  border-left-width: 1px !important;
  outline: 1px solid rgba(243,214,177,.08);
  outline-offset: -8px;
  background:
    linear-gradient(135deg, rgba(117,22,17,.12), transparent 30% 70%, rgba(117,22,17,.1)),
    rgba(3,3,3,.91) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.82), inset 0 0 70px rgba(0,0,0,.48), 0 0 45px rgba(111,16,13,.12);
  text-align: center !important;
  text-shadow: 0 3px 20px #000 !important;
}
.cinematic-copy::before,
.cinematic-copy::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 82px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b83a2d);
  box-shadow: 0 0 14px rgba(184,58,45,.6);
}
.cinematic-copy::before { left: 18px; }
.cinematic-copy::after { right: 18px; transform: scaleX(-1); }
.cinematic-copy > img { display: none !important; }
.cinematic-console-head {
  margin: calc(clamp(24px, 4.5vw, 44px) * -1) calc(clamp(22px, 5vw, 54px) * -1) 28px;
  min-height: 42px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(132,30,24,.48);
  background: rgba(0,0,0,.64);
  color: #b9a993;
  font-family: var(--frontier-display);
  font-size: .68rem;
  letter-spacing: .12em;
}
.cinematic-console-head span { display: inline-flex; align-items: center; gap: 9px; }
.cinematic-console-head span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5362b;
  box-shadow: 0 0 13px rgba(226,49,39,.85);
  animation: introSignal 1.1s ease-in-out infinite;
}
.cinematic-console-head b { color: #c15549; font-size: .62rem; letter-spacing: .13em; }
@keyframes introSignal { 50% { opacity: .35; transform: scale(.78); } }
.cinematic-overline {
  color: #b6463b !important;
  font-size: clamp(.65rem, 1vw, .78rem) !important;
  letter-spacing: .3em !important;
}
.cinematic-title { margin-top: 13px; gap: 8px !important; }
.cinematic-title small {
  color: #cbb89d !important;
  font-size: clamp(.74rem, 1.2vw, .92rem) !important;
  letter-spacing: .34em !important;
}
.cinematic-title strong {
  color: #f0dbc0 !important;
  font-size: clamp(2rem, 4.25vw, 4rem) !important;
  line-height: 1 !important;
  letter-spacing: .035em !important;
  text-shadow: 0 4px 28px #000, 0 0 24px rgba(145,32,25,.18) !important;
}
.cinematic-copy > p {
  margin: 15px 0 24px !important;
  color: #aa9b88 !important;
  font-size: clamp(.88rem, 1.2vw, 1rem) !important;
  letter-spacing: .045em !important;
}
.cinematic-loader { display: grid; gap: 9px; text-align: left; }
.cinematic-loader-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #b4a590;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}
.cinematic-loader-label strong { color: #dc5144; font-family: var(--frontier-display); font-size: .8rem; }
.cinematic-progress {
  position: relative !important;
  width: 100% !important;
  height: 8px !important;
  display: block !important;
  overflow: hidden !important;
  border: 1px solid rgba(155,42,34,.55);
  background: #090303 !important;
  box-shadow: inset 0 0 10px #000, 0 0 18px rgba(145,22,17,.12);
}
.cinematic-progress i {
  width: 1%;
  height: 100%;
  transform: none !important;
  animation: none !important;
  background: linear-gradient(90deg, #5f0f0d, #b32620 70%, #ee6255) !important;
  box-shadow: 0 0 14px rgba(222,49,39,.7) !important;
  transition: width .08s linear;
}
.cinematic-progress > b {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -18%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255,230,205,.9), transparent);
  filter: blur(.2px);
  animation: introScanner 1.15s linear infinite;
}
@keyframes introScanner { to { transform: translateX(760%); } }
.cinematic-loader > small {
  min-height: 17px;
  color: #796e61;
  font-size: .66rem;
  letter-spacing: .08em;
}
.cinematic-copy button {
  justify-self: center;
  min-width: min(310px, 100%);
  min-height: 48px !important;
  margin-top: 24px !important;
  border-color: #9a332b !important;
  color: #e8c8ab !important;
  background: linear-gradient(180deg, rgba(73,18,15,.94), rgba(20,7,6,.98)) !important;
  box-shadow: inset 0 0 18px rgba(179,41,32,.08), 0 10px 30px rgba(0,0,0,.4);
}
.cinematic-copy button:disabled {
  cursor: wait;
  opacity: .56;
  filter: grayscale(.35);
}
.cinematic-intro.load-complete .cinematic-copy button {
  border-color: #cf5044 !important;
  box-shadow: 0 0 24px rgba(191,42,33,.22), inset 0 0 20px rgba(191,42,33,.12);
}
.cinematic-intro.load-complete .cinematic-console-head b { color: #d9a789; }
.cinematic-copy em {
  margin-top: 12px !important;
  color: #635a50 !important;
  font-size: .61rem !important;
  letter-spacing: .12em !important;
  text-align: center;
}

@media (max-width: 760px) {
  .cinematic-frame { inset-inline: 9px !important; }
  .cinematic-copy { width: calc(100% - 32px) !important; padding: 24px 18px 22px !important; }
  .cinematic-console-head { margin: -24px -18px 22px; padding-inline: 12px; }
  .cinematic-console-head b { display: none; }
  .cinematic-overline { letter-spacing: .2em !important; }
  .cinematic-title strong { font-size: clamp(1.85rem, 9vw, 2.8rem) !important; }
  .cinematic-title small { letter-spacing: .22em !important; }
  .cinematic-copy > p { margin-bottom: 19px !important; }
  .cinematic-copy em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-progress > b,
  .cinematic-console-head span i { animation: none !important; }
}

/* Status uses only the hero strip from the reference image, never its embedded header or dashboard. */
#page-server.status-redesigned .frontier-status-hero {
  width: 100% !important;
  height: clamp(245px, 17.45vw, 360px) !important;
  min-height: 0 !important;
  background-image:
    linear-gradient(90deg, rgba(4,3,2,.62), rgba(4,3,2,.08) 32% 68%, rgba(4,3,2,.64)),
    linear-gradient(180deg, rgba(2,2,2,.04), rgba(2,2,2,.08) 62%, rgba(2,2,2,.72)),
    url("status-reference.png") !important;
  background-size: 100% 100%, 100% 100%, auto 323.4% !important;
  background-position: center, center, center 11.55% !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 760px) {
  #page-server.status-redesigned .frontier-status-hero {
    height: 245px !important;
    background-size: 100% 100%, 100% 100%, auto 323.4% !important;
    background-position: center, center, center 11.55% !important;
  }
}

/* Pixel-matched desktop navigation: the same strip shown inside the home artwork. */
@media (min-width: 761px) {
  body[data-route]:not([data-route="home"]) .topbar {
    --lf-header-height: clamp(58px, 9.65dvh, 92px);
    width: 100% !important;
    height: var(--lf-header-height) !important;
    min-height: var(--lf-header-height) !important;
    flex: 0 0 var(--lf-header-height) !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    background-image: url("fronteriza-home-reference.png") !important;
    background-size: 100% 100dvh !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.58) !important;
  }
  body[data-route]:not([data-route="home"]) .topbar::before,
  body[data-route]:not([data-route="home"]) .topbar::after { display: none !important; }

  body[data-route]:not([data-route="home"]) .brand {
    width: 21.55% !important;
    min-width: 21.55% !important;
    height: var(--lf-header-height) !important;
    flex: 0 0 21.55% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body[data-route]:not([data-route="home"]) .brand > * { opacity: 0 !important; }

  body[data-route]:not([data-route="home"]) #nav {
    width: 53.8% !important;
    min-width: 0 !important;
    height: var(--lf-header-height) !important;
    flex: 0 0 53.8% !important;
    overflow: visible !important;
  }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn {
    width: auto !important;
    min-width: 0 !important;
    min-height: var(--lf-header-height) !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn[data-page="home"] { flex: 0 0 14.03% !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn[data-page="rules"] { flex: 0 0 14.78% !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn[data-page="donations"] { flex: 0 0 15.8% !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn[data-page="contact"] { flex: 0 0 13.1% !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn[data-page="server"] { flex: 0 0 11.43% !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn[data-page="store"] { flex: 0 0 15.33% !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn[data-page="community"] { flex: 0 0 15.52% !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn > * { opacity: 0 !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn::after { display: none !important; }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn:hover {
    background: rgba(232,183,119,.035) !important;
  }
  body[data-route]:not([data-route="home"]) #nav > .nav-btn:focus-visible {
    outline: 2px solid #e8b777 !important;
    outline-offset: -5px !important;
  }

  body[data-route]:not([data-route="home"]) .actions {
    position: relative !important;
    width: 24.65% !important;
    min-width: 0 !important;
    height: var(--lf-header-height) !important;
    flex: 0 0 24.65% !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
  }
  body[data-route]:not([data-route="home"]) .steam-profile-btn {
    position: absolute !important;
    left: 36.1% !important;
    top: 16% !important;
    width: 57.8% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 70% !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body[data-route]:not([data-route="home"]) .steam-profile-btn:focus-visible {
    opacity: .12 !important;
    outline: 2px solid #e8b777 !important;
    outline-offset: -3px !important;
  }
}

/* The supplied home strip is 61px tall; every desktop route now uses that exact height. */
@media (min-width: 761px) {
  body[data-route]:not([data-route="home"]) .topbar {
    --lf-header-height: 61px;
    background-size: 100% 632px !important;
  }
}

/* Normativas: current rulebooks presented with the supplied frontier composition. */
#page-rules.rules-redesigned {
  background: #030302 !important;
}
#page-rules.rules-redesigned::before { display: none !important; }
.rules-reference-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d9c8b2;
}
.rules-reference-content .rules-library {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  outline: 0 !important;
  background:
    radial-gradient(circle at 50% 28%, rgba(114,58,25,.12), transparent 31%),
    #030302 !important;
  box-shadow: none !important;
}
.rules-reference-content .rules-library::before,
.rules-reference-content .rules-library::after { display: none !important; }
.rules-reference-hero {
  position: relative;
  width: 100%;
  height: clamp(260px, 18.96vw, 355px);
  overflow: hidden;
  border-bottom: 1px solid #8b562b;
  background-image:
    linear-gradient(90deg, rgba(3,2,1,.28), transparent 22% 78%, rgba(3,2,1,.3)),
    linear-gradient(180deg, transparent 66%, rgba(3,2,1,.5)),
    url("normativas-reference.png");
  background-size: 100% 100%, 100% 100%, auto 296.8%;
  background-position: center, center, center 9.78%;
  background-repeat: no-repeat;
  box-shadow: inset 0 -24px 32px rgba(0,0,0,.34);
}
.rules-reference-content .rules-library-heading {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.rules-reference-content .rules-volume-grid {
  width: min(1500px, calc(100% - 34px));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.rules-reference-content .rule-volume {
  position: relative;
  min-width: 0;
  min-height: 330px !important;
  padding: 5px !important;
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid #946033 !important;
  outline: 1px solid rgba(220,161,93,.2) !important;
  outline-offset: -5px;
  background:
    repeating-linear-gradient(4deg, rgba(255,255,255,.012) 0 1px, transparent 1px 5px),
    linear-gradient(160deg, #18110b, #050403 68%) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.52), inset 0 0 26px rgba(0,0,0,.45) !important;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.rules-reference-content .rule-volume:hover {
  transform: translateY(-4px) !important;
  border-color: #d19a59 !important;
  box-shadow: 0 22px 44px rgba(0,0,0,.62), 0 0 20px rgba(197,116,48,.11) !important;
}
.rule-volume-art {
  position: relative;
  width: 100%;
  aspect-ratio: 245 / 120;
  overflow: hidden;
  border-bottom: 1px solid rgba(210,148,78,.5);
  background: #0a0705;
}
.rule-volume-art > img {
  position: absolute;
  width: 682.45%;
  height: auto;
  max-width: none;
  filter: saturate(.88) contrast(1.08) brightness(.82);
  pointer-events: none;
}
.rule-volume-art > i {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.14) 55%, rgba(3,2,1,.78)),
    linear-gradient(90deg, rgba(0,0,0,.2), transparent 25% 75%, rgba(0,0,0,.2));
  pointer-events: none;
}
.rule-volume-art > span {
  position: absolute;
  z-index: 3;
  left: 10px;
  top: 8px;
  min-width: 31px;
  min-height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(219,165,100,.42);
  background: rgba(5,3,2,.78);
  color: #e1b67f;
  font-family: var(--frontier-display);
  font-size: .88rem;
  box-shadow: 0 5px 14px rgba(0,0,0,.45);
}
.rules-reference-content .rule-volume-copy {
  min-height: 190px;
  flex: 1;
  padding: 15px 14px 13px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rules-reference-content .rule-volume-copy > span {
  color: #9f7549 !important;
  font-size: .72rem !important;
  letter-spacing: .13em !important;
}
.rules-reference-content .rule-volume-copy h3 {
  margin: 7px 0 8px !important;
  color: #e5c495 !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
  line-height: 1.1 !important;
  letter-spacing: .035em !important;
}
.rules-reference-content .rule-volume-copy p {
  min-height: 0 !important;
  margin: 0 0 10px !important;
  color: #b9ad9d !important;
  font-family: Georgia, serif;
  font-size: .88rem !important;
  line-height: 1.4 !important;
}
.rules-reference-content .rule-volume-count {
  margin: auto 0 10px !important;
  color: #98734d !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
}
.rules-reference-content .rule-volume-copy :is(button, a) {
  width: min(190px, 100%);
  min-height: 38px !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a56c36 !important;
  outline: 1px solid rgba(221,160,90,.16);
  outline-offset: -4px;
  color: #e9c79b !important;
  background: linear-gradient(180deg, rgba(76,46,24,.96), rgba(22,13,8,.98)) !important;
  font-size: .72rem !important;
  letter-spacing: .1em !important;
}
.rules-reference-content .rule-volume-copy :is(button, a):hover,
.rules-reference-content .rule-volume-copy :is(button, a):focus-visible {
  border-color: #e0aa67 !important;
  background: linear-gradient(180deg, #77502a, #2b1b10) !important;
}
.rules-reference-footer {
  min-height: 76px;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #82532c;
  background: #030302;
  color: #928678;
  font-family: Georgia, serif;
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: .1em;
}
.rules-reference-footer strong {
  color: #c38e55 !important;
  font-family: var(--frontier-display);
  font-size: .82rem;
  letter-spacing: .16em;
  text-align: center;
}
.rules-reference-footer span:last-child { text-align: right; }

@media (max-width: 1100px) {
  .rules-reference-content .rules-volume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
  .rules-reference-hero { height: 250px; background-size: 100% 100%, 100% 100%, auto 296.8%; background-position: center, center, center 9.78%; }
  .rules-reference-content .rules-volume-grid { width: calc(100% - 18px); grid-template-columns: 1fr !important; gap: 10px !important; }
  .rules-reference-content .rule-volume { min-height: 0 !important; }
  .rules-reference-footer { grid-template-columns: 1fr; text-align: center; }
  .rules-reference-footer span:last-child { text-align: center; }
}

/* Normativas: every volume is independently interactive and the reader always wins the stacking context. */
.rules-reference-content .rule-volume-copy :is(button, a) {
  position: relative;
  z-index: 8;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.rules-reference-content .rule-reader:not([hidden]) {
  position: relative;
  z-index: 20;
  display: block !important;
  width: min(1420px, calc(100% - 28px));
  margin: 18px auto 28px;
  pointer-events: auto;
}

/* Comunidad Sofa de Wolfy — composition based on the supplied reference. */
#page-community.sofa-community-redesigned {
  background: #030302 !important;
}
#page-community.sofa-community-redesigned::before,
#page-community.sofa-community-redesigned > .community-bg {
  display: none !important;
}
.sofa-community-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d9c7af;
  background:
    radial-gradient(circle at 50% 15%, rgba(117,57,22,.14), transparent 35%),
    #030302;
}
.sofa-community-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(430px, 30.86vw, 540px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #8b562b;
  background-image:
    linear-gradient(90deg, rgba(2,2,1,.18), transparent 24% 76%, rgba(2,2,1,.2)),
    linear-gradient(180deg, transparent 70%, rgba(2,2,1,.62)),
    url("comunidad-reference.png");
  background-size: 100% 100%, 100% 100%, auto 182.36%;
  background-position: center, center, center 18.36%;
  background-repeat: no-repeat;
  box-shadow: inset 0 -28px 38px rgba(0,0,0,.46);
}
.sofa-community-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(780px, 63vw);
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(3,3,2,.92) 13% 87%, transparent),
    radial-gradient(ellipse at center, rgba(3,3,2,.94), rgba(3,3,2,.38) 67%, transparent 79%);
}
.sofa-community-center {
  width: min(720px, 66vw);
  padding: 24px 22px 18px;
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 3px 12px #000;
}
.sofa-community-eyebrow {
  color: #a5794d;
  font-family: var(--frontier-display);
  font-size: .78rem;
  letter-spacing: .28em;
}
.sofa-community-center h1 {
  margin: 3px 0 0;
  color: #e6c69a;
  font-family: var(--frontier-display);
  font-size: clamp(3.3rem, 6.2vw, 6.6rem);
  line-height: .88;
  letter-spacing: .045em;
  text-transform: uppercase;
  filter: drop-shadow(0 8px 8px #000);
}
.sofa-community-center h2 {
  margin: 8px 0 2px;
  color: #c28b50;
  font-family: var(--frontier-display);
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: .28em;
}
.sofa-community-motto {
  margin: 7px 0 !important;
  color: #e6caa5 !important;
  font-family: var(--frontier-display);
  font-size: clamp(.9rem, 1.1vw, 1.06rem) !important;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.sofa-community-center > p:not(.sofa-community-motto) {
  max-width: 660px;
  margin: 4px 0 14px;
  color: #c9bdad;
  font-family: Georgia, serif;
  font-size: clamp(.92rem, 1vw, 1.03rem);
  line-height: 1.45;
}
.sofa-community-discord {
  width: min(430px, 100%);
  min-height: 58px;
  padding: 8px 17px;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 10px;
  border: 1px solid #b0783f;
  outline: 1px solid rgba(232,174,105,.2);
  outline-offset: -5px;
  color: #efd3a9;
  background: linear-gradient(180deg, rgba(72,44,24,.96), rgba(14,9,6,.98));
  box-shadow: 0 10px 26px rgba(0,0,0,.55), inset 0 0 18px rgba(179,107,45,.12);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.sofa-community-discord:hover,
.sofa-community-discord:focus-visible {
  transform: translateY(-2px);
  border-color: #e1aa6a;
  background: linear-gradient(180deg, #77502d, #21150d);
}
.sofa-community-discord > span {
  color: #8295ff;
  font-size: 1.75rem;
}
.sofa-community-discord strong {
  font-family: var(--frontier-display);
  font-size: .96rem;
  letter-spacing: .1em;
}
.sofa-community-discord > i {
  color: #e5bf8d;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-style: normal;
}
.sofa-community-center > small {
  margin-top: 7px;
  color: #9b8165;
  font-size: .75rem;
  letter-spacing: .1em;
}
.sofa-community-benefits {
  width: min(670px, 100%);
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sofa-community-benefits > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #d8b98f;
}
.sofa-community-benefits span {
  font-size: 1.35rem;
  line-height: 1;
}
.sofa-community-benefits strong {
  font-family: var(--frontier-display);
  font-size: .63rem;
  line-height: 1.35;
  letter-spacing: .08em;
}
.sofa-community-cards {
  width: min(1620px, calc(100% - 34px));
  margin: 0 auto;
  padding: 14px 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sofa-community-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #8f5c31;
  outline: 1px solid rgba(226,163,91,.17);
  outline-offset: -5px;
  background: linear-gradient(160deg, #17100a, #050403 70%);
  box-shadow: 0 14px 34px rgba(0,0,0,.58), inset 0 0 24px rgba(0,0,0,.44);
}
.sofa-community-card-art {
  position: relative;
  aspect-ratio: 527 / 145;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,132,61,.44);
  background: #090604;
}
.sofa-community-card-art img {
  position: absolute;
  width: 317.3%;
  height: auto;
  max-width: none;
  top: -413.8%;
  filter: saturate(.88) contrast(1.08) brightness(.78);
}
.sofa-community-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(2,2,1,.82)), linear-gradient(90deg, rgba(0,0,0,.22), transparent 22% 78%, rgba(0,0,0,.22));
}
.sofa-community-card-art-one img { left: -4.6%; }
.sofa-community-card-art-two img { left: -109.1%; }
.sofa-community-card-art-three img { left: -212.1%; }
.sofa-community-card > div:last-child {
  min-height: 138px;
  padding: 15px 20px 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: center;
  column-gap: 12px;
}
.sofa-community-card > div:last-child > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #dfaa70;
  font-size: 1.75rem;
  text-align: center;
}
.sofa-community-card h2 {
  margin: 0 0 5px;
  color: #e1bd8e;
  font-family: var(--frontier-display);
  font-size: clamp(.96rem, 1.25vw, 1.22rem);
  letter-spacing: .055em;
}
.sofa-community-card p {
  margin: 0;
  color: #bdb1a1;
  font-family: Georgia, serif;
  font-size: .9rem;
  line-height: 1.42;
}
.sofa-community-footer {
  min-height: 78px;
  padding: 14px 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #82532c;
  color: #918477;
  background: #030302;
  font-family: Georgia, serif;
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: .1em;
}
.sofa-community-footer strong {
  color: #c38e55;
  font-family: var(--frontier-display);
  font-size: .82rem;
  letter-spacing: .16em;
  text-align: center;
}
.sofa-community-footer a {
  justify-self: end;
  color: #caa06e;
  text-decoration: none;
}

@media (max-width: 980px) {
  .sofa-community-hero { min-height: 540px; background-size: auto 100%, auto 100%, auto 182.36%; }
  .sofa-community-hero::before { width: min(760px, 92vw); }
  .sofa-community-center { width: min(720px, 90vw); }
  .sofa-community-cards { grid-template-columns: 1fr; max-width: 760px; }
  .sofa-community-card-art { aspect-ratio: 527 / 150; }
}
@media (max-width: 620px) {
  .sofa-community-hero { min-height: 650px; align-items: center; background-size: auto 100%, auto 100%, auto 182.36%; }
  .sofa-community-center { width: calc(100% - 20px); padding-inline: 10px; }
  .sofa-community-center h1 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .sofa-community-center h2 { letter-spacing: .16em; }
  .sofa-community-benefits { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sofa-community-benefits > div:last-child { grid-column: 1 / -1; }
  .sofa-community-cards { width: calc(100% - 18px); }
  .sofa-community-card > div:last-child { grid-template-columns: 34px 1fr; padding-inline: 14px; }
  .sofa-community-footer { grid-template-columns: 1fr; text-align: center; }
  .sofa-community-footer a { justify-self: center; }
}
