/* AAA Game Studio site styles. Fonts are self-hosted (see tools/fetch_fonts.py). */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-normal-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-normal-400-latin.woff2") format("woff2");
  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: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-normal-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-normal-500-latin.woff2") format("woff2");
  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: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-normal-700-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-normal-700-latin.woff2") format("woff2");
  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: "Playfair Display";
  font-style: italic;
  font-weight: 800 900;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-800-900-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 800 900;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-800-900-latin.woff2") format("woff2");
  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: "Playfair Display";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("../fonts/playfair-display-normal-800-900-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("../fonts/playfair-display-normal-800-900-latin.woff2") format("woff2");
  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;
}

/* Layout: dark hero and footer frame a light body. Red is used sparingly; the hero slider carries the loudest moment. */
:root {
  --ink: #0F0F12;
  --ink-2: #1A1A20;
  --red: #E83030;
  --red-strong: #CF2222;
  --paper: #F7F5F5;
  --white: #FFFFFF;
  --line: #E3DDDD;
  --text: #1B1B1F;
  --muted: #5E5A5C;
  --on-dark: #F4F2F2;
  --on-dark-muted: #B9B4B6;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  padding-left: 0; padding-right: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.band { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin-inline: auto; }
.dark { background: var(--ink); color: var(--on-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 em, h2 em { color: var(--red); font-style: italic; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red-strong); margin: 0 0 14px; }
.dark .eyebrow { color: var(--red); }

/* header */
.top { background: var(--ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; border-bottom: 1px solid #2A2A31; }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav a:focus-visible { background: #24242B; outline: none; }
.nav a[aria-current="page"] { color: var(--red); }
.lang { display: flex; border: 1px solid #3A3A43; border-radius: 6px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--on-dark-muted); font: 700 13px/1 var(--body); padding: 9px 12px; cursor: pointer; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }
.lang button:focus-visible, .btn:focus-visible, .dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* hero */
.hero { color: var(--on-dark); padding-block: 56px 64px; background: radial-gradient(900px 420px at 85% 0%, #2A1416 0%, rgba(15,15,18,0) 70%), var(--ink); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero p.lead { color: var(--on-dark-muted); max-width: 46ch; margin: 22px 0 30px; font-size: 18px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 var(--body); text-decoration: none; padding: 15px 22px; border-radius: 8px; border: 2px solid transparent; }
.btn.primary { background: var(--red-strong); color: #fff; }
.btn.primary:hover { background: #B81C1C; }
.btn.ghost { border-color: #4A4A54; color: var(--on-dark); }
.btn.ghost:hover { border-color: var(--on-dark); }
.btn.play { background: var(--ink); color: #fff; }
.btn.play:hover { background: #2A2A31; }

.slider { position: relative; min-width: 0; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.on { opacity: 1; visibility: visible; }
.slide .art { border-radius: 14px; }
.slide .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; flex-wrap: wrap; }
.slide .cap strong { font: 800 20px/1.2 var(--display); }
.slide .cap span { color: var(--on-dark-muted); font-size: 15px; }
.dots { display: flex; gap: 8px; margin-top: 16px; }
.dot { width: 34px; height: 5px; border: 0; border-radius: 3px; background: #3A3A43; cursor: pointer; padding: 0; }
.dot[aria-current="true"] { background: var(--red); }

/* game art */
.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; max-width: 100%; border-radius: 14px; background: var(--ink-2); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-hire { background: var(--red); display: grid; place-items: center; }
.art-hire span { font: 900 italic clamp(40px, 7vw, 76px)/1 var(--display); color: #fff; }

/* sections */
.section { padding-block: 84px; }
.section h2 { font-size: clamp(30px, 4vw, 46px); max-width: 20ch; }
.section .intro { color: var(--muted); max-width: 56ch; margin: 18px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; min-width: 0; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card .tag { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red-strong); margin-bottom: 16px; display: block; }

.games { background: var(--white); border-block: 1px solid var(--line); }
.game { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.game:nth-of-type(even) { direction: rtl; }
.game:nth-of-type(even) > * { direction: ltr; }
.game .art { border-radius: 14px; }
.game h3 { font-size: clamp(28px, 3.4vw, 40px); }
.game p { color: var(--muted); margin: 14px 0 26px; max-width: 46ch; }
.game > * { min-width: 0; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.role { border-top: 3px solid var(--ink); padding-top: 18px; min-width: 0; }
.role h3 { font-size: 22px; margin-bottom: 8px; }
.role p { margin: 0; color: var(--muted); }
.more { margin-top: 36px; }

.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.contact dl { margin: 28px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.contact dt { font: 700 12px/1.9 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; align-items: flex-start; align-self: start; }
.social a { text-decoration: none; font-weight: 700; font-size: 14px; border: 2px solid var(--ink); padding: 10px 16px; border-radius: 8px; }
.social a:hover { background: var(--ink); color: #fff; }

footer { padding-block: 44px; }
footer .wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
footer img { height: 44px; width: auto; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
footer nav a:hover { color: #fff; }
.fine { width: 100%; color: #8A8588; font-size: 13px; border-top: 1px solid #2A2A31; padding-top: 20px; }

@media (max-width: 860px) {
  .hero .wrap, .game, .contact .grid { grid-template-columns: 1fr; gap: 32px; }
  .game:nth-of-type(even) { direction: ltr; }
  .cards, .roles { grid-template-columns: 1fr; }
  .nav { order: 3; width: 100%; margin-left: -12px; }
  .lang { margin-left: auto; }
  .section { padding-block: 60px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* contact band */
.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact dd a, .roles a, .job a { color: var(--red-strong); }

/* inner pages */
.page-head { padding-block: 56px 48px; background: radial-gradient(900px 320px at 85% 0%, #2A1416 0%, rgba(15,15,18,0) 70%), var(--ink); }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); }
.page-head .lead { color: var(--on-dark-muted); max-width: 52ch; margin: 18px 0 0; }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.job { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 12px; padding: 28px; min-width: 0; }
.job h2 { font-size: 26px; margin-bottom: 16px; }
.job ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.apply { margin-top: 48px; background: var(--ink); color: var(--on-dark); border-radius: 14px; padding: 32px; }
.apply h2 { font-size: 28px; margin-bottom: 12px; }
.apply p { margin: 0 0 6px; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.apply a { color: #fff; }

.policy { max-width: 760px; margin-inline: auto; padding-block: 64px 88px; }
.policy h1 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 8px; }
.policy h2 { font-size: 24px; margin: 40px 0 10px; }
.policy p, .policy li { overflow-wrap: anywhere; }
.policy p { margin: 0 0 14px; }
.policy ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.policy a { color: var(--red-strong); }
.policy-note { max-width: 760px; margin: 0 auto; padding: 18px 0 0; color: var(--muted); font-size: 15px; }

.lang-note { display: none; }
html[lang="vi"] .lang-note { display: block; }

@media (max-width: 860px) {
  .jobs { grid-template-columns: 1fr; }
  .policy { padding-block: 44px 64px; }
}
