:root {
  color-scheme: light;
  --bg: #faf8f1;
  --paper: #fffefa;
  --ink: #172148;
  --muted: #535a72;
  --line: #dddfe7;
  --blue: #2458d8;
  --pink: #ffb9dd;
  --yellow: #ffde67;
  --lime: #d7f16f;
  --heading: "Arial Black", "Helvetica Neue", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --text: "Helvetica Neue", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .26em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid #e4349c; outline-offset: 5px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
h2, h3, h4 { font-family: var(--heading); font-weight: 850; }
h2 { font-size: clamp(2rem, 5.1vw, 4.1rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.025em; }
p { color: var(--muted); }
img { width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, calc(100% - clamp(2rem, 10vw, 9rem))); margin-inline: auto; }
.bar { position: sticky; inset-block-start: 0; z-index: 10; background: #faf8f1f2; border-bottom: 1px solid #dcdfe9; backdrop-filter: blur(12px); }
nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .88rem; font-weight: 700; }
nav > div { display: flex; gap: clamp(.7rem, 2.4vw, 2rem); }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover, .arcade-intro a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand span { width: .95rem; height: .95rem; background: var(--lime); border-radius: 42% 55% 50% 40%; transform: rotate(-18deg); border: 1px solid #182149; }

.contact { background: var(--blue); color: #fffdf5; overflow: hidden; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(0, .8fr); gap: clamp(1.7rem, 5.7vw, 5.8rem); align-items: end; padding-block: clamp(2.9rem, 8vw, 7.2rem) clamp(2.3rem, 5.4vw, 4.5rem); }
.contact h1 { color: #fffdf5; font: 950 clamp(4.6rem, 12.3vw, 11.5rem)/.77 var(--heading); letter-spacing: -.095em; }
.contact h1 em { color: var(--pink); font-style: normal; }
.contact-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.6rem, 4vw, 3.4rem); }
.contact-links a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .42rem; width: fit-content; padding: .55rem .85rem; border-radius: 100px; background: var(--yellow); color: var(--ink); font-size: clamp(.77rem, 1.45vw, .98rem); font-weight: 800; text-decoration: none; line-height: 1.45; transition: transform .2s; }
.contact-links a:nth-child(2) { background: #fff3fa; }
.contact-links a:hover { transform: translateY(-3px); }
.contact-links span { font-size: .73em; opacity: .75; }
.contact-links b { margin-left: .15rem; }
.contact-side { min-width: 0; }
.about { border-top: 1px solid #e3e8ff8a; padding-top: .9rem; }
.about h2 { font-size: clamp(1.3rem, 2.8vw, 2.25rem); margin-bottom: .5rem; }
.about p { color: #f0f2ff; font-size: clamp(.93rem, 1.3vw, 1.04rem); }
.contact-end { padding-block: .8rem .95rem; border-top: 1px solid #e3e8ff66; display: flex; justify-content: flex-end; }
.contact-end a { display: inline-flex; gap: .8rem; align-items: center; font-size: .88rem; font-weight: 700; text-decoration: none; }
.contact-end span { background: var(--lime); color: var(--ink); padding: 0 .47rem; border-radius: 50%; }
.contact-end a:hover { text-decoration: underline; }

.mascot-stage { position: relative; display: grid; place-items: end center; height: clamp(8rem, 19vw, 16rem); margin: 0 0 1.25rem; isolation: isolate; }
.mascot-halo { position: absolute; z-index: -1; width: min(80%, 255px); aspect-ratio: 1; bottom: 0; border-radius: 50%; background: #6894f7; }
.hero-mascot { --size: clamp(7rem, 16vw, 14rem); transform: rotate(-10deg); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-5deg); } }

.arcade { padding: clamp(2.3rem, 7vw, 6rem) 0; background: #ffdb69; }
.arcade-intro { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: clamp(1.3rem, 4vw, 2.45rem); }
.arcade-intro a { font-size: .87rem; font-weight: 750; white-space: nowrap; text-decoration: none; }
.machine { width: min(100%, 820px); margin-inline: auto; position: relative; border: clamp(4px, .65vw, 8px) solid #273b89; border-radius: 2rem 2rem 1.45rem 1.45rem; background: #8bc8fc; box-shadow: 9px 10px 0 #5f78c7, 18px 19px 0 #162551; }
.marquee { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(.35rem, 3vw, 1.35rem); margin: .6rem; padding: .6rem clamp(.4rem, 4.5vw, 2rem); background: linear-gradient(#ffe8f5, #ffabc9); color: #51327e; border: 2px solid #4f458e; border-radius: 1.25rem; text-align: center; font: 950 clamp(.87rem, 3.1vw, 2rem)/1.2 var(--heading); letter-spacing: .07em; }
.marquee i { height: 4px; background: #fff8f5; border-radius: 15px; box-shadow: 0 4px #d882ad; }
.bay { --reach: 60px; isolation: isolate; position: relative; overflow: hidden; margin: 0 .6rem; min-height: clamp(252px, 32vw, 353px); display: grid; align-items: end; padding: 6.4rem clamp(.16rem, 2vw, 1.1rem) .8rem; background: radial-gradient(circle, #db79ac70 2px, transparent 3.2px) 0 0/24px 24px, linear-gradient(154deg,#fdd5ec 10%,#ffbcdc 70%,#f48bbe); border: 3px solid #2d438a; border-radius: .9rem; box-shadow: inset 0 11px 18px #6b438535; }
.bay::before { content: ""; position: absolute; z-index: 3; pointer-events: none; inset: 0; background: linear-gradient(128deg, transparent 14%, #fff9 14% 16%, transparent 16% 18%, #fff7 18% 22%, transparent 22%); }
.bay::after { content: ""; height: 1.45rem; position: absolute; inset: auto 0 0; z-index: -1; background: #b570bd; border-top: 2px solid #8849a8; }
.rail { position: absolute; inset: 1.1rem .3rem auto; height: .42rem; border-radius: .75rem; background: linear-gradient(#4b66ab,#223478); }
.grabber { position: absolute; top: 1.02rem; left: 12%; width: 52px; height: 72px; z-index: 2; transform: translateX(-50%); transition: left .24s cubic-bezier(.15,.75,.35,1); pointer-events: none; }
.cable { position: absolute; width: 4px; left: calc(50% - 2px); inset-block: 0 27px; background: linear-gradient(90deg,#27366b,#151d46); border-radius: 10px; }
.claw-hub { position: absolute; left: 14px; top: 38px; width: 24px; height: 14px; background: linear-gradient(#fff6fc,#9a83c1); border: 2px solid #36326f; border-radius: 9px; z-index: 1; }
.jaw { position: absolute; width: 18px; height: 27px; top: 45px; border: solid #30346d; border-width: 4px 0 4px 4px; border-radius: 15px 0 0 14px; left: 8px; transform-origin: 100% 0; transform: rotate(19deg); }
.jaw.right { left: auto; right: 8px; border-width: 4px 4px 4px 0; border-radius: 0 15px 14px 0; transform-origin: 0 0; transform: rotate(-19deg); }
.grabber.down { animation: scoop 1s ease both; }
.grabber.down .cable { animation: wire 1s ease both; }
.grabber.down .jaw { animation: jaw-close 1s ease both; }
.grabber.down .jaw.right { animation-name: jaw-close-right; }
@keyframes scoop { 46%,58% { transform: translate(-50%,var(--reach)); } }
@keyframes wire { 46%,58% { top: calc(0px - var(--reach)); } }
@keyframes jaw-close { 55%,100% { transform: rotate(-12deg); } }
@keyframes jaw-close-right { 55%,100% { transform: rotate(12deg); } }

.prizes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: end; gap: clamp(.12rem, 1.5vw, .85rem); }
.prize { position: relative; min-width: 0; display: grid; justify-items: center; align-items: end; gap: .28rem; min-height: 6.3rem; padding: .35rem .12rem .15rem; text-align: center; border: 0; background: none; border-radius: 1rem; }
.prize .toy { transition: transform .2s ease, filter .2s ease; transform: rotate(var(--tilt, 0deg)); }
.prize:hover .toy, .prize[aria-pressed=true] .toy { transform: translateY(-5px) rotate(var(--tilt, 0deg)); filter: saturate(1.14); }
.prize-name { display: inline-block; padding: .2rem clamp(.2rem, 1.1vw, .65rem); background: #fff1fa; color: #263567; border: 1px solid #663a8a3a; border-radius: 50px; white-space: nowrap; font-size: clamp(.68rem, 2.1vw, .88rem); font-weight: 800; line-height: 1.3; }
.prize[aria-pressed=true] .prize-name { background: var(--lime); border-color: #323b73; }
.prize.caught .toy { animation: carry 1s ease both; z-index: 2; }
@keyframes carry { 0%, 53% { transform: translateY(-5px) rotate(var(--tilt, 0deg)); } 100% { transform: translateY(calc(0px - var(--reach))) rotate(-9deg); } }

.plush { --size: clamp(2.75rem, 10.3vw, 7.5rem); --skin: #d7f16f; --glow: #f6ffb5; --shade: #89b933; --tilt: -7deg; width: var(--size); height: var(--size); position: relative; display: block; isolation: isolate; }
.hero-mascot { --size: clamp(7rem, 16vw, 14rem); }
.plush i { display: block; position: absolute; }
.plush .head, .plush .body, .plush .ear, .plush .paw { background: radial-gradient(ellipse at 33% 21%, var(--glow), var(--skin) 56%, var(--shade)); box-shadow: inset -3px -4px 7px #49447723, 0 2px 3px #39266126; }
.plush .head { left: 5%; right: 5%; top: 24%; height: 55%; border-radius: 48% 48% 44% 44%; }
.plush .ear { top: 0; left: 14%; width: 25%; height: 47%; border-radius: 75% 69% 40% 40%; transform: rotate(-18deg); }
.plush .ear.right { left: auto; right: 14%; transform: rotate(18deg); }
.plush .body { left: 22%; right: 20%; bottom: 4%; height: 42%; border-radius: 46%; }
.plush .paw { bottom: 0; left: 16%; width: 27%; height: 13%; border-radius: 50%; }
.plush .paw::after { content: ""; position: absolute; width: 100%; height: 100%; background: inherit; border-radius: inherit; left: 165%; box-shadow: inherit; }
.face { inset: 0; background: radial-gradient(ellipse at 19% 70%,#ff93b17d 0 6%,transparent 7%),radial-gradient(ellipse at 81% 70%,#ff93b17d 0 6%,transparent 7%),radial-gradient(ellipse at 33% 57%,#24315c 0 6%,transparent 7%),radial-gradient(ellipse at 67% 57%,#24315c 0 6%,transparent 7%); border-radius: 48%; }
.face::after { position: absolute; content: ''; left: 44%; top: 64%; width: 12%; height: 12%; border: 2px solid #24315c; border-top: 0; border-radius: 0 0 75% 75%; }
.pop { --skin: #ff8ec2; --glow: #ffe0f1; --shade: #d55a9b; --tilt: 8deg; }
.pop .ear { height: 22%; width: 18%; top: 21%; transform: rotate(-30deg); }
.pop .head { top: 35%; height: 49%; border-radius: 32%; }
.pop .body { bottom: 1%; }
.star { --skin: #ffd861; --glow: #fff2b0; --shade: #f1a92b; --tilt: -7deg; }
.star .ear, .star .body, .star .paw { display: none; }
.star .head { inset: 9% 0 0; height: auto; clip-path: polygon(50% 0,65% 32%,100% 38%,75% 62%,79% 100%,50% 82%,21% 100%,25% 62%,0 38%,35% 32%); }
.star .face { inset: 21% 14% 16%; }
.cloud { --skin: #c5b9ff; --glow: #f6f1ff; --shade: #8e84dd; --tilt: 6deg; }
.cloud .ear { width: 40%; height: 39%; left: 11%; top: 26%; border-radius: 48%; }
.cloud .ear.right { left: auto; right: 8%; }
.cloud .head { height: 44%; top: 40%; border-radius: 48%; }

.controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(.35rem, 2vw, 1rem); padding: clamp(.5rem, 2vw, 1rem); margin-top: .55rem; border-top: 3px solid #2d438a; border-radius: 0 0 .93rem .93rem; background: linear-gradient(180deg,#fff4fc,#ffbee3); }
.controls p { text-align: center; font-size: clamp(.69rem,2vw,.84rem); font-weight: 750; color: #2d3b6b; margin: 0; }
.directions { display: flex; gap: .3rem; }
.directions button, .grab { border: 1px solid #293e84; border-radius: 50px; background: #fff7fc; font-weight: 800; box-shadow: 0 3px #4154a3; }
.directions button { padding: .16rem .52rem; line-height: 1.55; }
.grab { background: #fd83ba; padding: .36rem clamp(.48rem, 1.8vw, 1rem); white-space: nowrap; }
.grab span { margin-left: .2rem; }
.controls button:active { box-shadow: none; transform: translateY(3px); }

.projects > section { padding: clamp(2.5rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.projects > section:last-child { border: 0; }
.projects section > h2, .result section > h2 { margin-bottom: .55rem; }
.chapter { display: inline-block; font: 850 .77rem/1 var(--heading); letter-spacing: .08em; color: #2349a9; background: #e2eaff; padding: .44rem .6rem; margin-bottom: .55rem; border-radius: 100px; }
.contents { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: .85rem; }
.contents a { display: grid; height: 100%; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem; box-shadow: 0 2px 0 #e7e2dd; transition: transform .2s; }
.contents a:hover { transform: translateY(-4px); border-color: var(--blue); }
.contents strong, .contents small { display: block; }
.contents strong { margin-bottom: .24rem; }
.contents small { color: var(--muted); }
.project { padding-top: 1.65rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.project > h3, .feature h3 { margin-bottom: .5rem; }
.project > p + p { margin-top: .6rem; }
.lead { font-weight: 700; color: #2f519e; }
.flow, .recap { background: #ebf1ff; border: 1px solid #d3defa; border-radius: 1.25rem; padding: clamp(1rem, 3vw, 2rem); margin-top: 1.45rem; }
.flow h3, .recap h3 { color: #1e429d; }
.grid, .feature, .stills, .feed-media { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: .85rem; margin: .9rem 0 0; }
.feature { grid-template-columns: 1fr; gap: 1.2rem; }
.feature .stills { grid-template-columns: repeat(auto-fit,minmax(min(100%,165px),1fr)); }
.flow article, .feature article, .feed-card { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: .85rem; }
.flow details, .project details, .result details, #feed > details { margin-block: .55rem; }
summary { cursor: pointer; color: #2750a7; font-weight: 700; }
.flow ul { padding-left: 1.15rem; }
.flow li + li { margin-top: .35rem; }
.feed-card h4 { margin-bottom: .6rem; }
.feed-card p { margin-top: .55rem; }
.feed-card video, .feed-card img { display: block; width: 100%; height: clamp(220px,30vw,370px); object-fit: contain; background: #192244; border-radius: .7rem; }
.source-links { padding-left: 1.25rem; color: #284b9b; }
.gallery figure { min-width: 0; margin: 0; }
.gallery img { height: auto; border-radius: .65rem; }
.gallery figcaption { color: var(--muted); font-size: .84rem; margin-top: .35rem; }
.production-notes { border-left: 3px solid #e790b9; padding: .35rem 0 .35rem .9rem; margin-block: 1.2rem; }
.production-notes h4:not(:first-child), .production-notes p { margin-top: .55rem; }
.gallery-label { font-weight: 850; color: var(--ink); }
.recap { margin-top: 2.2rem; }
.metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 1rem 0; }
.metrics div { padding: clamp(.6rem,2.5vw,1.3rem); background: var(--paper); border-radius: .8rem; }
.metrics strong, .metrics span { display: block; }
.metrics strong { font: 900 clamp(1.15rem,4.8vw,3rem)/1.15 var(--heading); color: #2558c8; margin-bottom: .35rem; }
.recap ol { padding-left: 1.25rem; margin-bottom: 0; }
.recap li + li { margin-top: .4rem; }

dialog { width: min(1000px, calc(100% - 1.6rem)); max-height: 89dvh; overscroll-behavior: contain; padding: 0; border: 2px solid #1b285c; border-radius: 1.2rem; color: var(--ink); background: var(--paper); box-shadow: 7px 8px #f997c1; }
dialog::backdrop { background: #14214fb0; backdrop-filter: blur(4px); }
.dialog-bar { display: flex; justify-content: flex-end; position: sticky; inset-block-start: 0; padding: .6rem .8rem; z-index: 3; background: #fffaf3f5; border-bottom: 1px solid var(--line); }
.dialog-bar button { border: 1px solid #b87aa1; border-radius: 50px; padding: .3rem .75rem; background: #ffe8f4; font-weight: 800; }
.result { padding: clamp(.8rem,3.7vw,2.2rem); }
.result .about { color: var(--ink); border: 0; }
.result .about p { color: var(--muted); }
footer { background: #d9e7fc; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; }
footer a { font-size: .83rem; font-weight: 750; }

@media (max-width: 750px) {
  .contact-layout { grid-template-columns: 1fr; align-items: start; }
  .contact h1 { font-size: clamp(4.25rem,17vw,8rem); }
  .contact-side { display: grid; grid-template-columns: minmax(64px, .4fr) minmax(0,1fr); gap: .85rem; align-items: center; }
  .mascot-stage { height: 6rem; margin: 0; }
  .hero-mascot { --size: clamp(3.6rem,15vw,7rem); }
  .contact-side .about { border-top: 0; padding-top: 0; }
  .contents { grid-template-columns: 1fr; }
  .machine { box-shadow: 4px 5px 0 #5f78c7, 8px 10px 0 #162551; }
}
@media (max-width: 360px) {
  nav { font-size: .78rem; }
  .wrap { width: calc(100% - 1.3rem); }
  .mascot-stage { height: 4.3rem; }
  .prize-name { font-size: .61rem; }
  .bay, .marquee { margin-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
