/* Spilo Games website
   Studio pages sit on the lavender ground of the approved 04D-3A logo.
   Asobana content uses the game's own navy and gold. */

/* Fonts (self-hosted, SIL Open Font License 1.1 — see assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("../fonts/noto-sans-georgian-georgian.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

:root {
  --lav: #E3DBFC;        /* ground sampled from the approved 04D-3A reference */
  --lav-card: rgba(255, 255, 255, .45);
  --plum: #2E1640;       /* plum ink as it renders on lavender */
  --plum-deep: #220B31;  /* logo ink */
  --plum-soft: #5B4470;
  --navy: #0B294B;       /* Asobana */
  --navy-2: #12365F;
  --gold: #E3B65A;       /* Asobana */
  --ivory: #F8F0DE;
  --ivory-soft: rgba(248, 240, 222, .78);
  --ivory-muted: rgba(248, 240, 222, .66);
  --line-dark: rgba(248, 240, 222, .18);
  --sans: "Bricolage Grotesque", "Noto Sans Georgian", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--lav);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word; /* long Georgian words on very narrow screens */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--plum); color: var(--lav); padding: 10px 16px; border-radius: 10px; z-index: 10; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Small caps-style labels; Georgian has no case, so it gets less tracking */
.eyebrow, .label, .games-index h2, .site-footer h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
:lang(ka) .eyebrow, :lang(ka) .label, :lang(ka) .games-index h2, :lang(ka) .site-footer h2 { letter-spacing: .04em; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.brand img { width: 168px; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(46, 22, 64, .08); font-size: 13px; }
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--plum); color: var(--lav); }
.nav .lang a:hover { text-decoration: none; background: rgba(46, 22, 64, .1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: 15px; }
.btn--plum { background: var(--plum); color: var(--lav); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn--gold { background: var(--gold); color: var(--navy); }

/* Studio intro */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
.hero .eyebrow { color: var(--plum-soft); margin: 0 0 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.02em; margin: 0; font-weight: 750; }
:lang(ka) .hero h1 { font-size: clamp(29px, 3.9vw, 48px); line-height: 1.2; letter-spacing: 0; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(227, 182, 90, .55) 62%); }
.cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.games-index { background: var(--lav-card); border-radius: 22px; padding: 22px; }
.games-index h2 { margin: 0 0 14px; color: var(--plum-soft); }
.games-index ul { list-style: none; margin: 0; padding: 0; }
.game-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; text-decoration: none; padding: 10px; margin: 0 -10px; border-radius: 14px; }
.game-row:hover { background: rgba(255, 255, 255, .5); }
.game-row img { width: 64px; height: 64px; border-radius: 15px; }
.game-row strong { display: block; font-size: 20px; line-height: 1.25; }
.game-row span { font-size: 14px; color: var(--plum-soft); }
.game-row .arrow { font-size: 22px; color: var(--plum); }
.games-index p { margin: 14px 0 0; font-size: 13.5px; color: var(--plum-soft); }

/* Featured game */
.feature { background: var(--navy); color: var(--ivory); border-radius: 36px; padding: 64px 56px; position: relative; overflow: hidden; scroll-margin-top: 16px; }
.feature::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 85% 0%, rgba(227, 182, 90, .14), transparent 70%); }
.feature > * { position: relative; }
.feature-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.feature .label { display: inline-block; color: var(--gold); margin: 0 0 22px; }
.game-id { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.game-id img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(248, 240, 222, .25), 0 14px 30px rgba(0, 0, 0, .35); }
.game-id h2 { margin: 0; font-size: 52px; line-height: 1; letter-spacing: -.02em; font-weight: 750; }
.game-id h2 span { display: block; font-size: 22px; color: var(--gold); font-weight: 700; margin-top: 8px; letter-spacing: 0; }
.tagline { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.feature .desc { color: var(--ivory-soft); margin: 0 0 28px; max-width: 34em; }
.stats { display: flex; margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats li { flex: 1; padding: 14px 0; }
.stats li + li { padding-left: 18px; border-left: 1px solid var(--line-dark); }
.stats b { display: block; font-size: 30px; line-height: 1.1; color: var(--gold); font-weight: 750; }
.stats span { font-size: 13px; color: var(--ivory-muted); line-height: 1.35; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy); padding: 12px 20px; border-radius: 14px; font-weight: 700; }
.status svg { width: 18px; height: 18px; flex: none; }
.textlinks { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; font-weight: 600; }
.textlinks a { text-underline-offset: 4px; }

.shots { margin: 0; }
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-start; margin: 0; }
.phone { width: 230px; border-radius: 34px; padding: 8px; background: #05162A; box-shadow: 0 0 0 1px rgba(248, 240, 222, .14), 0 30px 60px rgba(0, 0, 0, .4); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 640 / 1200; object-fit: cover; object-position: top; }
.phone + .phone { margin-top: 56px; }
.caption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ivory-muted); margin: 16px 0 0; }
.shots .caption { justify-content: center; text-align: center; }
.kind { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; }
:lang(ka) .kind { letter-spacing: .02em; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 64px 0 0; padding: 0; list-style: none; }
.features li { background: var(--navy-2); border-radius: 20px; padding: 22px; }
.features svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.features h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.features p { margin: 0; font-size: 14.5px; color: var(--ivory-soft); line-height: 1.5; }

