/* Free AI Game Workshop v2 — loud, youthful, games first. Mobile first. */
:root {
  --grape: #2b0b5e;
  --grape-2: #4a1a9e;
  --ink: #160b33;
  --pink: #ff3ea5;
  --lime: #c6ff3d;
  --yellow: #ffe14d;
  --cyan: #14d9c5;
  --orange: #ffb000;
  --red: #ff4a2f;
  --white: #ffffff;
  --radius: 26px;
  --shadow: 0 6px 0 var(--ink);
  --font-d: 'Lilita One', 'ZCOOL KuaiLe', 'Noto Sans SC', system-ui, sans-serif;
  --font-b: 'Nunito', 'Noto Sans SC', system-ui, sans-serif;
}
:lang(zh-Hans) { --font-d: 'ZCOOL KuaiLe', 'Lilita One', 'Noto Sans SC', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.5; font-weight: 600;
  color: var(--white); background: var(--grape); overflow-x: hidden; padding-bottom: 82px;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.small { font-size: 14px; opacity: 0.85; }
.h2 { font-size: clamp(32px, 9vw, 54px); }
.h3 { font-size: 26px; }
.outline { text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: rgba(43, 11, 94, 0.88); backdrop-filter: blur(10px);
}
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.top__logo--edu { flex: none; display: grid; place-items: center; background: #fff; border-radius: 9px; padding: 5px 9px; }
.top__logo--edu img { display: block; height: 22px; width: auto; }
.top__logo--cv { flex: none; display: block; height: 30px; width: auto; }
.top__name { display: none; font-family: var(--font-d); font-weight: 400; font-size: 17px; white-space: nowrap; }
@media (min-width: 600px) { .top__name { display: block; } .top__logo--edu img { height: 26px; } .top__logo--cv { height: 36px; } }
.top__lang { border: 2px solid var(--ink); background: var(--lime); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 24px;
  border: 3px solid var(--ink); border-radius: 999px; font-family: var(--font-d); font-size: 20px; text-decoration: none;
  cursor: pointer; box-shadow: var(--shadow); color: var(--ink); background: var(--white);
  transition: transform 0.08s, box-shadow 0.08s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn--lime { background: var(--lime); }
.btn--pink { background: var(--pink); color: var(--white); }
.btn--yellow { background: var(--yellow); }
.btn--block { width: 100%; }
.btn--big { min-height: 64px; font-size: 24px; padding: 14px 30px; }
.chip { border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 900; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.chip--alt { background: var(--yellow); }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* ---------------------------------------------------------------- hero */
main { max-width: 1100px; margin: 0 auto; }
.hero { position: relative; padding: 26px 18px 8px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob--1 { width: 260px; height: 260px; background: var(--pink); right: -110px; top: -70px; opacity: 0.5; }
.blob--2 { width: 200px; height: 200px; background: var(--cyan); left: -110px; bottom: -60px; opacity: 0.3; }
.spark { position: absolute; color: var(--yellow); font-size: 26px; animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
.spark--1 { right: 22px; top: 92px; }
.spark--2 { right: 70px; top: 170px; font-size: 18px; color: var(--lime); animation-delay: 0.6s; }
.spark--3 { left: 10px; top: 34px; font-size: 16px; color: var(--pink); animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.6) rotate(40deg); opacity: 0.5; } }
.hero > * { position: relative; }
.kicker {
  display: inline-block; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 13px; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 8px; transform: rotate(-3deg); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.hero__title { font-size: clamp(46px, 13.5vw, 92px); margin-top: 14px; }
:lang(zh-Hans) .hero__title { font-size: clamp(42px, 11.5vw, 84px); line-height: 1.15; }
.hero__title span { display: block; }
.hero__title .l2 { color: var(--yellow); text-shadow: 4px 4px 0 var(--pink); }
.hero__lead { margin-top: 12px; font-size: 18px; max-width: 30em; opacity: 0.92; }
.strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.strip span { border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); padding: 4px 12px; font-weight: 900; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.strip span:first-child { background: var(--pink); color: var(--white); font-family: var(--font-d); font-weight: 400; font-size: 17px; }

/* ---------------------------------------------------------------- game cards */
.games { padding: 26px 14px 40px; }
.games__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.gcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px;
  margin-top: 54px; padding: 0 12px 12px; border: 3px solid var(--ink); border-radius: var(--radius);
  background: var(--gc); box-shadow: 0 7px 0 var(--ink); color: var(--white); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform 0.12s;
}
.gcard:active { transform: translateY(4px) rotate(-1deg); box-shadow: 0 3px 0 var(--ink); }
.gcard__scene { position: absolute; inset: 0; border-radius: calc(var(--radius) - 3px); overflow: hidden; }
.gcard__scene img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; mix-blend-mode: luminosity; }
.gcard__scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--gc) 78%); }
.gcard__hero {
  position: absolute; left: 50%; top: -56px; width: 76%; max-height: 190px; object-fit: contain; transform: translateX(-50%);
  filter: drop-shadow(0 10px 8px rgba(22, 11, 51, 0.45)); animation: hop 2.4s ease-in-out infinite;
}
.gcard:nth-child(2) .gcard__hero { animation-delay: 0.3s; }
.gcard:nth-child(3) .gcard__hero { animation-delay: 0.6s; }
.gcard:nth-child(4) .gcard__hero { animation-delay: 0.9s; }
@keyframes hop { 0%, 100% { transform: translateX(-50%) translateY(0) scale(1, 1); } 40% { transform: translateX(-50%) translateY(-10px) scale(0.98, 1.03); } 55% { transform: translateX(-50%) translateY(0) scale(1.03, 0.97); } }
.gcard__tag {
  position: relative; align-self: flex-start; background: var(--white); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 8px; padding: 2px 8px; font-weight: 900; font-size: 12px; transform: rotate(-3deg); margin-bottom: 6px;
}
.gcard__title { position: relative; font-family: var(--font-d); font-size: clamp(21px, 5.8vw, 30px); line-height: 1.05; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
.gcard__play {
  position: relative; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 10px;
  font-family: var(--font-d); font-size: 18px; box-shadow: 0 3px 0 var(--ink);
}

/* ---------------------------------------------------------------- coloured sections */
.sec { padding: 46px 18px; color: var(--ink); }
.sec--lime { background: var(--lime); }
.sec--pink { background: var(--pink); color: var(--white); }
.sec--yellow { background: var(--yellow); }
.sec--grape { background: var(--grape); color: var(--white); }
.sec .lead { margin-top: 10px; font-size: 17px; font-weight: 700; max-width: 34em; }

/* doodle → hero pairs */
.pairs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 22px -18px 0; padding: 6px 18px 14px; scrollbar-width: none; }
.pairs::-webkit-scrollbar { display: none; }
.pair { flex: 0 0 74%; max-width: 300px; scroll-snap-align: center; position: relative; height: 230px; }
.pair__doodle {
  position: absolute; left: 0; top: 0; width: 62%; aspect-ratio: 1; object-fit: cover; background: #fff;
  border: 3px solid var(--ink); padding: 6px; transform: rotate(-6deg); box-shadow: 5px 6px 0 var(--ink);
}
.pair__hero { position: absolute; right: 0; bottom: 0; width: 58%; max-height: 200px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(22, 11, 51, 0.35)); }
.pair__arrow { position: absolute; left: 50%; top: 38%; font-family: var(--font-d); font-size: 34px; color: var(--pink); text-shadow: 2px 2px 0 var(--ink); }
.pair__name { position: absolute; right: 6px; top: 6px; background: var(--ink); color: var(--lime); font-family: var(--font-d); padding: 2px 10px; border-radius: 999px; font-size: 16px; }
.more { margin-top: 10px; font-weight: 800; }

