:root {
  --bg: #070b1a;
  --bg2: #0c1330;
  --card: #111a3d;
  --card2: #16224d;
  --line: #22305f;
  --line2: #2d3d74;
  --text: #e8ecff;
  --muted: #8d98c4;
  --dim: #5f6a98;
  --blue: #2f8cff;
  --cyan: #3fd0ff;
  --yellow: #ffd23f;
  --red: #ff4757;
  --green: #2fd67b;
  --purple: #b06bff;
  --t-common: #9aa4c7;
  --t-uncommon: #2fd67b;
  --t-rare: #2f8cff;
  --t-ultra: #b06bff;
  --t-legend: #ffd23f;
  --t-unique: #ff7ad9;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --display: "Russo One", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 140, 255, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(255, 71, 87, .12), transparent 60%),
    linear-gradient(180deg, #070b1a 0%, #0a1028 100%);
}
body::after { /* faint pokéball watermark */
  content: "";
  position: fixed; z-index: -1; right: -180px; bottom: -180px; width: 620px; height: 620px; opacity: .035;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='none' stroke='white' stroke-width='6'/%3E%3Cpath d='M4 50h30M66 50h30' stroke='white' stroke-width='6'/%3E%3Ccircle cx='50' cy='50' r='14' fill='none' stroke='white' stroke-width='6'/%3E%3C/svg%3E") no-repeat center/contain;
  pointer-events: none;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg2); border: 1.5px solid var(--line2);
  border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 140, 255, .18); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .3px; margin: 0; }
.mono, .num { font-variant-numeric: tabular-nums; }

