/*
 * Colour Cabs. The town itself is drawn on a canvas (js/art.js); this file
 * styles everything around it: the home screen, the top bar, the cards.
 * Made for a phone held sideways first, but it also works upright and on a
 * computer.
 */
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("../fonts/nunito-latin-900-normal.woff2") format("woff2"); }

:root {
  --ink: #2a1a5e;
  --ink-soft: #5a4d8c;
  --sky-1: #fff4c9;
  --sky-2: #a9e3ff;
  --sky-3: #62bdf5;
  --card: #fffdf6;
  --pill: rgba(255, 255, 255, .92);
  --orange: #ff9a2e;
  --orange-deep: #c9650a;
  --red: #ff4d5e; --blue: #2e9bff; --yellow: #ffc61a; --green: #3fca58; --purple: #a65cff; --pink: #ff5fa2;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  color: var(--ink);
  background: var(--sky-2);
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button:focus-visible, .pad-focus { outline: 4px solid var(--ink); outline-offset: 3px; }

.screen {
  position: fixed; inset: 0;
  padding: max(10px, var(--safe-t)) max(14px, var(--safe-r)) max(10px, var(--safe-b)) max(14px, var(--safe-l));
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 60% at 50% -10%, var(--sky-1) 0, rgba(255, 244, 201, 0) 70%),
    linear-gradient(180deg, var(--sky-2), var(--sky-3));
}