.art { margin-top: 56px; }
.art .caption { margin: 0 0 14px; }
.art-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.art-strip figure { margin: 0; }
.art-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.art-strip figcaption { font-size: 12.5px; margin-top: 8px; color: var(--ivory-soft); }

/* About */
.about { padding: 96px 0; scroll-margin-top: 16px; }
.about .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.about h2 { font-size: 40px; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
:lang(ka) .about h2 { font-size: 34px; letter-spacing: 0; line-height: 1.25; }
.about p { font-size: 19px; margin: 0 0 16px; }
.about .note { font-size: 15px; color: var(--plum-soft); }

/* Asobana support and privacy pages */
.page-hero { padding: 40px 0 36px; }
.page-hero .crumb { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; margin-bottom: 22px; }
.page-hero .crumb img { width: 44px; height: 44px; border-radius: 11px; }
.page-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; }
:lang(ka) .page-hero h1 { font-size: clamp(24px, 4.2vw, 44px); line-height: 1.22; letter-spacing: 0; }
.page-hero .lede { font-size: 19px; max-width: 38em; margin: 16px 0 0; }
.page-hero .updated { font-size: 14px; color: var(--plum-soft); margin: 14px 0 0; }
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; }
.notfound { padding: 72px 0 120px; }
.notfound .eyebrow { color: var(--plum-soft); margin: 0 0 14px; }

.page { padding: 0 0 96px; }
.page .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sheet { background: #FBF9FF; border-radius: 28px; padding: 44px 48px; }
.sheet h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 10px; }
.sheet h2:first-child { margin-top: 0; }
.sheet p, .sheet li { color: #3B2650; }
.sheet ul { padding-left: 1.2em; }
.sheet li + li { margin-top: 6px; }
.sheet .summary { font-size: 19px; color: var(--plum); background: var(--lav); border-radius: 16px; padding: 18px 22px; margin: 0 0 8px; }

.faq details { border-top: 1px solid rgba(46, 22, 64, .14); }
.faq details:last-of-type { border-bottom: 1px solid rgba(46, 22, 64, .14); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--plum-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; }
.faq details p { margin: 0 0 10px; }
.faq h2 { margin-bottom: 4px; }
.faq h2 + details { margin-top: 12px; }
kbd { font: inherit; font-weight: 650; background: var(--lav); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

.aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.contact-card { background: var(--navy); color: var(--ivory); border-radius: 24px; padding: 28px; }
.contact-card h2 { margin: 0 0 8px; font-size: 20px; }
.contact-card p { margin: 0 0 18px; color: var(--ivory-soft); font-size: 15px; }
.contact-card .btn { width: 100%; justify-content: center; word-break: break-all; }
.side-links { background: var(--lav-card); border-radius: 20px; padding: 20px 24px; font-size: 15px; }
.side-links h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; color: var(--plum-soft); }
:lang(ka) .side-links h2 { letter-spacing: .03em; }
.side-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-links a { text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--plum-deep); color: var(--ivory); padding: 56px 0 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer img { width: 150px; }
.site-footer h2 { margin: 0 0 12px; color: var(--ivory-muted); font-size: 13px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(248, 240, 222, .15); padding-top: 22px; margin: 8px 0 0; font-size: 13.5px; color: var(--ivory-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .hero .wrap, .feature-top, .about .wrap, .site-footer .wrap, .page .wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .art-strip { grid-template-columns: repeat(3, 1fr); }
  .feature { padding: 40px 24px; border-radius: 26px; }
  .nav { gap: 18px; }
  .aside { position: static; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .site-header .wrap { flex-wrap: wrap; }
  .brand img { width: 144px; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; font-size: 14px; }
  .lang a, .lang span { padding: 4px 8px; }
  .hero { padding: 32px 0 48px; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 47%; border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 21px; }
  .phone + .phone { margin-top: 36px; }
  .game-id img { width: 76px; height: 76px; border-radius: 18px; }
  .game-id h2 { font-size: 40px; }
  .stats li + li { padding-left: 12px; }
  .stats b { font-size: 26px; }
  .feature { padding: 32px 18px; border-radius: 22px; }
  .about { padding: 64px 0; }
  .sheet { padding: 28px 20px; border-radius: 20px; }
}