/* ---------------- header ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 26, .78); border-bottom: 1px solid var(--line);
}
.topbar .inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo .word { font-family: var(--display); font-size: 22px; letter-spacing: .5px; }
.logo .word b { color: var(--yellow); font-weight: 400; }
.logo .word i { color: var(--red); font-style: normal; }
.ball { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: 10px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active { color: var(--text); background: var(--card2); box-shadow: inset 0 -2px 0 var(--yellow); }
.spacer { flex: 1; }
#me { display: flex; align-items: center; gap: 10px; }
.streak-pill {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px;
  padding: 6px 10px; border-radius: 999px; background: rgba(255, 210, 63, .1); color: var(--yellow); border: 1px solid rgba(255, 210, 63, .25);
}
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--card2); border: 2px solid var(--line2); image-rendering: pixelated; object-fit: contain; }
.avatar.lg { width: 92px; height: 92px; border-width: 3px; }
.avatar.sm { width: 30px; height: 30px; }
.menu-btn { display: none; }

/* ---------------- layout ---------------- */
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-main { grid-template-columns: minmax(0, 1fr) 330px; }
.card {
  background: linear-gradient(180deg, var(--card) 0%, #0f1736 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card h2 { font-size: 20px; margin-bottom: 14px; }
.card h3 { font-size: 16px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
.hide { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; user-select: none;
  border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 15px; color: #08102a;
  background: var(--yellow); transition: transform .08s, filter .15s, box-shadow .15s; text-decoration: none !important;
  box-shadow: 0 4px 0 #b8901a;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b8901a; }
.btn.blue { background: var(--blue); color: white; box-shadow: 0 4px 0 #1b5bb0; }
.btn.red { background: var(--red); color: white; box-shadow: 0 4px 0 #b02634; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: var(--card2); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--card2); color: var(--muted); border: 1px solid var(--line2); letter-spacing: .2px;
}
.chip.cat { color: var(--cyan); border-color: rgba(63, 208, 255, .3); background: rgba(63, 208, 255, .08); }
.chip.live { color: var(--red); border-color: rgba(255, 71, 87, .4); background: rgba(255, 71, 87, .08); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.chip.final { color: var(--green); border-color: rgba(47, 214, 123, .35); background: rgba(47, 214, 123, .08); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; background: var(--bg2); border: 1px solid var(--line); padding: 5px; border-radius: 14px; }
.tabs button {
  border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.tabs button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 -2px 0 var(--yellow); }

/* ---------------- daily hero ---------------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.hero .title { font-size: 34px; line-height: 1.1; }
.hero .title span { color: var(--yellow); }
.hero .sub { color: var(--muted); margin-top: 6px; }
.countdown { text-align: right; }
.countdown .t { font-family: var(--display); font-size: 26px; color: var(--cyan); letter-spacing: 1px; }
.countdown .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.stars { color: var(--yellow); letter-spacing: 2px; }
.stars .off { color: var(--line2); }

.progress { display: flex; gap: 8px; margin: 4px 0 18px; }
.progress .dot {
  flex: 1; height: 8px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; cursor: pointer; transition: background .2s;
}
.progress .dot.done { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.progress .dot.cur { background: var(--yellow); box-shadow: 0 0 12px rgba(255, 210, 63, .6); }

.qcard { position: relative; overflow: hidden; padding: 30px; min-height: 290px; }
.qcard::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, .025);
}
.qnum { font-family: var(--display); color: var(--dim); font-size: 14px; letter-spacing: 2px; }
.qtext { font-size: 27px; line-height: 1.3; font-weight: 800; margin: 14px 0 22px; letter-spacing: -.2px; }
.answer-row { display: flex; gap: 10px; position: relative; }
.answer-row input { flex: 1; font-size: 18px; padding: 15px 16px; border-radius: 14px; }
.answer-row .btn { padding: 0 24px; font-size: 16px; }
.recog { min-height: 22px; margin-top: 9px; font-size: 13px; color: var(--muted); }
.recog.ok { color: var(--green); }
.recog.warn { color: var(--yellow); }
.suggest {
  position: absolute; left: 0; right: 120px; top: calc(100% + 6px); z-index: 20; background: var(--card2);
  border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.suggest div { padding: 10px 14px; cursor: pointer; font-weight: 600; }
.suggest div:hover, .suggest div.on { background: var(--blue); color: white; }
.slide-in { animation: slideIn .35s cubic-bezier(.2, .9, .3, 1.2); }
.locked-list { display: grid; gap: 8px; }
.locked-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.locked-item .n { font-family: var(--display); color: var(--dim); width: 22px; }
.locked-item .q { flex: 1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locked-item .a { font-weight: 800; }
.lock-ico { color: var(--yellow); }

/* ---------------- tall grass & catching ---------------- */
.card.qcard { padding-bottom: 78px; min-height: 380px; }
.grass-stage { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none; z-index: 1; overflow: hidden; }
.grass { position: absolute; left: -16px; right: -16px; bottom: 0; background-image: var(--grass); background-repeat: repeat-x;
  background-position: left bottom; image-rendering: pixelated; image-rendering: crisp-edges; }
.grass.back { height: 40px; bottom: 16px; background-size: 64px 32px; background-position: 24px bottom; filter: brightness(.6); }
.grass.front { height: 32px; background-size: 64px 32px; }
.grass-stage.rustle .grass.front { animation: rustle .5s steps(1) both; }
.grass-stage.rustle .grass.back { animation: rustle2 .5s steps(1) both; }
@keyframes rustle { 0% { transform: translateX(0); } 20% { transform: translateX(4px) skewX(-8deg); } 40% { transform: translateX(-4px) skewX(8deg); } 60% { transform: translateX(4px); } 80% { transform: translateX(-2px); } 100% { transform: none; } }
@keyframes rustle2 { 0% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px) skewX(6deg); } 75% { transform: translateX(-2px); } 100% { transform: none; } }
.qcard > .slide-in { position: relative; z-index: 2; transition: opacity .3s, filter .3s; }
.qcard.throwing > .slide-in { opacity: .12; filter: blur(2px); pointer-events: none; }
.qcard.throwing > .grass-stage { opacity: 0; }
.throw-stage { position: absolute; inset: 0; z-index: 4; }
.throw-stage .pb, .throw-stage .mon, .throw-stage .flash, .throw-stage .puff { position: absolute; left: 50%; bottom: 24px; }
.throw-stage .pb { width: 48px; height: 48px; margin-left: -24px; bottom: 30px; image-rendering: pixelated; z-index: 3; transform-origin: 50% 90%; }
.throw-stage .grass-stage { z-index: 4; }
.throw-stage .grass-stage .grass.front { z-index: 5; }
.throw-stage .mon { width: 144px; height: 144px; margin-left: -72px; bottom: 18px; image-rendering: pixelated; opacity: 0; z-index: 3; }
.throw-stage .mon.show { opacity: 1; animation: float 2.4s ease-in-out .7s infinite; }
.throw-stage .flash { width: 160px; height: 160px; margin-left: -80px; bottom: -36px; border-radius: 50%; opacity: 0; z-index: 2;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .6) 35%, transparent 70%); }
.throw-stage .puff { font-size: 54px; margin-left: -27px; opacity: 0; z-index: 6; }
.catch-panel { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: min(92%, 480px); text-align: center; z-index: 7; opacity: 0;
  background: rgba(12, 19, 48, .88); border: 1px solid var(--line2); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); pointer-events: none; }
.catch-panel.show { opacity: 1; pointer-events: auto; animation: slideIn .35s; }
.catch-pts { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--yellow); }
.catch-pts small { font-size: 15px; color: var(--t-unique); }
.catch-line { font-size: 18px; margin: 6px 0 4px; }
.glow-Common { filter: drop-shadow(0 0 6px rgba(154, 164, 199, .5)); }
.glow-Uncommon { filter: drop-shadow(0 0 8px rgba(47, 214, 123, .6)); }
.glow-Rare { filter: drop-shadow(0 0 10px rgba(47, 140, 255, .75)); }
.glow-Ultra { filter: drop-shadow(0 0 12px rgba(176, 107, 255, .85)); }
.glow-Legendary { filter: drop-shadow(0 0 16px rgba(255, 210, 63, .95)); }
.glow-Unique { filter: drop-shadow(0 0 18px rgba(255, 122, 217, 1)) drop-shadow(0 0 6px #fff); }
@keyframes float { 50% { transform: translateY(-8px); } }
.mini-mon { width: 36px; height: 36px; flex: none; image-rendering: pixelated; margin: -8px 0; display: inline-grid; place-items: center; }
.locked-item .lp { font-family: var(--display); font-weight: 400; min-width: 38px; text-align: right; }
.catches { display: flex; flex-wrap: wrap; gap: 2px; margin: -4px 0 10px; }
.catches img { width: 48px; height: 48px; image-rendering: pixelated; }
.catches span { width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; opacity: .5; }
@media (max-width: 760px) {
  .locked-item .q, .locked-item .tier { display: none; }
  .locked-item .a { flex: 1; }
  .catch-panel { top: 12px; padding: 10px 12px; }
  .catch-line { font-size: 15px; }
  .card.qcard { min-height: 420px; padding-bottom: 78px; }
}

/* ---------------- results ---------------- */
.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ring { position: relative; width: 190px; height: 190px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-family: var(--display); font-size: 44px; font-weight: 400; display: block; line-height: 1; }
.ring .val small { color: var(--muted); font-size: 13px; }
.emoji-row { font-size: 28px; letter-spacing: 4px; margin: 6px 0 12px; }
.res-q {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.res-q.reveal { animation: flipIn .55s cubic-bezier(.2, .9, .3, 1.1) both; }
.res-q .sprite { width: 56px; height: 56px; image-rendering: pixelated; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: rgba(255,255,255,.03); }
.res-q .sprite img { width: 64px; height: 64px; image-rendering: pixelated; }
.res-q .qt { color: var(--muted); font-size: 13px; }
.res-q .ans { font-weight: 800; font-size: 18px; margin-top: 3px; }
.res-q .meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.res-q .pts { text-align: right; }
.res-q .pts b { font-family: var(--display); font-weight: 400; font-size: 28px; display: block; }
.tier { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.t-Common { color: var(--t-common); background: rgba(154, 164, 199, .12); }
.t-Uncommon { color: var(--t-uncommon); background: rgba(47, 214, 123, .12); }
.t-Rare { color: var(--t-rare); background: rgba(47, 140, 255, .14); }
.t-Ultra { color: var(--t-ultra); background: rgba(176, 107, 255, .14); }
.t-Legendary { color: var(--t-legend); background: rgba(255, 210, 63, .14); }
.t-Unique { color: var(--t-unique); background: rgba(255, 122, 217, .14); }
.t-Incorrect { color: var(--red); background: rgba(255, 71, 87, .12); }
.res-q.tier-Legendary { border-color: rgba(255, 210, 63, .55); box-shadow: 0 0 24px rgba(255, 210, 63, .18); }
.res-q.tier-Unique { border-color: rgba(255, 122, 217, .6); box-shadow: 0 0 28px rgba(255, 122, 217, .25); }
.res-q.tier-Ultra { border-color: rgba(176, 107, 255, .45); }
.res-q.tier-Legendary::after, .res-q.tier-Unique::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%);
  animation: shine 2.8s ease-in-out infinite;
}
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 26px minmax(0, 1fr) 60px; gap: 8px; align-items: center; font-size: 13px; }
.bar img { width: 30px; height: 30px; image-rendering: pixelated; margin: -4px; }
.bar .track { position: relative; height: 26px; background: rgba(255, 255, 255, .04); border-radius: 7px; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(47, 140, 255, .55), rgba(63, 208, 255, .35)); border-radius: 7px; }
.bar.rare .fill { background: linear-gradient(90deg, rgba(255, 210, 63, .5), rgba(255, 122, 217, .35)); }
.bar .lbl { position: absolute; left: 10px; top: 0; bottom: 0; display: flex; align-items: center; font-weight: 700; white-space: nowrap; }
.bar .pc { text-align: right; color: var(--muted); }
.lockbox {
  border: 1.5px dashed var(--line2); border-radius: 16px; padding: 22px; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 12px, transparent 12px 24px);
}