/* ---- shared pieces ---- */
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--pill);
  box-shadow: 0 3px 0 rgba(42, 26, 94, .22); display: grid; place-items: center;
}
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(42, 26, 94, .22); }
.coin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, #ffc61a 55%, #e09a00); border: 2px solid #b97800; flex: none; }
.coin-pill { margin: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--pill); border-radius: 999px; padding: 6px 16px 6px 8px; font-weight: 900; font-size: 18px; box-shadow: 0 3px 0 rgba(42, 26, 94, .22); }
.install-btn { height: 44px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px 0 11px; border-radius: 999px; background: var(--pill); font-weight: 900; font-size: 17px; box-shadow: 0 3px 0 rgba(42, 26, 94, .22); }
.install-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.install-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(42, 26, 94, .22); }
/* The Rainbow Cab button on the home screen: a little rainbow cab, its name, and how many free rides are in hand. */
.cab-btn { position: relative; height: 44px; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--pill); font-weight: 900; font-size: 16px; box-shadow: 0 3px 0 rgba(42, 26, 94, .22); }
.cab-btn canvas { width: 48px; height: 30px; flex: none; }
.cab-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(42, 26, 94, .22); }
.cab-btn.on { background: #fff3a8; box-shadow: 0 3px 0 #d99400; }
.cab-btn.locked canvas { filter: grayscale(1); opacity: .6; }
.cab-badge { position: absolute; right: -4px; top: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; border: 2px solid var(--ink); font-size: 13px; line-height: 18px; text-align: center; }
.cab-badge.lock { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1a5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2.500' fill='%232a1a5e'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 13px no-repeat; }
/* Spare batteries: the battery drawing (home button and card) and the little battery (top bar, win card). */
.batt-svg rect { fill: #bdf0c6; stroke: var(--ink); stroke-width: 2; }
.batt-svg .tip { fill: var(--ink); stroke: none; }
.batt-svg .bolt { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.200; stroke-linejoin: round; }
.spare-btn svg { width: 35px; height: 21px; flex: none; margin: 0 2px 0 7px; }
.spare-btn span { display: none; }
.batt-icon { position: relative; display: inline-block; flex: none; width: 19px; height: 12px; border: 2px solid var(--ink); border-radius: 3px; background: var(--green); margin-right: 3px; }
.batt-icon::after { content: ""; position: absolute; right: -5px; top: 2px; width: 2px; height: 4px; background: var(--ink); border-radius: 0 1px 1px 0; }
.pad-sign { display: grid; place-items: center; width: 44px; height: 44px; }
.pad-sign svg { width: 34px; height: 26px; fill: var(--ink); }
.pad-sign .pad-mark { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.pad-sign .pad-dot { fill: #ffc61a; }

.primary, .secondary {
  border-radius: 22px; font-weight: 900; line-height: 1.1; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .08s ease, box-shadow .08s ease;
}
.primary { background: linear-gradient(180deg, #ffb347, var(--orange)); color: #3d1c05; box-shadow: 0 6px 0 var(--orange-deep), 0 10px 18px rgba(42, 26, 94, .2); padding: 12px 26px 14px; font-size: 22px; }
.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-deep); }
.primary.big { font-size: 28px; padding: 14px 26px 16px; }
.primary small, .secondary small { font-size: .62em; font-weight: 800; opacity: .82; }
.secondary { background: var(--pill); box-shadow: 0 5px 0 #9fc4e6, 0 8px 14px rgba(42, 26, 94, .12); padding: 10px 18px 12px; font-size: 19px; }
.secondary:active { transform: translateY(3px); box-shadow: 0 2px 0 #9fc4e6; }
.secondary.two small { font-size: .8em; opacity: 1; color: var(--ink-soft); }
.text-btn { background: none; font-weight: 900; font-size: 18px; padding: 8px 16px; border-radius: 12px; color: var(--ink-soft); }

/* ---- home ---- */
.home-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; flex: none; }
.bar-left, .bar-right { display: flex; align-items: center; gap: 8px; }
.bar-right { margin-left: auto; }
.home-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px 28px; align-items: center; max-width: 980px; width: 100%; margin: 0 auto; }
.home-hero { display: grid; justify-items: center; gap: 2px; min-width: 0; }
#hero-art { width: min(100%, 440px); height: auto; aspect-ratio: 440 / 150; }
.logo { margin: 0; font-weight: 900; font-size: clamp(40px, 8.5vh + 2vw, 78px); line-height: .92; text-align: center; letter-spacing: 1px; }
.logo span, .logo em { display: block; font-style: normal; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; }
.logo b:nth-child(1) { color: var(--pink); } .logo b:nth-child(2) { color: var(--yellow); } .logo b:nth-child(3) { color: var(--blue); }
.logo b:nth-child(4) { color: var(--green); } .logo b:nth-child(5) { color: var(--purple); } .logo b:nth-child(6) { color: var(--orange); }
.logo em { color: #fff; }
.tagline { margin: 8px 0 0; font-size: clamp(15px, 2.4vh + .6vw, 20px); text-align: center; color: var(--ink); }
.home-actions { display: grid; gap: 14px; min-width: 0; max-width: 380px; width: 100%; justify-self: center; }
.home-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-foot { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--ink-soft); flex: none; }

/* ---- game ---- */
#app { padding-left: var(--safe-l); padding-right: var(--safe-r); padding-bottom: var(--safe-b); padding-top: max(6px, var(--safe-t)); background: linear-gradient(180deg, var(--sky-2), var(--sky-3)); }
.top { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 6px; min-height: 50px; }
.level-box { flex: 1; min-width: 0; text-align: center; }
.level { font-weight: 900; font-size: 20px; line-height: 1.1; white-space: nowrap; }
.level-sub { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.level-tag { font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: #fff; border-radius: 999px; padding: 1px 9px 2px; background: var(--green); }
.level-tag.medium { background: #f08a1c; } .level-tag.hard { background: var(--red); }
.goal { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; }
.spare-count { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; }
.goal i { width: 11px; height: 15px; border-radius: 6px 6px 3px 3px; background: var(--ink); display: inline-block; }
.pill { flex: none; display: flex; align-items: center; gap: 7px; background: var(--pill); border-radius: 999px; padding: 5px 12px 5px 6px; box-shadow: 0 3px 0 rgba(42, 26, 94, .2); min-height: 36px; }
.pill .who { font-size: 12px; font-weight: 900; color: #fff; border-radius: 999px; padding: 2px 8px; background: var(--ink); }
.pill .paint { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.pill .paint.rainbow { background: conic-gradient(var(--red), #ff8a2a, var(--yellow), var(--green), var(--blue), var(--purple), var(--red)); }
.pill .seats { display: flex; gap: 3px; }
.pill .seats i { width: 12px; height: 15px; border-radius: 6px 6px 3px 3px; border: 2px solid var(--ink); background: #e9e6f5; }
.pill .batt { position: relative; width: 34px; height: 16px; border: 2.5px solid var(--ink); border-radius: 5px; background: #fff; margin-right: 3px; }
.pill .batt::after { content: ""; position: absolute; right: -6px; top: 3px; width: 3px; height: 5px; background: var(--ink); border-radius: 0 2px 2px 0; }
.pill .batt b { position: absolute; left: 1px; top: 1px; bottom: 1px; border-radius: 2px; background: var(--green); }
.pill .batt.mid b { background: var(--yellow); } .pill .batt.low b { background: var(--red); }
.pill .batt.flat { animation: blink .7s steps(2) infinite; }
.pill .score { font-weight: 900; font-size: 17px; min-width: 14px; text-align: center; }
@keyframes blink { 50% { opacity: .35; } }

#stage { flex: 1; min-height: 0; position: relative; touch-action: none; overflow: hidden; }
#town { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stick { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.stick::before { content: ""; position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 3px solid rgba(42, 26, 94, .45); }
.stick i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 rgba(42, 26, 94, .3); }
#coach {
  flex: none; align-self: center; margin: 2px 10px max(6px, var(--safe-b));
  background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 4px 16px 5px; font-size: 16px; font-weight: 900; line-height: 1.25;
  text-align: center; max-width: min(94%, 620px); box-shadow: 0 4px 0 rgba(42, 26, 94, .25);
}

/* ---- cards ---- */
.overlay { position: fixed; inset: 0; z-index: 10; background: rgba(42, 26, 94, .45); display: grid; place-items: center; padding: max(10px, var(--safe-t)) max(12px, var(--safe-r)) max(10px, var(--safe-b)) max(12px, var(--safe-l)); }
.card {
  background: var(--card); border: 4px solid var(--ink); border-radius: 28px; padding: 18px 24px 16px; width: min(100%, 430px);
  max-height: 100%; overflow-y: auto; display: grid; gap: 10px; justify-items: center; text-align: center;
  box-shadow: 0 10px 0 rgba(42, 26, 94, .3); animation: pop .25s ease-out;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.card h2 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.15; }
.card p { margin: 0; }
.card .primary { min-width: 200px; }
.card.win { width: min(100%, 560px); grid-template-columns: minmax(0, 180px) minmax(0, 1fr); align-items: center; gap: 6px 18px; }
#win-art { width: 100%; height: auto; aspect-ratio: 1; }
.win-text { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.win-prizes { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; }
.win-spare { background: #d9f6df; padding-left: 12px; font-size: 17px; }
.win-gift { font-size: 15.500px; font-weight: 900; line-height: 1.25; border-radius: 14px; padding: 5px 12px; color: var(--ink); background: linear-gradient(90deg, #ffd0d5, #ffe9b0, #c9f3d1, #cbe6ff, #e6d6ff); }
.win-coins { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; background: #fff1c2; border-radius: 999px; padding: 4px 16px 4px 8px; }
.race-score { display: flex; gap: 14px; font-size: 20px; font-weight: 900; align-items: center; }
.race-score span { display: inline-flex; align-items: center; gap: 6px; background: #eee9fb; border-radius: 999px; padding: 3px 12px; }
.race-score .won { background: #ffe58a; }
.race-score svg { width: 22px; height: 18px; }
.setting { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 19px; padding: 6px 2px; }
.switch { width: 58px; height: 32px; border-radius: 999px; background: #c9c3df; border: 3px solid var(--ink); position: relative; flex: none; }
.switch i { position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] i { transform: translateX(26px); }
.card.rainbow { width: min(100%, 600px); grid-template-columns: minmax(0, 190px) minmax(0, 1fr); align-items: center; gap: 6px 18px; }
#rainbow-art { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.rainbow-text { display: grid; gap: 7px; justify-items: center; min-width: 0; }
.special { font-size: 12px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: #fff; background: var(--pink); border-radius: 999px; padding: 1px 12px 2px; }
.rainbow-what { font-size: 15px; font-weight: 700; line-height: 1.3; }
.rainbow-state { font-size: 15px; font-weight: 900; line-height: 1.3; background: #eee9fb; border-radius: 14px; padding: 5px 12px; }
.rainbow-text .setting { font-size: 17px; padding: 0 2px; gap: 10px; text-align: left; }
.rainbow-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: stretch; width: 100%; }
.rainbow-buttons .primary, .rainbow-buttons .secondary { min-width: 0; flex: 1 1 150px; font-size: 18px; padding: 8px 14px 10px; border-radius: 18px; }
.rainbow-buttons .secondary { background: #fff3a8; box-shadow: 0 5px 0 #d99400, 0 8px 14px rgba(42, 26, 94, .12); }
.rainbow-buttons .secondary:active { box-shadow: 0 2px 0 #d99400; }
.rainbow-buttons .secondary.short { background: #eeeaf7; box-shadow: 0 5px 0 #c3bcd9; color: var(--ink-soft); }
.card.spares { width: min(100%, 460px); gap: 8px; }
.spares-art { width: 92px; height: 55px; }
/* Language: the button in Settings that shows the language in use, and the card with all six. */
.lang-btn { background: #eee9fb; border-radius: 999px; padding: 4px 14px 5px 16px; font-weight: 900; font-size: 17px; line-height: 1.3; box-shadow: 0 3px 0 #c3bcd9; }
.lang-btn::after { content: "›"; margin-left: 8px; }
.lang-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c3bcd9; }
.card.language { width: min(100%, 470px); }
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.lang-pick { background: #fff; border: 3px solid #c9c3df; border-radius: 16px; padding: 8px 4px 9px; font-weight: 900; font-size: 18px; line-height: 1.3; }
.lang-pick[aria-checked="true"] { background: #fff3a8; border-color: var(--ink); box-shadow: 0 3px 0 #d99400; }
/* Scripts other than English: letters are taller and must not be spread apart. */
html:not([lang="en"]) .level-tag, html:not([lang="en"]) .special { letter-spacing: 0; }
html:not([lang="en"]) .primary, html:not([lang="en"]) .secondary { line-height: 1.3; }
html:not([lang="en"]) .card h2 { font-size: 22px; line-height: 1.25; }
html:not([lang="en"]) .card.how ol { font-size: 15px; } html:not([lang="en"]) .card.how ul { font-size: 14px; }
.fine { font-size: 12.500px; color: var(--ink-soft); font-weight: 700; line-height: 1.4; }
.fine a { color: var(--orange-deep); font-weight: 900; }
.card.how { text-align: left; justify-items: stretch; width: min(100%, 520px); }
.card.how h2 { text-align: center; }
/* A long list scrolls between the heading and the button, which both stay in view. */
.card.how { grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.how-scroll { display: grid; gap: 10px; overflow-y: auto; min-height: 0; padding-right: 4px; overscroll-behavior: contain; }
.card.how ol, .card.how ul { margin: 0; padding-left: 24px; display: grid; gap: 5px; font-size: 15.500px; font-weight: 700; line-height: 1.35; }
.card.how ol { font-weight: 800; font-size: 16.500px; }
.card.how .primary { justify-self: center; }

/* confetti */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 11; overflow: hidden; }
#confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---- upright phone ---- */
@media (orientation: portrait) {
  .home-main { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 22px; }
  .logo { font-size: clamp(44px, 15vw, 84px); }
  .top { gap: 6px; padding: 0 8px 6px; flex-wrap: wrap; justify-content: center; }
  .level { font-size: 18px; }
  .card.win, .card.rainbow { grid-template-columns: minmax(0, 1fr); }
  #win-art { width: 150px; }
  .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #rainbow-art { width: 170px; justify-self: center; }
  .rainbow-buttons .primary, .rainbow-buttons .secondary { flex-basis: 100%; }
}
@media (orientation: portrait) and (max-height: 700px) {
  #win-art { width: 112px; }
  .card.win { padding-top: 12px; }
  .win-text { gap: 6px; }
}
@media (orientation: portrait) and (max-height: 640px) {
  .card.rainbow { padding: 10px 16px 14px; gap: 4px; }
  #rainbow-art { width: 104px; }
  .rainbow-text { gap: 5px; }
  .rainbow-what, .rainbow-state { font-size: 13.500px; }
  .rainbow-buttons .primary, .rainbow-buttons .secondary { font-size: 17px; padding: 6px 12px 8px; }
}
/* ---- short screens (a phone held sideways) ---- */
@media (max-height: 430px) {
  .home-actions { gap: 9px; }
  .primary.big { font-size: 24px; padding: 10px 22px 12px; }
  .secondary { padding: 7px 14px 9px; font-size: 17px; }
  .home-foot { font-size: 12px; margin: 0; }
  .card { padding: 12px 20px 12px; gap: 6px; border-radius: 22px; }
  .card h2 { font-size: 22px; }
  .card.how ol { font-size: 14.500px; gap: 2px; } .card.how ul { font-size: 13.500px; gap: 2px; }
  html:not([lang="en"]) .card.how ol { font-size: 14px; } html:not([lang="en"]) .card.how ul { font-size: 13px; }
  html:not([lang="en"]) .card h2 { font-size: 20px; }
  .how-scroll { gap: 6px; }
  .lang-pick { padding: 5px 4px 6px; }
  html:not([lang="en"]) .win-text { gap: 5px; }
  html:not([lang="en"]) .win-gift { font-size: 13px; line-height: 1.2; }
  html:not([lang="en"]) .card.win .primary { font-size: 20px; padding: 8px 22px 10px; }
  .card.win { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); }
  .card.rainbow { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
  .rainbow-text { gap: 5px; }
  .rainbow-what, .rainbow-state { font-size: 13.500px; }
  .spares-art { width: 70px; height: 42px; }
  .win-gift { font-size: 14px; padding: 3px 10px; }
  .win-coins { font-size: 18px; } .win-spare { font-size: 15px; }
  .text-btn { padding: 4px 14px; }
}
/* A narrow phone held upright: the top bar of the home screen keeps to pictures. */
@media (max-width: 480px) {
  .cab-btn { padding: 0 8px 0 4px; }
  .cab-btn span, .install-btn span { display: none; }
  .install-btn { width: 44px; padding: 0; justify-content: center; }
  .coin-pill { padding: 6px 12px 6px 7px; font-size: 17px; }
}
/* Room for the name on the spare batteries button. */
@media (min-width: 780px) {
  .spare-btn span { display: inline; }
  .spare-btn svg { margin-left: 5px; }
}
@media (max-width: 700px) and (orientation: landscape) {
  .pill .seats i { width: 10px; }
  .level { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  #confetti i { animation-duration: 1ms !important; }
}
