/* Visual art direction for the arcade and existing WordPress surfaces. */
body.ag-world-site {
  --world-ink: #0b111c;
  --world-deep: #080c14;
  --world-paper: #f7f8fa;
  --world-muted: #b9c4d6;
  --world-orange: #cdee62;
  --world-yellow: #d9fa69;
  --world-cyan: #a9c5ff;
  --world-line: #303d52;
  --ag-red: #c9ef6a;
  --ag-orange: #bddd5b;
  --ag-blue: #91affe;
  --ag-line: #344055;
  --arcade-title: "Bahnschrift", "Arial Narrow", "Franklin Gothic Demi", system-ui, sans-serif;
  background: radial-gradient(ellipse at 74% 0%, #152340 0, #0b111c 46rem);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
body.ag-world-site :where(.ag-site-header, .ag-site-footer) { background: #080d16; border-color: #2d394b; box-shadow: none; }
body.ag-world-site .ag-brand { gap: 10px; letter-spacing: .035em; font-weight: 850; }
body.ag-world-site .ag-brand img { width: 42px; height: 42px; border-radius: 6px; }
body.ag-world-site .ag-site-header .ag-nav-join { color: #0e151a; background: #d9fa69; border-color: #d9fa69; }
body.ag-world-site :where(.ag-card, .ag-panel, .ag-cta) { border-radius: 8px; border-color: #29394e; box-shadow: none; }
body.ag-world-site :where(.ag-page-hero h1, .ag-section h2, .ag-world-library h2, .ag-world-guides h2) {
  font-family: var(--arcade-title); font-weight: 800; letter-spacing: -.035em;
}
body.ag-world-site :where(.ag-button, .ag-nav-toggle, .ag-copy) { border-radius: 6px; }
body.ag-world-page .ag-world-hub { width: min(1432px, 100%); padding-top: clamp(20px, 3.2vw, 42px); }
body.ag-world-page .ag-arcade-intro { margin-bottom: 19px; align-items: end; }
body.ag-world-page .ag-arcade-intro h1 {
  max-width: none; margin: 0; font-family: var(--arcade-title); letter-spacing: -.056em;
  font-size: clamp(2rem, 5vw, 4.15rem); line-height: .98; text-shadow: none;
}
body.ag-world-page .ag-arcade-intro > div > p:not(.ag-world-eyebrow) { font-size: clamp(.92rem, 1.45vw, 1.08rem); margin: .65rem 0 0; }
body.ag-world-page .ag-arcade-intro .ag-world-skip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; text-decoration: none;
  padding: 10px 13px; border-radius: 6px; background: #151f30; border: 1px solid #3d4b65;
  color: #f1f5ff; box-shadow: none; font-weight: 750; font-size: .87rem;
}
body.ag-world-page #ag-world-library,
body.ag-world-page #ag-arcade-room { scroll-margin-top: 92px; }
.ag-spotlight { display: grid; grid-template-columns: 2.15fr 1fr; gap: clamp(10px, 1.4vw, 19px); }
.ag-spotlight-main, .ag-spotlight-tile {
  position: relative; display: flex; align-items: end; overflow: hidden; isolation: isolate;
  border: 1px solid #3a4c64; border-radius: 9px; background: #142236;
}
.ag-spotlight-main { min-height: clamp(360px, 35vw, 525px); }
.ag-spotlight-main img, .ag-spotlight-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ag-spotlight-main img { object-position: 58% 50%; }
.ag-spotlight-main::after, .ag-spotlight-tile::after {
  position: absolute; inset: 0; z-index: 0; content: ""; pointer-events: none;
  background: linear-gradient(5deg, #080e18f5, #09121d91 40%, #0a142528 72%);
}
.ag-spotlight-main::after {
  background: linear-gradient(12deg, #070e18 2%, #080e18de 20%, #0b122749 65%, #070e1821),
              linear-gradient(90deg, #04080da8, transparent 82%);
}
.ag-spotlight-copy { padding: clamp(21px, 4.2vw, 61px); z-index: 1; max-width: 80%; }
.ag-spotlight-label, .ag-spotlight-tile small {
  display: block; color: #def587; font-size: .73rem; letter-spacing: .105em; font-weight: 800; text-transform: uppercase;
}
body.ag-world-site .ag-spotlight-copy h2 {
  font: 900 clamp(3rem, 8.5vw, 8.2rem)/.83 var(--arcade-title); margin: .13em 0 .15em; letter-spacing: -.055em;
}
.ag-spotlight-copy p { color: #e1e9f6; margin: 0 0 1.1rem; max-width: 37ch; }
.ag-spotlight-actions { display: flex; flex-wrap: wrap; gap: 9px; }
body.ag-world-site :where(.ag-spotlight-play, .ag-spotlight-secondary) {
  min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 5px;
  text-decoration: none; font-weight: 800; font-size: .9rem;
}
body.ag-world-site .ag-spotlight-play { background: #d9fa69; color: #111919; border: 1px solid #e1fca0; }
body.ag-world-site .ag-spotlight-secondary { background: #141d2cdb; color: #f2f6ff; border: 1px solid #7186a5; }
body.ag-world-site .ag-spotlight-play:hover { background: #e9ffac; color: #080e13; }
body.ag-world-site .ag-spotlight-secondary:hover { border-color: #d9fa69; color: #d9fa69; }
.ag-spotlight-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: inherit; }
body.ag-world-site .ag-spotlight-tile { min-height: 112px; text-decoration: none; color: #fff; }
.ag-spotlight-tile span { position: relative; z-index: 1; display: block; width: 100%; padding: 15px 29px 17px 17px; }
.ag-spotlight-tile strong { display: block; font: 850 clamp(1.08rem, 2.5vw, 2.15rem)/1.02 var(--arcade-title); }
.ag-spotlight-tile i { position: absolute; right: 15px; bottom: 15px; font-style: normal; color: #d9fa69; }
body.ag-world-site .ag-spotlight-tile:hover { border-color: #d9fa69; color: #fff; }
.ag-arcade-jump {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 13px 0 33px; padding: 13px 2px;
  border-bottom: 1px solid #29394f; font-weight: 650;
}
body.ag-world-site .ag-arcade-jump a { color: #d9e3f5; font-size: .86rem; text-decoration: none; }
body.ag-world-site .ag-arcade-jump a:hover { color: #d9fa69; text-decoration: underline; }
body.ag-world-page .ag-world-stage {
  height: clamp(335px, 47vw, 545px); border: 1px solid #455675; border-radius: 9px; box-shadow: none;
}
body.ag-world-page .ag-world-overlay h2 { font-family: var(--arcade-title); letter-spacing: -.045em; }
body.ag-world-page .ag-world-hub :where(.ag-world-sidekick, .ag-world-avatar-picker, .ag-world-nowplaying, .ag-world-portals a) {
  border-radius: 8px; box-shadow: none; background-color: #111c2b; border-color: #39485e;
}
body.ag-world-page .ag-world-hub :where(.ag-world-filters button, .ag-world-toolbar button, .ag-world-cabinet-picker button) {
  border-radius: 6px; box-shadow: none; min-height: 42px;
}
body.ag-world-page .ag-world-hub .ag-world-filters button:not([aria-pressed="true"]) { background: #172232; color: #eef4ff; border-color: #41516b; }
body.ag-world-page .ag-world-game {
  border: 1px solid #31405a; border-radius: 8px; background: #111b2a; box-shadow: none;
}
body.ag-world-page .ag-world-game h3 { font-family: var(--arcade-title); font-size: clamp(1rem, 1.9vw, 1.43rem); }
body.ag-world-page .ag-world-game .ag-world-art { border-color: #293a51; background-color: #17263a; }
body.ag-world-page .ag-world-game .ag-world-game-type { color: #d9ed9f; }
body.ag-world-page .ag-world-game[data-slug^="wing-commander"] .ag-world-art b { background: #d9e8ff; }
body.ag-world-page .ag-world-game:hover { border-color: #7e9fb8; }
body.ag-world-page .ag-world-game [data-world-favourite] { border-radius: 6px; box-shadow: none; }
body.ag-world-page .ag-world-game-grid { gap: clamp(9px, 1.5vw, 20px); }
.ag-spotlight-editorial { margin-top: 35px; }
.ag-spotlight-editorial-heading { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 15px; }
.ag-spotlight-editorial-heading h2 { font-family: var(--arcade-title) !important; font-size: clamp(1.7rem, 4vw, 3rem); margin: 0; }
body.ag-world-site .ag-brand img { filter: none; }
body.ag-world-site .ag-page-hero {
  padding-top: clamp(32px, 5vw, 65px);
  padding-bottom: clamp(16px, 3vw, 34px);
}
body.ag-world-site .ag-page-hero h1 {
  max-width: 19ch; font: 800 clamp(2.15rem, 5.2vw, 4.6rem)/1.02 var(--arcade-title);
  letter-spacing: -.045em; text-transform: none; text-shadow: none;
  margin: 0; overflow-wrap: anywhere;
}
body.ag-world-site .ag-page-hero .ag-kicker { color: #c4e464; }
body.ag-world-site .ag-content-wrap:has(.ag-showcase-media) { padding-top: 8px; }
.ag-content:has(.ag-showcase-media) { max-width: min(100%, 880px); }
.ag-content:has(.ag-showcase-media) > h2 {
  margin-block: 34px 9px; padding-top: 23px; border-top: 1px solid #303e54;
  font-family: var(--arcade-title); font-size: clamp(1.35rem, 3vw, 2.25rem); letter-spacing: -.03em;
}
.ag-showcase-media { margin: 13px 0; }
.ag-showcase-media img {
  display: block; max-width: 100%; max-height: 420px; object-fit: contain;
  border: 1px solid #33445a; border-radius: 6px; background: #080d16;
}
body.ag-world-site .ag-showcase-media + p a {
  display: inline-block; padding: .6rem .8rem; border: 1px solid #63784a;
  border-radius: 5px; color: #e2f3a7; text-decoration: none; background: #202b26;
}
body.ag-world-site .ag-showcase-media + p a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  body.ag-world-page .ag-arcade-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ag-spotlight { grid-template-columns: 1fr; }
  .ag-spotlight-main { min-height: clamp(290px, 70vw, 420px); }
  .ag-spotlight-copy { max-width: 100%; }
  .ag-spotlight-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .ag-spotlight-side > :last-child { grid-column: 1 / -1; }
  body.ag-world-site .ag-spotlight-tile { min-height: clamp(105px, 29vw, 178px); }
  .ag-spotlight-tile span { padding: 9px 24px 10px 10px; }
  .ag-spotlight-tile small { font-size: .58rem; letter-spacing: .06em; }
  .ag-spotlight-tile i { bottom: 10px; right: 9px; }
  .ag-arcade-jump { margin-bottom: 20px; }
}
@media (max-width: 480px) {
  body.ag-world-page .ag-world-game-copy { padding: 10px 9px 0; }
  body.ag-world-page .ag-world-game .ag-world-game-type { font-size: .59rem; letter-spacing: .055em; }
  body.ag-world-page .ag-world-game :where(p, .ag-world-game-description) { font-size: .78rem; }
  body.ag-world-page .ag-world-game .ag-world-art b { font-size: .62rem; }
}