/* ---------------- leaderboard ---------------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); font-weight: 700; padding: 8px 10px; }
td { padding: 10px; border-top: 1px solid var(--line); }
tr.me td { background: rgba(255, 210, 63, .06); }
.rank { font-family: var(--display); width: 44px; text-align: center; font-size: 16px; }
.rank.r1 { color: var(--yellow); } .rank.r2 { color: #cfd8f0; } .rank.r3 { color: #e09a5c; }
.user-cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
td.score { font-family: var(--display); font-size: 18px; text-align: right; }

/* ---------------- archive ---------------- */
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.day-card { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, border-color .15s; }
.day-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.day-card .n { font-family: var(--display); font-size: 22px; }
.day-card .d { color: var(--muted); font-size: 13px; }

/* ---------------- stats ---------------- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile b { font-family: var(--display); font-weight: 400; font-size: 28px; display: block; }
.tile span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.ach .ico { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--card2); flex: none; }
.ach.locked { opacity: .42; filter: grayscale(1); }
.ach.gold .ico { box-shadow: 0 0 0 2px rgba(255, 210, 63, .5); }
.ach.platinum .ico { box-shadow: 0 0 0 2px rgba(255, 122, 217, .55); }
.ach.silver .ico { box-shadow: 0 0 0 2px rgba(200, 210, 240, .4); }
.ach b { display: block; font-size: 14px; }
.ach small { color: var(--muted); font-size: 12px; }
.spark { width: 100%; height: 120px; }

/* ---------------- modal / toast ---------------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(3, 6, 18, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: min(440px, 100%); max-height: 90vh; overflow: auto; }
.modal.wide { width: min(720px, 100%); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.err { color: var(--red); font-size: 14px; min-height: 18px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--yellow); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); animation: slideIn .3s; max-width: 340px; }
.toast.ach { border-left-color: var(--t-unique); }
.banner {
  position: fixed; left: 50%; top: 40%; z-index: 150; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  font-family: var(--display); font-size: clamp(34px, 7vw, 72px); color: var(--yellow);
  text-shadow: 0 0 30px rgba(255, 210, 63, .7), 0 4px 0 #a5780c; animation: bannerPop 2.2s ease forwards;
}
.banner small { display: block; font-size: .32em; color: white; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); letter-spacing: 2px; }
.banner.unique { color: var(--t-unique); text-shadow: 0 0 30px rgba(255, 122, 217, .8), 0 4px 0 #8a2a6f; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 140; }
.shake { animation: shake .5s; }

/* ---------------- admin ---------------- */
.admin-table td { font-size: 13.5px; vertical-align: top; }
.admin-table tr:hover td { background: rgba(255, 255, 255, .02); cursor: pointer; }
.ans-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 220px; overflow: auto; }
.ans-chips span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); }
.day-sched { padding: 14px 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.day-sched.today { border-color: var(--yellow); }
.day-sched ol { margin: 8px 0 0; padding-left: 22px; }
.day-sched li { padding: 3px 0; font-size: 14px; }
.day-sched li .swap { margin-left: 6px; font-size: 12px; cursor: pointer; color: var(--cyan); }
.pill-toggle { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }

/* ---------------- footer ---------------- */
footer { text-align: center; color: var(--dim); font-size: 12px; padding: 30px 20px 50px; }

/* ---------------- animation ---------------- */
@keyframes pulse { 50% { opacity: .3; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes flipIn { from { opacity: 0; transform: perspective(700px) rotateX(-70deg) translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes bannerPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(2deg); }
  25% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); }
}
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .cols-main, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .score-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 760px) {
  .topbar .inner { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { display: none; width: 100%; order: 5; margin: 0; }
  .nav.open { display: flex; flex-direction: column; }
  #me { order: 4; }
  .spacer { display: none; }
  main { padding: 18px 14px 60px; }
  .qcard { padding: 22px 18px; }
  .qtext { font-size: 21px; }
  .answer-row { flex-direction: column; }
  .answer-row .btn { padding: 14px; }
  .suggest { right: 0; top: 58px; }
  .hero .title { font-size: 26px; }
  .countdown { text-align: left; }
  .res-q { grid-template-columns: 44px minmax(0, 1fr); }
  .res-q .pts { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 10px; }
  .res-q .pts b { font-size: 22px; }
  td, th { padding: 8px 6px; }
  .hide-sm { display: none; }
}

/* =================== v3: centred layout, home screen, suspense =================== */
.nav { flex: 1; justify-content: center; margin-left: 0; }
.spacer { display: none; }
main { max-width: 940px; }
.hero { flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.hero .row.wrap { justify-content: center; }
.countdown, .countdown .l { text-align: center; }
.cols-main { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.cols-main > aside { max-width: 760px; }
.card > h2, .card > h3 { text-align: center; }
.row.between.wrap { justify-content: center; gap: 12px; }
.tabs { justify-content: center; }
.score-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.score-hero .row.wrap { justify-content: center; }
.catches, .emoji-row { justify-content: center; }
.emoji-row { text-align: center; }
.stat-tiles .tile { text-align: center; }
.qcard { text-align: center; }
.qcard .row.between { justify-content: space-between; }
.qnum { text-align: left; }
.answer-row input { text-align: center; }
.day-card { text-align: center; }
.day-card .row.between { justify-content: center; gap: 10px; }
.card.row.wrap { justify-content: center; text-align: center; }
footer { max-width: 760px; margin: 0 auto; }

/* ---- home ---- */
body.is-home main { max-width: 1000px; }
.home {
  position: relative; overflow: hidden; text-align: center; min-height: calc(100vh - 260px); min-height: max(520px, calc(100vh - 260px));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px 110px;
  border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(47, 140, 255, .22), transparent 70%),
    radial-gradient(400px 200px at 50% 90%, rgba(47, 214, 123, .12), transparent 70%),
    linear-gradient(180deg, #0e1740 0%, #0a1130 100%);
  box-shadow: var(--shadow);
}
.home::before { /* starfield */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 78% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 40%, #cfe3ff, transparent), radial-gradient(1px 1px at 30% 60%, #fff, transparent),
    radial-gradient(1px 1px at 88% 66%, #fff, transparent), radial-gradient(1.5px 1.5px at 8% 70%, #ffe9a8, transparent),
    radial-gradient(1px 1px at 45% 12%, #fff, transparent), radial-gradient(1px 1px at 55% 75%, #fff, transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
.home-ball-wrap { position: relative; width: 120px; height: 120px; }
.home-ball { width: 120px; height: 120px; image-rendering: pixelated; position: relative; z-index: 1; animation: ballIdle 3.2s ease-in-out infinite; transform-origin: 50% 85%; }
.home-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .35), transparent 65%); animation: pulseGlow 3.2s ease-in-out infinite; }
.home-title { font-size: clamp(48px, 11vw, 112px); line-height: .95; letter-spacing: 2px; position: relative; z-index: 1;
  text-shadow: 0 6px 0 #081027, 0 0 40px rgba(47, 140, 255, .45); }
.home-title .ht-a { color: #fff; }
.home-title .ht-b { color: var(--yellow); display: inline-block; animation: bobI 2.4s ease-in-out infinite; }
.home-title .ht-c { background: linear-gradient(180deg, #ff6b7a, #ff4757 55%, #c92a3a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-tag { max-width: 560px; color: var(--muted); font-size: 17px; margin: 0; position: relative; z-index: 1; }
.home-tag b { color: var(--text); }
.home-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; z-index: 1; }
.play-cta { position: relative; z-index: 2; font-size: 22px; padding: 18px 40px; border-radius: 18px; font-family: var(--display); font-weight: 400; letter-spacing: .5px;
  box-shadow: 0 6px 0 #b8901a, 0 0 0 0 rgba(255, 210, 63, .6); animation: ctaPulse 2s ease-in-out infinite; }
.play-cta:hover { transform: translateY(-2px) scale(1.03); }
.play-cta span { font-size: 18px; }
.home-count { color: var(--muted); font-size: 14px; position: relative; z-index: 1; }
.home-count b { font-family: var(--display); font-weight: 400; color: var(--cyan); letter-spacing: 1px; }
.home .grass-stage { height: 80px; }
.home .grass.front { height: 48px; background-size: 96px 48px; }
.home .grass.back { height: 56px; bottom: 22px; background-size: 96px 48px; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.home-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: transform .15s, border-color .15s, background .15s; }
.home-tile:hover { transform: translateY(-4px); border-color: var(--yellow); background: var(--card2); }
.home-tile .ti { font-size: 28px; }
.home-tile small { color: var(--muted); font-size: 12px; }
@keyframes ballIdle { 0%, 70%, 100% { transform: rotate(0) translateY(0); } 76% { transform: rotate(-14deg); } 82% { transform: rotate(12deg); } 88% { transform: rotate(-6deg); } 40% { transform: translateY(-8px); } }
@keyframes pulseGlow { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes bobI { 50% { transform: translateY(-10px) rotate(-6deg); } }
@keyframes ctaPulse { 50% { box-shadow: 0 6px 0 #b8901a, 0 0 0 14px rgba(255, 210, 63, 0); } 0% { box-shadow: 0 6px 0 #b8901a, 0 0 0 0 rgba(255, 210, 63, .5); } }
@keyframes twinkle { to { opacity: .2; } }

/* ---- suspense veil & rewards ---- */
.suspense-veil { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .45s ease, background .3s;
  background: radial-gradient(circle 150px at var(--x, 50%) var(--y, 50%), rgba(0, 0, 0, .15), rgba(2, 3, 10, .9) 70%); }
.suspense-veil.on { opacity: 1; pointer-events: auto; }
.suspense-veil.tier-Incorrect { background: radial-gradient(circle 200px at var(--x, 50%) var(--y, 50%), rgba(80, 0, 10, .25), rgba(30, 0, 6, .85) 70%); }
.suspense-veil.tier-Legendary { background: radial-gradient(circle 280px at var(--x, 50%) var(--y, 50%), rgba(255, 210, 63, .22), rgba(10, 6, 0, .85) 75%); }
.suspense-veil.tier-Unique { background: radial-gradient(circle 300px at var(--x, 50%) var(--y, 50%), rgba(255, 122, 217, .25), rgba(10, 0, 12, .85) 75%); }
.suspense-veil.tier-Ultra { background: radial-gradient(circle 240px at var(--x, 50%) var(--y, 50%), rgba(176, 107, 255, .2), rgba(5, 0, 14, .85) 75%); }
.card.qcard.suspense { position: relative; z-index: 95; overflow: visible; background: transparent; border-color: transparent; box-shadow: none; }
.card.qcard.suspense > .slide-in { opacity: 0; }
.flare { position: absolute; left: 50%; bottom: 70px; width: 320px; height: 320px; margin-left: -160px; margin-bottom: -160px; border-radius: 50%; opacity: 0; z-index: 2; pointer-events: none; }
.flare.show { animation: flareIn .7s cubic-bezier(.2, .9, .3, 1.2) forwards, spin 9s linear infinite; }
.f-Common { width: 160px; height: 160px; margin-left: -80px; margin-bottom: -80px; background: radial-gradient(circle, rgba(220, 228, 255, .35), transparent 65%); }
.f-Uncommon { width: 220px; height: 220px; margin-left: -110px; margin-bottom: -110px; background: radial-gradient(circle, rgba(47, 214, 123, .45), transparent 65%); }
.f-Rare { background: repeating-conic-gradient(rgba(63, 208, 255, .35) 0 8deg, transparent 8deg 30deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); }
.f-Ultra { width: 380px; height: 380px; margin-left: -190px; margin-bottom: -190px; background: repeating-conic-gradient(rgba(176, 107, 255, .5) 0 7deg, transparent 7deg 22deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); }
.f-Legendary { width: 520px; height: 520px; margin-left: -260px; margin-bottom: -260px; background: repeating-conic-gradient(rgba(255, 210, 63, .65) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%); }
.f-Unique { width: 560px; height: 560px; margin-left: -280px; margin-bottom: -280px; background: conic-gradient(from 0deg, #ff7ad9aa, #ffd23faa, #3fd0ffaa, #2fd67baa, #b06bffaa, #ff7ad9aa); -webkit-mask: repeating-conic-gradient(#000 0 6deg, transparent 6deg 16deg), radial-gradient(circle, #000 18%, transparent 68%); -webkit-mask-composite: source-in; mask: repeating-conic-gradient(#000 0 6deg, transparent 6deg 16deg) intersect, radial-gradient(circle, #000 18%, transparent 68%); }
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.sparkles span { position: absolute; color: #fff; text-shadow: 0 0 8px #ff7ad9, 0 0 14px #ffd23f; opacity: 0; animation: twinkleStar 1.4s ease-in-out infinite; }
@keyframes flareIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes twinkleStar { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2); } }

@media (max-width: 760px) {
  .nav { justify-content: stretch; }
  .home { padding: 30px 14px 100px; min-height: 480px; border-radius: 22px; }
  .home-ball-wrap, .home-ball { width: 90px; height: 90px; }
  .play-cta { font-size: 19px; padding: 16px 26px; }
  .home-tiles { grid-template-columns: repeat(2, 1fr); }
  .f-Legendary, .f-Unique { width: 380px; height: 380px; margin-left: -190px; margin-bottom: -190px; }
}

/* =================== v4: open-field background scene =================== */
body { background: #8fd3ff; }
body::before, body::after { display: none; }
#scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#scene .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #5fb6f5 0%, #8fd3ff 38%, #c8ecff 62%, #e6f7ff 72%); }
#scene .sun { position: absolute; right: 9%; top: 7%; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #fff9d6 0%, #ffe680 40%, rgba(255, 230, 128, 0) 70%); filter: blur(1px); animation: sunPulse 6s ease-in-out infinite; }
#scene .clouds { position: absolute; inset: 0 0 40% 0; }
#scene .cloud { position: absolute; left: 0; image-rendering: pixelated; opacity: .97; animation: drift linear infinite; filter: drop-shadow(0 5px 0 rgba(110, 165, 220, .35)); }
#scene .hills { position: absolute; left: 0; width: 100%; }
#scene .hills.far { bottom: 26vh; height: 22vh; }
#scene .hills.near { bottom: 22vh; height: 16vh; }
#scene .town { position: absolute; left: 0; right: 0; bottom: calc(22vh + 4vh); height: 0; }
#scene .bldg { position: absolute; bottom: 0; transform: translateX(-50%); image-rendering: pixelated; }
#scene .bldg.tree { filter: saturate(1.05); }
#scene .field { position: absolute; left: 0; right: 0; bottom: 0; height: 27vh;
  background: linear-gradient(180deg, #6cc163 0%, #58b04f 45%, #4a9d43 100%); }
#scene .field-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background-image: var(--grass); background-size: 96px 48px;
  background-repeat: repeat-x; image-rendering: pixelated; }
#scene .road { position: absolute; left: -5%; right: -5%; bottom: 4vh; height: 9vh; border-radius: 50%;
  background: linear-gradient(180deg, #e7cf94, #d6b877); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .08); opacity: .9; }
#scene .walkers { position: absolute; inset: 0; }
#scene .walker { position: absolute; left: 0; will-change: transform; }
#scene .walker img { display: block; image-rendering: pixelated; height: 56px; width: auto; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25)); }
#scene .walker.fly img { height: 64px; filter: drop-shadow(0 18px 6px rgba(0, 0, 0, .12)); }
#scene .walker.legend img { height: 120px; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .8)); }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(120vw); } }
@keyframes sunPulse { 50% { transform: scale(1.06); } }

/* readability on the bright scene: glass panels for text that sits outside cards */
.hero { background: rgba(9, 15, 40, .78); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 22px 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(10, 30, 70, .25); }
.topbar { background: rgba(9, 15, 40, .86); }
footer { background: rgba(9, 15, 40, .72); color: #b9c3e6; border-radius: 18px; padding: 16px 20px; margin-bottom: 30px; backdrop-filter: blur(6px); }
.card { box-shadow: 0 12px 34px rgba(10, 30, 70, .35); }
.home { background: rgba(9, 16, 44, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-color: rgba(255, 255, 255, .15); }
.home::before { display: none; }
.home-tag { color: #d7def5; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.home-count { color: #d7def5; }
.home-tile { background: rgba(17, 26, 61, .88); backdrop-filter: blur(4px); }
.row.between.wrap > .tabs, .lbwrap { background: rgba(9, 15, 40, .8); }
@media (max-width: 760px) {
  #scene .bldg.center { width: 96px !important; }
  #scene .bldg.house { width: 60px !important; }
  #scene .walker img { height: 44px; }
}

/* =================== v5: timer, broken ball, higher catch, Pokédex, richer scene =================== */
/* timer */
.qtimer { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; }
.qt-track { flex: 1; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; border: 1px solid var(--line); }
.qt-fill { height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .1s linear, background .3s; }
.qt-num { font-family: var(--display); font-size: 20px; min-width: 30px; text-align: right; color: var(--cyan); }
.qt-label { display: none; }
.qtimer.idle .qt-label { display: inline; font-size: 12px; color: var(--muted); }
.qtimer.idle .qt-track, .qtimer.idle .qt-num { opacity: .5; }
.qtimer.warn .qt-fill { background: linear-gradient(90deg, #ffb02e, var(--yellow)); }
.qtimer.warn .qt-num { color: var(--yellow); }
.qtimer.danger .qt-fill { background: linear-gradient(90deg, #ff2d4a, var(--red)); }
.qtimer.danger .qt-num { color: var(--red); animation: timerPulse .5s ease-in-out infinite; }
.qtimer.danger .qt-track { box-shadow: 0 0 14px rgba(255, 71, 87, .55); }
.qt-callout { position: absolute; left: 50%; top: 46%; z-index: 8; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-family: var(--display); font-size: clamp(22px, 5vw, 36px); padding: 10px 22px; border-radius: 16px; animation: callout 1.9s ease forwards; }
.qt-callout.warn { color: #2a1a00; background: var(--yellow); box-shadow: 0 6px 0 #b8901a, 0 0 30px rgba(255, 210, 63, .6); }
.qt-callout.danger { color: #fff; background: var(--red); box-shadow: 0 6px 0 #a3202e, 0 0 30px rgba(255, 71, 87, .7); }
@keyframes callout { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 22% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(.95); } }
@keyframes timerPulse { 50% { transform: scale(1.25); } }

/* catch sprite sits higher, above the grass */
.card.qcard { min-height: 440px; }
.throw-stage .mon { bottom: 70px; }
.throw-stage .flare { bottom: 140px; }
.throw-stage .flash { bottom: 20px; }

/* broken ball + smoke */
.pb-half { position: absolute; left: 50%; bottom: 30px; width: 48px; height: 48px; margin-left: -24px; image-rendering: pixelated; z-index: 5; }
.shard { position: absolute; left: 50%; bottom: 50px; width: 6px; height: 6px; z-index: 5; }
.smoke { position: absolute; left: 50%; bottom: 40px; width: 46px; height: 46px; border-radius: 40%; z-index: 6; opacity: 0;
  background: radial-gradient(circle at 40% 35%, #f2f2f5 0%, #c8cbd6 45%, rgba(150, 155, 170, .0) 72%); filter: blur(1px); }

/* Pokédex */
.dex-progress { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dex-progress b { color: var(--yellow); font-family: var(--display); font-weight: 400; font-size: 18px; }
.dex-bar { width: min(420px, 90%); height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; border: 1px solid var(--line); }
.dex-bar div { height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow)); border-radius: 99px; }
.dex-gen { margin: 18px 0 10px; font-size: 16px; }
.dex-gen:first-child { margin-top: 0; }
.dex-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.dex-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 104px; padding: 6px 4px;
  border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); text-align: center; }
.dex-cell .unk { width: 56px; height: 56px; display: grid; place-items: center; font-family: var(--display); font-size: 24px; color: var(--line2);
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .04), transparent 70%); }
.dex-cell .dn { font-size: 10.5px; color: var(--dim); }
.dex-cell b { font-size: 12px; line-height: 1.1; }
.dex-cell img { width: 64px; height: 64px; image-rendering: pixelated; margin: -6px 0 -4px; }
.dex-cell.got { background: linear-gradient(180deg, #18275a, #111a3d); border-color: var(--line2); }
.dex-cell.shiny { border-color: rgba(255, 122, 217, .6); box-shadow: 0 0 14px rgba(255, 122, 217, .25); }
.dex-cell.shiny::after { content: "✨"; position: absolute; top: 4px; right: 6px; font-size: 12px; }
.dex-cell .dc { position: absolute; top: 4px; left: 6px; font-size: 10.5px; color: var(--yellow); font-weight: 700; }
.dex-cell.glow-Legendary, .dex-cell.glow-Unique { filter: none; }

/* richer scene */
#scene .forest { position: absolute; left: 0; right: 0; bottom: calc(22vh + 9vh); height: 0; }
#scene .ftree { position: absolute; bottom: 0; transform: translateX(-50%); image-rendering: pixelated; }
#scene .town { z-index: 1; }
#scene .field { z-index: 2; }
#scene .lake { position: absolute; border-radius: 50%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #7fd3ff 0%, #3fa6e6 55%, #2a83c4 100%);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, .25), inset 0 -6px 12px rgba(0, 40, 90, .35), 0 0 0 5px #c9b27a, 0 0 0 8px #9fd98f; }
#scene .lake.big { left: 2%; bottom: 11vh; width: 22vw; max-width: 330px; height: 9vh; }
#scene .lake.small { right: 3%; bottom: 13vh; width: 13vw; max-width: 200px; height: 6vh; }
#scene .shimmer { position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .55) 18px 30px, transparent 30px 60px);
  -webkit-mask: repeating-linear-gradient(180deg, transparent 0 8px, #000 8px 10px); mask: repeating-linear-gradient(180deg, transparent 0 8px, #000 8px 10px);
  opacity: .5; animation: shimmer 6s linear infinite; }
#scene .lily { position: absolute; width: 18px; image-rendering: pixelated; animation: bob 4s ease-in-out infinite; }
#scene .swimmer { position: absolute; left: 45%; top: 8%; height: 48px; image-rendering: pixelated; animation: swim 14s ease-in-out infinite alternate, bob 2.6s ease-in-out infinite; }
#scene .lake.small .swimmer { height: 36px; animation-duration: 10s, 2s; }
#scene .flower, #scene .bush, #scene .rock, #scene .fence { position: absolute; image-rendering: pixelated; transform: translateX(-50%); }
#scene .flower { animation: sway 3s ease-in-out infinite; transform-origin: 50% 100%; }
#scene .fence { width: 78px; }
@keyframes shimmer { to { background-position: 120px 0; } }
@keyframes bob { 50% { translate: 0 -3px; } }
@keyframes swim { from { left: 12%; } to { left: 68%; } }
@keyframes sway { 50% { rotate: 6deg; } }
@media (max-width: 760px) {
  #scene .lake.big { width: 40vw; height: 7vh; }
  #scene .lake.small { display: none; }
  .dex-cells { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
