/* Sheep Game Studio — shared styles */
:root {
  --cream: #f8f5e6;
  --paper: #fffdf5;
  --paper-2: #f3efdb;
  --ink: #2f4a3a;
  --ink-soft: #5b6f60;
  --muted: #7d8a7c;
  --grass: #5f8f55;
  --grass-deep: #47733f;
  --leaf: #a9c98b;
  --leaf-soft: #dfeac9;
  --sun: #f2c94c;
  --sun-soft: #fbefc2;
  --pond: #8fcde6;
  --blush: #f2a99b;
  --wood: #b9794a;
  --line: rgba(47, 74, 58, 0.12);
  --shadow: 0 18px 40px -18px rgba(47, 74, 58, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(47, 74, 58, 0.4);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --font-round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", "Malgun Gothic", "Noto Sans CJK SC", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html[lang="zh-Hant"] { --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
html[lang="ja"] { --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif; }
html[lang="ko"] { --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grass-deep); }
h1, h2, h3, h4 { font-family: var(--font-round); line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
p { color: var(--ink-soft); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 230, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(47,74,58,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-round); font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }
.brand-name small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--grass-deep); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-select { position: relative; }
.lang-select select {
  appearance: none; -webkit-appearance: none;
  font: 600 .88rem var(--font-body); color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232f4a3a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 32px 8px 36px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.lang-select::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f8f55' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5S14.6 18.7 12 21.5C9.4 18.7 8.1 15.5 8.1 12S9.4 5.3 12 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lang-select select:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--grass); color: #fff; box-shadow: 0 10px 24px -10px rgba(71,115,63,.8); }
.btn-primary:hover { background: var(--grass-deep); transform: translateY(-2px); }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--leaf); }
.btn-store { background: var(--ink); color: #fff; padding: 10px 22px 10px 18px; border-radius: 14px; text-align: left; line-height: 1.2; }
.btn-store small { display: block; font-size: .7rem; font-weight: 500; opacity: .75; }
.btn-store span { font-size: 1.05rem; }
.btn-store svg { width: 26px; height: 26px; }
.btn-store[aria-disabled="true"] { cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero-sky { position: absolute; inset: 0; background: radial-gradient(900px 420px at 82% 8%, var(--sun-soft), transparent 70%), linear-gradient(180deg, #eef5ec 0%, var(--cream) 60%); z-index: -2; }
.hero-sun { position: absolute; top: 60px; right: 12%; width: 86px; height: 86px; border-radius: 50%; background: var(--sun); opacity: .75; box-shadow: 0 0 0 18px rgba(242,201,76,.16), 0 0 0 40px rgba(242,201,76,.08); z-index: -1; animation: pulse 6s ease-in-out infinite; }
.cloud { position: absolute; z-index: -1; opacity: .9; animation: drift linear infinite; }
.cloud svg { width: 100%; height: auto; }
.cloud.c1 { top: 70px; width: 150px; left: -160px; animation-duration: 70s; }
.cloud.c2 { top: 170px; width: 100px; left: -120px; animation-duration: 95s; animation-delay: -40s; }
.cloud.c3 { top: 40px; width: 120px; left: -140px; animation-duration: 85s; animation-delay: -65s; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 700; color: var(--grass-deep); letter-spacing: .04em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 0 4px var(--leaf-soft); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin: 22px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--grass); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .24em; background: var(--sun-soft); z-index: -1; border-radius: 6px; }
.hero-lead { font-size: 1.15rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; aspect-ratio: 1 / .78; }
.hero-art .meadow { position: absolute; inset: 0; border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%; overflow: hidden; box-shadow: var(--shadow); background: var(--leaf-soft); }
.hero-art .meadow img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-art .prop { position: absolute; filter: drop-shadow(0 8px 10px rgba(47,74,58,.18)); }
.hero-art .windmill { width: 26%; left: -2%; top: 4%; }
.hero-art .windmill img { transform-origin: 50% 32%; }
.hero-art .sunflower { width: 24%; right: 2%; top: 12%; animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
.hero-art .calf { width: 18%; right: 12%; bottom: 6%; animation: bob 3.2s ease-in-out infinite; }
.hero-art .icon-badge { position: absolute; left: 6%; bottom: -4%; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.hero-art .icon-badge img { width: 52px; height: 52px; border-radius: 14px; }
.hero-art .icon-badge b { display: block; font-family: var(--font-round); font-size: 1rem; }
.hero-art .icon-badge small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.walkers { position: relative; height: 120px; margin-top: 40px; }
.walkers::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(180deg, transparent, var(--leaf-soft)); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: var(--leaf); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .55; }
.walker { position: absolute; bottom: 16px; width: 72px; animation: walk linear infinite; left: -90px; }
.walker img { animation: hop .5s ease-in-out infinite alternate; }
.walker.w1 { animation-duration: 26s; }
.walker.w2 { width: 58px; animation-duration: 26s; animation-delay: -1.6s; }
.walker.w3 { width: 46px; animation-duration: 26s; animation-delay: -3s; }
.walker.w4 { width: 64px; animation-duration: 34s; animation-delay: -17s; }
.grass-tuft { position: absolute; bottom: 20px; width: 26px; color: var(--grass); opacity: .7; }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--grass); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.section-head p { font-size: 1.08rem; }

/* Featured game */
.featured { background: var(--paper); }
.featured::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 60px; background: var(--leaf-soft); clip-path: ellipse(70% 100% at 50% 0); opacity: .9; }
.game-card { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.game-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.game-id img { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.game-id h3 { font-size: 2rem; }
.game-id p { font-weight: 600; color: var(--grass); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--leaf-soft); color: var(--grass-deep); font-size: .82rem; font-weight: 700; }
.chip.sun { background: var(--sun-soft); color: #8a6a12; }
.game-desc { font-size: 1.08rem; margin-bottom: 26px; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-bottom: 32px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ficon { width: 38px; height: 38px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; flex-shrink: 0; font-size: 1.15rem; }
.feature-list b { display: block; font-size: .98rem; color: var(--ink); }
.feature-list span { font-size: .88rem; color: var(--muted); line-height: 1.5; display: block; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-note { font-size: .85rem; color: var(--muted); }

/* Phone + playable puzzle */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before { content: ""; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--sun-soft), transparent 68%); top: 4%; }
.phone {
  position: relative; width: min(340px, 100%); border-radius: 44px; padding: 14px;
  background: #24372b; box-shadow: 0 40px 60px -30px rgba(36,55,43,.7), inset 0 0 0 2px #3c5646;
}
.screen { border-radius: 32px; overflow: hidden; background: var(--cream); padding: 22px 18px 20px; position: relative; }
.screen-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.screen-top b { font-family: var(--font-round); font-size: 1.05rem; }
.lives { display: flex; gap: 3px; font-size: .9rem; }
.screen-hint { font-size: .8rem; color: var(--muted); margin-bottom: 12px; line-height: 1.45; min-height: 2.4em; }
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 3px var(--ink); background: var(--ink); }
.cell {
  aspect-ratio: 1; border: 0; cursor: pointer; position: relative; display: grid; place-items: center;
  font-size: 1rem; color: var(--ink-soft); transition: filter .15s; -webkit-tap-highlight-color: transparent;
  --grid: rgba(47, 74, 58, 0.18);
  box-shadow: inset -1px -1px 0 var(--grid);
}
.cell:hover { filter: brightness(1.05); }
.cell:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; z-index: 1; }
.board { gap: 0; }
.cell.bt { box-shadow: inset -1px -1px 0 var(--grid), inset 0 2.5px 0 var(--ink); }
.cell.bl { box-shadow: inset -1px -1px 0 var(--grid), inset 2.5px 0 0 var(--ink); }
.cell.bt.bl { box-shadow: inset -1px -1px 0 var(--grid), inset 0 2.5px 0 var(--ink), inset 2.5px 0 0 var(--ink); }
.cell img { width: 82%; animation: pop .35s var(--ease); }
.cell.bad img { animation: shake .4s; filter: drop-shadow(0 0 4px #e45c4a); }
.cell .x { font-weight: 700; opacity: .55; font-size: .9rem; }
.r0 { background: #cfe5b4; } .r1 { background: #f6e3a8; } .r2 { background: #bfe0ee; }
.r3 { background: #e7f0d6; } .r4 { background: #f7d6cc; } .r5 { background: #dcd4ef; }
.screen-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.screen-actions button { flex: 1; border: 0; border-radius: 14px; padding: 9px 4px; background: var(--paper); box-shadow: var(--shadow-sm); font: 700 .8rem var(--font-body); color: var(--ink); cursor: pointer; }
.screen-actions button:hover { background: var(--leaf-soft); }
.win { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(248,245,230,.92); opacity: 0; pointer-events: none; transition: opacity .4s; padding: 24px; }
.win.show { opacity: 1; pointer-events: auto; }
.win img { width: 120px; margin: 0 auto 10px; animation: bob 1.6s ease-in-out infinite; }
.win h4 { font-size: 1.5rem; margin-bottom: 6px; }
.win p { font-size: .9rem; margin-bottom: 16px; }
.play-tip { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* Rules */
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rule-card { background: var(--paper); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.rule-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.rule-card .mini { display: grid; grid-template-columns: repeat(4, 1fr); width: 120px; margin-bottom: 22px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px var(--ink); }
.rule-card .mini i { aspect-ratio: 1; display: grid; place-items: center; font-style: normal; font-size: .9rem; }
.rule-card .num { font-family: var(--font-round); font-weight: 800; color: var(--leaf); font-size: .95rem; letter-spacing: .1em; }
.rule-card h3 { font-size: 1.3rem; margin: 4px 0 8px; }
.rule-card p { font-size: .96rem; }
.more-rules { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Pasture */
.pasture { background: linear-gradient(180deg, var(--cream), #eef4e2); }
.pasture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pasture-art { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 600 / 640; background: var(--leaf-soft); }
.pasture-art > img.bg { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.pasture-art .p { position: absolute; filter: drop-shadow(0 6px 8px rgba(47,74,58,.2)); transition: transform .5s var(--ease); }
.pasture-art .p:hover { transform: scale(1.08) translateY(-4px); }
.pasture-art .p-windmill { width: 26%; left: 5%; top: 8%; }
.pasture-art .p-sunflower { width: 27%; right: 6%; top: 22%; }
.pasture-art .p-bridge { width: 30%; left: 35%; top: 50%; }
.pasture-art .p-calf { width: 18%; left: 44%; top: 20%; }
.pasture-art .p-sheep { width: 15%; animation: bob 3s ease-in-out infinite; }
.pasture-art .s1 { left: 10%; top: 62%; } .pasture-art .s2 { right: 10%; top: 58%; animation-delay: -1s; }
.pasture-art .s3 { left: 24%; top: 80%; animation-delay: -.5s; } .pasture-art .s4 { right: 24%; top: 80%; animation-delay: -1.8s; }
.pasture-art .s5 { left: 46%; top: 76%; animation-delay: -2.4s; }
.tag { position: absolute; background: var(--paper); border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); white-space: nowrap; transform: translate(-50%, 0); left: 50%; bottom: -14px; }
.steps { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); padding: 18px 20px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.steps .n { width: 34px; height: 34px; border-radius: 50%; background: var(--grass); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-round); }
.steps b { display: block; color: var(--ink); }
.steps span { font-size: .93rem; color: var(--ink-soft); }
.progress-track { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; position: relative; padding: 0 6px; }
.progress-track::before { content: ""; position: absolute; left: 30px; right: 30px; height: 6px; background: var(--grass); border-radius: 6px; top: 50%; transform: translateY(-50%); opacity: .7; }
.progress-track .node { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--grass), var(--shadow-sm); display: grid; place-items: center; overflow: hidden; }
.progress-track .node img { width: 76%; }
.progress-track .node .sunball { width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }

/* Studio */
.studio-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.studio-intro .art { border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.studio-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 10px 0 16px; }
.studio-intro p + p { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 64px; }
.stat { background: var(--paper); border-radius: var(--r-md); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-round); font-size: 2.3rem; color: var(--grass); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px 22px; border-radius: var(--r-md); border: 1.5px dashed rgba(95,143,85,.35); }
.value .vi { font-size: 1.6rem; margin-bottom: 10px; }
.value h4 { font-size: 1.1rem; margin-bottom: 6px; }
.value p { font-size: .92rem; line-height: 1.6; }
.next-up { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.slot { border-radius: var(--r-md); padding: 26px; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: center; }
.slot img { width: 60px; height: 60px; border-radius: 16px; }
.slot .ph { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--paper-2); color: var(--muted); font-size: 1.5rem; font-weight: 800; border: 2px dashed var(--line); flex-shrink: 0; }
.slot b { display: block; font-family: var(--font-round); }
.slot span { font-size: .86rem; color: var(--muted); }

/* Contact */
.contact-card { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 36px; padding: 64px 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.contact-card h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.contact-card p { color: rgba(255,255,255,.75); margin-bottom: 26px; }
.contact-card .mail { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .3s var(--ease); word-break: break-all; }
.contact-card .mail:hover { transform: translateY(-2px); }
.contact-card .mail svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { background: rgba(255,255,255,.07); border-radius: 16px; padding: 14px 18px; font-size: .92rem; color: rgba(255,255,255,.85); }
.contact-list b { color: #fff; display: block; font-size: .98rem; }
.contact-card .deco { position: absolute; right: -30px; bottom: -40px; width: 200px; opacity: .1; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: var(--grass-deep); }
.copyright { margin-top: 26px; font-size: .85rem; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #eef5ec, var(--cream)); }
.legal-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 12px 0 8px; }
.legal-hero p { max-width: 720px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding: 24px 0 80px; }
.toc { position: sticky; top: 96px; background: var(--paper); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); max-height: calc(100vh - 120px); overflow: auto; }
.toc b { display: block; font-family: var(--font-round); margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 6px; }
.toc a { font-size: .86rem; color: var(--ink-soft); text-decoration: none; line-height: 1.4; display: block; }
.toc a:hover { color: var(--grass-deep); }
.legal { background: var(--paper); border-radius: var(--r-lg); padding: 48px 52px; box-shadow: var(--shadow-sm); min-width: 0; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 14px; padding-top: 10px; scroll-margin-top: 90px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: .98rem; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 1.4em; margin: 10px 0; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal .summary { background: var(--leaf-soft); border-radius: var(--r-md); padding: 22px 26px; margin-bottom: 32px; }
.legal .summary h2 { margin: 0 0 10px; font-size: 1.15rem; padding: 0; }
.legal .summary li { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: var(--r-sm); border: 1px solid var(--line); }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal th { background: var(--cream); color: var(--ink); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.region { border-left: 4px solid var(--leaf); background: var(--cream); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; margin: 16px 0; }
.region h3 { margin-top: 0; }
[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }
html:not(.js) [data-lang-block="en"] { display: block; }

/* ---------- Animations ---------- */
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 340px)); } }
@keyframes walk { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 180px)); } }
@keyframes hop { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .walker { left: auto; }
  .walker.w1 { left: 12%; } .walker.w2 { left: 20%; } .walker.w3 { left: 27%; } .walker.w4 { left: 70%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .game-card, .pasture-grid, .studio-intro, .contact-card { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 20px auto 0; width: 100%; }
  .rules-grid { grid-template-columns: 1fr; }
  .stats, .values { grid-template-columns: repeat(2, 1fr); }
  .next-up { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .pasture-art { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 8px; border-radius: 10px; }
  .container { padding: 0 16px; }
  section { padding: 76px 0; }
  .hero { padding-top: 40px; }
  .feature-list { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 24px; border-radius: 26px; }
  .legal { padding: 28px 20px; border-radius: var(--r-md); }
  .brand-name small { display: none; }
  .lang-select select { padding: 8px 28px 8px 32px; font-size: .82rem; }
  .lang-select::before { left: 11px; }
  .nav { gap: 8px; }
  .nav-right { gap: 6px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) {
  .stats, .values { grid-template-columns: 1fr; }
  .brand-name { font-size: .92rem; }
  .brand-mark { width: 34px; height: 34px; }
  .lang-select select { padding: 8px 24px 8px 28px; background-position: right 8px center; }
  .lang-select::before { left: 9px; width: 14px; height: 14px; }
  .menu-toggle { width: 38px; height: 38px; }
  .progress-track .node { width: 46px; height: 46px; }
}
