:root {
  --pink: #df326d;
  --pink-dark: #b5204f;
  --pink-soft: #fde4ee;
  --lilac: #f3e6f7;
  --ink: #4a2338;
  --ink-soft: #7a5468;
  --card: #ffffff;
  --line: #f1c7d8;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: #fff7fb;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: "Comfortaa", "Nunito", sans-serif; line-height: 1.2; margin: 0 0 .5em; }

/* Only the chosen language shows. */
html[data-lang="ru"] [lang="en"], html[data-lang="en"] [lang="ru"] { display: none !important; }

/* Things to replace before publishing stand out; remove the class once filled in. */
.todo { outline: 2px dashed #f0a; outline-offset: 3px; border-radius: 6px; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(255, 247, 251, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pink); font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 12px; box-shadow: 0 3px 10px rgba(223, 50, 109, .25); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.menu a:hover { background: var(--pink-soft); color: var(--pink-dark); }
.langs { display: flex; border: 2px solid var(--pink); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: transparent; color: var(--pink); font: 800 .85rem "Nunito", sans-serif; padding: 6px 12px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--pink); color: #fff; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(16px, 4vw, 56px);
  padding: clamp(28px, 6vw, 80px) clamp(16px, 6vw, 80px);
  background: radial-gradient(ellipse at 30% 40%, #ffe3ee 0%, rgba(255, 227, 238, 0) 60%), #fff;
}
.hero-logo img { width: 100%; max-width: 520px; margin: 0 auto; }
.tag { display: inline-block; background: var(--pink-soft); color: var(--pink-dark); font-weight: 800; padding: 6px 14px; border-radius: 999px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); color: var(--pink); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 800; text-decoration: none;
  border: 2px solid var(--pink); transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--pink); color: #fff; box-shadow: 0 6px 18px rgba(223, 50, 109, .3); }
.btn.primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn.ghost { color: var(--pink); background: #fff; }
.btn.ghost:hover { background: var(--pink-soft); }

.block { padding: clamp(40px, 7vw, 90px) clamp(16px, 6vw, 80px); }
.block.alt { background: linear-gradient(180deg, var(--lilac), #fff0f6); }
.block > h2 { text-align: center; font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--pink); margin-bottom: 1.2em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; max-width: 1150px; margin: 0 auto; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ico { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--pink-soft); border-radius: 16px; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; color: var(--pink-dark); }
.card p { margin: 0; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1150px; margin: 0 auto; }
.gallery figure { margin: 0; }
.shot { padding: 0; border: 3px solid #fff; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: none; box-shadow: 0 8px 22px rgba(120, 30, 70, .15); width: 100%; transition: transform .15s; }
.shot:hover { transform: scale(1.02); }
.shot img { width: 100%; aspect-ratio: 17 / 10; object-fit: cover; }
.gallery figcaption { text-align: center; font-weight: 700; margin-top: 10px; color: var(--ink-soft); }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.dl { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.dl.main-dl { border-color: var(--pink); }
.dl h3 { color: var(--pink); font-size: 1.5rem; }
.dl .meta { color: var(--ink-soft); margin: 0 0 10px; font-weight: 600; }
.dl ul { padding-left: 1.2em; margin: 0 0 18px; color: var(--ink-soft); }
.dl .btn { margin-top: auto; align-self: flex-start; }
.install { max-width: 900px; margin: 34px auto 0; background: var(--pink-soft); border-radius: var(--radius); padding: 22px 26px; }
.install h3 { color: var(--pink-dark); }
.install ol { margin: 0; padding-left: 1.3em; }
.install li { margin: 6px 0; }

.sub { text-align: center; color: var(--pink-dark); margin: 10px 0 18px; }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 34px; }
.person { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 18px; width: 210px; text-align: center; }
.people.small .person { width: 160px; padding: 16px 12px; }
.avatar { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #ff8fb5, var(--pink)); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.people.small .avatar { width: 60px; height: 60px; font-size: 1.4rem; }
.person h4 { margin: 0 0 4px; font-size: 1.05rem; }
.person p { margin: 0; color: var(--ink-soft); }
.thanks { text-align: center; font-weight: 700; color: var(--pink-dark); }

.foot { text-align: center; padding: 28px 16px; color: var(--ink-soft); font-size: .92rem; border-top: 1px solid var(--line); background: #fff; }
.foot p { margin: 6px auto; max-width: 46em; }
.avatar.photo { background: #fff; border: 3px solid var(--pink); }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); transition: transform .15s, background .15s; }
.socials a:hover { transform: translateY(-3px); background: var(--pink-dark); }
.socials svg { width: 24px; height: 24px; fill: #fff; }
.socials.small { gap: 10px; margin-top: 12px; }
.socials.small a { width: 36px; height: 36px; }
.socials.small svg { width: 18px; height: 18px; }

.viewer { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.viewer::backdrop { background: rgba(40, 10, 25, .8); }
.viewer img { border-radius: 14px; max-height: 88vh; width: auto; }
.viewer { overflow: visible; }
.viewer img { transition: opacity .2s ease, transform .25s ease; }
.viewer img.leaving-left { opacity: 0; transform: translateX(-30px); }
.viewer img.leaving-right { opacity: 0; transform: translateX(30px); }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--pink); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(40, 10, 25, .3); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s; z-index: 2; }
.viewer .nav:hover { background: #fff; transform: translateY(-50%) scale(1.12); }
.viewer .prev { left: 10px; }
.viewer .next { right: 10px; }
.viewer-caption { position: absolute; left: 0; right: 0; bottom: -40px; margin: 0; text-align: center; color: #fff; font-weight: 700; }
.viewer .close { z-index: 3; }
.viewer .close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--pink); font-size: 1.6rem; cursor: pointer; }

/* The hero holds only the title logo and text now, centred. */
.hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero .lead { margin: 0 auto; }
.hero .cta { justify-content: center; }
.hero h1.title-logo { max-width: 680px; width: 100%; margin: 0 auto .4em; }

/* ---------- "What the mod adds": a numbered list ---------- */
.feature-list { list-style: none; counter-reset: feature; max-width: 980px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px 22px; }
.feature-list li { counter-increment: feature; position: relative; display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px 14px 14px; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, border-color .35s, opacity .7s cubic-bezier(.22, 1, .36, 1); }
.feature-list li::after { content: counter(feature, decimal-leading-zero); position: absolute; top: 8px; right: 14px; font: 700 .8rem "Comfortaa", sans-serif; color: #f3a9c4; }
.feature-list li:hover { transform: translateX(6px); border-color: #f39bbd; box-shadow: 0 10px 24px rgba(223, 50, 109, .14); }
.js .feature-list li.reveal.shown:hover { transform: translateX(6px); }
.feature-list .ico { flex: none; width: 50px; height: 50px; display: grid; place-items: center; font-size: 1.55rem; border-radius: 15px; background: linear-gradient(135deg, var(--pink-soft), #f3e6f7); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); animation: hop 6s ease-in-out infinite; animation-delay: var(--hop, 0s); }
.feature-list li:hover .ico { transform: scale(1.15) rotate(-8deg); }
.feature-list li div { display: grid; gap: 2px; padding-right: 20px; }
.feature-list b { font-family: "Comfortaa", sans-serif; color: var(--pink-dark); font-size: 1.02rem; }
.feature-list li div > span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Screenshot slider: one frame, arrows, dots ---------- */
.carousel { position: relative; max-width: 940px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.carousel-window { flex: 1; overflow: hidden; border-radius: 22px; padding: 6px 0 4px; }
.carousel .gallery { display: flex; grid-template-columns: none; gap: 0; max-width: none; margin: 0; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.carousel .gallery figure { flex: 0 0 100%; padding: 0 6px; }
.carousel .gallery figure.reveal { opacity: 1; transform: none; }
.carousel .shot:hover { transform: none; }
.carousel .shot img { aspect-ratio: 1715 / 1009; }
.carousel .gallery figcaption { font-size: 1.05rem; transition: opacity .4s; }
.slide-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; font-size: 2.2rem; line-height: 1; color: #fff; background: linear-gradient(135deg, #ff8fb5, var(--pink)); box-shadow: 0 6px 16px rgba(223, 50, 109, .3); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.slide-arrow:hover { transform: scale(1.12); }
.slide-arrow:active { transform: scale(.92); }
.slide-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.slide-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: #f1c7d8; cursor: pointer; transition: width .35s cubic-bezier(.34, 1.56, .64, 1), background .3s; }
.slide-dots button[aria-selected="true"] { width: 34px; background: var(--pink); }
@media (max-width: 760px) {
  .carousel { gap: 0; }
  .slide-arrow { position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; font-size: 1.7rem; }
  .slide-prev { left: 4px; }
  .slide-next { right: 4px; }
}

/* ---------- Release countdown and "soon" ---------- */
.countdown { background: var(--pink-soft); border-radius: 18px; padding: 14px 12px 12px; margin: 0 0 18px; text-align: center; }
.countdown-title { margin: 0 0 8px; font-weight: 800; color: var(--pink-dark); }
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown .unit { background: #fff; border-radius: 14px; padding: 8px 4px 6px; box-shadow: 0 4px 12px rgba(223, 50, 109, .12); display: grid; }
.countdown .unit b { font: 700 clamp(1.4rem, 3.4vw, 1.9rem) "Comfortaa", sans-serif; color: var(--pink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown .unit b.tick { animation: tick .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.countdown .unit > span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.countdown-done { margin: 0; font-weight: 800; color: var(--pink-dark); font-size: 1.1rem; }
.soon-card { position: relative; }
.soon-badge { position: absolute; top: 18px; right: 18px; background: linear-gradient(90deg, #b9a4ff, var(--pink)); color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; animation: pulse-soon 2.4s ease-in-out infinite; }
@keyframes pulse-soon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.btn.disabled { opacity: .55; cursor: default; pointer-events: none; animation: none; }

.testers-soon { position: relative; max-width: 560px; margin: 0 auto 30px; background: var(--card); border: 2px dashed #f39bbd; border-radius: var(--radius); padding: 26px 24px 22px; text-align: center; }
.testers-soon p { margin: 8px 0 0; font-weight: 700; color: var(--ink-soft); font-size: 1.05rem; }
.testers-soon .soon-badge { top: -14px; right: 20px; }
.testers-soon .bug { display: inline-block; font-size: 2.2rem; animation: crawl 4s ease-in-out infinite; }
@keyframes crawl { 0%, 100% { transform: translateX(-28px) rotate(-12deg); } 25% { transform: translateX(0) rotate(8deg); } 50% { transform: translateX(28px) rotate(-6deg); } 75% { transform: translateX(0) rotate(10deg); } }

/* ---------- About the mod ---------- */
.about { max-width: 780px; margin: 0 auto; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); font-size: 1.08rem; }
.about p { margin: 0 0 1em; color: var(--ink); }
.about b { color: var(--pink-dark); }
.about .note { background: var(--pink-soft); border-radius: 14px; padding: 12px 16px; font-size: .95rem; color: var(--ink-soft); }
.about .follow { text-align: center; font-weight: 700; margin: 1.4em 0 0; }

/* ---------- Online counter ---------- */
.online { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.menu + .online { margin-left: 4px; }
.online + .theme-toggle, .menu + .theme-toggle { margin-left: 4px; }
.online b { color: var(--pink-dark); }
.online .dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); } 100% { box-shadow: 0 0 0 9px rgba(47, 191, 113, 0); } }
.online b.bump { animation: bump .4s cubic-bezier(.34, 1.56, .64, 1); display: inline-block; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* ---------- Reviews ---------- */
.reviews-summary { text-align: center; color: var(--ink-soft); font-weight: 700; margin: -1em 0 1.6em; min-height: 1.4em; }
.reviews-summary .stars { color: #ffb400; letter-spacing: 2px; }
.review-form { max-width: 720px; margin: 0 auto 34px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.me { display: flex; align-items: center; gap: 14px; }
.badge { display: inline-block; background: linear-gradient(90deg, var(--pink), #ff7aa8); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; }
.me-line { margin-top: 4px; color: var(--ink-soft); font-weight: 600; }
.me-number { color: var(--pink-dark); }
.link-btn { border: 0; background: none; color: var(--pink); font: 700 .85rem "Nunito", sans-serif; cursor: pointer; text-decoration: underline; padding: 0 0 0 6px; }
.field { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.field input, .field textarea { font: 1rem "Nunito", sans-serif; color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; background: #fffafc; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(223, 50, 109, .12); }
.stars-input { display: flex; gap: 4px; }
.stars-input button { border: 0; background: none; font-size: 2rem; line-height: 1; color: #f0d4df; cursor: pointer; padding: 0 2px; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), color .2s; }
.stars-input button.on { color: #ffb400; }
.stars-input button:hover { transform: scale(1.25) rotate(-8deg); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-end { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.form-end .btn { cursor: pointer; font-family: "Nunito", sans-serif; font-size: 1rem; }
.form-end .btn:disabled { opacity: .6; cursor: wait; }
.form-note { margin: 0; font-weight: 700; }
.form-note.ok { color: #1f9d5a; }
.form-note.bad { color: var(--pink-dark); }
.hint { margin: 0; font-size: .88rem; color: var(--ink-soft); }

.review-list { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.review { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.review.fresh { animation: arrive .7s cubic-bezier(.34, 1.56, .64, 1); border-color: var(--pink); }
@keyframes arrive { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.review .gamer-avatar { grid-row: span 3; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.review-name { font-weight: 800; color: var(--ink); }
.review-number { color: var(--ink-soft); font-weight: 700; font-size: .88rem; }
.review-stars { color: #ffb400; letter-spacing: 1px; }
.review-time { color: var(--ink-soft); font-size: .82rem; margin-left: auto; }
.review-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.empty { text-align: center; color: var(--ink-soft); font-weight: 600; }

/* The ChibiChu gamer avatars: eight colourful little faces. */
.gamer-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08); }
.gamer-avatar.big { width: 64px; height: 64px; font-size: 2rem; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.gamer-avatar.big.spin { transform: rotate(360deg) scale(1.1); }
.gamer-avatar[data-avatar="0"] { background: linear-gradient(135deg, #ff8fb5, #df326d); }
.gamer-avatar[data-avatar="1"] { background: linear-gradient(135deg, #b9a4ff, #7b5cff); }
.gamer-avatar[data-avatar="2"] { background: linear-gradient(135deg, #8fe3ff, #2f9bd6); }
.gamer-avatar[data-avatar="3"] { background: linear-gradient(135deg, #ffd27a, #ff9a3c); }
.gamer-avatar[data-avatar="4"] { background: linear-gradient(135deg, #9ff0c0, #2fbf71); }
.gamer-avatar[data-avatar="5"] { background: linear-gradient(135deg, #ffb3d9, #c03a8a); }
.gamer-avatar[data-avatar="6"] { background: linear-gradient(135deg, #ffcfb3, #f06a6a); }
.gamer-avatar[data-avatar="7"] { background: linear-gradient(135deg, #d6c2ff, #df326d); }

@media (max-width: 760px) {
  .online, .menu + .online { padding: 3px 9px; font-size: .8rem; margin-left: auto; }
  .online + .theme-toggle, .theme-toggle + .langs { margin-left: 8px; }
  .theme-toggle { width: 50px; height: 26px; }
  .theme-toggle::before { width: 18px; height: 18px; }
  html[data-theme="dark"] .theme-toggle::before { transform: translateX(24px); }
  .online [lang] { display: none !important; }
  .review { grid-template-columns: 1fr; }
  .review .gamer-avatar { grid-row: auto; }
  .review-time { margin-left: 0; }
}

/* ---------- Animations ---------- */

/* Sections, cards and photos rise in softly as they scroll into view (only when script runs, so nothing hides without it). */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--delay, 0s); }
.js .reveal.shown { opacity: 1; transform: none; }

/* Hero: text slides in, the logo floats, sparkles drift in the background. */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero-text > * { animation: rise .9s cubic-bezier(.22, 1, .36, 1) both; }
.hero-text > :nth-child(1) { animation-delay: .15s; }
.hero-text > :nth-child(2) { animation-delay: .3s; }
.hero-text > :nth-child(3) { animation-delay: .45s; }
.hero-text > :nth-child(4) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-logo img { animation: bob 5s ease-in-out 3s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.sparkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sparkles span { position: absolute; color: var(--pink); opacity: 0; font-size: var(--size, 18px); animation: twinkle var(--time, 6s) ease-in-out var(--wait, 0s) infinite; }
@keyframes twinkle {
  0% { opacity: 0; transform: translateY(20px) scale(.5) rotate(0); }
  30% { opacity: .55; }
  70% { opacity: .35; }
  100% { opacity: 0; transform: translateY(-60px) scale(1.1) rotate(90deg); }
}

/* Title gradient that slowly shifts. */
.hero h1 { background: linear-gradient(90deg, var(--pink), #ff7aa8, #c03a8a, var(--pink)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s cubic-bezier(.22, 1, .36, 1) .3s both, shimmer 8s linear 1.2s infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }

/* Buttons: a light sweep on hover. */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:hover::after { left: 130%; }
.btn.primary { animation: pulse 2.8s ease-in-out 1.5s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 18px rgba(223, 50, 109, .3); } 50% { box-shadow: 0 6px 28px rgba(223, 50, 109, .55); } }

/* Header gains a shadow once the page is scrolled. */
.top { transition: box-shadow .3s, background .3s; }
.top.scrolled { box-shadow: 0 6px 20px rgba(120, 30, 70, .1); background: rgba(255, 255, 255, .95); }
.menu a { position: relative; transition: background .2s, color .2s; }

/* Cards lift and their icon bounces. */
.card, .dl, .person { transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, border-color .35s, opacity .7s cubic-bezier(.22, 1, .36, 1); }
.card:hover, .dl:hover, .person:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(223, 50, 109, .16); border-color: #f39bbd; }
.card .ico { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.card:hover .ico { transform: scale(1.15) rotate(-8deg); }
.js .card.reveal.shown:hover, .js .dl.reveal.shown:hover, .js .person.reveal.shown:hover { transform: translateY(-6px); }

/* Team photos: a soft glowing ring and a little wiggle on hover. */
.avatar { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s; }
.person:hover .avatar { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 6px rgba(223, 50, 109, .15); }
.socials a { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.socials a:hover { transform: translateY(-3px) scale(1.12); }

/* Screenshots zoom gently; the large view fades and grows in. */
.shot { transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s; }
.shot img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.shot:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(120, 30, 70, .22); }
.shot:hover img { transform: scale(1.05); }
.viewer[open] { animation: pop .35s cubic-bezier(.34, 1.56, .64, 1); }
.viewer[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Switching language fades the text over. */
main, .foot, .menu { transition: opacity .25s ease; }
.switching main, .switching .foot, .switching .menu { opacity: 0; }

/* The title logo: only its lettering is shown (the picture has wide empty margins), and it sways a little. */
.hero h1.title-logo { background: none; color: inherit; max-width: 560px; margin: 0 0 .4em; animation: rise .9s cubic-bezier(.22, 1, .36, 1) .3s both; }
/* Nothing is clipped: the picture's empty space above and below is taken back with negative margins instead. */
.title-logo .crop { display: block; position: relative; overflow: visible; padding: 0 2%; }
.title-logo img { display: block; width: 100%; margin: -9% 0 -12.5%; transform-origin: 50% 55%; animation: sway 6s ease-in-out 1.5s infinite; filter: drop-shadow(0 8px 14px rgba(223, 50, 109, .18)); }
@keyframes sway { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-1.2deg) scale(1.02); } }

/* ---------- Cute details ---------- */

/* Little stars that twinkle on both sides of every section title. */
.block > h2::before, .block > h2::after { content: "✦"; display: inline-block; font-size: .55em; color: #ff8fb5; vertical-align: middle; margin: 0 .5em; animation: title-star 2.4s ease-in-out infinite; }
.block > h2::after { content: "♡"; color: #b9a4ff; animation-delay: 1.2s; }
@keyframes title-star { 0%, 100% { transform: scale(.8) rotate(0); opacity: .6; } 50% { transform: scale(1.25) rotate(20deg); opacity: 1; } }

/* Soft shapes drifting in the background of the tinted sections. */
.block.alt { position: relative; overflow: hidden; }
.block.alt > * { position: relative; z-index: 1; }
.block.alt::before, .block.alt::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.block.alt::before { width: 220px; height: 220px; left: -60px; top: 12%; background: radial-gradient(circle, #ffc4da, transparent 70%); animation: drift 14s ease-in-out infinite; }
.block.alt::after { width: 280px; height: 280px; right: -80px; bottom: 6%; background: radial-gradient(circle, #dccfff, transparent 70%); animation: drift 18s ease-in-out -6s infinite reverse; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.15); } }

/* Feature icons now and then do a little hop, each at its own moment. */
.card .ico { animation: hop 6s ease-in-out infinite; animation-delay: var(--hop, 0s); }
@keyframes hop { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-7px) rotate(-8deg); } 94% { transform: translateY(0) rotate(6deg); } 97% { transform: translateY(-2px) rotate(0); } }

/* Team photos breathe gently. */
.avatar.photo { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(223, 50, 109, .25); } 50% { box-shadow: 0 0 0 8px rgba(223, 50, 109, 0); } }

/* Hearts and stars that follow the mouse, and a burst where you click. */
.trail, .burst { position: fixed; z-index: 50; pointer-events: none; font-size: var(--s, 14px); color: var(--c, var(--pink)); left: 0; top: 0; will-change: transform, opacity; }
.trail { animation: trail .9s ease-out forwards; }
@keyframes trail { from { opacity: .9; transform: translate(var(--x), var(--y)) scale(1); } to { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + 30px)) scale(.3) rotate(120deg); } }
.burst { animation: burst .8s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes burst { from { opacity: 1; transform: translate(var(--x), var(--y)) scale(.4); } to { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1.1) rotate(var(--r)); } }

/* "Back to top": a paw that hops up into view once you scroll down. */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; background: linear-gradient(135deg, #ff8fb5, var(--pink)); color: #fff; box-shadow: 0 8px 20px rgba(223, 50, 109, .35); opacity: 0; transform: translateY(30px) scale(.6); transition: opacity .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.to-top.show { opacity: 1; transform: none; }
.to-top.show:hover { transform: translateY(-4px) rotate(-10deg) scale(1.08); }
.to-top span { display: inline-block; animation: paw 2.6s ease-in-out infinite; }
@keyframes paw { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-18deg); } 86% { transform: rotate(14deg); } 94% { transform: rotate(-6deg); } }

/* A kitty peeks over the edge of the download card and waves. */
.main-dl { position: relative; }
.peek { position: absolute; top: -34px; right: 26px; font-size: 2.1rem; animation: peek 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes peek { 0%, 100% { transform: translateY(14px); } 20%, 70% { transform: translateY(0); } 30% { transform: rotate(-10deg); } 40% { transform: rotate(10deg); } 50% { transform: rotate(0); } }
.main-dl { overflow: visible; }

@media (hover: none) { .trail { display: none; } }

/* ---------- Space: stars over the whole site ---------- */
.space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* ---------- Theme switch ---------- */
.theme-toggle { position: relative; flex: none; width: 58px; height: 30px; border-radius: 999px; border: 2px solid var(--pink); background: #fff; cursor: pointer; padding: 0; overflow: hidden; }
.theme-toggle::before { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffd27a, #ff9a3c); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .4s; }
.theme-toggle span { position: absolute; top: 50%; font-size: .8rem; line-height: 1; transform: translateY(-50%); transition: opacity .3s; }
.theme-toggle .sun { left: 6px; opacity: 0; }
.theme-toggle .moon { right: 6px; }
html[data-theme="dark"] .theme-toggle::before { transform: translateX(28px); background: linear-gradient(135deg, #d6c2ff, #7b5cff); }
html[data-theme="dark"] .theme-toggle .sun { opacity: 1; }
html[data-theme="dark"] .theme-toggle .moon { opacity: 0; }

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  --pink: #ff5c93;
  --pink-dark: #ff8fb5;
  --pink-soft: #3a2236;
  --lilac: #241a31;
  --ink: #f6e7ef;
  --ink-soft: #c8a9bb;
  --card: #2a1c2e;
  --line: #4b2e47;
  color-scheme: dark;
}
html[data-theme="dark"] body { background: #1a1220; }
html[data-theme="dark"] .top { background: rgba(26, 18, 32, .88); }
html[data-theme="dark"] .top.scrolled { background: rgba(26, 18, 32, .96); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .hero { background: radial-gradient(ellipse at 50% 40%, #3b1e36 0%, rgba(59, 30, 54, 0) 65%), #1a1220; }
html[data-theme="dark"] .block.alt { background: linear-gradient(180deg, #221829, #1f1424); }
html[data-theme="dark"] .block.alt::before { background: radial-gradient(circle, #5a2a4c, transparent 70%); }
html[data-theme="dark"] .block.alt::after { background: radial-gradient(circle, #3a2c66, transparent 70%); }
html[data-theme="dark"] .foot,
html[data-theme="dark"] .online,
html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .countdown .unit { background: #2a1c2e; }
html[data-theme="dark"] .btn.ghost:hover { background: #3a2236; }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea { background: #22172a; }
html[data-theme="dark"] .stars-input button { color: #5a3a52; }
html[data-theme="dark"] .stars-input button.on { color: #ffb400; }
html[data-theme="dark"] .shot { border-color: #3a2638; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .feature-list .ico { background: linear-gradient(135deg, #3a2236, #2d2140); }
html[data-theme="dark"] .feature-list li::after { color: #7a4a68; }
html[data-theme="dark"] .avatar.photo { background: #2a1c2e; }
html[data-theme="dark"] .card:hover, html[data-theme="dark"] .dl:hover, html[data-theme="dark"] .person:hover, html[data-theme="dark"] .feature-list li:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .title-logo img { filter: drop-shadow(0 8px 18px rgba(255, 92, 147, .25)); }
html[data-theme="dark"] .viewer .nav, html[data-theme="dark"] .viewer .close { background: #2a1c2e; }

/* The whole page fades between the themes. */
html.theme-fade, html.theme-fade * { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }

@media (prefers-reduced-motion: reduce) {
  .trail, .burst { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 { color: var(--pink); background: none; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-logo img { max-width: 320px; }
  .lead { margin: 0 auto; }
  .hero h1.title-logo { margin: 0 auto .4em; }
  .cta { justify-content: center; }
  .menu { display: none; }
  .langs { margin-left: auto; }
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Phones: the top bar ---------- */
/* Placed last so it wins over the earlier rules for the same parts. */
@media (max-width: 760px) {
  .top { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .theme-toggle { width: 50px; height: 26px; }
  .theme-toggle::before { width: 18px; height: 18px; }
  html[data-theme="dark"] .theme-toggle::before { transform: translateX(24px); }
  .online + .theme-toggle, .theme-toggle + .langs { margin-left: 0; }
  .langs button { padding: 5px 9px; }
}
/* On a narrow phone only the icon stays, so everything fits in one line. */
@media (max-width: 440px) {
  .brand span { display: none; }
  .brand img { width: 36px; height: 36px; }
}

/* milkachuu's crown: sits tilted on the photo, bounces when clicked */
.crowned { position: relative; width: 84px; margin: 0 auto 12px; }
.crowned .avatar { margin: 0; }
.crown { position: absolute; top: -16px; right: -12px; width: 38px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(18deg); transform-origin: 50% 100%; filter: drop-shadow(0 2px 3px rgba(150, 90, 0, .35)); z-index: 2; -webkit-tap-highlight-color: transparent; }
.crown svg { width: 100%; height: 100%; display: block; }
.crown:hover { filter: drop-shadow(0 0 6px rgba(255, 200, 61, .8)); }
.crown:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.crown.bounce { animation: crown-bounce .75s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes crown-bounce {
  0%   { transform: rotate(18deg) translateY(0) scale(1); }
  20%  { transform: rotate(18deg) translateY(2px) scale(1.15, .8); }
  45%  { transform: rotate(4deg) translateY(-20px) scale(.95, 1.1); }
  70%  { transform: rotate(22deg) translateY(0) scale(1.1, .88); }
  85%  { transform: rotate(16deg) translateY(-5px) scale(1); }
  100% { transform: rotate(18deg) translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .crown.bounce { animation-duration: .01s; } }

/* Gelu's photo: a fountain of hearts on click */
.love-photo { cursor: pointer; }
.love-photo.pop { animation: love-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes love-pop { 0% { transform: scale(1); } 35% { transform: scale(.88); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.love { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; font-size: var(--s); color: var(--c); line-height: 1; text-shadow: 0 0 6px rgba(255, 120, 170, .45); will-change: transform, opacity; animation: love-fly var(--t) cubic-bezier(.15, .7, .35, 1) both; }
@keyframes love-fly {
  0%   { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3) rotate(0deg); }
  12%  { opacity: 1; }
  60%  { opacity: 1; transform: translate(calc(var(--x) + var(--dx) * .8), calc(var(--y) + var(--dy) * .8)) scale(1) rotate(calc(var(--r) * .6)); }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy) + 40px)) scale(.8) rotate(var(--r)); }
}
.love img { width: 1.3em; height: 1.3em; display: block; }
.love img[src$="piplup.svg"] { image-rendering: pixelated; }

/* Testers: one row that scrolls sideways with arrows, swipe or trackpad */
.tester-slider { position: relative; display: flex; align-items: center; gap: 12px; max-width: 940px; margin: 0 auto 34px; }
.tester-track { flex: 1; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0; padding: 10px 4px 14px; }
.tester-track::-webkit-scrollbar { display: none; }
.tester-track .person { flex: 0 0 210px; scroll-snap-align: start; }
.tester-track .person.reveal { opacity: 1; transform: none; }
.tester-slider.fits .tester-track { justify-content: center; }
.tester-slider.fits .slide-arrow { display: none; }
.tester-slider .slide-arrow[disabled] { opacity: .35; cursor: default; transform: none; }
@media (max-width: 760px) {
  .tester-slider { gap: 0; }
  .tester-slider .slide-arrow { position: absolute; top: 42%; z-index: 3; }
  .tester-prev { left: -6px; }
  .tester-next { right: -6px; }
  .tester-track { scroll-snap-type: x mandatory; padding-left: calc(50% - 105px); padding-right: calc(50% - 105px); scroll-padding: 0 calc(50% - 105px); }
  .tester-track .person { scroll-snap-align: center; }
}
.tester-slider:not(.fits) .tester-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }

/* "Reduce motion" on: the portrait fountains just fade in around the photo instead of flying */
@media (prefers-reduced-motion: reduce) {
  .love { animation: love-fade 1.4s ease-out both !important; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))); }
  @keyframes love-fade { 0% { opacity: 0; } 25% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
}
.tester-track { cursor: grab; }
.tester-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.tester-track img { -webkit-user-drag: none; }

/* ---------- Golden tickets ---------- */
.section-lead { max-width: 720px; margin: -6px auto 26px; text-align: center; color: var(--ink-soft); font-size: 1.05rem; }
.menu-tickets { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: linear-gradient(135deg, #ffd95e, #f0a20c); color: #6b3d00; font-size: .78rem; vertical-align: 1px; }
.menu-tickets[hidden] { display: none; }
.menu-tickets.bump { animation: ticket-bump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ticket-bump { 30% { transform: scale(1.5); } 100% { transform: scale(1); } }

.ticket-board { max-width: 860px; margin: 0 auto; text-align: center; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 18px 24px; }
.ticket-count { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.ticket-count b { color: #d58a00; font-size: 1.35rem; }
.ticket-mini { width: 34px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #ffe58a, #f7b928 55%, #e9a210); box-shadow: 0 2px 6px rgba(200, 130, 0, .35); }
.ticket-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ticket-empty { margin: 4px auto 14px; color: var(--ink-soft); }
.ticket-board.has-tickets .ticket-empty, .ticket-board.has-tickets .ticket-to-team { display: none; }

/* One golden ticket: notches on both sides, a perforated stub, a moving shine. */
.gticket, .bt-main, .bt-stub { background: linear-gradient(135deg, #fff1b0 0%, #ffd34d 28%, #f5b21c 55%, #ffe07a 75%, #e39b0b 100%); color: #6b3d00; }
.gticket { position: relative; width: 186px; height: 84px; border: 0; padding: 0 44px 0 16px; border-radius: 10px; cursor: pointer; font: inherit; text-align: left; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); animation: ticket-in .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.gticket b { font-family: Comfortaa, Nunito, sans-serif; font-size: .8rem; letter-spacing: .04em; white-space: nowrap; }
.gticket small { font-size: .7rem; opacity: .8; }
.gticket::before { content: "\2605"; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; color: #b86e00; }
.gticket::after { content: ""; position: absolute; top: 8px; bottom: 8px; right: 38px; border-left: 2px dashed rgba(107, 61, 0, .45); }
.gticket .shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 48%, transparent 60%); transform: translateX(-120%); animation: ticket-shine 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); pointer-events: none; }
.gticket:hover { transform: translateY(-4px) rotate(-2deg) scale(1.04); }
.gticket:active { transform: scale(.96); }
.gticket.more { width: auto; padding: 0 22px; align-items: center; font-weight: 800; cursor: default; }
.gticket.more::before, .gticket.more::after { display: none; }
@keyframes ticket-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ticket-in { from { opacity: 0; transform: translateY(14px) scale(.85) rotate(4deg); } to { opacity: 1; transform: none; } }

.prize-list { max-width: 860px; margin: 26px auto 0; }
.prize-list[hidden] { display: none; }
.prize-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prize-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--card); border: 2px solid #f5c542; border-radius: 16px; padding: 12px 16px; }
.prize-list code, .prize-code code { font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; background: #fff4cc; color: #7a4a00; padding: 4px 10px; border-radius: 8px; }
.prize-list .when { color: var(--ink-soft); font-size: .9rem; margin-left: auto; }

.odds { max-width: 860px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.odds > div { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px dashed var(--line); border-radius: 16px; padding: 12px 16px; text-align: left; }
.odds b { flex: 1; }
.odds > div > span:last-child { font-weight: 800; color: var(--pink); }
.odds-ico { font-size: 1.5rem; }
@media (max-width: 600px) { .odds { grid-template-columns: 1fr; } }

/* Toast for a new ticket. */
.ticket-toast { position: fixed; left: 50%; bottom: 26px; z-index: 70; transform: translate(-50%, 30px); opacity: 0; background: linear-gradient(135deg, #ffe58a, #f5b21c); color: #6b3d00; font-weight: 800; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 26px rgba(160, 100, 0, .35); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.ticket-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* The opening stage. */
.ticket-stage { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(30, 10, 25, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: stage-in .3s ease both; overflow: hidden; }
.ticket-stage[hidden] { display: none; }
@keyframes stage-in { from { opacity: 0; } }
.ticket-stage-inner { position: relative; z-index: 1; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: #fff; }
.stage-hint { margin: 0; font-weight: 800; animation: hint-pulse 1.4s ease-in-out infinite; }
@keyframes hint-pulse { 50% { opacity: .55; } }
.stage-close { display: none; }
.ticket-stage.done .stage-close { display: inline-flex; }
.ticket-stage.busy .stage-hint, .ticket-stage.done .stage-hint { display: none; }

.big-ticket { display: flex; cursor: pointer; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); animation: big-in .55s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes big-in { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.bt-main { width: 236px; height: 124px; border-radius: 14px 0 0 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 24px; position: relative; overflow: hidden;
  -webkit-mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000); mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000); }
.bt-title { font-family: Comfortaa, Nunito, sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: .08em; }
.bt-sub { font-weight: 800; opacity: .8; }
.bt-star { position: absolute; right: 16px; bottom: 10px; font-size: 1.6rem; color: #b86e00; }
.bt-stub { width: 92px; height: 124px; border-radius: 0 14px 14px 0; border-left: 3px dashed rgba(107, 61, 0, .5); display: grid; place-items: center; font-weight: 800; font-size: .9rem; writing-mode: vertical-rl; transform-origin: 0 0;
  -webkit-mask: radial-gradient(circle 13px at 100% 50%, #0000 97%, #000); mask: radial-gradient(circle 13px at 100% 50%, #0000 97%, #000); }
.big-ticket:not(.torn):hover { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@media (max-width: 400px) { .bt-main { width: 200px; padding: 0 18px; } .bt-title { font-size: 1rem; } .bt-stub { width: 78px; } }

/* Tearing: a tug, then the stub rips off along a jagged line and falls; the rest sinks away. */
.big-ticket.torn { animation: tug .35s ease-in-out both; }
@keyframes tug { 30% { transform: translateX(-6px) rotate(-2deg); } 60% { transform: translateX(5px) rotate(2deg); } }
.big-ticket.torn .bt-main { clip-path: polygon(0 0, 100% 0, 96% 8%, 100% 17%, 95% 26%, 100% 35%, 96% 44%, 100% 53%, 95% 62%, 100% 71%, 96% 80%, 100% 89%, 96% 100%, 0 100%); animation: main-away .7s .4s ease-in both; }
.big-ticket.torn .bt-stub { border-left: 0; clip-path: polygon(6% 0, 100% 0, 100% 100%, 6% 100%, 0 89%, 6% 80%, 0 71%, 7% 62%, 0 53%, 6% 44%, 0 35%, 7% 26%, 0 17%, 6% 8%); animation: stub-off .8s .4s cubic-bezier(.5, 0, .9, .6) both; }
@keyframes main-away { 25% { transform: translateX(-14px) rotate(-6deg); } 100% { transform: translate(-40px, 30px) rotate(-14deg) scale(.7); opacity: 0; } }
@keyframes stub-off { 20% { transform: translate(14px, -8px) rotate(14deg); } 100% { transform: translate(70px, 240px) rotate(70deg); opacity: 0; } }
.big-ticket.gone { display: none; }
.paper-bit { position: fixed; left: 0; top: 0; z-index: 81; width: 8px; height: 6px; background: #ffd34d; border-radius: 1px; pointer-events: none; animation: paper-bit 1s ease-out both; }
@keyframes paper-bit { from { transform: translate(var(--x), var(--y)); opacity: 1; } to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) rotate(var(--r)); opacity: 0; } }

/* Result: empty. */
.result-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: big-in .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.result-empty .puff { font-size: 4rem; animation: puff 1.2s ease-out both; }
@keyframes puff { 0% { transform: scale(.3); opacity: 0; } 40% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1) translateY(-6px); opacity: .85; } }
.result-empty b, .result-gift b { font-size: 1.4rem; font-family: Comfortaa, Nunito, sans-serif; }
.result-empty p, .result-gift p { margin: 0; opacity: .9; }

/* Result: the gift box drops in and shakes, the lid pops off, the prize flies out. */
.result-gift { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gift { position: relative; width: 150px; height: 150px; margin-top: 150px; animation: gift-drop .5s cubic-bezier(.3, 1.5, .5, 1) both, gift-shake .6s .55s ease-in-out 2; }
@keyframes gift-drop { from { transform: translateY(-160px) scale(.6); opacity: 0; } }
@keyframes gift-shake { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.gift-box { position: absolute; left: 12px; right: 12px; bottom: 0; height: 96px; border-radius: 10px; background: linear-gradient(90deg, transparent 42%, #ffd34d 42%, #ffd34d 58%, transparent 58%), linear-gradient(135deg, #ff8fb5, #df326d); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08); }
.gift-lid { position: absolute; left: 0; right: 0; top: 30px; height: 30px; border-radius: 8px; background: linear-gradient(90deg, transparent 42%, #ffe07a 42%, #ffe07a 58%, transparent 58%), linear-gradient(135deg, #ffa3c4, #e8457f); z-index: 2; animation: lid-off .8s 1.75s cubic-bezier(.3, .2, .4, 1) both; }
.gift-lid::before, .gift-lid::after { content: ""; position: absolute; bottom: 100%; width: 34px; height: 26px; border: 7px solid #ffd34d; border-radius: 50% 50% 4px 50%; }
.gift-lid::before { left: calc(50% - 38px); transform: rotate(-20deg); }
.gift-lid::after { right: calc(50% - 38px); transform: scaleX(-1) rotate(-20deg); }
@keyframes lid-off { 30% { transform: translateY(-50px) rotate(-12deg); } 100% { transform: translate(-110px, -170px) rotate(-60deg); opacity: 0; } }
.gift-glow { position: absolute; left: 50%; top: 60px; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #fff7c2, rgba(255, 210, 80, 0) 70%); animation: glow 1.4s 1.9s ease-out both; pointer-events: none; }
@keyframes glow { 0% { width: 10px; height: 10px; opacity: 0; } 30% { opacity: 1; } 100% { width: 460px; height: 460px; opacity: 0; } }
.prize-card { position: absolute; left: 50%; top: 40px; z-index: 3; width: 230px; margin-left: -115px; background: #fff; color: #4a2338; border: 3px solid #f5c542; border-radius: 18px; padding: 14px 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); animation: prize-out .9s 2s cubic-bezier(.3, 1.5, .5, 1) both; }
.prize-card .prize-ico { font-size: 2.4rem; display: block; }
.prize-card b { display: block; font-size: 1.15rem; color: #4a2338; }
@keyframes prize-out { 0% { transform: translateY(40px) scale(.2); opacity: 0; } 100% { transform: translateY(-170px) scale(1); opacity: 1; } }
.prize-after { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: after-in .5s 2.7s ease both; }
@keyframes after-in { from { opacity: 0; transform: translateY(10px); } }
.prize-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.prize-code button { border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 800; background: #fff; color: #df326d; cursor: pointer; }
.prize-after a { color: #ffd34d; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .big-ticket.torn .bt-main, .big-ticket.torn .bt-stub { animation: fade-out .4s ease both !important; }
  @keyframes fade-out { to { opacity: 0; } }
  .result-empty, .result-empty .puff, .gift, .gift-glow, .prize-after { animation: none !important; }
  .prize-card { animation: none !important; transform: translateY(-170px); }
  .gift-lid { animation: none !important; opacity: 0; }
}

/* Header on mid-size screens: 7 menu links must fit on one line, or hide like on phones. */
.menu a, .brand span { white-space: nowrap; }
@media (max-width: 1320px) {
  .menu { gap: 2px; }
  .menu a { padding: 8px 8px; font-size: .92rem; }
}
@media (max-width: 1100px) {
  .menu { display: none; }
  .online, .menu + .online { margin-left: auto; }
}

/* "×5 tickets" sticker on milkachuu's and Gelu's photos (cards with data-tickets="5") */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ticket-badge { position: absolute; left: -22px; bottom: -4px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 5px; border-radius: 999px; background: linear-gradient(135deg, #fff1b0, #ffd34d 40%, #f5b21c); color: #6b3d00; font-weight: 800; font-size: .85rem; line-height: 1.2; box-shadow: 0 3px 10px rgba(200, 130, 0, .4), 0 0 0 2px var(--card); transform: rotate(-8deg); animation: badge-bob 2.6s ease-in-out infinite; cursor: help; }
.ticket-badge-ico { width: 18px; height: 11px; border-radius: 2px; background: linear-gradient(135deg, #ffe58a, #e9a210); box-shadow: inset 0 0 0 1px rgba(107, 61, 0, .5); }
@keyframes badge-bob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-3px); } }
.ticket-badge { left: 50%; bottom: -12px; white-space: nowrap; transform: translateX(-50%) rotate(-4deg); animation-name: badge-bob-centre; }
@keyframes badge-bob-centre { 0%, 100% { transform: translateX(-50%) rotate(-4deg) translateY(0); } 50% { transform: translateX(-50%) rotate(-1deg) translateY(-3px); } }
.crowned:has(.ticket-badge) { margin-bottom: 22px; }
/* After the ticket for a person is received, their sticker pops away (and stays gone). */
.ticket-badge.leaving { animation: badge-away .55s cubic-bezier(.5, -0.4, .7, .6) forwards; }
@keyframes badge-away { 0% { transform: translateX(-50%) scale(1); opacity: 1; } 35% { transform: translateX(-50%) scale(1.2) rotate(6deg); } 100% { transform: translateX(-50%) translateY(-30px) scale(.2); opacity: 0; } }
/* Odds boxes: a prize that ran out is hidden, so the row reflows; limited prizes show what is left. */
.odds { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.odds > div[hidden] { display: none; }
.odds-left { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.odds-left:empty { display: none; }

/* ---------- "The frame of bliss" (golden-ticket prize) around a reviewer's avatar ---------- */
.frame-wrap { position: relative; display: inline-grid; place-items: center; isolation: isolate; --r0: 32px; }
.frame-wrap:has(.big) { --r0: 39px; }
.review .frame-wrap { grid-row: span 3; align-self: start; margin: 4px; }
.frame-wrap > .gamer-avatar { position: relative; z-index: 1; }
.frame-ring { position: absolute; inset: -6px; z-index: 2; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #ffd34d, #fff7c8, #ff8fb5, #c9a6ff, #8fe3ff, #fff7c8, #ffd34d);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  filter: drop-shadow(0 0 4px rgba(255, 214, 90, .9)); animation: frame-spin 2.6s linear infinite; }
.frame-glow { position: absolute; inset: -14px; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 226, 120, .6), rgba(255, 170, 215, .28) 55%, transparent 70%); animation: frame-pulse 2.2s ease-in-out infinite; }
.frame-orbit { position: absolute; inset: -12px; z-index: 3; display: flex; justify-content: center; align-items: flex-start; line-height: 1; font-size: 13px; color: #ffd34d; text-shadow: 0 0 6px #ffe58a, 0 0 2px #fff; pointer-events: none; animation: frame-spin 3.6s linear infinite reverse; }
.frame-star { position: absolute; left: 50%; top: 50%; z-index: 3; font-size: 10px; line-height: 1; color: #fff4b8; text-shadow: 0 0 6px #ffd34d; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0))) scale(.3); animation: frame-star 2.7s ease-out infinite; }
@keyframes frame-spin { to { transform: rotate(360deg); } }
@keyframes frame-pulse { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes frame-star {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0))) scale(.3); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0) - 26px)) rotate(200deg) scale(1.1); }
}
.review.has-frame { border-color: #f5c542; box-shadow: 0 0 0 1px rgba(245, 197, 66, .35), 0 6px 22px rgba(245, 180, 40, .18); }
.prize-frame-demo { display: grid; place-items: center; height: 76px; }
.prize-on { font-weight: 800; color: #2fa86a; background: #e6f8ee; padding: 3px 10px; border-radius: 999px; font-size: .9rem; }
html[data-theme="dark"] .prize-on { color: #8fe0b2; background: #1f3a2c; }
.odds > div.owned { border-style: solid; border-color: #f5c542; }
.frame-wrap { width: max-content; height: max-content; justify-self: start; }

/* ---------- "Cherry blossom" frame: pink blossom ring, a flower circling it, petals drifting down ---------- */
.frame-sakura .frame-ring { inset: -6px;
  background: conic-gradient(from 0deg, #ffb7d0, #fff0f6, #ff8fb5, #ffd6e6, #f7a1c4, #fff0f6, #ffb7d0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  filter: drop-shadow(0 0 4px rgba(255, 150, 190, .9)); animation-duration: 6s; }
.frame-sakura .frame-glow { background: radial-gradient(circle, rgba(255, 190, 215, .6), rgba(255, 220, 235, .25) 55%, transparent 70%); }
.frame-sakura .frame-orbit { font-size: 15px; text-shadow: 0 0 6px rgba(255, 150, 190, .9); animation-duration: 5s; }
.frame-sakura .frame-star { font-size: 11px; color: #ffb7d0; text-shadow: 0 0 4px rgba(255, 150, 190, .8);
  transform: translate(calc(-50% + var(--x)), calc(-1 * var(--r0) - 6px)) rotate(0deg); animation: frame-petal 3.4s linear infinite; }
@keyframes frame-petal {
  0% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-1 * var(--r0) - 6px)) rotate(0deg) scale(.6); }
  15% { opacity: 1; }
  50% { transform: translate(calc(-50% + var(--x) + 12px), 0) rotate(160deg) scale(1); }
  85% { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) - 6px), calc(var(--r0) + 14px)) rotate(320deg) scale(.8); }
}
.review.has-frame:has(.frame-sakura) { border-color: #ff9cc2; box-shadow: 0 0 0 1px rgba(255, 156, 194, .35), 0 6px 22px rgba(255, 140, 185, .2); }

/* ---------- "67 sigma" frame: a rainbow audiogram all around the avatar, 67s flying out ---------- */
.frame-sigma .frame-ring, .frame-sigma .frame-orbit { display: none; }
.frame-sigma .frame-glow { background: radial-gradient(circle, rgba(170, 120, 255, .45), rgba(80, 200, 255, .2) 55%, transparent 70%); }
.frame-bar { position: absolute; left: 50%; top: 50%; z-index: 2; width: 3px; height: 10px; border-radius: 2px; pointer-events: none;
  background: hsl(var(--h) 100% 60%); box-shadow: 0 0 4px hsl(var(--h) 100% 60%);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(var(--a)) translateY(calc(4px - var(--r0))) scaleY(.6);
  animation: frame-beat .6s ease-in-out infinite alternate; }
@keyframes frame-beat {
  0% { transform: translate(-50%, -100%) rotate(var(--a)) translateY(calc(4px - var(--r0))) scaleY(.3); }
  100% { transform: translate(-50%, -100%) rotate(var(--a)) translateY(calc(4px - var(--r0))) scaleY(1.5); }
}
.frame-sigma .frame-star { font-size: 11px; font-weight: 900; font-family: Comfortaa, Nunito, sans-serif; letter-spacing: -.02em;
  color: hsl(var(--h) 100% 65%); text-shadow: 0 0 5px hsl(var(--h) 100% 55%), 0 0 1px #fff; }
.frame-sigma { --r0: 36px; }
.frame-sigma:has(.big) { --r0: 43px; }
.review.has-frame:has(.frame-sigma) { border-color: #9b7bff; box-shadow: 0 0 0 1px rgba(155, 123, 255, .35), 0 6px 22px rgba(90, 190, 255, .18); }
.review .frame-sigma { margin: 14px 14px 12px; }
.frame-sigma .frame-star { font-size: 13px; }

/* Frame chooser (2 or more frames owned) */
.frame-picker { max-width: 860px; margin: 26px auto 0; text-align: center; }
.frame-picker[hidden] { display: none; }
.frame-picker-note { margin: -4px 0 16px; color: var(--ink-soft); }
.frame-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.frame-option { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 128px; padding: 22px 14px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, box-shadow .2s; }
.frame-option:hover { transform: translateY(-3px); }
.frame-option[aria-pressed="true"] { border-color: #f5c542; box-shadow: 0 0 0 3px rgba(245, 197, 66, .3); }
.frame-option[aria-pressed="true"] .frame-option-name::after { content: " ✓"; color: #2fa86a; }
.frame-option .frame-wrap { margin: 8px; }
.frame-option > .gamer-avatar { margin: 8px; opacity: .85; }
.frame-option-name { font-size: .9rem; max-width: 140px; }
.prize-off { font-weight: 700; color: var(--ink-soft); background: var(--pink-soft); padding: 3px 10px; border-radius: 999px; font-size: .9rem; }

/* ---------- Golden tickets on phones ---------- */
/* Floating ticket button: the top menu is hidden on phones, so this shows your tickets and leads to them. */
.ticket-fab { position: fixed; left: 16px; bottom: 18px; z-index: 40; display: none; align-items: center; gap: 7px; padding: 9px 14px 9px 10px; border-radius: 999px; text-decoration: none; font-weight: 800; color: #6b3d00;
  background: linear-gradient(135deg, #fff1b0, #ffd34d 40%, #f5b21c); box-shadow: 0 6px 18px rgba(200, 130, 0, .4); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ticket-fab .ticket-mini { width: 26px; height: 16px; }
.ticket-fab.show { display: inline-flex; }
.ticket-fab.bump { animation: ticket-bump .6s cubic-bezier(.3, 1.6, .5, 1); }
.ticket-fab:active { transform: scale(.94); }
@media (min-width: 1101px) { .ticket-fab.show { display: none; } }

@media (max-width: 600px) {
  /* tickets two per row, a little smaller */
  .ticket-board { padding: 18px 12px 20px; }
  .ticket-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gticket { width: auto; height: 68px; padding: 0 34px 0 14px; }
  .gticket b { font-size: .68rem; letter-spacing: .02em; }
  .gticket small { font-size: .62rem; }
  .gticket::before { right: 9px; font-size: 1rem; }
  .gticket::after { right: 29px; }
  .gticket.more { grid-column: 1 / -1; height: 46px; justify-content: center; }
  .gticket:hover { transform: none; }

  /* prizes and odds: compact rows */
  .prize-list li { padding: 10px 12px; gap: 6px 10px; }
  .prize-list code { font-size: .92rem; }
  .odds { gap: 8px; }
  .odds > div { padding: 9px 12px; font-size: .92rem; gap: 8px; }
  .odds-ico { font-size: 1.2rem; }

  /* frame chooser: three in a row */
  .frame-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .frame-option { min-width: 0; padding: 14px 4px 10px; gap: 6px; border-radius: 14px; }
  .frame-option .frame-wrap, .frame-option > .gamer-avatar { margin: 10px 4px 6px; transform: scale(.85); }
  .frame-option-name { font-size: .72rem; line-height: 1.25; }

  /* the "+1 ticket" message sits above the round buttons in the corners */
  .ticket-toast { bottom: 80px; }
}

/* ---------- More review frames ---------- */
/* Neon heart: a pulsing pink neon ring, a heart circling, hearts popping out. */
.frame-neon .frame-ring { background: #ff3d8b; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  filter: drop-shadow(0 0 3px #ff3d8b) drop-shadow(0 0 7px #ff7ab0); animation: neon-pulse 1.6s ease-in-out infinite; }
@keyframes neon-pulse { 0%, 100% { opacity: 1; } 45% { opacity: .65; } 50% { opacity: 1; } 55% { opacity: .8; } }
.frame-neon .frame-glow { background: radial-gradient(circle, rgba(255, 61, 139, .45), rgba(255, 122, 176, .15) 55%, transparent 70%); }
.frame-neon .frame-orbit { color: #ff3d8b; text-shadow: 0 0 6px #ff7ab0; font-size: 12px; animation-duration: 2.8s; }
.frame-neon .frame-star { color: #ff5c93; text-shadow: 0 0 6px #ff3d8b; font-size: 12px; }

/* Snow queen: an icy sparkling ring, a snowflake circling, snowflakes drifting down. */
.frame-frost .frame-ring { background: conic-gradient(from 0deg, #bfefff, #ffffff, #7fd3ff, #e6f8ff, #a5e3ff, #ffffff, #bfefff); filter: drop-shadow(0 0 4px rgba(127, 211, 255, .9)); animation-duration: 7s; }
.frame-frost .frame-glow { background: radial-gradient(circle, rgba(190, 235, 255, .55), rgba(150, 210, 255, .2) 55%, transparent 70%); }
.frame-frost .frame-orbit { color: #dff6ff; text-shadow: 0 0 6px #7fd3ff; font-size: 13px; animation-duration: 6s; }
.frame-frost .frame-star { font-size: 12px; color: #e6f8ff; text-shadow: 0 0 5px #7fd3ff;
  transform: translate(calc(-50% + var(--x)), calc(-1 * var(--r0) - 6px)); animation: frame-petal 4s linear infinite; }

/* Galaxy: a cosmic swirl, a planet orbiting, stars twinkling around. */
.frame-galaxy .frame-ring { inset: -7px; background: conic-gradient(from 0deg, #2b1a5e, #7b5cff, #ff7ad9, #3fd0ff, #2b1a5e, #9b7bff, #2b1a5e);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  filter: drop-shadow(0 0 5px rgba(123, 92, 255, .9)); animation-duration: 3.5s; }
.frame-galaxy .frame-glow { background: radial-gradient(circle, rgba(123, 92, 255, .5), rgba(63, 208, 255, .18) 55%, transparent 70%); }
.frame-galaxy .frame-orbit { inset: -16px; font-size: 14px; text-shadow: 0 0 6px #9b7bff; animation-duration: 5s; }
.frame-galaxy .frame-star { color: #fff; text-shadow: 0 0 6px #b9a4ff, 0 0 2px #3fd0ff; font-size: 11px;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0) - 9px)); animation: frame-twinkle 2.2s ease-in-out infinite; }
@keyframes frame-twinkle {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0) - 9px)) scale(.3); }
  50% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0) - 9px)) scale(1.2) rotate(45deg); }
}

/* Phoenix flame: a flickering fire ring, sparks rising up. */
.frame-phoenix .frame-ring { inset: -6px; background: conic-gradient(from 0deg, #ff3b00, #ffb000, #ffe45c, #ff6a00, #ff2d55, #ffb000, #ff3b00);
  filter: drop-shadow(0 0 5px rgba(255, 120, 0, .95)); animation: frame-spin 1.6s linear infinite, fire-flicker .35s steps(2) infinite; }
@keyframes fire-flicker { 50% { filter: drop-shadow(0 0 8px rgba(255, 170, 0, 1)); } }
.frame-phoenix .frame-glow { background: radial-gradient(circle, rgba(255, 140, 0, .55), rgba(255, 60, 0, .2) 55%, transparent 70%); animation-duration: 1s; }
.frame-phoenix .frame-star { font-size: 11px; color: #ffd166; text-shadow: 0 0 5px #ff7a00;
  transform: translate(calc(-50% + var(--x) * 1.6), calc(var(--r0) * .2)); animation: frame-rise 1.8s ease-out infinite; }
@keyframes frame-rise {
  0% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.6), calc(var(--r0) * .2)) scale(.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.2), calc(-1 * var(--r0) - 34px)) scale(1); }
}

/* Cat ears: a soft ring with two twitching ears on top, paw prints popping out. */
.frame-cat .frame-ring { background: conic-gradient(from 0deg, #ffd1dc, #fff4f7, #ffb3c6, #fff4f7, #ffd1dc); filter: drop-shadow(0 0 3px rgba(255, 150, 180, .8)); animation-duration: 9s; }
.frame-cat .frame-glow { background: radial-gradient(circle, rgba(255, 200, 215, .5), transparent 70%); }
.frame-ear { position: absolute; top: -13px; z-index: 0; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 19px solid #ffb3c6;
  filter: drop-shadow(0 0 2px rgba(255, 140, 175, .7)); transform-origin: 50% 100%; }
.frame-ear::after { content: ""; position: absolute; left: -5px; top: 6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 10px solid #fff0f4; }
.frame-ear-left { left: 1px; transform: rotate(-24deg); animation: ear-twitch-l 3.2s ease-in-out infinite; }
.frame-ear-right { right: 1px; transform: rotate(24deg); animation: ear-twitch-r 3.2s ease-in-out infinite 1.1s; }
@keyframes ear-twitch-l { 0%, 80%, 100% { transform: rotate(-24deg); } 85% { transform: rotate(-38deg); } 90% { transform: rotate(-20deg); } }
@keyframes ear-twitch-r { 0%, 80%, 100% { transform: rotate(24deg); } 85% { transform: rotate(38deg); } 90% { transform: rotate(20deg); } }
.frame-cat .frame-star { font-size: 11px; color: #ff8fb5; }
.review.has-frame:has(.frame-neon) { border-color: #ff3d8b; }
.review.has-frame:has(.frame-frost) { border-color: #7fd3ff; }
.review.has-frame:has(.frame-galaxy) { border-color: #7b5cff; }
.review.has-frame:has(.frame-phoenix) { border-color: #ff7a00; }
.review.has-frame:has(.frame-cat) { border-color: #ffb3c6; }

/* ---------- Special avatars (golden-ticket prizes) ---------- */
.gamer-avatar.special-avatar { position: relative; overflow: visible; }
.sa-face { display: inline-block; line-height: 1; animation: sa-bob 2.4s ease-in-out infinite; }
@keyframes sa-bob { 50% { transform: translateY(-3px) rotate(-4deg); } }
.gamer-avatar[data-avatar="unicorn"] { background: linear-gradient(120deg, #ff9ad5, #ffd36b, #9cf0c0, #8fd3ff, #c6a6ff, #ff9ad5); background-size: 300% 300%; animation: sa-rainbow 4s linear infinite; }
@keyframes sa-rainbow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.gamer-avatar[data-avatar="ghost"] { background: linear-gradient(135deg, #f1edff, #a99cf5); }
.gamer-avatar[data-avatar="ghost"] .sa-face { animation: sa-float 3s ease-in-out infinite; }
@keyframes sa-float { 0%, 100% { transform: translateY(1px); opacity: 1; } 50% { transform: translateY(-5px); opacity: .55; } }
.gamer-avatar[data-avatar="dragon"] { background: linear-gradient(135deg, #8ff0b5, #16a34a); }
.gamer-avatar[data-avatar="dragon"]::after { content: "\1F525"; position: absolute; right: -10px; top: 40%; font-size: .55em; opacity: 0; animation: sa-breath 2.6s ease-out infinite; }
@keyframes sa-breath { 0%, 55% { opacity: 0; transform: translateX(-6px) scale(.4); } 65% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px) scale(1.2); } }
.gamer-avatar[data-avatar="alien"] { background: radial-gradient(circle, #d4ff8a, #2fbf71 75%); animation: sa-glow 2s ease-in-out infinite; }
@keyframes sa-glow { 50% { box-shadow: 0 0 14px 3px rgba(150, 255, 120, .75), inset 0 -4px 0 rgba(0, 0, 0, .08); } }
.gamer-avatar[data-avatar="alien"] .sa-face { animation: sa-wobble 1.8s ease-in-out infinite; }
@keyframes sa-wobble { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.gamer-avatar[data-avatar="kingcat"] { background: linear-gradient(135deg, #ffe58a, #f0a20c); }
.gamer-avatar[data-avatar="kingcat"]::before { content: "\1F451"; position: absolute; top: -.55em; left: 50%; font-size: .55em; transform: translateX(-50%) rotate(-8deg); animation: sa-crown 2.4s ease-in-out infinite; }
@keyframes sa-crown { 50% { transform: translateX(-50%) translateY(-3px) rotate(8deg); } }
.gamer-avatar[data-avatar="strawberry"] { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55) 1.5px, transparent 2.5px) 0 0 / 11px 11px, linear-gradient(135deg, #ff8fa3, #e11d48); }
.gamer-avatar[data-avatar="strawberry"] .sa-face { animation: sa-bounce 1.4s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes sa-bounce { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-4px) scale(1.08, .94); } }
.review-form.special-on .new-avatar { display: none; }

/* ---------- Odds in groups ---------- */
.odds { display: block; }
.odds > .odds-group { display: block; background: none; border: 0; padding: 0; margin-top: 16px; }
.odds-group h4 { margin: 0 0 8px; text-align: left; font-size: .95rem; color: var(--ink-soft); }
.odds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.odds-grid > div { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px dashed var(--line); border-radius: 16px; padding: 10px 14px; text-align: left; }
.odds-grid b { flex: 1; }
.odds-grid .odds-pct { font-weight: 800; color: var(--pink); }
.odds-grid > div.owned { border-style: solid; border-color: #f5c542; }
.odds-grid > div.owned .odds-pct { color: #2fa86a; }
@media (max-width: 600px) {
  .odds-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .odds-grid > div { padding: 8px 10px; gap: 6px; font-size: .82rem; }
  .odds-grid .odds-ico { font-size: 1.05rem; }
  .odds-grid > div[data-odds="empty"] { grid-column: 1 / -1; }
}

/* ---------- Keeping the frames and avatars light ---------- */
/* Spinning rings: no per-frame shadow (the still glow layer under them does the glowing); own GPU layer. */
.frame-ring { filter: none !important; will-change: transform; }
.frame-star, .frame-bar, .frame-orbit { will-change: transform, opacity; }
/* Off-screen frames and avatars pause (script.js marks them), so only what you see is moving. */
.anim-paused, .anim-paused *, .anim-paused::before, .anim-paused::after { animation-play-state: paused !important; }
/* In the choosers only the option you wear moves; the others wake up on hover or focus. */
.frame-option:not([aria-pressed="true"]):not(:hover):not(:focus-visible) *, .frame-option:not([aria-pressed="true"]):not(:hover):not(:focus-visible) *::before, .frame-option:not([aria-pressed="true"]):not(:hover):not(:focus-visible) *::after { animation-play-state: paused !important; }

/* ---------- Blood party frame: a black aura, a ring of blood, drops dripping down, a bat circling ---------- */
.frame-blood .frame-glow { inset: -16px;
  background: radial-gradient(circle, rgba(0, 0, 0, .9) 38%, rgba(20, 0, 4, .75) 55%, rgba(120, 0, 20, .35) 66%, transparent 72%);
  animation: blood-aura 3s ease-in-out infinite; }
@keyframes blood-aura {
  0%, 100% { transform: scale(.94) rotate(0deg); opacity: .85; }
  50% { transform: scale(1.08) rotate(8deg); opacity: 1; }
}
.frame-blood .frame-ring { inset: -6px;
  background: conic-gradient(from 0deg, #5c000d, #b3001b, #7a0012, #e0102f, #4a000a, #9e0018, #5c000d);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  animation-duration: 8s; }
.frame-blood .frame-orbit { inset: -15px; font-size: 13px; filter: drop-shadow(0 0 3px rgba(224, 16, 47, .8)); animation-duration: 3.2s; }
.frame-drip { position: absolute; z-index: 3; width: 5px; height: 8px; pointer-events: none;
  left: calc(50% + (var(--r0) - 7px) * var(--cx)); top: calc(50% + (var(--r0) - 7px) * var(--cy));
  background: radial-gradient(circle at 35% 30%, #ff5a6e 0 1px, transparent 1.5px), linear-gradient(#e0102f, #8a0014);
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
  transform-origin: 50% 0; transform: translate(-50%, 0) scale(.3, .2); opacity: 0;
  animation: blood-drip 2.6s cubic-bezier(.55, 0, .85, .4) infinite; will-change: transform, opacity; }
@keyframes blood-drip {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.3, .2); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(-50%, 0) scale(1, 1.4); }      /* the drop swells and stretches */
  85% { opacity: .9; transform: translate(-50%, 24px) scale(.8, 1.9); } /* then falls */
  100% { opacity: 0; transform: translate(-50%, 34px) scale(.6, 1.2); }
}
.review.has-frame:has(.frame-blood) { border-color: #8a0014; box-shadow: 0 0 0 1px rgba(138, 0, 20, .4), 0 6px 22px rgba(0, 0, 0, .45); }
.review .frame-blood { margin: 10px 10px 18px; }
/* blood party: brighter ring and bigger drops so they read against the black aura */
.frame-blood .frame-ring { background: conic-gradient(from 0deg, #9e0018, #ff2a4a, #c0001f, #ff5a6e, #8a0014, #e0102f, #9e0018); }
.frame-blood .frame-glow { background: radial-gradient(circle, rgba(0, 0, 0, .92) 40%, rgba(25, 0, 5, .8) 56%, rgba(200, 0, 30, .45) 64%, transparent 72%); }
.frame-drip { width: 6px; height: 10px; }
.prize-code code, .prize-list code { -webkit-user-select: all; user-select: all; }   /* one tap selects the whole code */
.ticket-fab.here { opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .25s, transform .25s; }

/* ---------- Open one / Open all ---------- */
.ticket-actions { display: none; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ticket-board.has-tickets .ticket-actions { display: flex; }
.ticket-actions [hidden] { display: none; }
.open-all-count { font-weight: 800; }
/* the big ticket for "open all" looks like a little stack */
.big-ticket.many { filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)) drop-shadow(6px -6px 0 #e9a210) drop-shadow(6px -6px 0 #f5b21c); }
.big-ticket.many .bt-stub { font-size: 1.05rem; }

/* summary after "open all" */
.result-all { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; animation: big-in .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.result-all .puff { font-size: 3.4rem; line-height: 1; }
.result-all > b { font-size: 1.35rem; font-family: Comfortaa, Nunito, sans-serif; }
.result-all > p { margin: 0; opacity: .9; }
.all-list { list-style: none; margin: 6px 0 0; padding: 4px; width: 100%; max-height: min(44vh, 340px); overflow-y: auto; display: grid; gap: 8px; }
.all-list li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .95); color: #4a2338; border: 2px solid #f5c542; border-radius: 14px; padding: 8px 12px; text-align: left;
  animation: all-pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.all-list li.all-empty { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); color: #fff; }
@keyframes all-pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.all-ico { font-size: 1.4rem; }
.all-name { flex: 1; font-weight: 800; }
.all-list code { font-weight: 800; letter-spacing: .06em; background: #fff4cc; color: #7a4a00; padding: 3px 8px; border-radius: 8px; -webkit-user-select: all; user-select: all; }
.all-count { font-weight: 800; }
.all-note { font-size: .92rem; }
.all-note a { color: #ffd34d; font-weight: 800; }

/* ---------- Folding blocks (My prizes, choosers, chances) ---------- */
.collapse-head { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; -webkit-user-select: none; user-select: none; border-radius: 12px; transition: background .2s; }
.collapse-head:hover { background: var(--pink-soft); }
.collapse-head:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.collapse-head::after { content: "▾"; display: inline-block; font-size: .85em; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.folded > .collapse-head::after { transform: rotate(-90deg); }
.folded > :not(.collapse-head) { display: none !important; }
.odds-box { max-width: 860px; margin: 26px auto 0; }
.odds-box .odds { margin-top: 0; }
.open-all-count { margin-left: 6px; }
.odds-grid > div.gone { opacity: .6; border-style: dashed; }
.odds-grid > div.gone .odds-title { text-decoration: line-through; text-decoration-thickness: 2px; }   /* the crossed-out name; the note under it stays plain */
.odds-grid > div.gone .odds-left { text-decoration: none; display: block; color: var(--pink); font-weight: 800; }
.odds-grid > div.gone .odds-pct { color: var(--ink-soft); }

/* ---------- Star styles for the review rating (golden-ticket prizes) ---------- */
.review-stars .st { display: inline-block; margin-right: 2px; will-change: transform; }
.review-stars .st:not(.on) { opacity: .28; filter: grayscale(.6); }
.stars-preview { font-size: 1.15rem; letter-spacing: 0; padding: 14px 4px 6px; white-space: nowrap; }
.prize-stars-demo { display: grid; place-items: center; height: 54px; }
.prize-stars-demo .stars-preview { font-size: 1.6rem; padding: 0; }

/* Golden glow: gold stars with a shine sweeping across them one after another. */
.stars-gold .st.on { color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(110deg, #e39b0b 30%, #fff7c2 50%, #e39b0b 70%); background-size: 260% 100%;
  filter: drop-shadow(0 0 3px rgba(255, 200, 60, .75)); animation: st-shine 2.6s linear infinite; animation-delay: calc(var(--i) * .14s); }
@keyframes st-shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* Little hearts: pink hearts beating one after another. */
.stars-hearts .st { color: #ff4f8b; }
.stars-hearts .st.on { text-shadow: 0 0 6px rgba(255, 79, 139, .6); animation: st-beat 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * .16s); }
@keyframes st-beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.32); } 35% { transform: scale(.95); } }

/* Rainbow: each star its own colour, the colours flowing along the line. */
.stars-rainbow .st { color: #ff4d4d; }
.stars-rainbow .st.on { animation: st-hue 3s linear infinite; text-shadow: 0 0 5px currentColor; }
@keyframes st-hue { from { filter: hue-rotate(calc(var(--i) * 60deg)) saturate(1.4); } to { filter: hue-rotate(calc(var(--i) * 60deg + 360deg)) saturate(1.4); } }

/* Little flowers: sakura flowers instead of stars, slowly turning. */
.stars-flowers .st { font-size: .95em; }
.stars-flowers .st.on { animation: st-turn 5s linear infinite; animation-delay: calc(var(--i) * -.8s); filter: drop-shadow(0 0 3px rgba(255, 160, 200, .7)); }
@keyframes st-turn { to { transform: rotate(360deg); } }

/* Fire: flickering fire-coloured stars. */
.stars-fire .st.on { color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(0deg, #ff3b00 20%, #ffb000 60%, #ffe45c 90%);
  filter: drop-shadow(0 0 4px rgba(255, 120, 0, .85)); transform-origin: 50% 100%;
  animation: st-flicker .7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.23s); }
@keyframes st-flicker { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.94, 1.12) skewX(-4deg); } 100% { transform: scale(1.04, .96) skewX(3deg); } }

/* Dancing: stars hopping in a wave. */
.stars-dance .st { color: #ffb400; }
.stars-dance .st.on { text-shadow: 0 0 5px rgba(255, 180, 0, .6); animation: st-hop 1s cubic-bezier(.3, 1.5, .5, 1) infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes st-hop { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-6px) rotate(-12deg); } 40% { transform: translateY(0) rotate(8deg); } }

/* ---------- "Legend of ChibiChu" badge (golden-ticket prize, 0.1%): a flowing rainbow that glows and shimmers ---------- */
.badge.badge-legend { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 3px 12px;
  background: linear-gradient(90deg, #ff3d7f, #ff9a3c, #ffd84d, #4cd97b, #3fc4ff, #8a6bff, #ff5cd6, #ff3d7f);
  background-size: 300% 100%;
  text-shadow: 0 1px 2px rgba(60, 0, 60, .55), 0 0 6px rgba(255, 255, 255, .5);
  box-shadow: 0 0 8px rgba(255, 120, 200, .7), 0 0 16px rgba(120, 140, 255, .45);
  animation: legend-flow 4s linear infinite, legend-glow 2.4s ease-in-out infinite; }
/* the shine sweeping across */
.badge.badge-legend::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .85) 48%, transparent 62%);
  transform: translateX(-120%); animation: legend-shine 2.8s ease-in-out infinite; }
/* a little sparkle that blinks on the corner */
.badge.badge-legend::before { content: "\2726"; position: absolute; right: 3px; top: -1px; font-size: .62em; color: #fff;
  text-shadow: 0 0 4px #fff; animation: legend-twinkle 1.6s ease-in-out infinite; }
@keyframes legend-flow { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes legend-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 120, 200, .6), 0 0 12px rgba(120, 140, 255, .35); }
  50% { box-shadow: 0 0 12px rgba(255, 220, 120, .9), 0 0 24px rgba(255, 90, 200, .6); }
}
@keyframes legend-shine { 0%, 45% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes legend-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.review:has(.badge-legend) { border-color: #c89bff; }
.badge-preview { padding: 18px 4px 8px; }
.prize-badge-demo { display: grid; place-items: center; height: 46px; }
.prize-badge-demo .badge-preview { padding: 0; }
.prize-badge-demo .badge { font-size: 1rem; padding: 5px 16px; }

/* ---------- Silver tickets (free, 2 a day from 10:00) ---------- */
.gticket.silver, .big-ticket.silver .bt-main, .big-ticket.silver .bt-stub {
  background: linear-gradient(135deg, #ffffff 0%, #e3e8ef 25%, #b9c2cf 52%, #eef2f7 74%, #9aa5b4 100%); color: #3a4352; }
.gticket.silver::before, .big-ticket.silver .bt-star { color: #6b7686; }
.gticket.silver::after { border-left-color: rgba(58, 67, 82, .4); }
.big-ticket.silver .bt-stub { border-left-color: rgba(58, 67, 82, .45); }
.big-ticket.silver { filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)) drop-shadow(0 0 10px rgba(200, 215, 235, .5)); }
.ticket-split { margin: -10px 0 14px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.ticket-split[hidden] { display: none; }
.daily-note { margin: 16px auto 0; max-width: 520px; font-size: .92rem; font-weight: 700; color: #6b7686; background: linear-gradient(135deg, rgba(227, 232, 239, .55), rgba(185, 194, 207, .35));
  border: 1px solid rgba(154, 165, 180, .5); border-radius: 999px; padding: 8px 16px; }
html[data-theme="dark"] .daily-note { color: #d6dde8; background: rgba(185, 194, 207, .12); border-color: rgba(185, 194, 207, .3); }
@media (max-width: 600px) { .daily-note { border-radius: 16px; padding: 8px 12px; font-size: .85rem; } }

/* ---------- Rainbow ticket (1 in 10000; opening it gives 1000 golden tickets) ---------- */
.gticket.rainbow, .big-ticket.rainbow .bt-main, .big-ticket.rainbow .bt-stub {
  background: linear-gradient(110deg, #ff3d7f, #ff9a3c, #ffd84d, #4cd97b, #3fc4ff, #8a6bff, #ff5cd6, #ff3d7f);
  background-size: 300% 100%; color: #fff; animation: rainbow-flow 3.2s linear infinite; }
.gticket.rainbow { text-shadow: 0 1px 2px rgba(60, 0, 60, .5); box-shadow: 0 0 14px rgba(255, 120, 220, .65); }
.gticket.rainbow b, .gticket.rainbow small { position: relative; z-index: 1; }
.gticket.rainbow small { font-weight: 800; opacity: 1; }
.gticket.rainbow::before { color: #fff; text-shadow: 0 0 6px #fff; }
.gticket.rainbow::after { border-left-color: rgba(255, 255, 255, .7); }
.gticket.rainbow .shine { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .95) 48%, transparent 64%); animation-duration: 1.8s; }
.big-ticket.rainbow { filter: drop-shadow(0 0 14px rgba(255, 120, 220, .8)) drop-shadow(0 0 28px rgba(120, 160, 255, .55)); }
.big-ticket.rainbow .bt-title, .big-ticket.rainbow .bt-sub { text-shadow: 0 1px 3px rgba(60, 0, 60, .55); }
.big-ticket.rainbow .bt-stub { border-left-color: rgba(255, 255, 255, .7); color: #fff; }
.big-ticket.rainbow .bt-star { color: #fff; text-shadow: 0 0 8px #fff; }
@keyframes rainbow-flow { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
.gticket.mini { display: inline-flex; width: 170px; height: 72px; cursor: default; animation: rainbow-flow 3.2s linear infinite; font-size: .9rem; }

/* Opening it: a rainbow burst and the count running up to +1000. */
.result-rainbow { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: big-in .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.rainbow-burst { position: absolute; left: 50%; top: 40px; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: conic-gradient(#ff3d7f, #ff9a3c, #ffd84d, #4cd97b, #3fc4ff, #8a6bff, #ff5cd6, #ff3d7f);
  filter: blur(14px); animation: rainbow-burst 1.6s ease-out both; }
@keyframes rainbow-burst { 0% { width: 10px; height: 10px; opacity: 0; } 30% { opacity: .9; } 100% { width: 480px; height: 480px; opacity: 0; } }
.rainbow-ico { font-size: 4rem; line-height: 1; animation: puff 1s ease-out both; }
.rainbow-count { font-family: Comfortaa, Nunito, sans-serif; font-size: 3rem; line-height: 1.1;
  background: linear-gradient(90deg, #ff3d7f, #ffd84d, #4cd97b, #3fc4ff, #ff5cd6); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow-flow 2.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 220, 120, .6)); }
.result-rainbow p { margin: 0; opacity: .95; font-weight: 700; }
.all-list li.all-rainbow { border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(60, 0, 60, .5);
  background: linear-gradient(110deg, #ff3d7f, #ff9a3c, #ffd84d, #4cd97b, #3fc4ff, #8a6bff, #ff5cd6); background-size: 300% 100%; animation: all-pop .45s cubic-bezier(.3, 1.5, .5, 1) both, rainbow-flow 3s linear infinite; }
@media (prefers-reduced-motion: reduce) { .gticket.rainbow, .big-ticket.rainbow .bt-main, .big-ticket.rainbow .bt-stub { animation: none !important; } }
.big-ticket.rainbow .bt-title { font-size: 1.02rem; white-space: nowrap; }

/* ---------- Mysha's duck (prize: +10% chance for the next ticket, used once) ---------- */
.duck-note { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 14px; padding: 6px 14px; border-radius: 16px; font-weight: 800; font-size: .92rem;
  color: #8a5a00; background: linear-gradient(135deg, #fff4c2, #ffe08a); border: 2px solid #f5c542; animation: duck-wobble 2.4s ease-in-out infinite; }
.duck-note[hidden] { display: none; }
html[data-theme="dark"] .duck-note { color: #ffe08a; background: rgba(255, 211, 77, .14); }
@keyframes duck-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
.big-ticket { position: relative; }
.bt-duck { position: absolute; left: -16px; top: -22px; width: 46px; height: 46px; z-index: 3; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); animation: duck-ride 1.6s ease-in-out infinite; }
.bt-duck[hidden] { display: none; }
@keyframes duck-ride { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-5px); } }
.big-ticket.torn .bt-duck { animation: duck-hop .8s ease-out forwards; }
@keyframes duck-hop { 40% { transform: translate(-10px, -40px) rotate(-25deg); } 100% { transform: translate(-30px, -10px) rotate(-40deg); opacity: 0; } }
.duck-hint { display: inline-block; margin-top: 6px; color: #ffe08a; font-size: .92rem; }
.duck-used { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font-weight: 800; color: #ffe08a; animation: after-in .5s .6s ease both; }
.result-gift ~ .duck-used { animation-delay: 2.8s; }   /* after the prize has come out of the box */
.prize-duck { width: 54px; height: 54px; animation: duck-ride 1.6s ease-in-out infinite; }

/* ---------- Support the author on Boosty (Download section) ---------- */
.support { max-width: 900px; margin: 26px auto 0; display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 143, 181, .16), rgba(185, 164, 255, .16)); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.support-heart { font-size: 2.4rem; line-height: 1; animation: st-beat 1.6s ease-in-out infinite; }
.support-text { flex: 1 1 300px; text-align: left; }
.support-text h3 { margin: 0 0 6px; color: var(--pink); }
.support-text p { margin: 0 0 6px; }
.support-note { font-size: .92rem; color: var(--ink-soft); }
.support-btn { color: #fff; background: linear-gradient(135deg, #f15f2c, #ff8a4c); border: 0; box-shadow: 0 6px 16px rgba(241, 95, 44, .35); white-space: nowrap; }
.support-btn:hover { background: linear-gradient(135deg, #e04e1c, #f57a3c); transform: translateY(-2px); }
@media (max-width: 600px) { .support { padding: 18px; justify-content: center; } .support-text { text-align: center; } .support-btn { width: 100%; justify-content: center; } }

/* ---------- The ChibiChu admin status (only from the secret code in api/config.php) ---------- */
/* The admin's cosmic frame: a huge breathing aura in every colour of space, light rays turning behind it,
   a ring of deep space with a nebula flowing through it, a comet orbiting and a dozen stars flying out.
   No CSS filters on moving layers (they are heavy on phones); the softness comes from masks and gradients. */
.frame-cosmic { --r0: 34px; }
.frame-aura { position: absolute; inset: -30px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #ff3df0, #7b5cff, #00e5ff, #3dffa8, #ffe14d, #ff7a3d, #ff3df0);
  -webkit-mask: radial-gradient(circle, #000 28%, rgba(0, 0, 0, .55) 48%, transparent 70%);
  mask: radial-gradient(circle, #000 28%, rgba(0, 0, 0, .55) 48%, transparent 70%);
  animation: frame-spin 6s linear infinite, cosmic-breathe 2.4s ease-in-out infinite; }
.frame-rays { position: absolute; inset: -34px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .55) 0deg 3deg, transparent 3deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 42%, transparent 70%);
  mask: radial-gradient(circle, transparent 30%, #000 42%, transparent 70%);
  animation: frame-spin 14s linear infinite reverse; }
@keyframes cosmic-breathe { 0%, 100% { opacity: .75; scale: .92; } 50% { opacity: 1; scale: 1.12; } }
.frame-cosmic .frame-ring { inset: -8px;
  background: conic-gradient(from 0deg, #0b0630, #5b2cff, #ff4fd8, #0b0630, #00e5ff, #ffffff, #ffe14d, #0b0630, #8a5cff, #0b0630);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px));
  animation-duration: 2.2s; }
.frame-cosmic .frame-glow { inset: -16px;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 30%, rgba(120, 230, 255, .75) 46%, rgba(255, 80, 220, .45) 60%, transparent 72%);
  animation-duration: 1.6s; }
.frame-cosmic .frame-orbit { inset: -20px; font-size: 15px; animation-duration: 2.8s; }
.frame-cosmic .frame-star { font-size: 13px; color: hsl(var(--h), 100%, 78%);
  text-shadow: 0 0 6px hsl(var(--h), 100%, 60%), 0 0 2px #fff; animation: cosmic-star 2.2s ease-out infinite; }
@keyframes cosmic-star {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0))) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r0) - 44px)) rotate(300deg) scale(1.25); }
}
.review.has-frame:has(.frame-cosmic) { border-color: #8a5cff;
  box-shadow: 0 0 0 1px rgba(138, 92, 255, .5), 0 0 18px rgba(0, 229, 255, .35), 0 8px 26px rgba(255, 61, 240, .25); }
.frame-option .frame-cosmic { margin: 18px; }

/* The "ChibiChu Admin" badge: deep space with stars drifting through it, a glowing border in the colours
   of the nebula, a bobbing crown and little stars twinkling around it. */
.badge.badge-admin { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px 3px 8px; color: #fff; letter-spacing: .4px;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 80%, #bfefff, transparent), radial-gradient(1px 1px at 88% 25%, #ffd6fb, transparent),
    linear-gradient(110deg, #0b0630, #2a1170, #5b2cff, #b02cff, #2a1170, #0b0630);
  background-size: 60px 100%, 60px 100%, 60px 100%, 60px 100%, 300% 100%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 0 10px rgba(0, 229, 255, .8), 0 0 20px rgba(255, 61, 240, .6);
  animation: admin-drift 6s linear infinite, admin-glow 2s ease-in-out infinite; }
.badge-admin .ba-crown { display: inline-block; font-size: .95em; animation: admin-crown 1.6s ease-in-out infinite; }
.badge-admin .ba-text { background: linear-gradient(90deg, #fff, #9ff3ff, #ffd6fb, #fff59e, #fff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: legend-flow 3s linear infinite; }
.badge-admin .ba-star { position: absolute; z-index: 1; font-size: .62em; color: #fff; text-shadow: 0 0 5px #00e5ff, 0 0 2px #fff; pointer-events: none;
  opacity: 0; animation: legend-twinkle 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * .45s); }
.badge-admin .ba-star:nth-of-type(3) { left: -5px; top: -6px; }
.badge-admin .ba-star:nth-of-type(4) { right: -6px; top: -7px; color: #ffe14d; }
.badge-admin .ba-star:nth-of-type(5) { right: 10px; bottom: -8px; color: #ff9ff0; }
.badge-admin .ba-star:nth-of-type(6) { left: 18px; bottom: -7px; }
@keyframes admin-drift { from { background-position: 0 0, 0 0, 0 0, 0 0, 0% 50%; } to { background-position: -60px 0, -120px 0, -60px 0, -120px 0, 300% 50%; } }
@keyframes admin-glow {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 0 0 8px rgba(0, 229, 255, .7), 0 0 16px rgba(255, 61, 240, .45); }
  50% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 14px rgba(0, 229, 255, 1), 0 0 30px rgba(255, 61, 240, .8); }
}
@keyframes admin-crown { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-2px) rotate(8deg); } }
.review:has(.badge-admin) { border-color: #8a5cff; }

/* Endless tickets: the count flows in the nebula colours. */
.ticket-board.admin .ticket-number { background: linear-gradient(90deg, #ff3df0, #7b5cff, #00e5ff, #ffe14d, #ff3df0); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: legend-flow 3s linear infinite; font-size: 1.25em; }
.admin-note { margin: 12px auto 0; max-width: 520px; font-weight: 800; font-size: .92rem; color: #fff; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(110deg, #0b0630, #3a1c8c, #7b2cff, #3a1c8c, #0b0630); background-size: 300% 100%;
  box-shadow: 0 0 12px rgba(0, 229, 255, .45); animation: legend-flow 6s linear infinite; }
@media (max-width: 600px) { .admin-note { border-radius: 16px; font-size: .85rem; } }

/* The secret code field, folded away under "Got a secret code?". */
.code-box { max-width: 420px; margin: 14px auto 0; text-align: center; }
.code-box summary { cursor: pointer; display: inline-block; font-weight: 700; font-size: .9rem; color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; list-style: none; }
.code-box summary::-webkit-details-marker { display: none; }
.code-box summary::before { content: "🔑 "; }
.code-box summary:hover { color: var(--pink); }
.code-form { display: flex; gap: 8px; margin-top: 8px; }
.code-form input { flex: 1; min-width: 0; font: 1rem "Nunito", sans-serif; color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 9px 14px; background: #fffafc; }
.code-form input:focus { outline: none; border-color: var(--pink); }
html[data-theme="dark"] .code-form input { background: #22172a; }
.code-form .btn { flex: none; }
.code-note { min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; font-weight: 700; }
.code-note.ok { color: #7b5cff; }
html[data-theme="dark"] .code-note.ok { color: #b9a4ff; }
.code-note.bad { color: var(--pink); }
/* Stars bursting out of the field when the admin code is accepted. */
.admin-burst { position: fixed; left: var(--x); top: var(--y); z-index: 9999; pointer-events: none; font-size: 18px; color: hsl(var(--h), 100%, 70%);
  text-shadow: 0 0 8px hsl(var(--h), 100%, 60%); transform: translate(-50%, -50%) scale(.3); opacity: 0; animation: admin-burst 1.4s ease-out forwards; }
@keyframes admin-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3) rotate(240deg); }
}
@media (prefers-reduced-motion: reduce) {
  .frame-aura, .frame-rays, .badge.badge-admin, .badge-admin .ba-crown, .badge-admin .ba-text, .badge-admin .ba-star, .admin-note { animation: none !important; }
  .badge-admin .ba-star { opacity: 1; }
}
