/* DoyDoy, Inc. — shared styles */
:root {
  --bg: #f5f3ea;
  --surface: #ffffff;
  --ink: #12211a;
  --muted: #55645b;
  --line: #dcd9cb;
  --green: #2c5f2d;
  --lime: #97d700;
  --dark: #0e1a13;
  --dark-ink: #eef3e8;
  --dark-muted: #9db0a2;
  --radius: 14px;
  --wrap: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--lime);
  display: grid; grid-template-columns: 5px 5px; gap: 6px; place-content: center; padding-top: 1px;
}
.mark i { width: 5px; height: 7px; background: var(--dark); border-radius: 2px; display: block; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav a:not(.brand):not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; }
.nav a:not(.brand):not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.brand):not(.btn):hover { color: var(--ink); }
.nav a:not(.brand):not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #1f4720; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lime { background: var(--lime); color: var(--dark); }
.btn-lime:hover { background: #abee1a; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; min-height: calc(100vh - 68px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62% 92%, transparent 92%); }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 34em; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; font-size: 14px; color: var(--muted); list-style: none; }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); margin-right: 10px; }

.shots { display: grid; grid-template-columns: 1fr; gap: 16px; }
.frame {
  border-radius: var(--radius); overflow: hidden; background: var(--dark);
  border: 1px solid rgba(0,0,0,.12); box-shadow: 0 18px 40px -22px rgba(14,26,19,.5);
}
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; transition: transform .5s ease; }
.frame:hover img { transform: scale(1.03); }
.shots .frame:nth-child(2) img { object-position: 50% 50%; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; max-width: 18em; }
.section-lead { color: var(--muted); max-width: 38em; margin-top: 16px; font-size: 19px; }

/* games */
.games { display: grid; gap: 28px; margin-top: 56px; }
.game {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.game:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -26px rgba(14,26,19,.45); }
.game:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.game:nth-child(even) .game-media { order: 2; }
.game-media { background: var(--dark); overflow: hidden; min-height: 360px; }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game:hover .game-media img { transform: scale(1.025); }
.game-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.game-body h3 { font-size: 32px; letter-spacing: -0.025em; line-height: 1.1; }
.game-body p { color: var(--muted); margin-top: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #e9efdc; color: var(--green); }
.game-body .btn { align-self: flex-start; margin-top: 30px; }

/* dark band: principles */
.band { background: var(--dark); color: var(--dark-ink); }
.band h2 { color: var(--dark-ink); }
.band .section-lead { color: var(--dark-muted); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; list-style: none; }
.principles li { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px; background: rgba(255,255,255,.03); transition: transform .2s ease, border-color .2s ease; }
.principles li:hover { transform: translateY(-2px); border-color: rgba(151,215,0,.5); }
.principles .n { font-size: 13px; font-weight: 700; color: var(--lime); letter-spacing: .1em; }
.principles h3 { font-size: 22px; margin: 14px 0 10px; letter-spacing: -0.015em; }
.principles p { color: var(--dark-muted); font-size: 16px; }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split p { color: var(--muted); margin-top: 18px; font-size: 18px; }
.split p:first-of-type { margin-top: 0; }
.company {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px;
}
.company dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; }
.company dt { color: var(--muted); font-size: 14px; }
.company dd { font-weight: 600; }
.company h3 { font-size: 20px; margin-bottom: 22px; }
.company a { color: var(--green); font-weight: 600; }

/* contact */
.contact { background: var(--green); color: #fff; }
.contact h2 { color: #fff; }
.contact .section-lead { color: #d7e8cf; }
.contact .actions { margin-top: 32px; }
.contact .btn-ghost { border-color: #fff; color: #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--green); }

/* ---------- footer ---------- */
footer { background: var(--dark); color: var(--dark-muted); padding: 48px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer .brand { color: var(--dark-ink); }
footer ul { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- document pages (privacy, support) ---------- */
.doc { padding: 72px 0 112px; }
.doc .wrap { width: min(780px, 100% - 48px); }
.doc h1 { font-size: clamp(36px, 5vw, 54px); }
.doc .updated { color: var(--muted); margin-top: 14px; font-size: 15px; }
.doc h2 { font-size: 26px; margin-top: 52px; letter-spacing: -0.02em; max-width: none; }
.doc p, .doc li { color: #34443a; margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--green); font-weight: 600; }
.doc details { border-top: 1px solid var(--line); padding: 18px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { font-weight: 700; cursor: pointer; font-size: 18px; }
.doc details p { margin-top: 10px; }
.contact-card { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; }
.contact-card p { margin: 0; }
.contact-card .big { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }

/* ---------- entrance (once, on load) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
[data-enter] > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
[data-enter] > *:nth-child(5) { animation-delay: .32s; }
.shots[data-enter] > *:nth-child(2) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 48px 0 72px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 44px; }
  .game, .game:nth-child(even) { grid-template-columns: 1fr; }
  .game:nth-child(even) .game-media { order: 0; }
  .game-media { min-height: 0; aspect-ratio: 16 / 10; }
  .game-body { padding: 32px; }
  .principles { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .nav ul { gap: 16px; }
  .nav li.hide-sm { display: none; }
  .actions .btn { width: 100%; }
  .game-body .btn { align-self: stretch; }
  .company { padding: 26px; }
  .company dl { grid-template-columns: 1fr; gap: 4px; }
  .company dd { margin-bottom: 12px; }
}

/* ---------- simple home ---------- */
.home { padding: 72px 0 96px; min-height: calc(100vh - 110px); }
.home .wrap { width: min(640px, 100% - 48px); }
.home h1 { font-size: clamp(40px, 7vw, 64px); margin-top: 56px; }
.home h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-top: 56px; font-weight: 700; }
.list { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; transition: padding .2s ease, color .2s ease; }
.list a:hover { color: var(--green); padding-left: 12px; }
.list .where { font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