/* two ways in */
.paths { display: grid; gap: 22px; margin-top: 24px; max-width: 680px; }
.path { position: relative; border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px 18px 18px; box-shadow: 0 7px 0 var(--ink); }
.path--free { background: var(--white); color: var(--ink); }
.path__tag { position: absolute; top: -14px; left: 16px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px; font-weight: 900; font-size: 13px; transform: rotate(-2deg); }
.path h3 { font-size: 30px; }
.when { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.when span { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 3px 10px; font-weight: 900; font-size: 14px; }
.when span:first-child { background: var(--pink); color: var(--white); }
.ways { font-weight: 800; margin-top: 4px; }
.opts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.opts li { display: flex; gap: 10px; align-items: center; background: #f4efff; border-radius: 14px; padding: 8px 12px; font-weight: 800; }
.opts li b { font-size: 22px; }
.need { margin-top: 12px; background: var(--ink); color: var(--lime); border-radius: 14px; padding: 10px 12px; font-weight: 900; }
.take { margin-top: 14px; }
.take h4 { margin: 0 0 6px; font-family: var(--font-d); font-weight: 400; font-size: 20px; }
.path .btn { margin-top: 16px; }

/* info: timeline + team + faq */
.info { display: grid; gap: 30px; }
.tl { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.tl li { display: flex; gap: 12px; align-items: center; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); font-weight: 800; }
.tl b { font-family: var(--font-d); font-weight: 400; font-size: 20px; background: var(--pink); color: var(--white); border-radius: 10px; padding: 2px 8px; border: 2px solid var(--ink); flex: none; }
.team { display: grid; gap: 12px; margin-top: 14px; }
.person { display: flex; gap: 14px; align-items: center; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; padding: 12px; box-shadow: 0 4px 0 var(--ink); }
.person__photo { flex: none; width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; display: grid; place-items: center; color: #fff; font-family: var(--font-d); font-size: 36px; }
.person h3 { font-size: 24px; }
.person__role { font-weight: 900; color: var(--pink); font-size: 14px; }
.person p { font-size: 14px; font-weight: 700; margin-top: 2px; }
.linky { display: inline-block; margin-top: 12px; font-weight: 900; }
.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { font-weight: 900; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-d); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 8px; font-weight: 700; }

/* how to sign up: a note (a ticket stub), deliberately NOT a button, because there is nothing to click */
.regnote { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; background: var(--lime); color: var(--ink); border: 3px dashed var(--ink); border-radius: 16px; text-align: left; line-height: 1.25; }
.regnote b { font-family: var(--font-d); font-weight: 400; font-size: 18px; }
.regnote__ico { flex: none; font-size: 26px; line-height: 1; }
.regnote--big { display: inline-flex; padding: 16px 20px; transform: rotate(-1.5deg); box-shadow: 0 5px 0 var(--ink); }
.regnote--big b { font-size: clamp(20px, 5.6vw, 26px); }
.path .regnote { margin-top: 16px; }
.final { text-align: center; }
.final p { margin: 10px 0 22px; font-size: 18px; font-weight: 800; color: var(--lime); }
.foot { text-align: center; padding: 22px 16px 30px; font-size: 14px; opacity: 0.8; }

/* sticky bar */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 3px solid var(--lime);
  transform: translateY(110%); transition: transform 0.25s;
}
.sticky.on { transform: none; }
.sticky__info { display: flex; flex-direction: column; line-height: 1.15; }
.sticky__info b { font-family: var(--font-d); font-weight: 400; font-size: 21px; color: var(--lime); }
.sticky__info span { font-weight: 800; font-size: 13px; white-space: nowrap; }
.sticky__how { background: var(--lime); color: var(--ink); border: 2px dashed var(--ink); border-radius: 12px; padding: 7px 12px; font-family: var(--font-d); font-size: 16px; line-height: 1.15; text-align: center; text-wrap: balance; max-width: 190px; }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(12, 6, 30, 0.92); display: flex; align-items: stretch; justify-content: center; }
body.locked { overflow: hidden; }
.x { position: absolute; top: 12px; right: 12px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.arcade__box {
  position: relative; width: 100%; max-width: 520px; background: var(--grape); overflow-y: auto;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
}
@media (min-width: 600px) {
  .overlay { align-items: center; }
  .arcade__box { border-radius: 26px; max-height: 94dvh; border: 3px solid var(--ink); }
}
.ascreen { display: grid; gap: 12px; }
.acover { position: relative; height: 230px; margin: -18px -16px 34px; background: var(--gc) center/cover; border-bottom: 3px solid var(--ink); }
.acover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--gc)); }
.acover img { position: absolute; left: 50%; bottom: -30px; height: 210px; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.4)); animation: hop 2.2s ease-in-out infinite; }
.atag { justify-self: start; background: var(--gc); color: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px; font-weight: 900; font-size: 13px; transform: rotate(-2deg); }
.atitle { font-size: 38px; color: var(--yellow); }
.apitch { font-size: 17px; font-weight: 700; }
.ahow { background: rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 10px 12px; font-weight: 800; }
.field { display: grid; gap: 4px; font-weight: 900; }
.field input { font: inherit; font-size: 20px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); }
.ascreen--play { position: relative; margin: -18px -16px -20px; }
.ascreen--play canvas { display: block; width: 100%; height: 100vh; height: 100dvh; touch-action: none; background: #87d3f8; }
@media (min-width: 600px) { .ascreen--play canvas { height: min(90dvh, 820px); border-radius: 22px; } }
.mute { position: absolute; top: 12px; right: 62px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.acard { width: 78%; height: auto; margin: 0 auto; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.ok { color: var(--lime); font-weight: 900; text-align: center; }
.awhy { margin: 0; color: #fff; font-weight: 800; text-align: center; font-size: 14px; line-height: 1.35; opacity: 0.9; }
/* the one-line verdict after a game: what your score did for the wish / dare / greeting */
.aout { margin: 0 46px 0 0; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
  padding: 10px 14px; font-family: var(--font-d); font-size: 19px; line-height: 1.25; text-align: center; text-wrap: balance; transform: rotate(-1deg); animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
:lang(zh-Hans) .aout { font-size: 18px; line-height: 1.35; }
.aout:empty { display: none; }
@keyframes pop { from { transform: scale(0.6) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(-1deg); opacity: 1; } }
.awhy:empty { display: none; }
.warn { color: var(--yellow); font-weight: 900; }

/* draw-your-own taster */

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 760px) {
  .hero { padding: 50px 30px 10px; }
  .games { padding: 30px 24px 56px; }
  .games__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .gcard { min-height: 300px; }
  .gcard__hero { max-height: 220px; top: -64px; }
  .sec { padding: 64px 30px; }
  .info { grid-template-columns: 1fr 1fr; }
  .info > :last-child { grid-column: 1 / -1; }
  .pair { flex-basis: 260px; }
  .sticky { display: none; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
