/* Silverdale studio site — mockup styles.
   One stylesheet, three themes: .t-studio (hub), .t-ap (Animal Park), .t-dice (Roll Dice). */

:root {
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- themes ---------- */
.t-studio {
  --bg: #121110; --fg: #f4efe9; --muted: #a59d94; --card: #1d1b19; --line: #2e2b28;
  --accent: #f3e8db; --display: "Changa One", Impact, sans-serif;
}
.t-ap {
  --bg: #f3e8db; --fg: #3b2a1d; --muted: #7d6656; --card: #fff8f0; --line: #e4d3c0;
  --accent: #7cc242; --accent-2: #f39a1e; --accent-ink: #2f5d13;
  --display: "Changa One", Impact, sans-serif;
}
.t-dice {
  --bg: #262422; --fg: #ffffff; --muted: #b3aca5; --card: #312e2b; --line: #403c38;
  --accent: #ffd60a; --accent-2: #30d158; --accent-ink: #262422;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand { flex: none; }
.brand img { height: 42px; width: auto; flex: none; }
.crumb { color: var(--muted); font-weight: 600; text-decoration: none; }
.crumb:hover { color: var(--fg); }
.nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px;
  color: var(--muted);
}
.nav a:not([aria-current]):hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.nav a[aria-current] { position: relative; color: var(--fg); }
.nav-pill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in srgb, var(--fg) 8%, transparent); }

