* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #f6f6f9; color: #222; }
header { display: flex; align-items: center; gap: 1rem; padding: 1rem 2rem; background: #fff; border-bottom: 1px solid #e5e5ec; }
header h1 { font-size: 1.1rem; margin: 0; flex: 1; }
.me { font-size: 0.9rem; color: #555; }
.inline { display: inline; margin: 0; }
button { cursor: pointer; font: inherit; padding: 0.4rem 0.9rem; border: 1px solid #bfbfc9; border-radius: 6px; background: #fff; }
button:hover { background: #f0f0f5; }
.cards { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.5rem 2rem; }
.card { width: 3.2rem; height: 4.4rem; font-size: 1.4rem; font-weight: 600; background: #fff; }
.card[data-value="?"], .card[data-value="skip"] { font-size: 0.9rem; font-weight: 500; color: #555; }
.card--selected, .card--selected:hover { background: #2a5ada; border-color: #2a5ada; color: #fff; }
.card[disabled], .card[disabled]:hover { cursor: not-allowed; opacity: 0.45; background: #eee; color: #666; box-shadow: none; }
.card--selected[disabled], .card--selected[disabled]:hover { background: #2a5ada; color: #fff; opacity: 0.7; }
.voting-locked { flex-basis: 100%; margin: 0.2rem 0 0; color: #8a6d00; font-size: 0.9rem; }
.controls { padding: 0 2rem 1rem; display: flex; gap: 0.6rem; }
#board { padding: 0 2rem 2rem; }
#board h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; }
.voters { list-style: none; padding: 0; margin: 0.5rem 0; }
.voters li { display: flex; justify-content: space-between; padding: 0.5rem 0.8rem; background: #fff; border-radius: 6px; margin-bottom: 0.3rem; border: 1px solid #e5e5ec; }
.voters .value { font-weight: 700; color: #2a5ada; }
.voters .status { color: #888; font-style: italic; }
.voters .status--voted { color: #2a7a2a; }
.voters .status--waiting { color: #b08000; }
.voters .status--none { color: #a33; }
.voters .name em { color: #888; font-style: normal; font-size: 0.85em; }
.average { font-size: 1.2rem; margin-top: 1rem; }
.empty { color: #888; font-style: italic; }
.login { max-width: 24rem; margin: 6rem auto; padding: 2rem; background: #fff; border-radius: 8px; border: 1px solid #e5e5ec; }
.login label { display: block; margin-bottom: 1rem; }
.login input { display: block; width: 100%; padding: 0.5rem; font: inherit; border: 1px solid #bfbfc9; border-radius: 6px; margin-top: 0.3rem; }
.error { color: #b00020; }
.memes { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 1.5rem 2rem; margin-top: 1rem; }
.meme-slide { flex: 1 1 0; max-width: 22rem; min-height: 5rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid #e5e5ec; border-radius: 8px; text-align: center; font-style: italic; color: #555; line-height: 1.4; transition: filter 0.5s, opacity 0.5s, transform 0.5s; }
.meme-slide--side { filter: blur(3px); opacity: 0.55; transform: scale(0.92); }
.meme-slide--active { filter: none; opacity: 1; transform: scale(1); font-weight: 500; color: #222; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.stack { text-align: center; padding: 1rem 2rem 2rem; color: #888; font-size: 0.8rem; border-top: 1px solid #ececf2; margin-top: 2rem; line-height: 1.6; }
.stack .cookies { display: inline-block; margin-top: 0.3rem; font-size: 0.75rem; font-style: italic; max-width: 48rem; }
