/* Ivy Lane Studios — shared styles */
:root {
  --bg: #0f1a16;
  --bg-2: #14231d;
  --panel: #1a2c25;
  --line: #2a4037;
  --ink: #f4efe4;
  --muted: #a9b8ae;
  --sage: #8fa98f;
  --sage-deep: #4a7a66;
  --cream: #fff8ec;
  --terracotta: #d9825b;
  --mustard: #f2c14e;
  --dusk: #2b4c7e;
  --red: #d2463c;
  --pink: #c32865;
  --pink-text: #ec5a93;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --radius: 22px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 112px 0; position: relative; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 24px; }
.eyebrow { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mustard); margin: 0 0 20px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; background: var(--mustard); color: #1f2933; font: 600 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #ffd36b; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

/* Header */
header { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.scrolled, header.solid { background: rgba(15, 26, 22, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
header .logo img { height: 44px; width: 44px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark b { display: block; font: 600 23px/1 var(--serif); letter-spacing: -.01em; }
.wordmark small { display: block; font: 600 10px/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--mustard); margin-top: 5px; padding-left: 1px; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--ink); }
nav .btn { padding: 11px 20px; font-size: 14px; color: #1f2933; }

/* Hero */
.hero { min-height: min(100vh, 940px); min-height: min(100svh, 940px); display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 78% 40%, rgba(74, 122, 102, .35), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(195, 40, 101, .14), transparent 60%),
    var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(46px, 6.6vw, 86px); }
.hero h1 em { font-style: italic; color: var(--mustard); font-weight: 400; }
.hero p { font-size: 20px; color: var(--muted); max-width: 540px; margin: 26px 0 38px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.fan { position: relative; height: 480px; }
.fan .card { position: absolute; left: 50%; top: 50%; width: 210px; aspect-ratio: 5 / 7; border-radius: 16px; overflow: hidden; background: var(--cream);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); transform-origin: 50% 120%;
  transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fan .card img { width: 100%; height: 100%; object-fit: cover; }
.fan .card .idx { position: absolute; top: 10px; left: 12px; font: 700 24px/1 var(--serif); text-align: center; }
.fan .card .idx span { display: block; font-size: 20px; }
.fan .card.red .idx { color: var(--red); }
.fan .card.black .idx { color: #1f2933; }
.fan .c1 { transform: translate(-50%, -50%) rotate(-24deg) translateX(-30px); }
.fan .c2 { transform: translate(-50%, -50%) rotate(-8deg); }
.fan .c3 { transform: translate(-50%, -50%) rotate(8deg); }
.fan .c4 { transform: translate(-50%, -50%) rotate(24deg) translateX(30px); }
.fan:hover .c1 { transform: translate(-50%, -50%) rotate(-32deg) translateX(-50px); }
.fan:hover .c2 { transform: translate(-50%, -50%) rotate(-11deg) translateY(-10px); }
.fan:hover .c3 { transform: translate(-50%, -50%) rotate(11deg) translateY(-10px); }
.fan:hover .c4 { transform: translate(-50%, -50%) rotate(32deg) translateX(50px); }
.leaf { position: absolute; color: var(--sage-deep); opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 7s ease-in-out infinite; }
  .float.slow { animation-duration: 9s; animation-delay: -3s; }
  @keyframes float { 50% { transform: translateY(-14px) rotate(6deg); } }
}

/* Stats strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); padding: 34px 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip b { display: block; font: 600 30px/1.1 var(--serif); color: var(--ink); }
.strip span { color: var(--muted); font-size: 14px; }

/* Featured game */
.featured { background: linear-gradient(180deg, var(--bg) 0%, #12201a 100%); }
.featured .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.game-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.game-head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.game-head .tag { font-size: 13px; color: var(--muted); }
.featured h2 { margin-bottom: 18px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .04em; background: rgba(242,193,78,.14); color: var(--mustard); border: 1px solid rgba(242,193,78,.3); }
.features { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.features li b { display: block; color: var(--ink); font-size: 16px; }
.features .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-size: 17px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 14px; background: #000; border: 1px solid #444; color: #fff; text-decoration: none; }
.store-badge small { display: block; font-size: 11px; opacity: .75; letter-spacing: .04em; }
.store-badge strong { display: block; font-size: 17px; line-height: 1.1; }
a.store-badge { transition: border-color .2s, transform .2s; }
a.store-badge:hover { border-color: #888; transform: translateY(-1px); }
.featured.alt { background: linear-gradient(180deg, #12201a 0%, var(--bg) 100%); }
.featured.alt .wrap { grid-template-columns: 1.1fr .9fr; }

/* Store screenshot pair */
.shots { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.shots::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(143,169,143,.3), transparent 65%); filter: blur(20px); }
.shots img { position: relative; width: 250px; height: auto; aspect-ratio: 9 / 16; border-radius: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.shots img:first-child { transform: rotate(-6deg) translate(24px, -14px); z-index: 1; }
.shots img:last-child { transform: rotate(5deg) translate(-24px, 22px); }
.shots:hover img:first-child { transform: rotate(-8deg) translate(10px, -20px); }
.shots:hover img:last-child { transform: rotate(7deg) translate(-10px, 26px); }

/* Phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(143,169,143,.35), transparent 65%); filter: blur(20px); }
.phone { position: relative; width: 320px; aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px; background: #0a0f0d; box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 2px #2b3330; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #3f6e5c url("images/felt_grain.png"); background-size: 128px; display: flex; flex-direction: column; padding: 34px 12px 12px; }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 86px; height: 22px; margin-left: -43px; border-radius: 20px; background: #0a0f0d; }
.hud { display: flex; justify-content: space-between; color: var(--cream); font: 600 10px/1.2 var(--sans); background: rgba(0,0,0,.18); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.hud span { display: block; text-align: center; }
.hud small { display: block; font-weight: 500; opacity: .7; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.slot { aspect-ratio: 5 / 7; border-radius: 5px; border: 1.5px dashed rgba(255,248,236,.35); }
.pc { position: relative; aspect-ratio: 5 / 7; border-radius: 5px; background: var(--cream); box-shadow: 0 1px 2px rgba(0,0,0,.35); overflow: hidden; font: 700 11px/1 var(--serif); }
.pc.back { background: url("images/cards/back_ivy.jpg") center / cover; }
.pc .r { position: absolute; top: 3px; left: 4px; text-align: center; line-height: .95; }
.pc .r i { display: block; font-style: normal; font-size: 9px; }
.pc .big { position: absolute; right: 3px; bottom: 1px; font-size: 18px; }
.pc.red { color: var(--red); }
.pc.blk { color: #1f2933; }
.pc.court img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pc.court .r { z-index: 1; background: rgba(255,248,236,.85); border-radius: 3px; padding: 1px 1px 2px; }
.pile { display: flex; flex-direction: column; }
.pile > * + * { margin-top: -100%; }
.pile > .up + .up { margin-top: -78%; }
.tableau { margin-top: 22px; align-items: start; }
.hint-card { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .hint-card { animation: hint 3.6s ease-in-out infinite; }
  @keyframes hint { 0%, 55%, 100% { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,.35); } 70% { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--mustard), 0 8px 14px rgba(0,0,0,.35); } }
}
.dock { margin-top: auto; display: flex; justify-content: space-around; background: rgba(0,0,0,.2); border-radius: 16px; padding: 9px 4px; color: var(--cream); font: 500 9px/1.2 var(--sans); text-align: center; }
.dock span { display: block; font-size: 15px; margin-bottom: 2px; }

/* Pillars */
.pillars .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.tile .num { font: 600 14px/1 var(--sans); color: var(--mustard); letter-spacing: .1em; }
.tile h3 { margin: 18px 0 10px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.section-head { max-width: 680px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }

/* Games grid */
.games { background: var(--bg-2); border-block: 1px solid var(--line); }
.games .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.game-card { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; transition: transform .25s, border-color .25s; }
a.game-card:hover { transform: translateY(-4px); border-color: var(--sage-deep); }
.game-card .art { aspect-ratio: 1024 / 500; display: grid; place-items: center; background: #8fa98f; overflow: hidden; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 22px 24px 26px; }
.game-card h3 { font-size: 22px; margin-bottom: 6px; }
.game-card p { margin: 0; color: var(--muted); font-size: 15px; }
.game-card .meta { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.game-card.soon .art { background: repeating-linear-gradient(135deg, #1d3029 0 14px, #1a2c25 14px 28px); color: var(--sage); font: 600 54px/1 var(--serif); }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
.chip.live { background: rgba(242,193,78,.14); color: var(--mustard); border-color: rgba(242,193,78,.3); }

/* Rewards / how it works */
.rewards .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 18px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mustard); color: #1f2933; font: 700 16px/1 var(--serif); }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, #13221c 100%); }
.contact .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; color: var(--muted); }
.contact ul b { color: var(--ink); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
form .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #75867c; }
.form-status { grid-column: 1 / -1; margin: 0; color: var(--muted); min-height: 1.4em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
footer .logo img { height: 40px; width: 40px; }
footer .wordmark b { font-size: 20px; }
footer nav { gap: 24px; flex-wrap: wrap; }
footer nav a { font-size: 14px; }

/* Legal pages */
.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; font-size: 15px; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal h3 { font-size: 19px; margin: 28px 0 10px; font-family: var(--sans); font-weight: 600; }
.legal p, .legal li { color: #d6ddd7; font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--mustard); }
.legal .toc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; margin-bottom: 20px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { margin-bottom: 6px; font-size: 15px; }
.legal .toc a { color: var(--ink); text-decoration: none; }
.legal .toc a:hover { color: var(--mustard); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #d6ddd7; }
.legal th { color: var(--ink); font-weight: 600; background: var(--panel); }
.legal .table-scroll { overflow-x: auto; }
.legal .callout { background: rgba(242,193,78,.08); border: 1px solid rgba(242,193,78,.25); border-radius: 14px; padding: 18px 22px; }
.legal .callout p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  section { padding: 84px 0; }
  .hero .wrap, .featured .wrap, .featured.alt .wrap, .rewards .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { text-align: left; }
  .fan { height: 380px; }
  .fan .card { width: 170px; }
  .featured .phone-stage, .featured .shots { order: -1; }
  .shots { min-height: 0; padding: 20px 0; }
  .pillars .grid, .games .grid { grid-template-columns: 1fr 1fr; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header .logo img { height: 38px; width: 38px; }
  .wordmark b { font-size: 20px; }
  .hero { padding-top: 120px; }
  .hero p { font-size: 18px; }
  .fan { height: 320px; }
  .fan .card { width: 140px; border-radius: 12px; }
  .fan .card .idx { font-size: 18px; }
  .features { grid-template-columns: 1fr; }
  .pillars .grid, .games .grid { grid-template-columns: 1fr; }
  .phone { width: 280px; }
  .shots img { width: 46%; max-width: 200px; border-radius: 18px; }
  form { grid-template-columns: 1fr; padding: 22px; }
  .legal .toc ol { columns: 1; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
