/* Shared sizing and touch behaviour across every page. */
:root {
  --header-offset: 98px;
  --page-pad: clamp(18px, 4vw, 64px);
  --section-pad: clamp(32px, 5svh, 64px);
  --section-gap: clamp(24px, 3svh, 36px);
}
html { scroll-padding-top: var(--header-offset); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
.nav-links a::after { bottom: 4px; }
#navbar, .site-nav { gap: 12px; }
.brand-link { min-height: 44px; }
.brand-mark, .footer-logo { filter: none; opacity: 1; mix-blend-mode: normal; background: transparent; box-shadow: none; }
.nav-links { gap: clamp(12px, 2vw, 32px); flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.nav-links a { white-space: nowrap; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero {
  height: auto;
  min-height: 100svh;
  padding-top: var(--header-offset);
  overflow: clip;
}
.hero-content {
  padding: clamp(28px, 5svh, 64px) var(--page-pad) clamp(48px, 9svh, 108px);
}
.hero-title { font-size: clamp(2rem, min(6.4vw, 10svh), 5.7rem); }
.hero-intro { text-wrap: pretty; }
.scroll-prompt { position: relative; inset: auto; margin-top: clamp(24px, 4svh, 44px); }
.scroll-line { height: clamp(24px, 4svh, 40px); }
section { min-height: calc(100svh - var(--header-offset)); display: flex; flex-direction: column; justify-content: center; scroll-margin-top: 0; }
.section-title { font-size: clamp(1.5rem, min(4vw, 6svh), 2.8rem); }
.game-artwork { width: min(720px, 100%, max(280px, calc((100svh - 340px) * 2))); }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-card { min-width: 0; padding: clamp(22px, 3svh, 32px) clamp(20px, 3vw, 28px); }
.team-avatar { width: clamp(48px, 7svh, 64px); height: clamp(48px, 7svh, 64px); }
.team-tags { gap: 6px; }
.team-tag { overflow-wrap: anywhere; }
.team-link { min-height: 44px; align-items: center; margin-top: 12px; font-size: 0.6rem; }
.about-us { margin-bottom: 0; }
.about-block, .about-text { padding: clamp(24px, 3svh, 36px) clamp(24px, 3vw, 36px); }
.about-text p { font-size: 1rem; line-height: 1.75; }
.faq-question { min-height: 48px; line-height: 1.6; }
#faq { min-height: auto; justify-content: flex-start; }
.faq-answer { display: grid; grid-template-rows: 0fr; max-height: none; transition: grid-template-rows 0.3s ease; }
.faq-answer > p { min-height: 0; overflow: hidden; padding-bottom: 0; margin: 0; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; max-height: none; }
.faq-item.open .faq-answer > p { padding-bottom: 24px; }
footer { padding: 28px var(--page-pad); gap: 12px; }
.footer-links { gap: 4px 24px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.footer-copy, .policy-intro, .form-help, .legal-date { overflow-wrap: anywhere; }
.careers-hero, .legal-wrap { padding-top: calc(var(--header-offset) + clamp(32px, 6svh, 72px)); }
.roles-section { min-height: auto; display: block; }
.coming-soon { min-height: calc(100svh - 210px); padding-top: calc(var(--header-offset) + 40px); }
.form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field input, .form-field select, .form-field textarea { font-size: 1rem; }
.form-field input[type="file"] { font-size: 1rem; overflow: hidden; }
.form-field input[type="file"]::file-selector-button { min-height: 36px; margin-right: 8px; border: 1px solid #555; border-radius: 3px; padding: 6px 10px; background: #222; color: #ddd; }
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card + .team-card { border-left: none; border-top: 1px solid var(--border); }
  #team { min-height: auto; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .legal-section p, .legal-section li { font-size: 1rem; line-height: 1.75; }
  .legal-highlight { padding: 16px 18px; }
  .careers-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
}
@media (max-width: 520px) {
  :root { --header-offset: 94px; }
  .hero-title { font-size: clamp(1.65rem, 7.6vw, 2.5rem); }
  #navbar .nav-links, .site-nav .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.55rem; letter-spacing: 0.04em; }
  .brand-name { font-size: 0.85rem; }
  .hero-intro { font-size: 1.05rem; }
  .hero-actions { margin-top: 24px; }
}
@media (max-height: 500px) {
  .hero-content { padding-top: 24px; padding-bottom: 32px; }
  .hero-title { font-size: clamp(1.65rem, 5vw, 3rem); margin-bottom: 18px; }
  .hero-actions { margin-top: 20px; }
  .scroll-prompt { margin-top: 24px; }
  section { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq-answer { transition: none; } }
