.hero { position: relative; min-height: 690px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; padding-top: 44px; padding-bottom: 82px; }
.hero-copy { position: relative; z-index: 3; padding: 42px 0 50px; }
.hero .eyebrow { display: flex; align-items: center; margin-bottom: 29px; white-space: nowrap; font-size: 9px; }
.eyebrow-rule { width: 28px; height: 1px; margin-left: 11px; background: #c6a890; }
.hero-kicker { margin: 0 0 7px; color: #8c7768; font: italic 20px var(--serif); }
.hero h1 { margin: 0; color: var(--ink); font: 800 clamp(62px, 7.2vw, 102px)/.88 var(--sans); letter-spacing: -.075em; }
.hero h1 em { color: var(--tomato); font: italic 500 1.03em/.98 var(--serif); letter-spacing: -.06em; }
.hero-description { max-width: 450px; margin: 28px 0 28px; color: #76685e; font-size: 14px; line-height: 1.9; }
.hero-description strong { color: var(--ink); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 47px; color: #8c7a6c; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: #c2a28c; }
.meta-star { color: var(--gold); font-size: 14px; }
.hero-art { --pointer-x: 0px; --pointer-y: 0px; position: relative; min-height: 570px; display: grid; place-items: center; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; width: min(92%, 560px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(246, 214, 184, .7), rgba(246, 214, 184, .17) 57%, transparent 72%); z-index: -2; }
.hero-sun { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 36% 35%, #fffdf7 0, #f9e4ce 48%, #f3c6a9 100%); opacity: .66; z-index: -3; }
.hero-orbit { position: absolute; border: 1px solid rgba(160, 118, 89, .22); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 98%; height: 50%; }
.orbit-two { width: 76%; height: 105%; transform: rotate(63deg); }
.hero-logo { position: relative; z-index: 4; width: min(73%, 420px); filter: drop-shadow(0 26px 25px rgba(127, 81, 54, .2)); transform: translate(calc(var(--pointer-x) * -.35), calc(var(--pointer-y) * -.35)); animation: logo-float 6s ease-in-out infinite; }
.hero-ingredient { position: absolute; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(85, 53, 35, .13)); }
.hero-meat { z-index: 2; width: 37%; right: 1%; bottom: 4%; transform: rotate(-10deg) translate(var(--pointer-x), var(--pointer-y)); animation: float-one 7s ease-in-out infinite; }
.hero-tomato { z-index: 3; width: 28%; left: 0; top: 17%; transform: rotate(11deg) translate(calc(var(--pointer-x) * .7), calc(var(--pointer-y) * .7)); animation: float-two 8s ease-in-out infinite; }
.hero-cheese { z-index: 1; width: 35%; left: 0; bottom: 7%; transform: rotate(-9deg); animation: float-three 8.5s ease-in-out infinite; }
.hero-sticker { position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 90px; height: 90px; border: 1px solid rgba(153, 98, 66, .42); border-radius: 50%; background: rgba(255, 249, 239, .78); color: #765343; box-shadow: 0 8px 20px rgba(70, 47, 30, .06); transform: rotate(9deg); }
.hero-sticker span { font-size: 8px; letter-spacing: .16em; }
.hero-sticker b { font: italic 13px var(--serif); }
.sticker-top { top: 10%; right: 7%; }
.sticker-bottom { bottom: 6%; left: 12%; width: 76px; height: 76px; transform: rotate(-13deg); }
.hero-doodle { position: absolute; color: #cf8058; }
.doodle-sparkle { top: 19%; left: 17%; font-size: 35px; animation: twinkle 4s ease-in-out infinite; }
.doodle-star { right: 13%; bottom: 23%; font-size: 24px; color: #d9a44f; animation: twinkle 3.2s ease-in-out infinite reverse; }
.scroll-cue { position: absolute; left: 0; bottom: 30px; display: flex; align-items: center; gap: 12px; color: #9d8a7a; font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.scroll-line { position: relative; display: inline-block; width: 42px; height: 1px; background: #cdb9a6; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--tomato); animation: line-slide 2s ease-in-out infinite; }
@keyframes logo-float { 0%,100% { transform: translateY(0) translate(calc(var(--pointer-x) * -.35), calc(var(--pointer-y) * -.35)); } 50% { transform: translateY(-11px) translate(calc(var(--pointer-x) * -.35), calc(var(--pointer-y) * -.35)); } }
@keyframes float-one { 0%,100% { translate: 0 0; } 50% { translate: 8px -13px; } }
@keyframes float-two { 0%,100% { translate: 0 0; } 50% { translate: -7px -12px; } }
@keyframes float-three { 0%,100% { translate: 0 0; } 50% { translate: -6px 10px; } }
@keyframes twinkle { 0%,100% { opacity: .55; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.13) rotate(12deg); } }
@keyframes line-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(270%); } }
.intro-band { padding-top: 62px; background: #f0e3d5; overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: .55fr 1.15fr .9fr; gap: 36px; align-items: start; padding-bottom: 50px; }
.intro-grid .section-index { padding-top: 7px;}
.intro-heading .eyebrow { margin-bottom: 18px; margin-top: 7px; }
.intro-heading h2, .goals-heading h2, .obstacles-intro h2, .gameplay-copy h2, .stars-copy h2, .download-text h2 { margin: 0; font: 700 clamp(36px, 4.4vw, 58px)/1.05 var(--sans); letter-spacing: -.055em; }
.intro-heading h2 em, .goals-heading h2 em, .obstacles-intro h2 em, .gameplay-copy h2 em, .stars-copy h2 em, .download-text h2 em { color: var(--tomato); font: italic 500 1.03em/1.08 var(--serif); letter-spacing: -.05em; }
.intro-copy { max-width: 330px; margin: 38px 0 0; color: #746357; font-size: 13px; line-height: 1.9; }
.ingredient-ribbon { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 42px); padding: 21px 12px; border-top: 1px solid rgba(89, 62, 43, .14); color: #967764; font-size: 9px; font-weight: 800; letter-spacing: .19em; white-space: nowrap; }
.ingredient-ribbon b { color: #c37c54; font-size: 13px; }
.gameplay-section { position: relative; }
.gameplay-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: 80px; align-items: center; padding-top: 65px; }
.gameplay-copy .eyebrow { margin-bottom: 18px; }
.gameplay-copy > p:not(.eyebrow):not(.demo-disclaimer) { max-width: 420px; margin: 24px 0 27px; color: #7a6b5f; font-size: 13px; line-height: 1.9; }
.how-steps { border-top: 1px solid var(--line); }
.how-step { display: flex; align-items: center; gap: 17px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.how-step > span { color: var(--tomato); font: italic 19px var(--serif); }
.how-step b { display: block; color: var(--ink); font-size: 14px; }
.how-step small { color: #968679; font-size: 10px; }
.demo-disclaimer { margin: 17px 0 0; color: #a09285; font-size: 9px; line-height: 1.5; }
.board-showcase { position: relative; padding: 28px 26px 25px; border-radius: 6px; background: linear-gradient(145deg, #e4c9a9, #d8b08a); box-shadow: 0 25px 55px rgba(103, 72, 45, .15); }
.board-showcase::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 3px; pointer-events: none; }
.board-card { position: relative; z-index: 1; padding: 19px; border-radius: 4px; background: #fff9ef; box-shadow: 0 10px 24px rgba(80, 53, 32, .11); }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #e9ded0; }
.board-label { display: block; color: #b17b53; font-size: 8px; letter-spacing: .16em; font-weight: 800; }
.board-top b { display: block; color: #514036; font: 600 18px var(--serif); }
.moves-pill { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f2e6d8; border-radius: 3px; }
.moves-pill span { color: #a08d7a; font-size: 7px; letter-spacing: .12em; }
.moves-pill b { color: var(--tomato-dark); font: 700 16px var(--sans); }
.board-goals { display: flex; align-items: center; gap: 15px; padding: 13px 0; }
.board-goals > span { margin-right: auto; color: #988777; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.goal-item { display: flex; align-items: center; gap: 5px; color: #6b5748; font-size: 10px; font-weight: 800; }
.goal-item b { font-size: 17px; }
.match-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 8px; border: 5px solid #bd9974; border-radius: 4px; background: #e5ceb2; box-shadow: inset 0 2px 5px rgba(90, 59, 31, .16); }
.match-tile { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid rgba(126, 92, 62, .14); border-radius: 4px; background: linear-gradient(145deg, #fffaf1, #f3e3ce); color: #594439; font-size: clamp(15px, 2.1vw, 25px); cursor: pointer; box-shadow: 0 2px 2px rgba(83, 55, 35, .06); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.match-tile:hover { transform: translateY(-2px); box-shadow: 0 5px 9px rgba(83, 55, 35, .12); }
.match-tile.is-selected { background: #f7c76f; outline: 2px solid #c76b43; outline-offset: 1px; transform: scale(.93); }
.match-tile.is-matched { animation: match-pop .23s ease both; background: #f9d88e; }
@keyframes match-pop { 50% { transform: scale(1.18) rotate(8deg); opacity: .6; } 100% { transform: scale(.75); opacity: .35; } }
.board-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; }
.board-bottom > span { color: #8a9a72; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.live-dot, .placeholder-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #93a77a; box-shadow: 0 0 0 3px rgba(147, 167, 122, .15); }
.shuffle-button { padding: 7px 9px; border: 1px solid #dfc8ac; border-radius: 2px; background: transparent; color: #947052; font-size: 7px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.shuffle-button:hover { background: #f4e8d9; }
.shuffle-button span { margin-left: 5px; font-size: 14px; }
.board-caption { margin-top: 16px; color: #725943; font: italic 12px var(--serif); text-align: center; }
.board-caption span { color: #fff0cc; }
.floating-note { position: absolute; z-index: 2; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--tomato); color: #fff8ef; font-size: 10px; font-weight: 900; letter-spacing: .1em; box-shadow: 0 9px 16px rgba(130, 67, 44, .2); }
.note-left { top: -22px; left: -27px; transform: rotate(-12deg); }
.note-right { bottom: 47px; right: -22px; width: 60px; height: 60px; background: #82936f; transform: rotate(12deg); }
.goals-section { background: #f0e5d8; }
.goals-heading { padding-top: 58px; }
.goals-heading .eyebrow { margin-bottom: 15px; }
.goal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.goal-card { overflow: hidden; background: #fff9f1; border: 1px solid rgba(94, 68, 48, .08); box-shadow: 0 10px 25px rgba(77, 51, 33, .04); }
.goal-art { position: relative; display: grid; place-items: center; height: 220px; overflow: hidden; background: #f7e7d7; }
.goal-number { position: absolute; top: 17px; left: 18px; color: #b38c6f; font: italic 16px var(--serif) !important; }
.goal-ingredients .goal-art img { width: 75%; height: 88%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(77,50,29,.13)); }
.goal-obstacles .goal-art { background: #e9dfd2; }
.obstacle-illustration { display: flex; align-items: center; gap: 8px; transform: rotate(-8deg); }
.obstacle-box { display: grid; place-items: center; width: 65px; height: 65px; border: 5px solid rgba(255,255,255,.65); border-radius: 10px; box-shadow: 0 12px 18px rgba(72,50,33,.13), inset 0 0 0 1px rgba(76,52,32,.2); font-size: 30px; }
.box-foam { background: #b8ab98; color: #897d6c; }
.box-foil { background: linear-gradient(145deg,#d8d6d0,#96948e); color: #77756f; }
.box-ice { background: #b9d6dc; color: #f4fbfb; }
.goal-temperature .goal-art { background: #f6e2c9; }
.temperature-art { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #bd5d42; }
.thermo { font-size: 75px; line-height: 1; text-shadow: 0 8px 12px rgba(152,68,45,.13); }
.temp-meter { display: flex; gap: 4px; }
.temp-meter i { width: 45px; height: 8px; border-radius: 5px; background: #deaa55; }
.temp-meter i:last-child { background: #bf5944; }
.temp-stars { color: #d69a38; font-size: 13px; letter-spacing: .45em; }
.goal-card-body { padding: 25px 24px 28px; }
.card-label { color: #b36c4b; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.goal-card h3 { margin: 9px 0 9px; font: 600 22px/1.15 var(--serif); }
.goal-card p { margin: 0; color: #837367; font-size: 11px; line-height: 1.85; }
.goals-footnote { margin: 20px 0 0; color: #8a7869; font-size: 10px; font-style: italic; }
.obstacles-section { overflow: hidden; }
.obstacles-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: end; padding: 58px 0 50px; }
.obstacles-intro .eyebrow { margin-bottom: 16px; }
.obstacles-intro > p { max-width: 400px; margin: 0 0 7px; color: #78695e; font-size: 13px; line-height: 1.9; }
.layer-diagram { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 65px; padding: 43px; background: #f2e8dc; border: 1px solid rgba(103, 77, 55, .1); }
.layer-stack { display: flex; flex-direction: column; gap: 8px; perspective: 900px; }
.layer { position: relative; display: grid; grid-template-columns: 95px .8fr 1.5fr 118px; align-items: center; min-height: 68px; padding: 13px 19px; border-radius: 3px; box-shadow: 0 6px 12px rgba(80,53,31,.08); }
.layer-top { background: linear-gradient(90deg,#d3e7e9,#b5d2d4); }
.layer-middle { background: linear-gradient(90deg,#e9c99e,#dbaf7a); z-index: 2; }
.layer-bottom { background: linear-gradient(90deg,#d9d4ca,#bab4a8); }
.layer-depth { color: rgba(63,58,48,.55); font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.layer b { color: #4a3a2e; font: 700 12px var(--sans); letter-spacing: .06em; }
.layer-description { color: #665344; font: italic 12px var(--serif) !important; }
.layer-priority { color: rgba(63,58,48,.55); font-size: 10px; letter-spacing: .08em; text-align: right; font-weight: 700; }
.layer-explainer { max-width: 280px; }
.layer-callout { display: inline-block; margin-bottom: 15px; color: #a35c43; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.layer-explainer h3 { margin: 0; color: var(--ink); font: 700 32px/1.03 var(--sans); letter-spacing: -.05em; }
.layer-explainer p { margin: 17px 0 20px; color: #817164; font-size: 11px; line-height: 1.8; }
.layer-key { display: flex; flex-direction: column; gap: 8px; color: #806f60; font-size: 12px; }
.layer-key span { display: flex; align-items: center; gap: 9px; }
.key-dot { width: 8px; height: 8px; border-radius: 2px; }
.key-top { background: #a9c9cd; }.key-mid { background: #d8aa70; }.key-bottom { background: #aaa69b; }
.obstacle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 24px; }
.obstacle-card { padding: 23px 21px 24px; border: 1px solid var(--line); background: rgba(255,250,243,.6); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.obstacle-card:hover { transform: translateY(-5px); background: #fffaf2; box-shadow: 0 15px 28px rgba(68,46,29,.07); }
.obstacle-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 5px; background: #f0e5d8; }
.obstacle-icon span { display: grid; place-items: center; width: 35px; height: 35px; border: 4px solid rgba(255,255,255,.76); border-radius: 6px; box-shadow: 0 5px 9px rgba(76,53,35,.12); }
.foam-icon span { background: repeating-linear-gradient(45deg,#b3a48e 0 5px,#c6b9a7 5px 10px); }
.foil-icon span { background: repeating-linear-gradient(135deg,#c5c6c3 0 3px,#979995 3px 6px); }
.bell-icon span { color: #b77742; font-size: 28px; border: 0; box-shadow: none; }
.colorful-icon span { background: conic-gradient(#d65c4c 0 25%,#eab650 0 50%,#789c80 0 75%,#8b9fc1 0); }
.bowl-icon span { color: #8a9697; font-size: 42px; border: 0; box-shadow: none; }
.ice-icon span { color: #81b6c3; font-size: 26px; border: 0; box-shadow: none; }
.obstacle-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.obstacle-card h3 { margin: 0; font: 600 19px var(--serif); }
.layer-tag { flex: 0 0 auto; padding: 4px 6px; border-radius: 2px; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.tag-top { background: #deedef; color: #507d83; }.tag-middle { background: #f0dfc8; color: #9a663a; }.tag-bottom { background: #e2dfd7; color: #777468; }
.obstacle-card p { margin: 10px 0 0; color: #867669; font-size: 10px; line-height: 1.85; }
.stars-section { position: relative; overflow: hidden; background: #554137; color: #fff8ee; }
.stars-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 530px; gap: 70px; padding-block: 72px; }
.stars-copy h2 { color: #fff8ee; }
.stars-copy h2 em { color: #f0bb7d; }
.stars-copy > p:not(.eyebrow) { max-width: 430px; margin: 23px 0 27px; color: rgba(255,248,238,.68); font-size: 12px; line-height: 1.9; }
.stars-visual { position: relative; display: grid; place-items: center; min-height: 390px; }
.stars-visual::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(230,178,120,.24), transparent 68%); }
.recipe-ticket { position: relative; z-index: 2; width: min(82%, 330px); padding: 28px 30px 22px; border: 1px solid rgba(126,84,48,.22); background: #fff3df; color: #584334; box-shadow: 0 28px 45px rgba(24,14,9,.25); transform: rotate(4deg); }
.recipe-ticket::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(137,91,53,.3); pointer-events: none; }
.ticket-top, .ticket-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; color: #9f8062; font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.ticket-name { position: relative; margin: 26px 0 4px; font: 700 35px/.95 var(--sans); letter-spacing: -.06em; }
.ticket-name em { color: var(--tomato); font: italic 500 1.08em var(--serif); }
.ticket-stars { position: relative; display: flex; justify-content: center; gap: 9px; margin: 22px 0; color: #e6aa44; font-size: 34px; text-shadow: 0 5px 5px rgba(157,103,37,.12); }
.ticket-stars span:nth-child(2) { transform: translateY(-8px); }
.ticket-line { position: relative; height: 1px; margin-bottom: 15px; background: rgba(99,71,46,.2); }
.ticket-bottom b { color: #bd6a48; font-size: 9px; }
.stars-food { position: absolute; z-index: 3; right: -2%; bottom: -8%; width: 44%; filter: drop-shadow(0 17px 15px rgba(22,13,8,.25)); animation: float-two 7s ease-in-out infinite; }
.download-section { padding-block: 90px; }
.download-panel { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 390px; padding: 62px 8%; overflow: hidden; background: linear-gradient(115deg,#f5dfc9,#f6e9d9 65%,#e9cfb6); }
.download-panel::before, .download-panel::after { content: ''; position: absolute; border: 1px solid rgba(165,104,68,.2); border-radius: 50%; }
.download-panel::before { width: 540px; height: 540px; right: 8%; top: -42%; }
.download-panel::after { width: 430px; height: 430px; right: 13%; top: -28%; }
.download-text { position: relative; z-index: 2; max-width: 500px; }
.download-text h2 { font-size: clamp(36px,4.3vw,54px); }
.download-text > p:not(.eyebrow) { max-width: 390px; margin: 17px 0 23px; color: #786455; font-size: 12px; line-height: 1.85; }
.download-logo { position: relative; z-index: 2; width: 31%; max-height: 310px; object-fit: contain; filter: drop-shadow(0 20px 15px rgba(90,55,33,.15)); animation: logo-float 7s ease-in-out infinite; }
.download-deco { position: absolute; z-index: 1; color: rgba(194,121,74,.45); }
.deco-one { top: 12%; right: 39%; font-size: 34px; }.deco-two { bottom: 12%; right: 8%; color: rgba(224,168,89,.65); font-size: 40px; }
@media(max-width: 980px) {
  .hero { min-height: 620px; grid-template-columns: .9fr 1.1fr; }
  .hero-art { min-height: 480px; }
  .hero h1 { font-size: clamp(58px, 8vw, 82px); }
  .gameplay-layout { gap: 40px; }
  .layer-diagram { gap: 32px; padding: 28px; }
  .layer { grid-template-columns: 70px .8fr 1.5fr; }
  .layer-priority { display: none; }
}
@media(max-width: 760px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 30px; padding-bottom: 72px; }
  .hero-copy { padding: 25px 0 0; }
  .hero .eyebrow { font-size: 8px; white-space: normal; }
  .hero-kicker { font-size: 17px; }
  .hero h1 { font-size: clamp(63px, 16vw, 86px); }
  .hero-description { max-width: 550px; margin: 22px 0; font-size: 13px; }
  .hero-meta { margin-top: 27px; }
  .hero-art { min-height: min(108vw, 500px); margin-top: 12px; }
  .hero-logo { width: 68%; }
  .hero-sticker { width: 68px; height: 68px; }
  .hero-sticker b { font-size: 11px; }
  .sticker-top { top: 5%; right: 4%; }
  .sticker-bottom { bottom: 3%; left: 3%; }
  .scroll-cue { bottom: 20px; }
  .intro-grid { grid-template-columns: 1fr; gap: 17px; padding-bottom: 47px; }
  .intro-copy { margin: 0; max-width: 500px; }
  .ingredient-ribbon { justify-content: flex-start; overflow: hidden; font-size: 8px; }
  .gameplay-layout { grid-template-columns: 1fr; gap: 44px; padding-top: 42px; }
  .board-showcase { padding: 21px 16px; }
  .board-card { padding: 13px; }
  .match-board { gap: 3px; padding: 5px; border-width: 4px; }
  .match-tile { font-size: clamp(15px, 4vw, 23px); }
  .note-left { left: -8px; }.note-right { right: -7px; }
  .goals-heading { padding-top: 42px; }
  .goal-cards { grid-template-columns: 1fr; gap: 15px; margin-top: 28px; }
  .goal-card { display: grid; grid-template-columns: 40% 1fr; min-height: 180px; }
  .goal-art { height: 100%; min-height: 190px; }
  .goal-card-body { display: flex; flex-direction: column; justify-content: center; padding: 18px; }
  .goal-card h3 { font-size: 19px; }
  .goal-card p { font-size: 10px; }
  .obstacles-intro { grid-template-columns: 1fr; gap: 18px; padding: 42px 0 30px; }
  .layer-diagram { grid-template-columns: 1fr; gap: 30px; padding: 20px 14px; }
  .layer { grid-template-columns: 64px .8fr 1.3fr; min-height: 63px; padding: 10px; }
  .layer-description { font-size: 10px; }
  .layer-explainer { max-width: 100%; }
  .layer-explainer h3 br { display: none; }
  .obstacle-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
  .obstacle-card { padding: 15px 13px; }
  .obstacle-icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .obstacle-icon span { width: 30px; height: 30px; }
  .obstacle-card-head { align-items: flex-start; flex-direction: column-reverse; gap: 5px; }
  .obstacle-card h3 { font-size: 17px; }
  .obstacle-card p { font-size: 9px; }
  .stars-layout { grid-template-columns: 1fr; gap: 16px; padding-block: 65px 55px; }
  .stars-visual { min-height: 300px; }
  .recipe-ticket { width: min(76%, 300px); }
  .stars-food { width: 39%; right: -1%; bottom: 0; }
  .download-section { padding-block: 55px; }
  .download-panel { min-height: 0; padding: 38px 26px 34px; align-items: flex-start; }
  .download-logo { position: absolute; right: -5%; bottom: -3%; width: 37%; opacity: .5; }
  .download-text { max-width: 80%; }
  .download-text h2 { font-size: 39px; }
  .download-text > p:not(.eyebrow) { font-size: 11px; }
}
@media(max-width: 420px) {
  .goal-card { grid-template-columns: 36% 1fr; }
  .goal-card-body { padding: 14px; }
  .goal-art { min-height: 205px; }
  .obstacle-grid { grid-template-columns: 1fr; }
  .obstacle-icon { grid-row: span 2; }
  .obstacle-card-head { align-items: center; flex-direction: row; }
  .obstacle-card p { grid-column: 2; margin-top: 6px; }
  .layer { grid-template-columns: 55px 2fr }
  .layer-depth { font-size: 6px; display: none;}
  .layer b { font-size: 12px; }
  .layer-description { font-size: 9px; }
  .download-text { max-width: 100%; }
  .download-logo { opacity: .23; width: 48%; }
}

/* Food Kingdom prototype v2: richer motion, original assets and game systems */
.hero { min-height: 735px; }
.hero-art { min-height: 630px; }
.hero-art::before { width: min(98%, 640px); background: radial-gradient(circle, rgba(255,235,207,.92), rgba(255,216,185,.3) 53%, transparent 73%); animation: hero-glow 8s ease-in-out infinite; }
.hero-sun { width: 78%; opacity: .88; background: radial-gradient(circle at 36% 35%, #fffef9 0, #fce6d0 49%, #f0c3aa 100%); animation: sun-pulse 9s ease-in-out infinite; }
.hero-logo { width: min(56%, 355px); animation: logo-float-strong 5.5s ease-in-out infinite; }
.hero-ingredient { will-change: transform; }
.hero-tomato { z-index: 4; width: 25%; left: 3%; top: 12%; animation: orbit-tomato 8s ease-in-out infinite; }
.hero-milk { z-index: 2; width: 25%; right: 2%; top: 9%; animation: orbit-milk 9s ease-in-out infinite; }
.hero-cheese { z-index: 3; width: 29%; left: 2%; bottom: 7%; animation: orbit-cheese 8.2s ease-in-out infinite; }
.hero-wheat { z-index: 2; width: 25%; right: 0; bottom: 7%; animation: orbit-wheat 9.2s ease-in-out infinite; }
.hero-spices { z-index: 4; width: 22%; right: 1%; top: 42%; animation: orbit-spices 7.7s ease-in-out infinite; }
.hero-sticker { animation: sticker-bob 6s ease-in-out infinite; }
.hero-spark { position:absolute; z-index:5; color:#d18b54; font-size:30px; text-shadow:0 4px 10px rgba(165,100,54,.15); }
.spark-one { top:17%; left:29%; animation: spark-dance 3.4s ease-in-out infinite; }
.spark-two { right:20%; top:29%; color:#e1a948; animation: spark-dance 4s ease-in-out infinite reverse; }
.spark-three { left:22%; bottom:22%; color:#bb694a; font-size:23px; animation: spark-dance 3s ease-in-out infinite; }
.hero-ring { position:absolute; border:1px dashed rgba(192,132,93,.3); border-radius:50%; pointer-events:none; }
.ring-three { width:89%; height:69%; transform:rotate(24deg); animation:ring-drift 30s linear infinite; }
.ring-four { width:66%; height:98%; transform:rotate(-34deg); animation:ring-drift 38s linear infinite reverse; }
@keyframes hero-glow { 0%,100%{opacity:.72;transform:scale(.96)}50%{opacity:1;transform:scale(1.05)} }
@keyframes sun-pulse { 0%,100%{transform:scale(.98)}50%{transform:scale(1.04)} }
@keyframes logo-float-strong { 0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-18px) rotate(1deg)} }
@keyframes orbit-tomato { 0%,100%{transform:translate(0,0) rotate(-8deg)}50%{transform:translate(12px,-20px) rotate(5deg)} }
@keyframes orbit-milk { 0%,100%{transform:translate(0,0) rotate(7deg)}50%{transform:translate(-12px,-17px) rotate(-5deg)} }
@keyframes orbit-cheese { 0%,100%{transform:translate(0,0) rotate(-9deg)}50%{transform:translate(-7px,17px) rotate(4deg)} }
@keyframes orbit-wheat { 0%,100%{transform:translate(0,0) rotate(8deg)}50%{transform:translate(10px,15px) rotate(-5deg)} }
@keyframes orbit-spices { 0%,100%{transform:translate(0,0) rotate(-5deg)}50%{transform:translate(-14px,-12px) rotate(7deg)} }
@keyframes sticker-bob { 0%,100%{translate:0 0}50%{translate:0 -8px} }
@keyframes spark-dance { 0%,100%{transform:scale(.75) rotate(0);opacity:.5}50%{transform:scale(1.25) rotate(55deg);opacity:1} }
@keyframes ring-drift { to{transform:rotate(335deg)} }
.ingredient-ribbon { position:relative; white-space:nowrap; animation: ticker-move 28s linear infinite; }
@keyframes ticker-move { to { transform:translateX(-21%) } }
.gameplay-section { overflow:visible; }
.board-showcase { position:relative; }
.board-card { position:relative; overflow:hidden; padding:25px; background:linear-gradient(145deg,#fff7e9,#efd9c2); border:1px solid rgba(112,76,48,.18); box-shadow:0 24px 55px rgba(72,48,31,.13); }
.board-card::before { content:""; position:absolute; inset:0; opacity:.11; pointer-events:none; background-image:radial-gradient(#805b3f .7px,transparent .7px); background-size:9px 9px; }
.board-top,.prelevel-panel,.board-goals,.score-panel,.match-board-frame,.board-status,.inlevel-boosters { position:relative; z-index:1; }
.prelevel-panel { margin:18px 0 15px; padding:16px 17px 13px; background:rgba(255,251,243,.73); border:1px solid rgba(120,83,54,.13); }
.prelevel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.prelevel-head > div { display:grid; gap:2px; }
.prelevel-head b { color:#594536; font:600 14px var(--serif); }
.prelevel-hint { color:#ad7656; font-size:8px; font-weight:900; letter-spacing:.15em; }
.prelevel-options { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:12px; }
.prelevel-choice { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:93px; padding:7px 5px 8px; border:1px solid rgba(128,91,61,.18); background:#f7ecde; color:#684b37; cursor:pointer; transition:transform .25s,border-color .25s,background .25s,box-shadow .25s; }
.prelevel-choice:hover { transform:translateY(-4px); box-shadow:0 9px 16px rgba(99,65,39,.1); }
.prelevel-choice[aria-pressed="true"] { background:#ffefcf; border-color:#c47b4b; box-shadow:inset 0 0 0 1px #c47b4b,0 8px 18px rgba(148,94,51,.13); }
.prelevel-choice img { width:56px; height:48px; object-fit:contain; }
.prelevel-choice span { font-size:9px; font-weight:800; }
.prelevel-choice i { position:absolute; top:6px; right:7px; display:grid; place-items:center; width:17px; height:17px; border-radius:50%; background:#c7794d; color:#fff8ec; font-style:normal; font-size:12px; opacity:0; transition:opacity .2s; }
.prelevel-choice[aria-pressed="true"] i { opacity:1; }
.prelevel-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:11px; }
.prelevel-actions small { max-width:185px; color:#947e6a; font-size:8px; line-height:1.5; }
.start-level-button { display:flex; align-items:center; gap:13px; padding:11px 14px; border:0; background:#bd6246; color:#fff8ef; font-size:9px; font-weight:900; letter-spacing:.1em; cursor:pointer; box-shadow:0 7px 15px rgba(151,79,54,.18); transition:transform .2s,background .2s; }
.start-level-button:hover { transform:translateY(-2px); background:#a84e39; }
.start-level-button span { font-size:15px; color:#ffe2b9; }
.board-goals { display:flex; align-items:center; gap:14px; padding:11px 13px; background:rgba(255,249,239,.8); border:1px solid rgba(120,83,54,.12); }
.collect-label { color:#a47a5d; font-size:8px; font-weight:900; letter-spacing:.12em; }
.goal-item { display:flex; align-items:center; gap:5px; min-width:0; color:#5e4939; font-size:11px; font-weight:900; }
.goal-item img { width:28px; height:28px; object-fit:contain; }
.goal-item.is-complete { opacity:.35; text-decoration:line-through; }
.score-panel { display:grid; grid-template-columns:90px 1fr 90px; align-items:center; gap:12px; padding:14px 3px 12px; }
.score-copy { display:grid; gap:2px; }
.score-copy b { color:#684a37; font:700 17px var(--sans); }
.score-copy b small { font:700 8px var(--sans); color:#a48972; }
.thermometer-track { position:relative; height:14px; border:2px solid #b78b65; border-radius:20px; background:linear-gradient(90deg,#e2c49e,#f7e9ce); box-shadow:inset 0 2px 4px rgba(93,65,42,.11); }
.thermometer-track > span { display:block; width:0; height:100%; border-radius:20px; background:linear-gradient(90deg,#efb84a,#e76d3d,#bb3d2e); transition:width .4s cubic-bezier(.2,.75,.2,1); }
.score-mark { position:absolute; top:-4px; width:2px; height:18px; background:#7c5640; opacity:.75; }
.mark-one { left:30%; }.mark-two { left:60%; }.mark-three { left:99%; }
.score-tier { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
.score-tier img { width:24px; height:32px; object-fit:contain; }
.score-tier span { color:#9a694a; font-size:7px; line-height:1.2; font-weight:900; }
.score-tier b { color:#bd6747; font-size:8px; white-space:nowrap; }
.match-board-frame { position:relative; padding:15px; margin:7px auto 0; width:min(100%,490px); aspect-ratio:1/1; background:linear-gradient(145deg,#d9ae84,#b87e55); box-shadow:0 13px 22px rgba(76,49,31,.18),inset 0 2px 5px rgba(255,255,255,.4); border-radius:17px; }
.match-board-frame::before { content:none; background:none; }
.match-board { position:relative; z-index:1; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; width:100%; height:100%; padding:7px; border-radius:7px; overflow:hidden; background:url('../assets/board/tile.webp') center/cover; box-shadow:inset 0 3px 9px rgba(112,74,42,.23); }
.match-tile { position:relative; display:grid; place-items:center; min-width:0; min-height:0; padding:2px; overflow:hidden; border:1px solid rgba(156,113,73,.18); border-radius:5px; background:rgba(255,247,230,.56); box-shadow:inset 0 1px 1px rgba(255,255,255,.65),0 1px 2px rgba(83,55,30,.08); cursor:pointer; transition:transform .16s,border-color .16s,background .16s; touch-action:manipulation; }
.match-tile:hover { transform:scale(1.04); z-index:2; }
.match-tile img { width:100%; height:100%; object-fit:contain; pointer-events:none; filter:drop-shadow(0 2px 2px rgba(93,55,31,.12)); }
.match-tile.is-selected { z-index:3; border:2px solid #d57942; background:#fff2c8; box-shadow:0 0 0 3px rgba(214,130,65,.25),0 4px 10px rgba(120,73,38,.2); transform:scale(1.07); }
.match-tile.is-matched { animation:tile-pop .24s ease forwards; }
.match-tile.is-special { background:linear-gradient(140deg,#fff0bd,#f5d18b); border-color:#c77b3c; }
.match-tile.is-special img { width:115%; height:115%; }
.match-tile.is-booster-target { outline:3px solid #d36e45; outline-offset:-4px; animation:target-pulse .8s ease-in-out infinite alternate; }
@keyframes tile-pop { to { opacity:0; transform:scale(.45) rotate(15deg); } }
@keyframes target-pulse { to { outline-color:#f0b34b; transform:scale(.94); } }
.board-lock { position:absolute; z-index:2; inset:15px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:7px; padding:20px; background:rgba(76,54,40,.7); color:#fff7e8; text-align:center; backdrop-filter:blur(3px); transition:opacity .35s,visibility .35s; }
.board-lock[hidden] { display:none; }
.board-lock .lock-ornament { color:#f5c27d; font-size:26px; animation:spark-dance 2s infinite; }
.board-lock b { font:600 21px var(--serif); }
.board-lock small { max-width:220px; color:rgba(255,247,232,.76); font-size:9px; line-height:1.6; }
.board-status { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:13px; color:#876c54; font-size:8px; font-weight:900; letter-spacing:.1em; }
.board-status > span { display:flex; align-items:center; gap:7px; }
.live-dot { width:6px; height:6px; border-radius:50%; background:#84a16f; box-shadow:0 0 0 4px rgba(132,161,111,.14); }
.shuffle-button { border:0; background:transparent; color:#8d654c; font-size:8px; font-weight:900; letter-spacing:.1em; cursor:pointer; }
.shuffle-button:disabled { opacity:.4; cursor:not-allowed; }
.inlevel-boosters { margin-top:17px; padding-top:15px; border-top:1px solid rgba(110,78,52,.18); }
.inlevel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.inlevel-head small { color:#a28a73; font-size:7px; font-weight:900; letter-spacing:.08em; }
.inlevel-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.inlevel-booster { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; min-height:96px; padding:8px 4px 7px; border:1px solid rgba(120,83,54,.17); background:#faf0e3; color:#684936; cursor:pointer; transition:transform .2s,border-color .2s,background .2s; }
.inlevel-booster:hover:not(:disabled) { transform:translateY(-4px); background:#fff5e8; }
.inlevel-booster[aria-pressed="true"] { border-color:#c66c49; background:#ffe8d0; box-shadow:inset 0 0 0 1px #c66c49; }
.inlevel-booster:disabled { opacity:.4; cursor:not-allowed; }
.inlevel-booster img { width:43px; height:43px; object-fit:contain; }
.inlevel-booster b { font-size:8px; text-align:center; line-height:1.2; }
.inlevel-booster small { color:#b17955; font-size:7px; font-weight:900; letter-spacing:.07em; }
.booster-hint { min-height:18px; margin:9px 0 0; color:#8f7864; font-size:8px; text-align:center; }
.board-caption { margin-top:16px; }
.specials-section { position:relative; overflow:hidden; background:#f0e4d7; }
.specials-section::before { content:""; position:absolute; width:500px; height:500px; right:-210px; top:3%; border:1px solid rgba(178,122,79,.18); border-radius:50%; box-shadow:0 0 0 24px rgba(178,122,79,.035),0 0 0 52px rgba(178,122,79,.025); animation:ring-drift 45s linear infinite; }
.specials-intro,.boosters-intro { position:relative; display:grid; grid-template-columns:1.1fr .9fr; align-items:end; gap:55px; padding:56px 0 39px; }
.specials-intro h2,.boosters-intro h2 { margin:0; font:700 clamp(36px,4.2vw,56px)/1.04 var(--sans); letter-spacing:-.055em; }
.specials-intro h2 em,.boosters-intro h2 em { color:var(--tomato); font:italic 500 1.03em var(--serif); }
.specials-intro > p,.boosters-intro > p { max-width:400px; margin:0 0 7px; color:#78695e; font-size:13px; line-height:1.9; }
.special-family-picker { position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:15px 17px; border:1px solid rgba(106,77,54,.12); background:rgba(255,250,243,.63); }
.special-family-picker > span { color:#a47757; font-size:8px; font-weight:900; letter-spacing:.13em; }
.family-chips { display:flex; flex-wrap:wrap; gap:6px; }
.family-chips button { padding:7px 9px; border:1px solid rgba(125,88,60,.18); background:transparent; color:#806b59; font-size:8px; font-weight:700; cursor:pointer; transition:background .2s,color .2s,border .2s; }
.family-chips button:hover,.family-chips button.is-active { background:#604739; color:#fff5e8; border-color:#604739; }
.special-cards { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin-top:18px; }
.special-card { overflow:hidden; border:1px solid rgba(112,78,53,.12); background:#fff9f0; box-shadow:0 10px 22px rgba(83,54,33,.05); transition:transform .35s,box-shadow .35s; }
.special-card:hover { transform:translateY(-8px); box-shadow:0 20px 35px rgba(83,54,33,.12); }
.special-art { position:relative; display:grid; place-items:center; min-height:205px; overflow:hidden; background:radial-gradient(circle at 50% 48%,#fff2da,#f2d7b9); }
.special-art::after { content:""; position:absolute; width:150px; height:150px; border:1px dashed rgba(170,119,74,.34); border-radius:50%; animation:ring-drift 25s linear infinite; }
.special-art > img { position:relative; z-index:2; width:69%; height:150px; object-fit:contain; filter:drop-shadow(0 12px 9px rgba(101,65,39,.17)); transition:transform .45s; }
.special-card:hover .special-art > img { transform:scale(1.09) rotate(-4deg); }
.special-badge { position:absolute; z-index:4; top:12px; left:12px; padding:6px 8px; background:rgba(255,250,241,.83); color:#9e6748; font-size:7px; font-weight:900; letter-spacing:.1em; }
.formation { position:absolute; z-index:1; display:grid; gap:4px; opacity:.48; }
.formation i { width:11px; height:11px; border-radius:3px; background:#cc8c4d; box-shadow:inset 0 1px 1px rgba(255,255,255,.6); }
.formation-four-horizontal { grid-template-columns:repeat(4,11px); top:48px; left:50%; transform:translateX(-50%); }
.formation-four-vertical { grid-template-columns:11px; grid-template-rows:repeat(4,11px); top:50%; left:27%; transform:translateY(-50%); }
.formation-l-shape { grid-template-columns:repeat(3,11px); grid-template-rows:repeat(3,11px); top:50%; left:27%; transform:translateY(-50%); }
.formation-l-shape i:nth-child(1){grid-area:1/1}.formation-l-shape i:nth-child(2){grid-area:2/1}.formation-l-shape i:nth-child(3){grid-area:3/1}.formation-l-shape i:nth-child(4){grid-area:3/2}.formation-l-shape i:nth-child(5){grid-area:3/3}
.formation-five-horizontal { grid-template-columns:repeat(5,10px); top:48px; left:50%; transform:translateX(-50%); }
.formation-five-horizontal i { width:10px;height:10px;background:#d5a34a; }
.special-art-ultimate { background:radial-gradient(circle at 50% 50%,#fff6d9,#efd1a3); }
.special-card-body { padding:20px 18px 22px; }
.special-card-body .card-label { font-size:7px; }
.special-card-body h3 { margin:8px 0; font:600 19px var(--serif); }
.special-card-body p { min-height:65px; margin:0; color:#837365; font-size:10px; line-height:1.8; }
.special-card-body small { display:block; margin-top:13px; padding-top:10px; border-top:1px solid rgba(112,78,53,.12); color:#b07a54; font-size:7px; font-weight:900; letter-spacing:.07em; }
.boosters-section { overflow:hidden; background:#fff8ef; }
.booster-type-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:15px 0 16px; padding-bottom:11px; border-bottom:1px solid rgba(116,83,59,.16); color:#8d5c40; font-size:9px; font-weight:900; letter-spacing:.14em; }
.booster-type-heading small { color:#a48d78; font-size:7px; letter-spacing:.1em; }
.booster-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.booster-card { display:flex; flex-direction:column; min-height:292px; padding:0 18px 20px; border:1px solid rgba(115,82,57,.13); background:#f8efe4; transition:transform .3s,box-shadow .3s; }
.booster-card:hover { transform:translateY(-7px); box-shadow:0 16px 28px rgba(88,58,36,.09); }
.booster-art { display:grid; place-items:center; height:145px; margin:0 -18px 17px; overflow:hidden; background:linear-gradient(145deg,#f0e0cf,#e7ceb5); }
.booster-art img { width:68%; height:112px; object-fit:contain; filter:drop-shadow(0 10px 8px rgba(82,52,30,.16)); transition:transform .35s; }
.booster-card:hover .booster-art img { transform:translateY(-5px) rotate(-5deg) scale(1.06); }
.booster-card .card-label { font-size:7px; }
.booster-card h3 { margin:7px 0 7px; font:600 18px var(--serif); }
.booster-card p { margin:0; color:#837365; font-size:10px; line-height:1.8; }
.prelevel-type-heading { margin-top:55px; }
.prelevel-showcase { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
.prelevel-card { display:grid; grid-template-columns:130px 1fr; align-items:center; gap:17px; min-height:172px; padding:18px; border:1px solid rgba(115,82,57,.13); background:#f8efe4; transition:transform .3s,box-shadow .3s; }
.prelevel-card:hover { transform:translateY(-5px); box-shadow:0 15px 24px rgba(88,58,36,.08); }
.prelevel-card img { width:100%; height:125px; object-fit:contain; filter:drop-shadow(0 8px 8px rgba(90,55,31,.12)); }
.prelevel-card h3 { margin:6px 0; font:600 18px var(--serif); }
.prelevel-card p { margin:0; color:#837365; font-size:9px; line-height:1.75; }
.booster-note { margin:18px 0 0; color:#9a8878; font: italic 14px var(--serif); }
/* Actual artwork replaces CSS-only obstacle mockups. */
.obstacle-mini-set { display:flex; align-items:center; justify-content:center; gap:0; width:100%; height:100%; }
.obstacle-mini-set img { width:31%; height:78%; object-fit:contain; filter:drop-shadow(0 8px 6px rgba(87,54,32,.14)); }
.layer-description { display:flex; align-items:center; gap:10px; }
.layer-description img { width:26px; height:26px; object-fit:contain; }
.obstacle-grid { grid-template-columns:repeat(3,1fr); gap:15px; }
.obstacle-card { position:relative; min-height:250px; padding:17px 19px 19px; }
.obstacle-image { display:grid; place-items:center; height:116px; margin:-17px -19px 14px; background:linear-gradient(145deg,#f4e7d9,#e9d4be); overflow:hidden; }
.obstacle-image img { width:62%; height:105px; object-fit:contain; filter:drop-shadow(0 9px 7px rgba(76,50,32,.13)); transition:transform .4s; }
.obstacle-card:hover .obstacle-image img { transform:scale(1.1) rotate(3deg); }
.obstacle-card p { font-size:10px; }
.collectable-slip { position:absolute; right:16px; bottom:11px; width:28px; height:37px; object-fit:contain; opacity:.92; }
.collectable-label { position:absolute; right:49px; bottom:20px; color:#a77c57; font-size:6px; font-weight:900; letter-spacing:.1em; }
.ticket-rating { position:relative; display:flex; justify-content:space-between; gap:4px; color:#986f4c; font-size:7px; font-weight:900; letter-spacing:.06em; }
.ticket-rating span:nth-child(2) { transform:translateY(-3px); }
.recipe-modal { width:min(92vw,450px); padding:0; border:0; background:transparent; color:var(--ink); overflow:visible; }
.recipe-modal::backdrop { background:rgba(48,33,25,.65); backdrop-filter:blur(6px); }
.modal-card { position:relative; display:flex; align-items:center; flex-direction:column; padding:36px 34px 30px; border:1px solid rgba(146,98,59,.23); background:linear-gradient(145deg,#fffaf1,#f2dfca); box-shadow:0 25px 70px rgba(27,17,11,.28); text-align:center; }
.modal-close { position:absolute; top:9px; right:12px; border:0; background:none; color:#8d725b; font-size:25px; cursor:pointer; }
.modal-eyebrow { color:#b27650; font-size:8px; font-weight:900; letter-spacing:.19em; }
.modal-card > img { width:66px; height:83px; margin:12px auto 4px; object-fit:contain; }
.modal-card h2 { margin:3px 0 7px; font:700 32px var(--serif); color:#563b2e; }
.modal-card p { max-width:280px; margin:0; color:#816d5d; font-size:12px; line-height:1.7; }
.modal-actions { display:flex; flex-direction:column; align-items:center; gap:11px; margin-top:21px; }
.modal-secondary { border:0; background:transparent; color:#9a7a61; font-size:10px; font-weight:800; cursor:pointer; }
.board-message-success { color:#5b8a61 !important; }
.board-message-fail { color:#b75b44 !important; }
@media(max-width:1050px) {
  .special-cards { grid-template-columns:repeat(2,1fr); }
  .booster-cards { grid-template-columns:repeat(2,1fr); }
  .prelevel-showcase { grid-template-columns:1fr; }
  .prelevel-card { grid-template-columns:150px 1fr; }
}
@media(max-width:980px) {
  .hero-art { min-height:550px; }
  .score-panel { grid-template-columns:78px 1fr 82px; gap:8px; }
  .layer-description { font-size:10px; }
}
@media(max-width:760px) {
  .hero { min-height:0; padding-top:42px; padding-bottom:78px; }
  .hero-art { min-height:min(108vw,520px); margin-top:5px; }
  .hero-logo { width:54%; }
  .hero-tomato { width:25%; left:0; top:11%; }
  .hero-milk { width:23%; right:0; top:6%; }
  .hero-cheese { width:28%; left:0; bottom:7%; }
  .hero-wheat { width:24%; right:0; bottom:5%; }
  .hero-spices { width:20%; right:0; top:41%; }
  .hero-sticker { width:68px; height:68px; }
  .hero-sticker span { font-size:6px; }.hero-sticker b { font-size:11px; }
  .hero-meta { margin-top:29px; }
  .specials-intro,.boosters-intro { grid-template-columns:1fr; gap:18px; padding-top:42px; }
  .special-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .special-art { min-height:160px; }
  .special-art > img { height:120px; width:75%; }
  .special-card-body { padding:15px 13px 17px; }
  .special-card-body p { min-height:90px; }
  .special-family-picker { align-items:flex-start; flex-direction:column; }
  .family-chips button { font-size:7px; padding:7px; }
  .booster-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .booster-card { min-height:260px; padding-inline:13px; }
  .booster-art { margin-inline:-13px; }
  .prelevel-card { grid-template-columns:108px 1fr; padding:14px; gap:13px; }
  .prelevel-card img { height:104px; }
  .obstacle-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layer-diagram { grid-template-columns:1fr; gap:25px; padding:23px; }
  .layer { min-height:65px; padding:10px; }
  .layer b { font-size:11px; }
  .layer-description { font-size:9px; }
  .layer-priority { font-size:6px; }
  .layer-explainer { max-width:none; }
  .layer-explainer h3 { font-size:27px; }
  .board-card { padding:14px; }
  .prelevel-panel { padding:12px; }
  .prelevel-choice { min-height:80px; }
  .prelevel-choice img { width:46px; height:39px; }
  .prelevel-choice span { font-size:8px; }
  .prelevel-actions { align-items:flex-end; }
  .prelevel-actions small { max-width:140px; font-size:7px; }
  .score-panel { grid-template-columns:74px 1fr 75px; gap:7px; }
  .score-copy b { font-size:14px; }
  .score-tier { gap:2px; }
  .score-tier img { width:20px; height:27px; }
  .score-tier span { font-size:6px; }
  .score-tier b { font-size:7px; }
  .match-board-frame { padding:12px; }
  .match-board-frame::before { inset:-5px; }
  .match-board { gap:2px; padding:5px; }
  .match-tile { border-radius:3px; padding:1px; }
  .inlevel-booster { min-height:85px; }
  .inlevel-booster img { width:36px; height:36px; }
  .inlevel-booster b { font-size:7px; }
  .board-status { font-size:7px; }
  .ticket-rating { font-size:6px; }
}
@media(max-width:430px) {
  .special-cards { grid-template-columns:1fr; }
  .special-card-body p { min-height:0; }
  .special-art { min-height:180px; }
  .special-art > img { height:135px; }
  .obstacle-grid { grid-template-columns:1fr; }
  .inlevel-grid { gap:4px; }
  .inlevel-booster { padding-inline:2px; }
  .inlevel-booster b { font-size:6px; }
  .score-panel { grid-template-columns:1fr; gap:5px; }
  .score-tier { justify-content:flex-start; }
  .score-tier img { width:17px; height:23px; }
  .score-tier span { font-size:7px; }
  .match-board-frame { padding:10px; }
  .prelevel-choice { min-height:74px; }
  .prelevel-choice img { width:38px; height:34px; }
  .prelevel-choice span { font-size:7px; }
  .prelevel-actions { flex-direction:column; align-items:stretch; }
  .prelevel-actions small { max-width:none; }
  .start-level-button { justify-content:center; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-ingredient,.hero-logo,.hero-spark,.hero-ring,.hero-orbit,.ingredient-ribbon { animation:none !important; }
}


/* V3 — pointer-reactive hero, seamless motion loops, compact playable demo and red brand accents. */
.hero-art { --pointer-rotate:0deg; perspective:1100px; overflow:hidden; }
.hero-logo { translate:calc(var(--pointer-x) * -.52) calc(var(--pointer-y) * -.52); rotate:var(--pointer-rotate); transition:translate .22s ease-out, rotate .22s ease-out; filter:drop-shadow(0 29px 27px rgba(95,38,42,.2)); }
.hero-sun { translate:calc(var(--pointer-x) * .09) calc(var(--pointer-y) * .09); transition:translate .35s ease-out; }
.hero-orbit, .hero-ring { translate:calc(var(--pointer-x) * -.08) calc(var(--pointer-y) * -.08); transition:translate .4s ease-out; }
.hero-ingredient { will-change:transform,translate; transition:translate .22s ease-out; }
.hero-tomato { translate:calc(var(--pointer-x) * .86) calc(var(--pointer-y) * .86); }
.hero-milk { translate:calc(var(--pointer-x) * -.62) calc(var(--pointer-y) * -.62); }
.hero-cheese { translate:calc(var(--pointer-x) * .68) calc(var(--pointer-y) * .68); }
.hero-wheat { translate:calc(var(--pointer-x) * -.82) calc(var(--pointer-y) * -.82); }
.hero-spices { translate:calc(var(--pointer-x) * .72) calc(var(--pointer-y) * .72); }
.hero-sticker { translate:calc(var(--pointer-x) * -.28) calc(var(--pointer-y) * -.28); transition:translate .25s ease-out; }
.hero h1 em, .intro-heading h2 em, .gameplay-copy h2 em, .specials-intro h2 em, .boosters-intro h2 em, .goals-heading h2 em, .obstacles-intro h2 em, .stars-copy h2 em, .download-text h2 em { color:#ED1C24; }
.button-primary, .start-level-button { background:#ED1C24; box-shadow:0 12px 26px rgba(237,28,36,.15); }
.button-primary:hover, .start-level-button:hover { background:#C8101D; }
.floating-note { background:#ED1C24; }
.note-right { background:#4B3034; }
.ingredient-ribbon { display:block; width:100%; overflow:hidden; padding:21px 0; border-top:1px solid rgba(72,34,39,.12); border-bottom:1px solid rgba(72,34,39,.08); }
.ribbon-track { display:flex; width:max-content; animation:ribbon-loop 34s linear infinite; will-change:transform; }
.ribbon-sequence { display:flex; flex:0 0 auto; align-items:center; gap:clamp(18px,3vw,42px); padding-right:clamp(18px,3vw,42px); color:#806e6d; font-size:9px; font-weight:900; letter-spacing:.19em; white-space:nowrap; }
.ribbon-sequence b { color:#ED1C24; font-size:13px; }
@keyframes ribbon-loop { to { transform:translateX(-50%); } }
.ingredient-ribbon:hover .ribbon-track { animation-play-state:paused; }

/* Pre-level choice is a standalone entry state; the board appears only after START RECIPE. */
.board-showcase { padding:20px; }
.board-card { padding:17px; overflow:hidden; border-color:rgba(237,28,36,.12); border-radius:8px; }
.board-top { padding-bottom:11px; }
.board-top b { font-size:17px; }
.board-top-tag { padding:5px 8px; border:2px solid rgba(184,16,26,.2); color:#B8101A; font-size:10px; font-weight:900; letter-spacing:.12em; }
.prelevel-stage { padding-top:2px; }
.prelevel-panel { margin:13px 0 0; padding:15px 15px 13px; border-color:rgba(237,28,36,.14); background:rgba(255,255,255,.68); }
.prelevel-head b { font-size:17px; }
.prelevel-hint { color:#B8101A; }
.prelevel-description { margin:8px 0 0; max-width:420px; color:#857575; font-size:9px; line-height:1.6; }
.prelevel-options { margin-top:11px; }
.prelevel-choice { min-height:86px; background:#fff8f5; border-color:rgba(40,20,20,.2); color:#513d3e; }
.prelevel-choice[aria-pressed="true"] { background:#fff0ef; border-color:#ED1C24; box-shadow:inset 0 0 0 1px #ED1C24,0 8px 18px rgba(184,16,26,.1); }
.prelevel-choice i { background:#ED1C24; }
.prelevel-actions { margin-top:13px; }
.prelevel-actions small { max-width:230px; font-size:8px; }
.start-level-button { min-height:39px; padding:10px 15px; }
.prelevel-recipe-note { display:flex; align-items:center; gap:12px; margin:13px 2px 1px; padding:12px; background:#fff5f1; border-left:2px solid #ED1C24; }
.recipe-note-mark { color:#ED1C24; font-size:23px; }
.prelevel-recipe-note b, .prelevel-recipe-note small { display:block; }
.prelevel-recipe-note b { color:#563f40; font:600 13px var(--serif); }
.prelevel-recipe-note small { margin-top:2px; color:#927f7f; font-size:10px; line-height:1.55; }
.board-play-stage { max-width:510px; margin-inline:auto; }
.board-play-stage[hidden], .prelevel-stage[hidden] { display:none !important; }
.board-live-top { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 0 8px; }
.board-live-hint { color:#a28a87; font-size:7px; font-weight:900; letter-spacing:.11em; }
.moves-pill { background:#fff0ef; }
.moves-pill b { color:#ED1C24; }
.shuffle-button { padding:7px 0 7px 8px; color:#B8101A; font-size:7px; }
.board-goals { gap:10px; padding:8px 10px; border-color:rgba(237,28,36,.1); background:#fff9f6; }
.collect-label { color:#B8101A; }
.goal-item { gap:3px; font-size:10px; }
.goal-item img { width:25px; height:25px; }
.score-panel { grid-template-columns:86px 1fr 96px; gap:9px; padding:10px 2px 9px; }
.score-copy b { color:#4a3437; font-size:15px; }
.thermometer-track { height:12px; border:1px solid rgba(125,62,59,.35); background:#f5e7df; }
.thermometer-track > span { background:linear-gradient(90deg,#f0c45b,#ED1C24); }
.score-mark { top:-4px; height:18px; background:#7f4447; }
.score-tier { display:grid; grid-template-columns:1fr; justify-items:end; gap:0; }
.score-tier-stars { display:flex; align-items:center; gap:1px; line-height:1; }
.score-tier-stars span { color:#dfd0c8; font-size:14px; transition:color .25s,transform .25s; }
.score-tier-stars span.is-earned { color:#E5A832; text-shadow:0 2px 7px rgba(214,155,49,.25); transform:translateY(-1px); }
.score-tier b { color:#B8101A; font-size:8px; }
.score-tier > span:last-child { color:#9a7778; font-size:6px; }
.match-board-frame { width:min(100%,420px); aspect-ratio:1; margin:5px auto 0; padding:8px; border:1px solid rgba(107,58,60,.26); border-radius:11px; background:#f4e7dc; box-shadow:0 8px 18px rgba(91,55,48,.09),inset 0 1px 3px rgba(255,255,255,.9); }
.match-board-frame::before { display:none !important; }
.match-board { gap:3px; padding:6px; border:0; border-radius:7px; background:#ead8c6 url('../assets/board/tile.webp') center/cover; box-shadow:inset 0 1px 5px rgba(94,57,41,.12); }
.match-tile { border:1px solid rgba(123,79,67,.12); border-radius:4px; background:rgba(255,250,245,.75); }
.match-tile.is-selected { border:2px solid #ED1C24; background:#fff0ec; box-shadow:0 0 0 3px rgba(237,28,36,.16),0 4px 10px rgba(120,40,42,.12); }
.match-tile.is-special { border-color:#D8972C; background:linear-gradient(140deg,#fff3d7,#f5d18b); }
.match-tile.is-booster-target { outline-color:#ED1C24; }
.board-status { padding-top:8px; color:#8a6d70; }
.live-dot { background:#ED1C24; box-shadow:0 0 0 4px rgba(237,28,36,.1); }
.inlevel-boosters { margin-top:10px; padding-top:9px; border-top-color:rgba(237,28,36,.14); }
.inlevel-head { margin-bottom:7px; }
.inlevel-head small { color:#B8101A; }
.inlevel-grid { gap:6px; }
.inlevel-booster { min-height:78px; padding:5px 3px; border-color:rgba(135,76,72,.15); background:#fff7f3; color:#573f41; }
.inlevel-booster[aria-pressed="true"] { border-color:#ED1C24; background:#fff0ef; box-shadow:inset 0 0 0 1px #ED1C24; }
.inlevel-booster img { width:34px; height:34px; }
.inlevel-booster b { font-size:7px; }
.inlevel-booster small { color:#B8101A; }
.booster-hint { margin:6px 0 0; min-height:13px; font-size:7px; }
.board-caption { margin-top:11px; font-size:8px; }

/* Result popup is scoped to the demo card only. */
.recipe-modal { position:absolute; z-index:20; inset:0; display:grid; place-items:center; width:auto; height:auto; max-width:none; max-height:none; margin:0; padding:14px; border:0; border-radius:8px; background:rgba(42,28,32,.5); backdrop-filter:blur(5px); color:var(--ink); }
.recipe-modal[hidden] { display:none !important; }
.modal-card { width:min(100%,360px); padding:27px 24px 23px; border:1px solid rgba(237,28,36,.24); border-radius:8px; background:linear-gradient(145deg,#fffdfb,#fff0ea); box-shadow:0 20px 55px rgba(40,20,25,.25); }
.modal-close { color:#8b6063; }
.modal-eyebrow { color:#B8101A; }
.modal-stars { margin:10px auto 4px; color:#E6AA35; font-size:31px; letter-spacing:.13em; line-height:1; text-shadow:0 3px 8px rgba(207,151,52,.18); }
.modal-card h2 { color:#432d32; }
.modal-card p { color:#826f70; }
.modal-secondary { color:#a07173; }

/* Ingredient family arrows mirror the existing family-chip controls. */
.family-current { margin-left:auto; color:#B8101A; font-size:8px; font-weight:900; letter-spacing:.05em; }
.special-family-stage { display:grid; grid-template-columns:40px minmax(0,1fr) 40px; align-items:stretch; gap:10px; margin-top:18px; }
.special-family-stage .special-cards { margin-top:0; }
.family-arrow { align-self:center; display:grid; place-items:center; width:38px; height:54px; border:1px solid rgba(237,28,36,.28); border-radius:4px; background:#fff8f5; color:#ED1C24; font:300 34px/1 var(--sans); cursor:pointer; transition:background .2s,color .2s,transform .2s; }
.family-arrow:hover { background:#ED1C24; color:#fff; transform:scale(1.04); }
.special-card { border-color:rgba(112,55,58,.13); }
.special-art { background:radial-gradient(circle at 50% 48%,#fff5ec,#f4dbd1); }
.special-badge { color:#B8101A; }

/* The Challenge cards use independent, seamless ingredient/obstacle/star marquees. */
.goal-art { background:#fbebe5; }
.goal-obstacles .goal-art { background:#f4e8e4; }
.goal-temperature .goal-art { background:#fff0e5; }
.goal-art-window { width:100%; height:100%; overflow:hidden; display:flex; align-items:center; }
.goal-marquee-track { display:flex; width:max-content; align-items:center; will-change:transform; }
.goal-art-group { display:flex; flex:0 0 auto; align-items:center; gap:17px; padding:0 17px 0 5px; }
.goal-art-group img { flex:0 0 auto; width:82px; height:125px; object-fit:contain; filter:drop-shadow(0 9px 8px rgba(73,42,42,.14)); }
.goal-marquee-ingredients { animation:goal-loop 25s linear infinite; }
.goal-marquee-obstacles { animation:goal-loop 22s linear infinite; }
.goal-marquee-stars { animation:goal-loop 20s linear infinite; }
.goal-marquee-obstacles .goal-art-group img { width:93px; height:115px; }
.goal-marquee-stars .goal-art-group img { width:145px; height:78px; filter:drop-shadow(0 7px 7px rgba(108,66,36,.14)); }
.goal-card:hover .goal-marquee-track { animation-play-state:paused; }
.goal-number { z-index:5; color:#B8101A; }
.goal-card-body .card-label { color:#B8101A; }
.goal-card h3 { color:#432f32; }
.goal-card p { color:#806f70; }
.goals-section { background:#f8eae6; }
.specials-section { background:#f7eae6; }
.boosters-section { background:#fff9f6; }
.intro-band { background:#f6e7e3; }
.layer-middle { background:linear-gradient(90deg,#f0d2c6,#e7b9aa); }
.layer-explainer h3 { color:#4d3439; }
.obstacle-card { border-color:rgba(237,28,36,.12); }
.obstacle-card-head h3 { color:#4a3338; }
.recipe-ticket { border-color:rgba(237,28,36,.25); }
.ticket-name em { color:#ED1C24; }
.ticket-stars-display { display:flex; align-items:center; justify-content:center; gap:10px; height:94px; margin:15px 0 0; }
.ticket-stars-display img { width:29%; max-width:150px; height:72px; object-fit:contain; }
.ticket-rating { color:#B8101A; }
.download-panel { border-color:rgba(237,28,36,.17); }
.download-deco { color:#ED1C24; }

@media(max-width:1050px) {
  .special-family-stage { grid-template-columns:34px minmax(0,1fr) 34px; gap:7px; }
  .special-family-stage .special-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .family-arrow { width:32px; height:48px; }
}
@media(max-width:760px) {
  .hero-logo { translate:calc(var(--pointer-x) * -.3) calc(var(--pointer-y) * -.3); }
  .board-showcase { padding:12px; }
  .board-card { padding:12px; }
  .prelevel-panel { padding:12px; }
  .prelevel-choice { min-height:78px; }
  .prelevel-choice img { width:49px; height:42px; }
  .prelevel-recipe-note { padding:9px; }
  .board-play-stage { width:100%; }
  .match-board-frame { width:min(100%,380px); padding:6px; }
  .score-panel { grid-template-columns:74px 1fr 86px; gap:6px; }
  .score-tier-stars span { font-size:12px; }
  .goal-art-group img { width:70px; height:110px; }
  .goal-marquee-obstacles .goal-art-group img { width:79px; height:100px; }
  .goal-marquee-stars .goal-art-group img { width:115px; height:68px; }
  .special-family-picker { align-items:flex-start; flex-direction:column; }
  .family-current { margin-left:0; }
  .special-family-stage { grid-template-columns:28px minmax(0,1fr) 28px; gap:5px; }
  .special-family-stage .special-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .family-arrow { width:28px; height:45px; font-size:28px; }
  .ticket-stars-display { gap:3px; }
}
@media(max-width:430px) {
  .board-live-hint { display:none; }
  .score-panel { grid-template-columns:1fr; gap:5px; }
  .score-tier { display:flex; justify-content:space-between; justify-items:initial; }
  .score-tier > span:last-child { margin-left:auto; }
  .match-board-frame { width:100%; }
  .special-family-stage { grid-template-columns:24px minmax(0,1fr) 24px; gap:4px; }
  .family-arrow { width:24px; height:38px; font-size:25px; }
}
@media(prefers-reduced-motion:reduce) {
  .ribbon-track,.goal-marquee-track { animation:none !important; }
  .hero-logo,.hero-ingredient,.hero-sun,.hero-orbit,.hero-ring,.hero-sticker { transition:none !important; translate:none !important; rotate:none !important; }
}
/* Final specificity fixes for the moving Challenge art and title ribbon. */
.goal-ingredients .goal-art-group img { width:82px; height:125px; }
.ribbon-track, .goal-marquee-track { transform:translateZ(0); }


/* V3 refinements: mouse-responsive Food Kingdom logo art beyond the hero. */
.first-game-art, .download-panel { --pointer-x:0px; --pointer-y:0px; --pointer-rotate:0deg; }
.first-game-art > img:first-of-type {
  translate:calc(var(--pointer-x) * -.42) calc(var(--pointer-y) * -.42);
  rotate:var(--pointer-rotate);
  transition:translate .24s ease-out, rotate .24s ease-out;
}
.first-game-art .game-art-food {
  transition:translate .24s ease-out;
}
.first-game-art .food-art-one { translate:calc(var(--pointer-x) * .65) calc(var(--pointer-y) * .65); }
.first-game-art .food-art-two { translate:calc(var(--pointer-x) * -.55) calc(var(--pointer-y) * -.55); }
.download-logo {
  translate:calc(var(--pointer-x) * -.42) calc(var(--pointer-y) * -.42);
  rotate:var(--pointer-rotate);
  transition:translate .24s ease-out, rotate .24s ease-out;
}
.download-deco { transition:translate .3s ease-out; }
.download-panel .deco-one { translate:calc(var(--pointer-x) * .45) calc(var(--pointer-y) * .45); }
.download-panel .deco-two { translate:calc(var(--pointer-x) * -.35) calc(var(--pointer-y) * -.35); }
@media(prefers-reduced-motion:reduce) {
  .first-game-art > img:first-of-type, .first-game-art .game-art-food, .download-logo, .download-deco { transition:none !important; translate:none !important; rotate:none !important; }
}

/* Seamless loop for the duplicated artwork groups inside the three Challenge cards. */
@keyframes goal-loop {
  from { transform:translate3d(0,0,0); }
  to { transform:translate3d(-50%,0,0); }
}


/* V4: transparent home navigation logo (header itself remains the dark brand surface). */
.page-home .site-header .studio-brand {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
@media (max-width:760px) {
  .page-home .site-header .studio-brand { padding: 0; }
}

/* V4: one centred, clipped ticker made of two identical, oversized groups. */
.page-home .ingredient-ribbon {
  display: block;
  animation: none !important;
  position: relative;
  width: min(var(--content), calc(100% - 64px));
  margin-inline: auto;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(72,34,39,.12);
  border-bottom: 1px solid rgba(72,34,39,.08);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
}
.page-home .ribbon-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ribbon-loop 36s linear infinite;
}
.page-home .ribbon-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.page-home .ribbon-sequence {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(18px, 2.1vw, 30px);
  padding-right: clamp(18px, 2.1vw, 30px);
  color: #806e6d;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 900;
  letter-spacing: .2em;
  white-space: nowrap;
}
.page-home .ribbon-sequence b {
  color: #ED1C24;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1;
}
@keyframes ribbon-loop {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
.page-home .ingredient-ribbon:hover .ribbon-track { animation-play-state: paused; }
@media (max-width:760px) {
  .page-home .ingredient-ribbon { width: calc(100% - 40px); }
}

/* Symmetrical, optically centred arrow glyphs. */
.page-home .family-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  padding: 0;
  line-height: 0;
}
.page-home .family-arrow svg {
  display: block;
  width: 19px;
  height: 19px;
  margin: 0;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
@media (max-width:760px) {
  .page-home .family-arrow svg { width: 16px; height: 16px; }
}