/* game switcher in the bar */
.switcher { position: relative; }
.switcher > button {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  border-radius: 999px; padding: 7px 14px; display: flex; gap: 8px; align-items: center;
}
.switcher-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 280px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.switcher:focus-within .switcher-menu, .switcher:hover .switcher-menu { display: block; }
.switcher-menu a {
  display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none;
}
.switcher-menu a:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.switcher-menu img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.switcher-menu small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.app-icon { border-radius: 22%; }
.icon-ap { object-fit: cover; }
.icon-dice { background: #262422; padding: 6px; object-fit: contain !important; }

/* ---------- buttons / badges ---------- */
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badges img { height: 52px; width: auto; }
.badge-soon { position: relative; opacity: .55; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 14px; background: var(--accent); color: var(--accent-ink, #111);
  border: 0; font-size: 16px;
}
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn-play { font-size: 20px; padding: 18px 32px; border-radius: 16px; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.play-web { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 26px; }
.play-web span { color: var(--muted); font-size: 14px; max-width: 220px; }
.or-app { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cta-band .or-app { text-align: center; }
.topbar .btn-top { padding: 8px 16px; font-size: 14px; border-radius: 999px; flex: none; }

/* ---------- STUDIO HOME ---------- */
.studio-hero { text-align: center; padding-top: 88px; padding-bottom: 40px; }
.studio-hero .logo { width: 190px; margin: 0 auto 28px; }
.studio-hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 0 0 14px;
}
.studio-hero p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto; }

.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: 80px; }
.choice {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border-radius: 28px; overflow: hidden; min-height: 520px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.choice:hover, .choice:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.45); outline: none; }
.choice .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.choice .art img.keyart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.choice:hover .art img.keyart { transform: scale(1.04); }
.choice .body { padding: 26px 30px 30px; }
.choice h2 { margin: 0 0 6px; font-size: 32px; line-height: 1.1; }
.choice p { margin: 0 0 18px; }
.choice .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.choice .go { font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.choice .go::after { content: "→"; transition: transform .2s; }
.choice:hover .go::after { transform: translateX(5px); }

.choice-ap { background: linear-gradient(180deg, #f8efe4 0%, #f3e8db 60%, #ead8c3 100%); color: #3b2a1d; }
.choice-ap h2 { font-family: "Changa One", Impact, sans-serif; font-weight: 400; font-size: 38px; }
.choice-ap .art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, #f8efe4); }
.choice-ap .art img.logo { position: absolute; left: 22px; top: 18px; width: 38%; max-width: 230px; z-index: 1; filter: drop-shadow(0 8px 14px rgba(40,25,10,.35)); }
.choice-dice .art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, #262422); }
.choice-dice .art img.keyart { object-position: 30% 50%; }
.choice-dice .art img.phone { position: absolute; right: 7%; top: 9%; width: 25%; border-radius: 18px; z-index: 1; transform: rotate(5deg); box-shadow: 0 24px 50px rgba(0,0,0,.6); border: 3px solid #111; }
.choice-ap .go { color: #3f8a1a; }

.choice-dice { background: #262422; color: #fff; }
.choice-dice .art { background: var(--tartan); }
.choice-dice .art .dice-row { display: flex; gap: 6px; align-items: center; transform: rotate(-6deg); }
.choice-dice .art .dice-row img { width: 31%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }
.choice-dice .art .dice-row img:nth-child(2) { transform: rotate(14deg) translateY(-18px); }
.choice-dice .art .dice-row img:nth-child(3) { transform: rotate(-10deg) translateY(10px); }
.choice-dice h2 { font-weight: 800; letter-spacing: -.02em; }
.choice-dice p { color: #cfc8c1; }
.choice-dice .go { color: #ffd60a; }

/* plaid used for Roll Dice art, approximating the in-app felt */
body, .choice-dice { --tartan:
  repeating-linear-gradient(90deg, rgba(0,0,0,.0) 0 60px, rgba(32,32,30,.75) 60px 120px, rgba(0,0,0,0) 120px 180px),
  repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 60px, rgba(32,32,30,.7) 60px 120px, rgba(0,0,0,0) 120px 180px),
  linear-gradient(90deg, #2c8c86 0 20%, #c8b23a 20% 34%, #c0442c 34% 52%, #3a8f5a 52% 70%, #2c8c86 70% 86%, #d07a2a 86%);
}

.studio-about { border-top: 1px solid var(--line); padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.studio-about h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 12px; }
.studio-about p { color: var(--muted); margin: 0 0 12px; }

/* ---------- GAME PAGES ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 70px); line-height: 1; margin: 0 0 18px; }
.t-dice .hero h1 { font-weight: 800; letter-spacing: -.035em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 520px; }
.hero .facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero .facts span::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.t-ap .hero .facts span::before { color: #3f8a1a; }

.ap-hero-logo { width: 100%; max-width: 480px; filter: drop-shadow(0 18px 24px rgba(80,50,20,.25)); }
.phone-pair { display: flex; gap: 18px; justify-content: center; }
.phone-pair img { width: 46%; max-width: 250px; border-radius: 30px; box-shadow: 0 30px 60px rgba(80,50,20,.25); }
.phone-pair img:last-child { transform: translateY(36px); }

.dice-stage {
  aspect-ratio: 4/3.2; border-radius: 28px; background: var(--tartan); position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 120px rgba(0,0,0,.45);
}
.dice-stage img { position: absolute; width: 27%; filter: drop-shadow(0 22px 20px rgba(0,0,0,.6)); }
.dice-stage .d1 { left: 14%; top: 34%; transform: rotate(-12deg); }
.dice-stage .d2 { left: 42%; top: 12%; transform: rotate(18deg); }
.dice-stage .d3 { left: 58%; top: 46%; transform: rotate(-4deg); }
.dice-stage .total {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(30,28,26,.72); backdrop-filter: blur(10px); border-radius: 18px; padding: 8px 22px;
  text-align: center; border: 1px solid rgba(255,255,255,.12);
}
.dice-stage .total b { display: block; font-size: 34px; line-height: 1.1; }
.dice-stage .total small { color: #cfc8c1; font-size: 12px; }

.section { padding: 72px 0; }
.section h2.title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; line-height: 1.05; }
.t-dice .section h2.title { font-weight: 800; letter-spacing: -.025em; }
.section p.sub { color: var(--muted); margin: 0 0 36px; font-size: 18px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; overflow: hidden; }
.feature img { border-radius: 14px; margin: -6px -6px 18px; width: calc(100% + 12px); aspect-ratio: 16/10; object-fit: cover; }
.feature h3 { margin: 0 0 6px; font-size: 20px; }
.t-ap .feature h3 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.feature p { margin: 0; color: var(--muted); }
.feature .ico { font-size: 28px; margin-bottom: 10px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots img { height: 460px; width: auto; border-radius: 26px; scroll-snap-align: start; box-shadow: 0 16px 40px rgba(0,0,0,.18); }

.presets { display: flex; flex-wrap: wrap; gap: 10px; }
.presets span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.dice-phones img { box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.shots-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.shots-grid figure { margin: 0; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.shots-grid img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.4); margin-bottom: 10px; display: block; }
.browser-frame { display: block; max-width: 920px; margin: 0 auto 34px; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.5); text-decoration: none; }
.browser-frame .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; }
.browser-frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-frame .bar span { margin: 0 auto; padding: 3px 18px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; transform: translateX(-24px); }
.browser-frame img { display: block; width: 100%; height: auto; }
.diceset { display: flex; gap: 2px; flex-wrap: wrap; align-items: end; justify-content: space-between; margin-top: 28px;
  padding: 30px 34px 18px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 50% 0%, #4a4540 0%, #3a3632 55%, #312e2b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.35); }
.diceset figure { color: #c9c1b8; }
.diceset figure { margin: 0; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.diceset figure { position: relative; }
.diceset img { position: relative; z-index: 1; width: 80px; height: 80px; object-fit: contain; margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)) drop-shadow(0 12px 18px rgba(0,0,0,.2));
  transition: transform .45s cubic-bezier(.34,1.4,.64,1), filter .45s; }
/* soft contact shadow: a dark core right under the die fading into a wide, faint penumbra */
.diceset figure::before { content: ""; position: absolute; left: 50%; top: 62px; width: 84px; height: 26px; margin-left: -42px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, rgba(0,0,0,0));
  filter: blur(8px); transition: transform .45s cubic-bezier(.34,1.4,.64,1), opacity .45s; }
.diceset figure:hover img { transform: translateY(-10px) rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)) drop-shadow(0 22px 26px rgba(0,0,0,.14)); }
.diceset figure:hover::before { transform: scale(.75); opacity: .45; filter: blur(11px); }
.diceset figure:active img { transform: translateY(-4px) rotate(14deg) scale(.96); transition-duration: .12s; }
.diceset .coin img { width: 68px; height: 68px; margin: 6px 6px 18px; }
.diceset .coin::before { top: 60px; width: 70px; margin-left: -35px; height: 22px; }
.get-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.get-row .btn-play { height: 48px; padding: 0 20px; font-size: 17px; border-radius: 10px; white-space: nowrap; }
.get-row .badges { flex-wrap: nowrap; gap: 12px; }
.get-row .badges img { height: 48px; }
.get-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.cta-band .get-row { justify-content: center; }
.browser-frame img { cursor: zoom-in; }
.features-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.features-5 .feature { padding: 22px; }
@media (max-width: 1100px) { .features-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-5 { grid-template-columns: 1fr; } .get-row .badges { flex-wrap: wrap; } }

.cta-band { text-align: center; padding: 80px 0; border-top: 1px solid var(--line); }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 54px); margin: 0 0 22px; }
.t-dice .cta-band h2 { font-weight: 800; letter-spacing: -.03em; }
.cta-band .badges { justify-content: center; }


/* ---------- DOC PAGES (privacy / terms / support) ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; max-width: 1040px; }
.doc aside { position: sticky; top: 96px; align-self: start; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.doc aside b { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin: 0 0 8px; }
.doc aside a { display: block; text-decoration: none; color: var(--muted); padding: 5px 0; }
.doc article { min-width: 0; }
.doc aside a:hover { color: var(--fg); }
.doc aside .group + .group { margin-top: 24px; }
.doc article { max-width: 700px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin: 0 0 8px; }
.t-dice .doc h1 { font-weight: 800; letter-spacing: -.03em; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; scroll-margin-top: 90px; }
.doc p, .doc li { color: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
.doc .summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 12px;
}
.doc .summary h3 { margin: 0 0 10px; font-size: 16px; }
.doc .summary ul { margin: 0; padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.callout {
  border-left: 4px solid var(--accent); background: var(--card); padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 18px 0;
}
.t-ap .callout { border-color: #f39a1e; }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; }

.form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
}
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form label { min-width: 0; } .form :is(input, select, textarea) { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.form .hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--accent); color: var(--accent-ink, #111); font-size: 14px;
}

/* ---------- mockup navigator (remove in production) ---------- */
.mock-nav {
  position: fixed; left: 16px; bottom: 16px; z-index: 50; font: 600 12px/1.3 system-ui, sans-serif;
  background: #111; color: #eee; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  max-width: 260px;
}
.mock-nav summary { cursor: pointer; list-style: none; }
.mock-nav summary::before { content: "🧭 "; }
.mock-nav a { display: block; color: #bbb; text-decoration: none; padding: 3px 0; }
.mock-nav a:hover { color: #fff; }
.mock-nav b { display: block; margin-top: 8px; color: #777; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .chooser, .studio-about, .hero .wrap, .features, .doc .wrap { grid-template-columns: 1fr; }
  .choice { min-height: 440px; }
  .doc aside { position: static; }
  .doc .wrap { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .shots img { height: 360px; }
  .shots-grid { grid-template-columns: repeat(3, 1fr); }
  .phone-pair img:last-child { transform: none; }
}
/* Home "About / Get in touch": tighter, and side by side down to 700px */
@media (max-width: 860px) {
  .studio-about { padding-top: 48px; padding-bottom: 48px; gap: 24px 48px; }
}
@media (min-width: 700px) and (max-width: 860px) { .studio-about { grid-template-columns: 1fr 1fr; } }
