/* Swappy Heads landing page. Colours are taken from the game's own art; type is the game's Baloo 2. */
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo-2-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo-2-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.sh { --navy: #16233f; --sky: #bfe4ff; --paper: #fbfcff; --sun: #ffb524; --leaf: #4c9d1f; --candy: #ff7a1a; --blue: #1668c9; --play: "Baloo 2", ui-rounded, "SF Pro Rounded", var(--font); background: var(--paper); }
.sh main h1, .sh main h2, .sh main h3 { font-family: var(--play); color: var(--navy); letter-spacing: -.005em; }
.sh main h2 { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.875rem); font-weight: 800; line-height: 1.08; }
.sh main h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.sh .eyebrow { color: var(--navy); }
.sh .section { padding-block: clamp(56px, 6vw, 84px); }
.sh .btn--dark { background: var(--navy); }
.sh .btn--dark:hover { background: #223463; }
.sh .header.is-stuck::before { background: rgba(251, 252, 255, .84); }
.sh .section-head p { max-width: 32em; color: #43506b; }

/* ---------- hero ---------- */
.sh-hero { position: relative; margin-top: calc(var(--header) * -1); padding-top: var(--header); min-height: max(720px, min(92vh, 820px)); overflow: hidden; isolation: isolate; background: radial-gradient(52% 62% at 12% 38%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 72%), linear-gradient(180deg, #6fc0ff 0%, #a9dcff 38%, #e4f5ff 68%, #d9f2c6 100%); }
.sh-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sh-scene > * { position: absolute; }
.cloud--1 { left: 38%; top: 13%; width: 230px; }
.cloud--2 { right: -30px; top: 24%; width: 260px; }
.cloud--3 { left: -50px; top: 66%; width: 200px; opacity: .85; }
.hill { border-radius: 50%; }
.hill--far { left: -12%; right: 38%; bottom: -150px; height: 360px; background: linear-gradient(180deg, #8fd3c0, #6fbf7a); opacity: .6; }
.hill--far2 { left: 34%; right: -14%; bottom: -130px; height: 390px; background: linear-gradient(180deg, #7ecbc0, #62b86a); opacity: .65; }
.hill--near { left: -8%; right: -8%; bottom: -215px; height: 380px; background: linear-gradient(180deg, #b6e63c 0%, #7cc62a 30%, #54a51d 100%); }
.meadow-l { left: 0; bottom: 0; width: min(34vw, 430px); }
.meadow-r { right: 0; bottom: 0; width: min(34vw, 430px); }
.sh-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 62px; fill: var(--paper); z-index: 4; pointer-events: none; }

.sh-hero__grid { display: grid; grid-template-columns: 11fr 12fr; align-items: center; gap: 16px; min-height: calc(max(720px, min(92vh, 820px)) - var(--header)); padding-top: 18px; padding-bottom: 54px; }
.sh-copy { position: relative; z-index: 3; }
.sh-copy::before { content: ""; position: absolute; inset: 40% -60px -20px -80px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)); pointer-events: none; }
.sh-copy h1 { margin: 0; line-height: 0; }
.sh-logo { width: min(100%, 500px); margin-left: -8px; filter: drop-shadow(0 16px 18px rgba(18, 50, 90, .22)); }
.sh-tag { font-family: var(--play); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1.12; color: var(--navy); margin-top: 18px; max-width: 15em; text-wrap: balance; }
.sh-copy .lead { margin-top: 12px; color: #27355a; max-width: 29em; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 9px 16px; border-radius: 20px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(22, 35, 63, .1); font-size: .875rem; font-weight: 600; color: var(--navy); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--candy); box-shadow: 0 0 0 4px rgba(255, 122, 26, .2); flex: none; }

.sh-stage { position: relative; height: 640px; align-self: center; }
.phone { margin: 0; background: linear-gradient(160deg, #2c3140, #10131b); padding: 22px 8px; border-radius: 38px; box-shadow: 0 0 0 1px #4a5063 inset, 0 40px 60px -24px rgba(12, 40, 74, .55); position: relative; }
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 54px; height: 5px; margin-left: -27px; border-radius: 9px; background: #454b5c; }
.phone img { border-radius: 12px; width: 100%; aspect-ratio: 9 / 16; }
.sh-stage__main { position: absolute; left: 50%; top: 8px; width: 322px; margin-left: -134px; z-index: 2; }
.sh-stage__side { position: absolute; left: 50%; top: 82px; width: 244px; margin-left: -286px; z-index: 1; }
.sh-stage__side .phone { transform: rotate(-8deg); }
.float { position: absolute; z-index: 3; }
.float img { filter: drop-shadow(0 16px 14px rgba(14, 44, 82, .3)); width: 100%; }
.float--dog { width: 134px; left: 50%; margin-left: 134px; top: 64px; }
.float--tiger { width: 112px; left: 50%; margin-left: 196px; top: 292px; }
.float--rabbit { width: 82px; left: 50%; margin-left: -318px; top: 6px; }
.float--panda { width: 132px; left: 50%; margin-left: -250px; top: 456px; }
.float--chick { width: 84px; left: 50%; margin-left: 140px; top: 500px; }
@media (prefers-reduced-motion: no-preference) {
  .float img { animation: bob var(--bob, 5.5s) ease-in-out infinite; animation-delay: var(--lag, 0s); }
  .cloud { animation: drift 26s ease-in-out infinite alternate; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes drift { from { translate: -22px 0; } to { translate: 26px 0; } }

/* ---------- feature strip ---------- */
.strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 18px 8px; }
.strip li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
.strip li + li { border-left: 1px solid #dfe5f0; }
.strip img, .strip svg { width: 52px; height: 52px; object-fit: contain; flex: none; }
.strip strong { display: block; color: var(--navy); font-family: var(--play); font-size: 1.125rem; line-height: 1.2; }
.strip span { display: block; font-size: .8125rem; color: #56617a; line-height: 1.4; }

/* ---------- how it plays ---------- */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.step { display: flex; flex-direction: column; border-radius: 30px; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) 0; overflow: hidden; background: var(--tint, #eef6ff); }
.step p { margin-top: 10px; max-width: 32em; color: #35415f; font-size: 1.0625rem; }
.step__art { display: flex; justify-content: center; align-items: flex-start; gap: 16px; margin-top: auto; padding-top: 28px; height: 400px; overflow: hidden; }
.step--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: center; padding-block: clamp(24px, 3vw, 36px); }
.step--wide .step__art { height: auto; overflow: visible; margin: 0; padding: 0; align-items: center; }
.step__art .phone { width: min(100%, 272px); padding: 15px 6px; border-radius: 28px; transition: transform .45s var(--ease); }
.step__art .phone::before { top: 6px; width: 40px; margin-left: -20px; height: 4px; }
.step__art .phone img { border-radius: 9px; }
.step:hover .step__art .phone { transform: translateY(-6px); }
.step__art--whole { padding-top: 8px; }
.step__art--whole .phone { width: min(100%, 252px); }
.step__art--pair .phone { width: calc(50% - 26px); max-width: 222px; }
.swap-arrow { width: 34px; height: 34px; flex: none; color: var(--navy); }
.num { display: inline-grid; place-items: center; align-self: flex-start; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--play); font-weight: 800; margin-bottom: 14px; }
.menu { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.menu li { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 999px; padding: 5px 12px 5px 7px; font-size: .8125rem; font-weight: 600; color: var(--navy); box-shadow: 0 6px 14px -10px rgba(22, 35, 63, .5); }
.menu img { width: 28px; height: 28px; object-fit: contain; }

/* ---------- characters ---------- */
.cast-wrap { background: linear-gradient(180deg, #fff6e4, #ffeeda); }
.cast { position: relative; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; margin: 0; padding: 0; border: 0; min-width: 0; }
.cast > input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cast__grid { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-content: start; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 14px 6px 10px; border-radius: 20px; background: #fff; border: 2px solid transparent; cursor: pointer; box-shadow: 0 10px 20px -16px rgba(120, 70, 0, .55); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.tile img { width: 100%; max-width: 76px; height: 68px; object-fit: contain; transition: transform .3s var(--ease); }
.tile span { font-size: .8125rem; font-weight: 650; color: var(--navy); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 24px -16px rgba(120, 70, 0, .6); }
.tile:hover img { transform: scale(1.12) rotate(-4deg); }
.tile:active img { transform: scale(.94); }
.cast__panels { grid-column: 2; grid-row: 1; display: grid; background: #fff; border-radius: 30px; box-shadow: var(--shadow); }
.panel { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 3vw, 34px); visibility: hidden; opacity: 0; transform: translateY(10px); }
.panel__top { display: flex; align-items: center; gap: 20px; }
.panel__top img { width: 176px; height: 156px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(120, 70, 0, .22)); }
.panel__top p { color: #56617a; font-size: .9375rem; }
.panel ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; margin-top: 20px; }
.panel li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 12px; background: #fff7e9; font-size: .6875rem; font-weight: 600; text-align: center; line-height: 1.2; color: var(--navy); }
.panel li img { width: 36px; height: 36px; object-fit: contain; }

/* ---------- environments ---------- */
.worlds { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.worlds > input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.worlds__tabs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.worlds__tabs label { display: flex; flex: 1; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 16px; border: 1px solid #d5deec; background: #fff; font-size: .9375rem; font-weight: 650; color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.worlds__tabs label:hover { transform: translateX(3px); }
.worlds__stage { grid-column: 2; grid-row: 1; isolation: isolate; display: grid; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: #dce8f5; aspect-ratio: 16 / 10; }
.world { grid-area: 1 / 1; margin: 0; position: relative; min-height: 0; opacity: 0; visibility: hidden; transition: opacity 0s .6s, visibility 0s .6s; }
.world img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.07); transition: transform 1.2s var(--ease); position: absolute; inset: 0; }
.world figcaption { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 420px; padding: 16px 22px; border-radius: 20px; background: rgba(255, 255, 255, .92); }
.world figcaption p { font-size: .9375rem; color: #43506b; }

/* ---------- gallery ---------- */
.gallery { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 262px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 30px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); overscroll-behavior-x: contain; scrollbar-width: thin; }
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: 0 22px 30px -22px rgba(22, 35, 63, .55); transition: transform .35s var(--ease); }
.gallery li:hover img { transform: translateY(-6px); }
.gallery figcaption { margin-top: 12px; font-size: .875rem; font-weight: 600; color: var(--navy); }
.gallery-nav { display: none; gap: 10px; }
.js .gallery-nav { display: flex; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #d5deec; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: transform .2s, opacity .2s; }
.round:hover:not(:disabled) { transform: translateY(-2px); }
.round:disabled { opacity: .35; cursor: default; }
.fine { font-size: .8125rem; color: #5d6880; }

/* ---------- release and help ---------- */
.release { display: grid; grid-template-columns: 5fr 6fr; gap: 32px; align-items: center; border-radius: 30px; padding: clamp(26px, 4vw, 48px); background: radial-gradient(80% 140% at 0% 100%, #d8f3bd, transparent 60%), #eaf5ff; }
.release__id { display: flex; gap: 20px; align-items: center; }
.release__id img { width: 96px; border-radius: 22px; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .5); }
.release__links { list-style: none; display: grid; gap: 10px; }
.release__links a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 20px; border-radius: 16px; background: #fff; text-decoration: none; font-weight: 650; color: var(--navy); transition: transform .25s var(--ease), box-shadow .25s; }
.release__links a:hover { transform: translateX(4px); box-shadow: 0 14px 24px -18px rgba(22, 35, 63, .55); }
.release__links span { font-weight: 400; font-size: .8125rem; color: #56617a; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .meadow-l { width: 28vw; }
  .sh-stage__side { margin-left: -240px; width: 210px; }
  .sh-stage__main { width: 292px; margin-left: -104px; }
  .float--dog { margin-left: 138px; }
  .float--tiger { margin-left: 154px; }
  .float--rabbit { margin-left: -262px; }
  .float--panda { margin-left: -214px; }
  .cast { grid-template-columns: 1fr; }
  .cast__panels { grid-column: 1; grid-row: 2; }
}
@media (max-width: 900px) {
  .sh-hero { min-height: 0; }
  .sh-hero__grid { grid-template-columns: 1fr; min-height: 0; text-align: center; padding-top: 12px; padding-bottom: 72px; }
  .sh-logo { margin-inline: auto; width: min(86%, 420px); }
  .sh-tag, .sh-copy .lead { margin-inline: auto; }
  .sh-copy .actions { justify-content: center; }
  .sh-copy .eyebrow { justify-content: center; }
  .sh-stage { height: 560px; margin-top: 18px; }
  .sh-stage__main { width: 268px; margin-left: -108px; }
  .sh-stage__side { width: 190px; margin-left: -178px; top: 70px; }
  .float--dog { width: 96px; margin-left: 100px; }
  .float--tiger { width: 80px; margin-left: 112px; top: 270px; }
  .float--rabbit { width: 58px; margin-left: -160px; top: 4px; }
  .float--panda { width: 96px; margin-left: -176px; top: 396px; }
  .float--chick { width: 62px; margin-left: 108px; top: 424px; }
  .meadow-l, .meadow-r { width: 46vw; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip li:nth-child(3) { border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step--wide { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .worlds__tabs { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .worlds__tabs label { flex: none; border-radius: 999px; }
  .worlds__stage { grid-column: 1; grid-row: 2; }
  .release { grid-template-columns: 1fr; }
  .worlds__stage { aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr; }
  .strip li + li { border-left: 0; border-top: 1px solid #dfe5f0; }
  .cast__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 10px 2px 8px; border-radius: 15px; }
  .tile img { height: 50px; max-width: 56px; }
  .tile span { font-size: .6875rem; }
  .panel__top img { width: 112px; height: 104px; }
  .step__art { height: 340px; }
  .step__art .phone { width: min(100%, 244px); }
  .step__art--whole .phone { width: min(100%, 220px); }
  .cloud--1 { width: 170px; }
  .cloud--2 { width: 180px; }
  .cloud--3 { width: 140px; }
  .step--wide .step__art { height: auto; }
  .worlds__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scrollbar-width: none; }
  .worlds__tabs label { flex: none; }
  .world figcaption { left: 10px; right: 10px; bottom: 10px; padding: 12px 16px; }
  .gallery { grid-auto-columns: 68vw; }
}

/* ---------- generated selectors ---------- */
#c-human:checked ~ .cast__panels .p-human { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-human:checked ~ .cast__grid [for="c-human"] { border-color: var(--candy); background: #fff2dc; }
#c-human:focus-visible ~ .cast__grid [for="c-human"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-dog:checked ~ .cast__panels .p-dog { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-dog:checked ~ .cast__grid [for="c-dog"] { border-color: var(--candy); background: #fff2dc; }
#c-dog:focus-visible ~ .cast__grid [for="c-dog"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-cat:checked ~ .cast__panels .p-cat { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-cat:checked ~ .cast__grid [for="c-cat"] { border-color: var(--candy); background: #fff2dc; }
#c-cat:focus-visible ~ .cast__grid [for="c-cat"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-chicken:checked ~ .cast__panels .p-chicken { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-chicken:checked ~ .cast__grid [for="c-chicken"] { border-color: var(--candy); background: #fff2dc; }
#c-chicken:focus-visible ~ .cast__grid [for="c-chicken"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-pig:checked ~ .cast__panels .p-pig { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-pig:checked ~ .cast__grid [for="c-pig"] { border-color: var(--candy); background: #fff2dc; }
#c-pig:focus-visible ~ .cast__grid [for="c-pig"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-cow:checked ~ .cast__panels .p-cow { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-cow:checked ~ .cast__grid [for="c-cow"] { border-color: var(--candy); background: #fff2dc; }
#c-cow:focus-visible ~ .cast__grid [for="c-cow"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-tiger:checked ~ .cast__panels .p-tiger { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-tiger:checked ~ .cast__grid [for="c-tiger"] { border-color: var(--candy); background: #fff2dc; }
#c-tiger:focus-visible ~ .cast__grid [for="c-tiger"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-rabbit:checked ~ .cast__panels .p-rabbit { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-rabbit:checked ~ .cast__grid [for="c-rabbit"] { border-color: var(--candy); background: #fff2dc; }
#c-rabbit:focus-visible ~ .cast__grid [for="c-rabbit"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-goat:checked ~ .cast__panels .p-goat { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-goat:checked ~ .cast__grid [for="c-goat"] { border-color: var(--candy); background: #fff2dc; }
#c-goat:focus-visible ~ .cast__grid [for="c-goat"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-elephant:checked ~ .cast__panels .p-elephant { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-elephant:checked ~ .cast__grid [for="c-elephant"] { border-color: var(--candy); background: #fff2dc; }
#c-elephant:focus-visible ~ .cast__grid [for="c-elephant"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-sheep:checked ~ .cast__panels .p-sheep { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-sheep:checked ~ .cast__grid [for="c-sheep"] { border-color: var(--candy); background: #fff2dc; }
#c-sheep:focus-visible ~ .cast__grid [for="c-sheep"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-horse:checked ~ .cast__panels .p-horse { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-horse:checked ~ .cast__grid [for="c-horse"] { border-color: var(--candy); background: #fff2dc; }
#c-horse:focus-visible ~ .cast__grid [for="c-horse"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-duck:checked ~ .cast__panels .p-duck { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-duck:checked ~ .cast__grid [for="c-duck"] { border-color: var(--candy); background: #fff2dc; }
#c-duck:focus-visible ~ .cast__grid [for="c-duck"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-deer:checked ~ .cast__panels .p-deer { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-deer:checked ~ .cast__grid [for="c-deer"] { border-color: var(--candy); background: #fff2dc; }
#c-deer:focus-visible ~ .cast__grid [for="c-deer"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-panda:checked ~ .cast__panels .p-panda { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-panda:checked ~ .cast__grid [for="c-panda"] { border-color: var(--candy); background: #fff2dc; }
#c-panda:focus-visible ~ .cast__grid [for="c-panda"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-bear:checked ~ .cast__panels .p-bear { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-bear:checked ~ .cast__grid [for="c-bear"] { border-color: var(--candy); background: #fff2dc; }
#c-bear:focus-visible ~ .cast__grid [for="c-bear"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-fox:checked ~ .cast__panels .p-fox { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-fox:checked ~ .cast__grid [for="c-fox"] { border-color: var(--candy); background: #fff2dc; }
#c-fox:focus-visible ~ .cast__grid [for="c-fox"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-monkey:checked ~ .cast__panels .p-monkey { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-monkey:checked ~ .cast__grid [for="c-monkey"] { border-color: var(--candy); background: #fff2dc; }
#c-monkey:focus-visible ~ .cast__grid [for="c-monkey"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-lion:checked ~ .cast__panels .p-lion { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-lion:checked ~ .cast__grid [for="c-lion"] { border-color: var(--candy); background: #fff2dc; }
#c-lion:focus-visible ~ .cast__grid [for="c-lion"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#c-wolf:checked ~ .cast__panels .p-wolf { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
#c-wolf:checked ~ .cast__grid [for="c-wolf"] { border-color: var(--candy); background: #fff2dc; }
#c-wolf:focus-visible ~ .cast__grid [for="c-wolf"] { outline: 3px solid var(--navy); outline-offset: 2px; }
#w-meadow:checked ~ .worlds__stage .w-meadow { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-meadow:checked ~ .worlds__stage .w-meadow img { transform: scale(1); }
#w-meadow:checked ~ .worlds__tabs [for="w-meadow"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-meadow:focus-visible ~ .worlds__tabs [for="w-meadow"] { outline: 3px solid var(--candy); outline-offset: 2px; }
#w-pine-forest:checked ~ .worlds__stage .w-pine-forest { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-pine-forest:checked ~ .worlds__stage .w-pine-forest img { transform: scale(1); }
#w-pine-forest:checked ~ .worlds__tabs [for="w-pine-forest"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-pine-forest:focus-visible ~ .worlds__tabs [for="w-pine-forest"] { outline: 3px solid var(--candy); outline-offset: 2px; }
#w-mountain-canyon:checked ~ .worlds__stage .w-mountain-canyon { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-mountain-canyon:checked ~ .worlds__stage .w-mountain-canyon img { transform: scale(1); }
#w-mountain-canyon:checked ~ .worlds__tabs [for="w-mountain-canyon"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-mountain-canyon:focus-visible ~ .worlds__tabs [for="w-mountain-canyon"] { outline: 3px solid var(--candy); outline-offset: 2px; }
#w-flower-valley:checked ~ .worlds__stage .w-flower-valley { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-flower-valley:checked ~ .worlds__stage .w-flower-valley img { transform: scale(1); }
#w-flower-valley:checked ~ .worlds__tabs [for="w-flower-valley"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-flower-valley:focus-visible ~ .worlds__tabs [for="w-flower-valley"] { outline: 3px solid var(--candy); outline-offset: 2px; }
#w-autumn-forest:checked ~ .worlds__stage .w-autumn-forest { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-autumn-forest:checked ~ .worlds__stage .w-autumn-forest img { transform: scale(1); }
#w-autumn-forest:checked ~ .worlds__tabs [for="w-autumn-forest"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-autumn-forest:focus-visible ~ .worlds__tabs [for="w-autumn-forest"] { outline: 3px solid var(--candy); outline-offset: 2px; }
#w-oasis:checked ~ .worlds__stage .w-oasis { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-oasis:checked ~ .worlds__stage .w-oasis img { transform: scale(1); }
#w-oasis:checked ~ .worlds__tabs [for="w-oasis"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-oasis:focus-visible ~ .worlds__tabs [for="w-oasis"] { outline: 3px solid var(--candy); outline-offset: 2px; }
#w-snow-forest:checked ~ .worlds__stage .w-snow-forest { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-snow-forest:checked ~ .worlds__stage .w-snow-forest img { transform: scale(1); }
#w-snow-forest:checked ~ .worlds__tabs [for="w-snow-forest"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-snow-forest:focus-visible ~ .worlds__tabs [for="w-snow-forest"] { outline: 3px solid var(--candy); outline-offset: 2px; }
#w-crystal-cave:checked ~ .worlds__stage .w-crystal-cave { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s; }
#w-crystal-cave:checked ~ .worlds__stage .w-crystal-cave img { transform: scale(1); }
#w-crystal-cave:checked ~ .worlds__tabs [for="w-crystal-cave"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#w-crystal-cave:focus-visible ~ .worlds__tabs [for="w-crystal-cave"] { outline: 3px solid var(--candy); outline-offset: 2px; }
@media (max-width: 700px) {
  .panel { display: none; visibility: visible; opacity: 1; transform: none; }
  #c-human:checked ~ .cast__panels .p-human { display: flex; }
  #c-dog:checked ~ .cast__panels .p-dog { display: flex; }
  #c-cat:checked ~ .cast__panels .p-cat { display: flex; }
  #c-chicken:checked ~ .cast__panels .p-chicken { display: flex; }
  #c-pig:checked ~ .cast__panels .p-pig { display: flex; }
  #c-cow:checked ~ .cast__panels .p-cow { display: flex; }
  #c-tiger:checked ~ .cast__panels .p-tiger { display: flex; }
  #c-rabbit:checked ~ .cast__panels .p-rabbit { display: flex; }
  #c-goat:checked ~ .cast__panels .p-goat { display: flex; }
  #c-elephant:checked ~ .cast__panels .p-elephant { display: flex; }
  #c-sheep:checked ~ .cast__panels .p-sheep { display: flex; }
  #c-horse:checked ~ .cast__panels .p-horse { display: flex; }
  #c-duck:checked ~ .cast__panels .p-duck { display: flex; }
  #c-deer:checked ~ .cast__panels .p-deer { display: flex; }
  #c-panda:checked ~ .cast__panels .p-panda { display: flex; }
  #c-bear:checked ~ .cast__panels .p-bear { display: flex; }
  #c-fox:checked ~ .cast__panels .p-fox { display: flex; }
  #c-monkey:checked ~ .cast__panels .p-monkey { display: flex; }
  #c-lion:checked ~ .cast__panels .p-lion { display: flex; }
  #c-wolf:checked ~ .cast__panels .p-wolf { display: flex; }

  .cast__grid { grid-column: 1; grid-row: 1; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; scrollbar-width: none; }
  .cast__panels { grid-column: 1; grid-row: 2; }
  .tile { scroll-snap-align: start; }
}
