/* v3play.net — global styles (mobile-first) */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--font-size-2xl); font-weight: 800; }
h2 { font-size: var(--font-size-xl); font-weight: 800; }
h3 { font-size: var(--font-size-md); font-weight: 700; line-height: var(--line-height-snug); }
p { text-wrap: pretty; }
a { color: var(--color-primary-600); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-700); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
.on-red :focus-visible, .btn--white:focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-10); }
.section--tint { background: var(--color-surface); }
.section__head { max-width: 46rem; margin-bottom: var(--space-6); }
.section__head p { color: var(--color-text-muted); margin-top: var(--space-3); }
.eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-600);
  margin-bottom: var(--space-2);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-3); top: -100px; z-index: calc(var(--z-modal) + 1);
  background: var(--color-text); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-3); color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.625rem 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--font-size-base); line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--color-primary-600); color: var(--color-on-primary); }
.btn--white { background: #fff; color: var(--color-primary-600); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.btn--white:hover { background: var(--color-surface); color: var(--color-primary-700); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn--outline { background: #fff; color: var(--color-primary-600); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-surface); }
.btn--lg { min-height: 56px; padding: 0.75rem 1.25rem; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0.375rem 1rem; font-size: var(--font-size-sm); }
.btn--block { display: flex; width: 100%; }
.btn .icon { width: 1.3em; height: 1.3em; }

/* ---------- Stars ---------- */
.stars {
  --rating: 5;
  --star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.4l-6.1 3.4 1.4-6.8L2.2 9.3l6.9-.8z'/%3E%3C/svg%3E");
  display: inline-block; flex: none;
  width: 5.5em; height: 1.1em;
  background: linear-gradient(90deg, var(--color-accent-gold) calc(var(--rating) / 5 * 100%), var(--color-star-empty) 0);
  -webkit-mask: var(--star-shape) 0 0 / 1.1em 1.1em repeat-x;
  mask: var(--star-shape) 0 0 / 1.1em 1.1em repeat-x;
}
.on-red .stars { --color-star-empty: rgba(255, 255, 255, 0.35); }

/* ---------- 18+ notice strip ---------- */
.notice-strip {
  background: var(--color-primary-700); color: #fff;
  font-size: var(--font-size-xs); line-height: 1.4; text-align: center;
  padding: var(--space-2) var(--gutter);
}
.notice-strip strong { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.site-header__logo img { width: 134px; height: 22px; }
.site-header__cta { white-space: nowrap; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  color: var(--color-text); border-radius: var(--radius-sm);
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-raised);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; padding: var(--space-2) var(--gutter) var(--space-4); }
.site-nav a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--color-text); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--color-surface-2);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface); border-top: 4px solid var(--color-primary);
  padding-block: var(--space-9) calc(var(--space-9) + 76px + env(safe-area-inset-bottom, 0px));
  font-size: var(--font-size-sm); color: var(--color-text-muted);
}
.site-footer--plain { padding-bottom: var(--space-9); }
.site-footer__grid { display: grid; gap: var(--space-7); }
.site-footer__brand img { width: 150px; height: 25px; margin-bottom: var(--space-3); }
.site-footer h2 { font-size: var(--font-size-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text); margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--color-text); text-decoration: none; font-weight: 500; }
.site-footer ul a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--color-border); display: flex; gap: var(--space-4); align-items: flex-start; }
.badge-18 {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--color-primary); color: var(--color-primary-600);
  font-family: var(--font-display); font-weight: 800; font-size: var(--font-size-sm); background: #fff;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-toast);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: var(--space-2);
  max-width: calc(100vw - 2rem);
  background: var(--color-text); color: #fff; font-weight: 600; font-size: var(--font-size-sm);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill); box-shadow: var(--shadow-raised);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: #6EE7A0; }

