/* studioabya.com: one stylesheet for every page. Tokens and type follow realmidle.com
   (Cinzel for display, Crimson Text for reading, the system sans for interface text). */

@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("fonts/crimson-text-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("fonts/crimson-text-400i-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("fonts/crimson-text-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0a12;
  --panel: #11101a;
  --panel-2: #17151f;
  --line: #24212f;
  --line-2: #322d42;
  --text: #e8e2f2;
  --soft: #d6cfe3;
  --muted: #9c92ad;
  --faint: #6c6479;
  --accent: #a89bc4;
  --accent-light: #c6bcd9;
  --idle: #9b5de5;
  --idle-light: #bf7fff;
  --idle-dark: #6a0dad;
  --wars: #4ade80;
  --wars-light: #86efac;
  --red: #f87171;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
/* artwork can't be dragged out or long-press saved; on the home pages text can't be selected either (site.js) */
img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect .contact, .protect .contact * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
a { color: var(--accent-light); text-decoration-color: rgba(198, 188, 217, .35); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(155, 93, 229, .45); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 8px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ type bits */

.eyebrow { margin: 0 0 18px; font: 600 12px/1.5 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.lede { margin: 22px 0 0; max-width: 30ch; font: 400 23px/1.45 var(--serif); color: var(--soft); }

/* ------------------------------------------------------------------ buttons and chips */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 4px;
  background: rgba(255, 255, 255, .015); color: var(--text); text-decoration: none; white-space: nowrap;
  font: 700 14px/1 var(--display); letter-spacing: .1em;
  transition: background-color .15s, border-color .15s, color .15s, filter .15s;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { border-color: var(--accent); color: #fff; background: rgba(168, 155, 196, .07); }
.btn-idle { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--idle-dark), var(--idle) 70%, #a46bf0); }
.btn-wars { border-color: transparent; color: #04140a; background: var(--wars); }
.btn-idle:hover, .btn-wars:hover { border-color: transparent; filter: brightness(1.1); }
.btn-idle:hover { color: #fff; background: linear-gradient(135deg, var(--idle-dark), var(--idle) 70%, #a46bf0); }
.btn-wars:hover { color: #04140a; background: var(--wars); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 4px; background: rgba(255, 255, 255, .02);
  font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.chips svg { width: 14px; height: 14px; color: var(--faint); }
.chips .android svg { color: #3ddc84; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: min(62%, 980px); }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
  mask-image: linear-gradient(to right, transparent 0, #000 26%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 600px; padding-top: 72px; padding-bottom: 80px; }
.wordmark { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(60px, 9vw, 116px); line-height: .92; letter-spacing: .005em; }
.wordmark span { display: block; }
.wordmark .wm-2 { background: linear-gradient(180deg, #f1ecf8 15%, #a89bc4 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ------------------------------------------------------------------ sticky section bar */

.bar { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 18, .9); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bar-inner { display: flex; align-items: center; gap: 18px; height: 58px; }
.bar-brand { flex: none; font: 700 14px/1 var(--display); letter-spacing: .1em; color: var(--text); text-decoration: none; white-space: nowrap; }
.bar-brand:hover { color: #fff; }
.tabs { display: flex; gap: 6px; margin: 0 auto; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel-2);
  color: var(--soft); text-decoration: none; white-space: nowrap; font: 500 13px/1.3 var(--sans);
}
.tabs a:hover { border-color: var(--accent); color: #fff; }
.lang { flex: none; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); text-decoration: none; font: 700 12px/1 var(--display); letter-spacing: .12em; }
.lang:hover { color: #fff; border-color: var(--accent); }

/* ------------------------------------------------------------------ sections */

.section { padding: 88px 0 8px; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 10px; font-size: 13px; letter-spacing: .4em; color: var(--accent-light); }
.section-head p { margin: 0; color: var(--muted); }
.rule { display: block; width: 56px; height: 1px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* ------------------------------------------------------------------ game cards */

.game {
  --accent-game: var(--accent); --accent-game-light: var(--accent-light);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 46px; align-items: center;
  margin: 0 0 32px; padding: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0) 55%), var(--panel);
  scroll-margin-top: 80px;
}
.game::before { content: ""; position: absolute; top: -1px; left: 44px; width: 120px; height: 2px; background: var(--accent-game); }
.game--idle { --accent-game: var(--idle); --accent-game-light: var(--idle-light); }
.game--wars { --accent-game: var(--wars); --accent-game-light: var(--wars-light); }
.game--wars .game-info { order: 2; }

.game-id { display: flex; align-items: center; gap: 18px; }
.game-icon { width: 76px; height: 76px; border-radius: 17px; border: 1px solid var(--line-2); }
.game-title { margin: 0; font: 900 42px/1 var(--display); letter-spacing: .005em; }
.game-title em { font-style: normal; background: linear-gradient(180deg, var(--accent-game-light), var(--accent-game)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-kind { margin: 8px 0 0; font: 600 11px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.game-pitch { margin: 24px 0 26px; font: 400 20px/1.5 var(--serif); color: var(--soft); }
.game-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.game-site { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.game-site a { white-space: nowrap; }

.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.features strong { display: block; font: 700 14.5px/1.35 var(--display); letter-spacing: .01em; color: var(--text); }
.features span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--muted); }

.game-legal { margin: 22px 0 0; font-size: 13px; color: var(--faint); }
.game-legal a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.game-legal a:hover { color: var(--text); text-decoration: underline; }
.game-legal .dot { margin: 0 3px; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin: 0; padding: 0; list-style: none; }
.shots li { overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: #000; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .9); }
.shots li:nth-child(2) { margin-top: 28px; }
.shots img { width: 100%; }

/* ------------------------------------------------------------------ studio and contact */

.studio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; max-width: 980px; margin: 0 auto; }
.prose p { margin: 0 0 18px; font: 400 21px/1.6 var(--serif); color: var(--soft); }
.facts { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 600 11px/1.75 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; text-align: right; color: var(--text); }

.contact { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.contact-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact .k { font: 600 11px/2.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact .mail { font: 400 25px/1.3 var(--serif); color: var(--text); text-decoration-color: rgba(198, 188, 217, .3); overflow-wrap: anywhere; }
.contact .mail:hover { color: #fff; }
.contact .note { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.contact address { font: normal 400 19px/1.5 var(--serif); color: var(--soft); }

/* ------------------------------------------------------------------ footer */

.foot { margin-top: 104px; padding: 36px 0 48px; border-top: 1px solid var(--line); text-align: center; font: 400 13px/2 var(--display); letter-spacing: .08em; color: rgba(158, 146, 173, .62); }
.foot p { margin: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .dot { margin: 0 5px; opacity: .55; }
.foot-brand { margin-bottom: 6px !important; font-weight: 700; letter-spacing: .16em; color: var(--accent); }

/* ------------------------------------------------------------------ legal pages */

.doc-bar { border-bottom: 1px solid var(--line); background: rgba(10, 10, 18, .9); }
.doc-bar .bar-inner { justify-content: space-between; }
.doc-nav { display: flex; align-items: center; gap: 10px; }
.doc-nav a:not(.lang) { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel-2); color: var(--soft); text-decoration: none; font: 500 13px/1.3 var(--sans); }
.doc-nav a:not(.lang):hover { border-color: var(--accent); color: #fff; }

.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 0; }
.doc .eyebrow { margin-bottom: 12px; }
.doc .eyebrow.idle { color: var(--idle-light); }
.doc .eyebrow.wars { color: var(--wars); }
.doc h1 { margin: 0; font: 700 clamp(32px, 5vw, 46px)/1.15 var(--display); }
.doc-meta { margin: 14px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.doc-meta .dot { margin: 0 4px; opacity: .6; }
.doc-body { padding-top: 12px; font: 400 19px/1.65 var(--serif); color: #ddd6ea; overflow-wrap: break-word; }
.doc-body h2 { margin: 42px 0 12px; font: 700 20px/1.3 var(--display); letter-spacing: .03em; color: var(--text); }
.doc-body p, .doc-body ul, .doc-body ol { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li { margin: 5px 0; }
.doc-body strong { font-weight: 600; color: var(--text); }
.doc-body .intro { margin-top: 18px; font-size: 21px; color: var(--text); }
.doc-body p.it { margin-bottom: 6px; }
.doc-body .kept { font-weight: 600; color: var(--text); }
.doc-body .del { font-weight: 600; color: var(--red); }
.doc-body .buys { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-body .warn { margin-top: 16px; padding: 12px 16px; border: 1px solid rgba(248, 113, 113, .35); border-radius: 6px; background: rgba(248, 113, 113, .07); font-weight: 600; color: #fecaca; }
.doc-source { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.doc-source a { color: var(--muted); }

.hub { max-width: 860px; margin: 0 auto; padding: 64px 24px 0; }
.hub h1 { margin: 0; font: 700 clamp(32px, 5vw, 46px)/1.15 var(--display); }
.hub .lede { max-width: 46ch; font-size: 21px; }
.hub-game { margin-top: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.hub-game h2 { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--line); font: 900 24px/1 var(--display); }
.hub-game h2 img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); }
.hub-game h2 em { font-style: normal; color: var(--accent-game-light); }
.hub-game--idle { --accent-game-light: var(--idle-light); }
.hub-game--wars { --accent-game-light: var(--wars); }
.hub-list { margin: 0; padding: 0; list-style: none; }
.hub-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.hub-list li:last-child { border-bottom: 0; }
.hub-list a { color: var(--text); text-decoration: none; font: 400 19px/1.4 var(--serif); }
.hub-list a:hover { color: #fff; text-decoration: underline; }
.hub-list span { color: var(--faint); font-size: 14px; text-align: right; }
.hub-company { margin-top: 40px; color: var(--muted); font-size: 15px; }
.hub-company address { font-style: normal; }

.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 24px 0; text-align: center; }
.notfound h1 { margin: 0 0 12px; font: 900 44px/1.1 var(--display); }
.notfound p { margin: 0 0 26px; color: var(--muted); }

/* ------------------------------------------------------------------ smaller screens */

@media (max-width: 980px) {
  .hero-art { position: relative; width: 100%; height: clamp(240px, 52vw, 420px); }
  .hero-art img { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 40%); mask-image: linear-gradient(to top, transparent 0, #000 40%); }
  .hero-inner { min-height: 0; margin-top: -40px; padding-top: 0; padding-bottom: 56px; }
  .game { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 32px 26px; }
  .game::before { left: 26px; }
  .game--wars .game-info { order: 0; }
  .shots { max-width: 620px; }
  .studio { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .section { padding-top: 64px; }
  .bar-inner { gap: 10px; height: 54px; }
  .bar .bar-brand { display: none; }
  .tabs { margin: 0; padding-right: 28px; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .lang { margin-left: auto; }
  .eyebrow { letter-spacing: .22em; }
  .lede { font-size: 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .game { padding: 26px 18px; }
  .game::before { left: 18px; }
  .game-title { font-size: 34px; }
  .game-icon { width: 64px; height: 64px; border-radius: 15px; }
  .game-cta .btn { flex: 1 1 100%; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -18px; padding-right: 18px; }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { border-radius: 10px; scroll-snap-align: start; }
  .shots li:nth-child(2) { margin-top: 0; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px; }
  .contact .mail { font-size: 21px; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .doc, .hub { padding-top: 44px; }
  .doc-body { font-size: 18px; }
  .hub-list li { flex-direction: column; gap: 2px; }
  .hub-list span { text-align: left; }
}
