/* Written by 7lr. The Vexor launcher's actual artwork, colors and serif typography.
   Named atlas views reference unmodified launcher pixels. All game/account actions
   and homepage interaction hooks remain owned by the existing website scripts. */
html:root {
  color-scheme: dark;
  --page-width: 1392px;
  --page-gutter: 40px;
  --ink: #171612;
  --surface: #24221d;
  --text: #e9d6b0;
  --muted: #bbab8b;
  --gold: #e8bc6f;
  --border: #927348;
  --font: 'Times New Roman', Times, serif;
  --stone: url('assets/launcher/launcher-atlas.svg#stone');
  --panel: url('assets/launcher/launcher-atlas.svg#panel');
  --red-button: url('assets/launcher/launcher-atlas.svg#red-button');
  --dark-button: url('assets/launcher/launcher-atlas.svg#dark-button');
  scroll-padding-top: 24px;
}
html:root body {
  color: var(--text);
  background: #171612 var(--stone) repeat;
  background-size: 480px 800px;
  border: 9px solid #80633d;
  border-image: var(--panel) 9.30232558% .82901554% / 9px stretch;
  min-height: 100vh;
}
html:root body::before { display: none; }
html:root ::selection { background: #7b2520; color: #fff0d3; }
html:root :is(button,a):focus-visible { outline: 2px solid #f4ca7b; outline-offset: 5px; }
html:root .site-header {
  position: relative;
  height: 156px;
  width: 100%;
  background: var(--stone) repeat;
  background-size: 480px 800px;
  border: 0;
  border-bottom: 2px solid #977343;
  box-shadow: 0 3px 0 #100f0d, 0 4px 0 #4b3926, 0 7px 16px #0006;
}
html:root .nav-shell {
  max-width: var(--page-width);
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: 154px minmax(0,1fr) 176px;
  gap: 28px;
}
html:root .brand-icon.brand-wordmark { grid-column: 1; width: 144px; height: 124px; }
html:root .brand-wordmark img { width: 100%; height: 100%; object-fit: contain; }
html:root .nav-shell nav { grid-column: 2; gap: 9px; margin: 0; justify-content: flex-start; width: 100%; }
html:root .nav-shell nav a {
  --nav-art: var(--dark-button);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 21px;
  color: var(--text);
  font: bold 20px/1.2 var(--font);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  background: var(--nav-art) center / 100% 100% no-repeat;
  text-shadow: 0 2px 2px #000;
  box-shadow: 0 3px 6px #0008;
  border: 0;
  border-radius: 3px;
}
html:root .nav-shell nav a.active { --nav-art: url('assets/launcher/launcher-atlas.svg#active-tab'); background-image: var(--nav-art); color: #f9e7c5; }
/* Keep the launcher frame when earlier navigation hover rules clear backgrounds. */
html:root .nav-shell nav a:is(:hover,:focus-visible) { background: var(--nav-art) center / 100% 100% no-repeat; box-shadow: 0 3px 6px #0008; filter: brightness(1.22); color: #fff0d3; }
html:root .nav-shell nav a::before, html:root .nav-shell nav a::after { display: none; }
html:root .button {
  --button-art: var(--dark-button);
  font: bold 22px/1.2 var(--font);
  letter-spacing: 0;
  text-transform: none;
  min-height: 60px;
  padding: 16px 28px;
  color: var(--text);
  text-shadow: 0 2px 2px #190906;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 8px #0007;
  background: var(--button-art) center / 100% 100% no-repeat;
  transition: filter .16s, transform .16s;
}
html:root .button::before, html:root .button::after { display: none; }
html:root .button-primary { --button-art: var(--red-button); background-image: var(--button-art); }
html:root .button:is(:hover,:focus-visible) { background: var(--button-art) center / 100% 100% no-repeat; filter: brightness(1.2); color: #fff0d3; box-shadow: 0 4px 10px #0009; }
html:root .button:active { transform: translateY(1px); filter: brightness(.95); }
html:root .nav-play { grid-column: 3; min-width: 0; width: 176px; min-height: 54px; font-size: 20px; }
html:root .hero {
  max-width: calc(var(--page-width) - var(--page-gutter) * 2);
  margin: 36px auto 0;
  width: calc(100% - var(--page-gutter) * 2);
  min-height: 590px;
  padding: 40px 24px 82px;
  border: 8px solid #8c6c43;
  border-image: var(--panel) 9.30232558% .82901554% / 8px stretch;
  box-shadow: 0 5px 14px #0009;
  overflow: hidden;
  scroll-margin-top: 28px;
}
html:root .living-scenery { inset: 3px; }
html:root .living-hero::after {
  inset: 4px;
  background: radial-gradient(ellipse at 50% 48%,#14130fba, #14130f66 50%,#14130f22 88%),linear-gradient(0deg,#14130fd9,transparent 38%,#14130f35);
}
html:root .living-hero .hero-content { width: min(740px,100%); }
html:root .living-hero h1.hero-dragon-logo { width: 275px; margin: 0 auto 8px; filter: drop-shadow(0 4px 6px #0009); }
html:root .hero-tagline { font: bold clamp(30px,3.2vw,44px)/1.12 var(--font); color: var(--text); margin: 0 auto; max-width: none; text-shadow: 0 3px 5px #000; }
html:root .hero-intro { font: 19px/1.55 var(--font); max-width: 570px; margin: 18px auto; color: #e2d2b5; }
html:root .community-launch-note { font: 15px/1.6 Arial, sans-serif; color: #e7d6b7; margin: 0 auto 24px; }
html:root .community-launch-note span { color: #cbb99a; }
html:root .living-hero .hero-actions { gap: 16px; }
html:root .living-hero .hero-actions .button { min-height: 60px; font-size: 23px; padding: 15px 22px; width: 228px; }
html:root .living-hero .hero-actions .button-outline { font-size: 22px; }
html:root .scenery-controls { right: 24px; bottom: 18px; }
html:root .scenery-controls button { border: 1px solid #917449; border-radius: 2px; background: #1d1b17e8; color: #ddc9a4; font: 14px/1.4 var(--font); padding: 7px 12px; }
html:root .scenery-controls button:hover { background: #35291d; color: #fff0d3; }
html:root .world-section { padding: 40px var(--page-gutter) 42px; }
html:root .world-section .section-heading { margin-bottom: 24px; }
html:root .world-section .section-heading h2 { justify-content: flex-start; font: bold 32px/1.2 var(--font); color: var(--text); text-transform: none; letter-spacing: 0; }
html:root .world-section .section-heading h2::before, html:root .world-section .section-heading h2::after { display: none; }
html:root .adventure-grid { grid-template-columns: repeat(4,minmax(0,1fr)); max-width: none; gap: 24px; }
html:root .adventure-card {
  padding: 0 0 20px;
  border: 6px solid #8c6c43;
  border-image: var(--panel) 9.30232558% .82901554% / 6px stretch;
  background: #24221d var(--stone) repeat;
  background-size: 480px 800px;
  box-shadow: 0 4px 10px #0008;
  overflow: hidden;
}
html:root .adventure-card .scene { border: 0; box-shadow: none; aspect-ratio: 1.45; }
html:root .adventure-card .scene::before,html:root .adventure-card .scene::after { display: none; }
html:root .adventure-card:hover .scene { filter: brightness(1.12); }
html:root .card-caption { margin-top: 17px; }
html:root .card-caption h3 { font: bold 24px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--text); }
html:root .card-ornament { color: #b89252; font-size: 12px; margin-top: 12px; }
html:root .card-ornament::before,html:root .card-ornament::after { width: 42px; background: linear-gradient(90deg,transparent,#a78045); }
html:root .community-section { padding-bottom: 42px; }
html:root .community-inner {
  border: 8px solid #8c6c43;
  border-image: var(--panel) 9.30232558% .82901554% / 8px stretch;
  background: #24221d var(--stone) repeat;
  background-size: 480px 800px;
  box-shadow: 0 4px 12px #0008;
  padding: 42px 28px;
  gap: 22px;
}
html:root .community-inner .section-heading .eyebrow { color: var(--gold); font: bold 12px/1.5 Arial,sans-serif; letter-spacing: 2px; }
html:root .community-inner .section-heading h2 { font: bold 36px/1.2 var(--font); color: var(--text); }
html:root .community-inner .section-heading p { color: var(--muted); font: 19px/1.5 var(--font); }
html:root .community-inner .button { min-height: 58px; font-size: 22px; }
html:root .community-account-register { color: var(--gold); font: bold 19px/1.4 var(--font); text-underline-offset: 5px; }
html:root .community-account-register:hover { color: #fff0d3; }
html:root .community-account-register[hidden] { display: none; }
html:root footer { background: var(--stone) repeat; background-size: 480px 800px; border-top: 2px solid #977343; box-shadow: 0 -2px 0 #100f0d,0 -3px 0 #4b3926; }
html:root .footer-inner { padding-block: 30px 20px; }
html:root .footer-inner p { color: var(--muted); font: 16px/1.5 var(--font); }
html:root .footer-links h2 { font: bold 21px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--text); }
html:root .footer-links :is(a,.text-button) { color: var(--muted); font: 17px/1.4 var(--font); }
html:root .footer-links :is(a,.text-button):hover { color: var(--gold); }
html:root .footer-bottom { border-color: #75603b7a; color: var(--muted); }
html:root .footer-bottom>a { color: var(--gold); }
html:root dialog { color: var(--text); border: 8px solid #8c6c43; border-image: var(--panel) 9.30232558% .82901554% / 8px stretch; background: #24221d var(--stone) repeat; background-size: 480px 800px; box-shadow: 0 16px 90px #000d; max-height: calc(100dvh - 32px); overflow-y: auto; }
html:root dialog::backdrop { background: #050403bd; backdrop-filter: blur(4px); }
html:root dialog h2 { color: var(--text); font: bold 36px/1.15 var(--font); }
html:root dialog :is(p,li) { color: #cebd9e; }
html:root dialog .eyebrow { color: var(--gold); }
html:root dialog .button { font-size: 19px; }
html:root .dialog-close { color: var(--gold); border-radius: 2px; }
html:root .dialog-close:hover { background: #62201c; color: #ffebc6; }
@media (max-width: 1200px) {
  html:root { --page-gutter: 28px; }
  html:root .nav-shell { grid-template-columns: 122px minmax(0,1fr) 146px; gap: 18px; }
  html:root .brand-icon.brand-wordmark { width: 120px; height: 112px; }
  html:root .nav-shell nav { gap: 6px; }
  html:root .nav-shell nav a { padding-inline: 14px; font-size: 18px; }
  html:root .nav-play { width: 146px; font-size: 18px; padding-inline: 16px; }
  html:root .adventure-grid { gap: 18px; }
  html:root .card-caption h3 { font-size: 21px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  html:root .site-header { height: 194px; }
  html:root .nav-shell { grid-template-columns: 1fr auto; grid-template-rows: 108px 68px; gap: 0 20px; }
  html:root .brand-icon.brand-wordmark { grid-column: 1; grid-row: 1; width: 128px; height: 100px; }
  html:root .nav-play { grid-column: 2; grid-row: 1; }
  html:root .nav-shell nav { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; gap: 10px; }
  html:root .nav-shell nav a { padding-inline: 25px; }
  html:root .adventure-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  html:root { --page-gutter: 18px; }
  html:root body { border-width: 5px; border-image-width: 5px; }
  html:root .site-header { height: 108px; }
  html:root .nav-shell { padding-inline: 16px; grid-template-columns: 42px minmax(0,1fr) 122px; gap: 10px; }
  html:root .brand-icon.brand-wordmark { grid-column: 2; grid-row: 1; justify-self: center; width: 108px; height: 92px; }
  html:root .menu-toggle { grid-column: 1; grid-row: 1; background: var(--dark-button) center/100% 100% no-repeat; color: var(--text); border: 0; width: 42px; height: 42px; }
  html:root .menu-toggle span { background: var(--gold); }
  html:root .nav-play { grid-column: 3; grid-row: 1; width: 122px; min-height: 48px; font-size: 16px; padding: 12px; }
  html:root .nav-shell nav { position: absolute; top: 108px; left: 0; right: 0; width: 100%; background: #1d1b17 var(--stone); background-size: 480px 800px; border: 2px solid #947348; padding: 16px; gap: 8px; }
  html:root .nav-shell nav.open { display: flex; }
  html:root .nav-shell nav a { width: 100%; min-height: 48px; font-size: 20px; padding: 12px 18px; }
  html:root .hero { margin-top: 24px; min-height: 0; padding: 30px 18px 64px; }
  html:root .living-hero h1.hero-dragon-logo { width: 210px; margin-bottom: 14px; }
  html:root .hero-tagline { font-size: 31px; }
  html:root .hero-intro { font-size: 18px; line-height: 1.45; margin-block: 18px; }
  html:root .community-launch-note { font-size: 13px; }
  html:root .living-hero .hero-actions { flex-direction: column; gap: 12px; align-items: center; width: 100%; }
  html:root .living-hero .hero-actions .button { width: 100%; max-width: 290px; min-height: 56px; font-size: 21px; }
  html:root .scenery-controls { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  html:root .world-section { padding-block: 30px; }
  html:root .world-section .section-heading h2 { font-size: 29px; }
  html:root .adventure-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  html:root .card-caption h3 { font-size: 21px; }
  html:root .community-inner { padding: 32px 20px; }
  html:root .community-inner .section-heading h2 { font-size: 30px; }
  html:root .community-inner .community-actions { flex-direction: column; gap: 12px; }
  html:root .community-inner .button { width: 100%; min-width: 0; max-width: 290px; }
  html:root .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  html:root .footer-identity { grid-column: 1/-1; }
  html:root dialog { width: calc(100% - 24px); padding: 34px 22px 24px; }
  html:root dialog h2 { font-size: 29px; }
  html:root .dialog-actions { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  html:root .adventure-grid { grid-template-columns: 1fr; }
  html:root .adventure-card .scene { aspect-ratio: 1.75; }
  html:root .card-caption h3 { font-size: 25px; }
}
@media (max-width: 359px) {
  html:root .nav-shell { padding-inline: 9px; grid-template-columns: 40px minmax(0,1fr) 105px; gap: 5px; }
  html:root .brand-icon.brand-wordmark { width: 90px; }
  html:root .nav-play { width: 105px; font-size: 15px; }
  html:root .hero { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html:root { scroll-behavior: auto; }
  html:root .button { transition: none; }
}