/* ---------- Age gate ---------- */
.age-gate {
  width: min(26rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--color-text); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); overflow: auto;
}
.age-gate::backdrop { background: rgba(60, 4, 6, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.age-gate__panel { padding: var(--space-7) var(--space-5) var(--space-5); text-align: center; }
.age-gate__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: var(--space-4); border-radius: 50%;
  background: var(--gradient-primary); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: var(--font-size-xl);
  box-shadow: var(--shadow-glow);
}
.age-gate h2 { font-size: var(--font-size-xl); margin-bottom: var(--space-3); }
.age-gate p { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.age-gate__actions { display: grid; gap: var(--space-3); margin-block: var(--space-5) var(--space-4); }
.age-gate__legal { font-size: var(--font-size-xs); }

/* ---------- Download countdown ---------- */
.dl-dialog {
  width: min(24rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--color-text); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); overflow: auto;
}
.dl-dialog::backdrop { background: rgba(60, 4, 6, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dl-dialog__panel { padding: var(--space-6) var(--space-5) var(--space-5); text-align: center; }
.dl-dialog__ring { position: relative; width: 112px; height: 112px; margin: 0 auto var(--space-4); }
.dl-dialog__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dl-dialog__ring circle { fill: none; stroke-width: 8; }
.dl-dialog__track { stroke: var(--color-surface-2); }
.dl-dialog__bar { stroke: var(--color-primary); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 0; }
.dl-dialog.is-running .dl-dialog__bar { animation: dl-ring 6s linear forwards; }
@keyframes dl-ring { to { stroke-dashoffset: 276.5; } }
.dl-dialog__num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; line-height: 1; color: var(--color-primary-600);
  font-variant-numeric: tabular-nums;
}
.dl-dialog h2 { font-size: var(--font-size-xl); margin-bottom: var(--space-2); }
.dl-dialog p { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.dl-dialog p strong { color: var(--color-text); }
.dl-dialog__code {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-block: var(--space-4); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: var(--color-surface); border: 1px dashed var(--color-primary); border-radius: var(--radius-md);
  font-size: var(--font-size-sm); text-align: left;
}
.dl-dialog__code strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--font-size-md); letter-spacing: 0.08em; color: var(--color-primary-700); }
.dl-dialog__fine { margin-top: var(--space-3); font-size: var(--font-size-xs); }
.dl-dialog__fine a:not([hidden]) { display: block; margin-top: var(--space-2); font-size: var(--font-size-sm); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .dl-dialog.is-running .dl-dialog__bar { animation: none; }
}

/* ---------- Legal / prose pages ---------- */
.page-hero { background: var(--gradient-primary); color: #fff; padding-block: var(--space-9); }
.page-hero h1 { font-size: var(--font-size-2xl); }
.page-hero p { margin-top: var(--space-3); opacity: 0.92; max-width: 44rem; }
.breadcrumb { font-size: var(--font-size-sm); margin-bottom: var(--space-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); opacity: 0.7; }
.breadcrumb a { color: #fff; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  :root { --gutter: 1.5rem; --header-h: 68px; }
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-lg); }
  .section { padding-block: var(--space-11); }
  .section__head { margin-bottom: var(--space-8); }
  .notice-strip { font-size: var(--font-size-sm); }
  .site-header__logo img { width: 171px; height: 28px; }
  .site-footer { padding-bottom: var(--space-9); }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .toast { bottom: var(--space-8); }
  .btn--lg { padding-inline: 1.75rem; font-size: var(--font-size-md); }
  .page-hero { padding-block: var(--space-11); }
  .page-hero h1 { font-size: var(--font-size-3xl); }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-header__logo { margin-right: var(--space-6); }
  .site-nav {
    display: block; position: static; flex: 1; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: var(--space-1); padding: 0; }
  .site-nav a { min-height: 44px; padding-inline: var(--space-3); border: 0; font-size: var(--font-size-sm); border-radius: var(--radius-pill); }
  .site-nav a:hover { background: var(--color-surface); }
}
@media (min-width: 1200px) {
  h1 { font-size: var(--font-size-4xl); }
  .site-nav a { font-size: var(--font-size-base); }
}
