/* More or Less: cyan. Two big cards stacked, a "vs" disc between them; the
   bottom card's number counts up when you answer and goes green or red.
   Right answers slide the bottom card up into the top spot. */

:root { --cyan: #4cc9f0; --cyan-wash: #e4f6fd; --cyan-ink: #0f6e8c; --right: #2f8a4c; }
.moreless { --game: var(--cyan); gap: 14px; padding-top: 14px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--wash); }
.mode { height: 38px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 15px var(--ui); color: var(--muted); }
.mode.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.info b { font: 700 19px/1.2 var(--slab); }
.info span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cards { position: relative; display: grid; gap: 10px; }
.card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 210px; padding: 22px 18px; border-radius: 14px; text-align: center;
}
.card.top { background: var(--wash); }
.card.bottom { background: var(--cyan-wash); }
.card .name { margin: 0; font: 700 clamp(24px, 7vw, 32px)/1.15 var(--slab); overflow-wrap: anywhere; }
.card .val { margin: 6px 0 0; font: 800 clamp(30px, 9vw, 40px)/1.05 var(--ui); font-variant-numeric: tabular-nums; }
.card .val.ok { color: var(--right); }
.card .val.bad { color: var(--red); }
.card .noun, .card .ask, .card .tail { margin: 0; font-size: 15px; color: var(--muted); }
.card .tail { max-width: 26ch; }
.choices { display: flex; gap: 10px; margin: 8px 0; }
.choice { min-width: 112px; height: 50px; font-size: 17px; }
.choice.more { background: var(--ink); color: var(--paper); }
.choice.more:hover { background: #333; }
.card.bottom.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); font: 800 13px var(--ui); text-transform: uppercase;
}

/* a right answer: the old bottom card arrives on top, a new one rises in */
.cards.slide .card.top { animation: rise 0.35s var(--ease); }
.cards.slide .card.bottom { animation: enter 0.35s var(--ease); }
@keyframes rise { from { transform: translateY(40%); } }
@keyframes enter { from { transform: translateY(18px); opacity: 0; } }

.picker h2 { margin: 4px 0 12px; font: 700 22px var(--slab); }
.decks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deck {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 66px; padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); cursor: pointer; text-align: left;
}
.deck:hover { border-color: var(--ink); }
.deck b { font: 700 16px/1.2 var(--slab); }
.deck span { font-size: 13px; color: var(--muted); }
.deck.any { grid-column: 1 / -1; background: var(--cyan-wash); border-color: var(--cyan-wash); }

/* modals */
.pair { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--wash); font-size: 14px; line-height: 1.6; text-align: center; }
.pair a { color: var(--ink); }
.bests { display: grid; gap: 4px; margin-bottom: 8px; }
.bests div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.link-btn { display: block; margin: 12px auto 0; padding: 6px; border: 0; background: none; color: var(--muted); font: 600 14px var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .cards.slide .card, .card.bottom.shake { animation: none; }
}
