/* Κινητό / tablet: μεγάλα κουμπιά, ένα πράγμα τη φορά. Ίδια «αυτοκόλλητα» με την τηλεόραση. */

body { font-size: 18px; }

.bar-top {
  display: flex;
  align-items: center;
  padding: 12px 16px 8px;
  font-weight: 800;
}
.bar-top .logo { font-size: 1.35em; flex: none; transform: rotate(-3deg); }
.bar-top .logo.crazy { font-size: 1.05em; }
.bar-top .logo.pro { font-size: 1.25em; }
.bar-top .logo.long { font-size: 0.85em; max-width: 42%; line-height: 1.05; white-space: normal; }
#me {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
}
#me:empty { visibility: hidden; }
#me .avatar { width: 1.7em; height: 1.7em; margin-right: 0.4em; border-width: 2px; box-shadow: none; }
#me .avatar .av-icon { width: 70%; }
.mini-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3em;
  height: 2.3em;
  margin-left: 10px;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  color: #1a1033;
  background: #ffcf3a;
  border: 3px solid #1a1033;
  border-radius: 999px;
  padding: 0 6px;
  box-shadow: 0 3px 0 #1a1033;
}
.mini-timer:empty { display: none; }
.mini-timer.urgent { background: #ff5d73; animation: beat 0.5s ease-in-out infinite alternate; }
@keyframes beat { to { transform: scale(1.12); } }
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3em;
  height: 2.3em;
  margin-left: 10px;
  padding: 0;
  background: #fffaf0;
  color: #1a1033;
  border: 3px solid #1a1033;
  box-shadow: 0 3px 0 #1a1033;
  font-size: 1em;
  border-radius: 12px;
}
.menu-btn .icon { margin: 0; }

#app { padding: 8px 16px 104px; max-width: 560px; margin: 0 auto; }

.card {
  background: #fffaf0;
  color: #1a1033;
  border: 4px solid #1a1033;
  border-radius: 24px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 7px 0 #1a1033, 0 22px 44px rgba(0, 0, 0, 0.35);
}
.card > * { margin-top: 0; margin-bottom: 14px; }
.card > *:last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; font-weight: 900; line-height: 1.25; }
.card .muted { color: #6b6290; }
.card .muted.small { font-weight: 700; }
.center { text-align: center; align-items: center; }
.prompt-text { font-size: 1.35em; line-height: 1.3; }
.small-q { font-size: 1.15em; }
.big-num {
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 3em;
  line-height: 1;
  animation: bounceIn 0.6s ease-out both;
}
.big-num .icon { width: 1em; height: 1em; vertical-align: middle; }
.big-num.good, .big-num.bad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 4px solid #1a1033;
  box-shadow: 0 5px 0 #1a1033;
  color: #1a1033;
}
.big-num.good { background: #22d3a6; }
.big-num.bad { background: #ff5d73; animation: shake 0.5s ease-out both; }
.big-num.good .icon, .big-num.bad .icon { width: 0.95em; height: 0.95em; stroke-width: 3.2; }
.card h2 .icon { vertical-align: -0.12em; }
button .icon { margin-right: 0.2em; }

label { display: flex; flex-direction: column; font-weight: 800; }
.label { font-weight: 800; }
input, textarea {
  font: inherit;
  font-size: 1.2em;
  font-weight: 700;
  padding: 0.55em 0.7em;
  margin-top: 6px;
  border-radius: 14px;
  border: 3px solid #1a1033;
  width: 100%;
  color: #1a1033;
  background: #ffffff;
  box-shadow: inset 0 3px 0 rgba(26, 16, 51, 0.08);
}
input:focus, textarea:focus { outline: none; border-color: #6d3df0; box-shadow: 0 0 0 4px rgba(109, 61, 240, 0.25); }
#code {
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 2em;
  letter-spacing: 0.3em;
  text-align: center;
  padding-left: 0.3em;
}
textarea { resize: none; }
#join h2, .card.center > h2 { font-weight: 900; font-size: 1.5em; letter-spacing: -0.01em; }

.row { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Ατάκα: ψηφοφορία ---------- */
.choices > * { margin-bottom: 14px; }
.choice {
  width: 100%;
  background: #8b5cf6;
  color: #ffffff;
  text-align: left;
  font-size: 1.15em;
  padding: 1em;
  line-height: 1.3;
}
.choice:nth-child(2) { background: #ff9f43; color: #1a1033; }
.choice:nth-child(3) { background: #2dd4bf; color: #1a1033; }
.choice:nth-child(4) { background: #c2ec3c; color: #1a1033; }
.choice small { display: block; font-weight: 700; opacity: 0.8; margin-top: 4px; }
.choice.mine { opacity: 0.4; }

/* ---------- επιλογή παιχνιδιού ---------- */
.game-buttons { width: 100%; }
/* Κάρτα παιχνιδιού: η εικόνα της αφίσας της τηλεόρασης αριστερά, τίτλος / περιγραφή / Play δεξιά. */
.game-buttons .game-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 118px;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #fffaf0;
  color: #1a1033;
  border: 3px solid #1a1033;
  border-radius: 18px;
  box-shadow: 0 5px 0 #1a1033;
}
.game-card .gc-art { flex: 0 0 34%; line-height: 0; border-right: 3px solid #1a1033; overflow: hidden; }
.game-card .gc-art svg { display: block; width: 100%; height: 100%; }
.game-card .gc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; }
.game-card .gc-title { font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-weight: 400; font-size: 1.05em; line-height: 1.15; text-transform: uppercase; }
.game-card .gc-desc { margin: 4px 0 8px; font-size: 0.72em; font-weight: 700; line-height: 1.3; color: #4a3f6b; }
.game-card .gc-play {
  align-self: flex-start;
  padding: 3px 14px;
  background: #ffcf3a;
  border: 2px solid #1a1033;
  border-radius: 999px;
  box-shadow: 0 3px 0 #1a1033;
  font-size: 0.8em;
  font-weight: 900;
}
.game-card .gc-play .icon { width: 1em; height: 1em; vertical-align: -0.12em; }
.game-card .gc-need { font-size: 0.72em; font-weight: 800; color: #6b6290; }
.game-buttons .game-card:disabled { opacity: 1; box-shadow: 0 5px 0 #6b6290; border-color: #6b6290; }
.game-card:disabled .gc-art { opacity: 0.45; }
.game-card:active { transform: translateY(3px); box-shadow: 0 2px 0 #1a1033; }

/* ---------- «Ενέργεια της παρέας»: το μεγάλο κουμπί στο Lobby ---------- */
.pump {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  margin: 6px auto 16px;
  padding: 0;
  border-radius: 50%;
  border: 5px solid #1a1033;
  background: #ffcf3a;
  color: #1a1033;
  font-size: 1.5em;
  font-weight: 900;
  box-shadow: 0 8px 0 #1a1033, 0 0 0 10px rgba(255, 207, 58, 0.25);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.pump .icon { width: 2.2em; height: 2.2em; margin-bottom: 2px; }
.pump:active { transform: translateY(6px) scale(0.96); box-shadow: 0 2px 0 #1a1033, 0 0 0 14px rgba(255, 207, 58, 0.35); }
.pump.hit { animation: hit 0.18s ease-out; }
@keyframes hit { 50% { background: #ff9f43; } }

/* ---------- ρυθμίσεις ---------- */
.setting { padding-top: 12px; border-top: 2px dashed #e2dcf7; }
.setting .muted { margin-bottom: 8px; }
.setting-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.setting-head .muted.small { font-weight: 800; color: #4b4370; }
.setting-head .count { color: #6d3df0; margin-left: 4px; }
.quick { display: flex; flex: none; }
.hint { font-size: 0.85em; opacity: 0.8; }
.setting .hint { margin-top: 4px; font-size: 0.78em; color: #6b6290; }
.chips-row { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.chip-btn {
  flex: 1;
  margin: 4px;
  background: #ffffff;
  color: #1a1033;
  border: 3px solid #1a1033;
  box-shadow: 0 3px 0 #1a1033;
  border-radius: 12px;
  padding: 0.55em 0.2em;
  font-size: 1.05em;
}
.chip-btn:active { box-shadow: 0 0 0 #1a1033; transform: translateY(3px); }
.chip-btn.on { background: #8b5cf6; color: #ffffff; }
.chip-btn .icon { width: 0.95em; height: 0.95em; }
.chips-row.multi .chip-btn { flex: 1 1 40%; font-size: 0.95em; }
.chips-row.multi .chip-btn:not(.on) { background: #f4f1ea; color: #9b91c4; border-color: #c9c1e6; box-shadow: 0 3px 0 #c9c1e6; }
/* Πολλές μικρές επιλογές (π.χ. Lessons 0–36): 6 στη γραμμή */
.chips-row.compact .chip-btn { flex: 0 0 13.5%; padding: 0.4em 0; font-size: 0.9em; border-width: 2px; }
.chips-row.multi.compact .chip-btn .icon { display: none; }
button.mini {
  padding: 0.3em 0.8em;
  margin-left: 6px;
  font-size: 0.8em;
  border-radius: 10px;
  border: 2px solid #1a1033;
  background: #fffaf0;
  color: #1a1033;
  box-shadow: 0 2px 0 #1a1033;
}
.lvl-text { font-weight: 900; }
.lvl-text.lvl-Easy { color: #10966f; }
.lvl-text.lvl-Medium { color: #d4600b; }
.lvl-text.lvl-Hard { color: #e23a55; }

/* Presets και Lessons «από–έως» */
.presets { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.presets > span.muted { margin-right: 0.5em; font-weight: 800; }
.presets .preset { display: inline-block; margin: 0 0.35em 0.35em 0; white-space: nowrap; }
.presets .mini { margin: 0; background: #ffcf3a; }
.presets .mini.del { padding-left: 0.4em; padding-right: 0.4em; margin-left: 0.15em; background: #fffaf0; }
.presets .mini.del .icon { width: 0.9em; height: 0.9em; margin: 0; }
.presets .mini.save { margin-bottom: 0.35em; background: #fffaf0; }
.range-row { display: flex; align-items: center; margin: 6px 0; font-weight: 800; }
.range-row span { margin: 0 0.5em; }
.range-row span:first-child { margin-left: 0; }
.range-row select { font: inherit; font-size: 1.05em; font-weight: 800; padding: 0.35em 0.6em; border-radius: 10px; border: 3px solid #1a1033; background: #ffffff; color: #1a1033; }

/* Έλεγχος ρυθμίσεων: πόσες ερωτήσεις βγαίνουν */
.preview { margin: 0.6em 0 0.2em; font-size: 0.9em; font-weight: 800; line-height: 1.35; border-radius: 12px; padding: 0.6em 0.8em; border: 2px solid #1a1033; }
.preview:empty { display: none; }
.preview .icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.preview.ok { color: #0b5e46; background: #d4f7ec; }
.preview.warn { color: #8a3d00; background: #ffe9c7; }
.preview.bad { color: #9c1636; background: #ffdbe2; }

/* ---------- ερωτήσεις με 4 επιλογές ---------- */
.t-buttons > * { margin-bottom: 11px; }
.mill-btn {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  min-height: 58px;
  padding: 0.45em 1em 0.45em 0.6em;
  border-radius: 18px;
  border: 4px solid #1a1033;
  background: #8b5cf6;
  color: #1a1033;
  box-shadow: 0 6px 0 #1a1033;
  font-size: 1.15em;
  font-weight: 900;
}
.mill-btn.opt-0 { background: #ff9f43; }
.mill-btn.opt-1 { background: #2dd4bf; }
.mill-btn.opt-2 { background: #cdb6ff; }
.mill-btn.opt-3 { background: #c2ec3c; }
.mill-btn:active { box-shadow: 0 1px 0 #1a1033; transform: translateY(5px); }
.mill-btn.locked { box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px #1a1033; transform: none; }
.mill-btn:disabled { opacity: 1; }
.mill-btn:disabled:not(.locked) { opacity: 0.3; }
.wager-btn { justify-content: center; background: #ffcf3a; }
.wager-btn.locked { background: #ff8a3d; }

/* ---------- Menu ---------- */
.sheet-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(14, 6, 40, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
}
.sheet {
  background: #fffaf0;
  color: #1a1033;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: auto;
  border: 4px solid #1a1033;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 20px 16px 28px;
}
.sheet button { width: 100%; margin-bottom: 14px; }
.sheet-title { margin: 0 0 12px; font-weight: 900; }
.sheet .muted { color: #6b6290; }

/* ---------- Τα σκορ μου ---------- */
.stats { display: flex; margin: 0 -4px 12px; }
.stats > div { flex: 1; margin: 0 4px; background: #ffcf3a; border: 3px solid #1a1033; box-shadow: 0 4px 0 #1a1033; border-radius: 14px; padding: 10px; text-align: center; }
.stats > div:nth-child(2) { background: #22d3a6; }
.stats b { display: block; font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-weight: 400; font-size: 1.5em; color: #1a1033; }
.stats span { font-size: 0.8em; color: #1a1033; font-weight: 800; }
.my-list { margin-bottom: 12px; }
.my-row {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr) 3.5em 3.5em;
  grid-gap: 6px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 2px dashed #e2dcf7;
  font-weight: 800;
}
.my-row.two { grid-template-columns: minmax(0, 1fr) 3.5em 3.5em; }
.my-row .date { color: #6b6290; font-size: 0.85em; font-weight: 700; }
.my-row .gname { color: #6d3df0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-row .rank, .my-row .num { text-align: right; }
.my-row.won .num { color: #6d3df0; }
.my-main { display: flex; flex-direction: column; min-width: 0; }
.my-main .gname { white-space: normal; }
.per-game { margin-bottom: 12px; }
.pg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5em 3.5em 4.5em;
  grid-gap: 6px;
  padding: 6px 0;
  border-bottom: 2px dashed #e2dcf7;
  font-weight: 800;
}
.pg-row > span:not(:first-child) { text-align: right; }
.pg-row.head { color: #6b6290; font-size: 0.75em; text-transform: uppercase; font-weight: 900; }
.pg-row .gname { color: #6d3df0; }
.sheet-sub { margin: 4px 0 6px; font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-weight: 400; font-size: 0.85em; color: #6d3df0; text-transform: uppercase; letter-spacing: 0.04em; }
.sheet .mini-link, .mini-link { background: none; border: 0; box-shadow: none; color: #e23a55; font-size: 0.85em; padding: 6px; text-decoration: underline; }

/* ---------- avatars ---------- */
.avatar-grid { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.av-pick {
  width: calc(16.66% - 8px);
  margin: 4px;
  padding: 6px 0;
  background: #ffffff;
  border: 3px solid #e2dcf7;
  box-shadow: none;
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.av-pick:active { transform: scale(0.92); box-shadow: none; }
.av-pick .avatar { width: 2em; height: 2em; box-shadow: none; border-width: 2px; }
.av-pick.on { background: #ffcf3a; border-color: #1a1033; box-shadow: 0 3px 0 #1a1033; transform: rotate(-6deg) scale(1.08); }

/* ---------- αντιδράσεις ---------- */
.react-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 10px 8px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: #3b1478;
  border-top: 3px solid #1a1033;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  z-index: 15;
}
.react-btn {
  width: 48px;
  height: 48px;
  margin: 0 5px;
  padding: 0;
  border-radius: 50%;
  background: #fffaf0;
  border: 3px solid #1a1033;
  box-shadow: 0 4px 0 #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.react-btn .re-icon { width: 64%; height: 64%; }
.react-btn[data-react="heart"] { background: #ffd0d7; }
.react-btn[data-react="heart"] .re-icon { fill: #ff3d5e; }
.react-btn[data-react="fire"] { background: #ffe1c4; }
.react-btn[data-react="fire"] .re-icon { fill: #ff7a00; }
.react-btn[data-react="laugh"] { background: #fff1b8; }
.react-btn[data-react="clap"] { background: #cfeeff; }
.react-btn[data-react="wow"] { background: #d4f7ec; }
.react-btn[data-react="star"] { background: #ece4ff; }
.react-btn[data-react="star"] .re-icon { fill: #f5b800; }
.react-btn.bump { animation: pop 0.3s ease-out; }

/* ---------- Trivia extras ---------- */
.x2 { color: #e23a55; }
.final-tag { color: #6d3df0; text-transform: uppercase; letter-spacing: 0.04em; }
.streak { font-weight: 900; color: #d4600b; }
.good-text { color: #10966f; font-weight: 900; }
.bad-text { color: #e23a55; font-weight: 900; }

/* ---------- English Junior A ---------- */
.q-pic { text-align: center; }
.q-pic img {
  width: 26vw;
  height: 26vw;
  max-width: 92px;
  max-height: 92px;
  padding: 5px;
  background: #ffffff;
  border: 3px solid #1a1033;
  border-radius: 18px;
  box-shadow: 0 4px 0 #1a1033;
  transform: rotate(-3deg);
}
.word-line { display: flex; align-items: center; justify-content: center; font-size: 1.1em; font-weight: 700; }
.word-line img { width: 2.2em; height: 2.2em; margin-right: 0.4em; }
.word-line b { color: #6d3df0; margin-right: 0.3em; }
.listen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #cfeeff;
  color: #1a1033;
  border: 3px solid #1a1033;
  font-weight: 800;
  border-radius: 16px;
  padding: 8px 10px 8px 12px;
}
.listen-bar .icon { width: 1.3em; height: 1.3em; }
.mini-btn {
  background: #3ec5ff;
  color: #1a1033;
  border: 2px solid #1a1033;
  box-shadow: 0 3px 0 #1a1033;
  padding: 0.35em 0.8em;
  font-size: 0.95em;
  border-radius: 12px;
  width: auto;
}
.pic-buttons { display: flex; flex-wrap: wrap; justify-content: space-between; }
.mill-btn.pic-btn {
  width: 48%;
  margin-bottom: 4%;
  border-radius: 22px;
  justify-content: center;
  position: relative;
  padding: 12px 10px 10px;
  min-height: 0;
}
.mill-btn.pic-btn img { width: 100%; max-width: 92px; height: auto; background: #ffffff; border: 3px solid #1a1033; border-radius: 16px; padding: 4px; }
.mill-btn.pic-btn .letter { position: absolute; top: 6px; left: 6px; margin: 0; width: 1.6em; height: 1.6em; }
.mill-btn.pic-btn.one { width: 60%; margin: 6px auto; }
.center-text { text-align: center; }

.spell-slots { display: flex; flex-wrap: wrap; justify-content: center; min-height: 48px; }
.spell-slots .lt {
  display: inline-block;
  width: 30px;
  height: 40px;
  line-height: 34px;
  margin: 3px 2px;
  border-radius: 8px;
  background: #f4f1ea;
  border: 3px dashed #c9c1e6;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1.15em;
  text-align: center;
  color: #1a1033;
}
.spell-slots .lt.full { background: #ffcf3a; border: 3px solid #1a1033; box-shadow: 0 3px 0 #1a1033; }
.spell-slots .lt-fixed { font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-size: 1.15em; line-height: 46px; margin: 0 1px; }
.spell-slots .lt-gap { display: inline-block; width: 14px; }
.spell-slots .slot-word { display: flex; margin: 0 6px; }
.spell-slots.small .lt { width: 26px; height: 36px; line-height: 30px; font-size: 1em; margin: 3px 1px; }
.spell-slots.tiny .lt { width: 21px; height: 32px; line-height: 26px; font-size: 0.85em; margin: 3px 1px; border-width: 2px; }
.spell-slots.tiny .slot-word { margin: 0 4px; }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; }
.tile {
  width: 52px;
  height: 52px;
  margin: 5px 4px;
  padding: 0;
  border-radius: 14px;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1.35em;
  background: #fffaf0;
  color: #1a1033;
}
.tile:nth-child(4n+1) { background: #ffd0d7; }
.tile:nth-child(4n+2) { background: #cfeeff; }
.tile:nth-child(4n+3) { background: #fff1b8; }
.tile:nth-child(4n) { background: #d4f7ec; }
.tile:disabled { opacity: 0.15; }
.spell-actions { display: flex; }
.spell-actions #spell-back, .spell-actions #solve-back { width: 30%; margin-right: 10px; }
.spell-actions .icon { width: 1.4em; height: 1.4em; }
.spell-actions #spell-send, .spell-actions #solve-send { flex: 1; }

.match { display: flex; justify-content: space-between; }
.m-side { width: 48.5%; }
.m-btn {
  display: block;
  width: 100%;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 8px 6px;
  border-radius: 16px;
  border: 3px solid #1a1033;
  font-size: 1em;
  line-height: 1.15;
  box-shadow: 0 4px 0 #1a1033;
}
.m-btn.en { background: #ece4ff; color: #1a1033; }
.m-btn.gr { background: #ffffff; color: #1a1033; }
.m-btn.sel { box-shadow: 0 0 0 4px #ffcf3a, 0 4px 0 #1a1033; transform: scale(1.04); }
.m-result { text-align: left; width: 100%; }
.m-row { padding: 6px 0; border-bottom: 2px dashed #e2dcf7; font-weight: 700; }
.m-row .icon { margin-right: 6px; }
.m-row.ok .icon { color: #10966f; }
.m-row.no .icon { color: #e23a55; }
.m-row b { color: #6d3df0; }

.keys { display: flex; flex-wrap: wrap; justify-content: center; }
.key {
  display: inline-block;
  width: 38px;
  height: 42px;
  line-height: 36px;
  margin: 3px;
  padding: 0;
  border-radius: 10px;
  text-align: center;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1em;
  background: #f4f1ea;
  color: #9b91c4;
  border: 3px solid #e2dcf7;
  box-shadow: none;
}
button.key { background: #fffaf0; color: #1a1033; border-color: #1a1033; box-shadow: 0 3px 0 #1a1033; line-height: 1; }
.key.ok, button.key.ok { background: #22d3a6; color: #1a1033; border-color: #1a1033; box-shadow: none; opacity: 1; }
.key.no, button.key.no { background: #ff5d73; color: #1a1033; border-color: #1a1033; box-shadow: none; opacity: 0.55; text-decoration: line-through; }
.card.my-turn { box-shadow: 0 0 0 5px #ffcf3a, 0 7px 0 5px #1a1033, 0 22px 44px rgba(0, 0, 0, 0.35); }
.turn-badge {
  background: #ffcf3a;
  color: #1a1033;
  border: 3px solid #1a1033;
  box-shadow: 0 4px 0 #1a1033;
  font-weight: 900;
  text-align: center;
  border-radius: 12px;
  padding: 8px;
  transform: rotate(-1.5deg);
  animation: wobble 1.4s ease-in-out infinite;
}

.sent-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; min-height: 44px; }
.sent-line .ws {
  display: inline-block;
  min-width: 46px;
  height: 38px;
  line-height: 32px;
  margin: 3px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f4f1ea;
  border: 3px dashed #c9c1e6;
  font-weight: 900;
  color: #1a1033;
}
.sent-line .ws.full { background: #ffcf3a; border: 3px solid #1a1033; min-width: 0; }
.sent-line .ws-end { font-size: 1.4em; font-weight: 900; margin-left: 2px; }
.word-tiles { display: flex; flex-wrap: wrap; justify-content: center; }
.wtile { margin: 5px 4px; padding: 10px 14px; border-radius: 14px; font-size: 1.1em; font-weight: 900; background: #ece4ff; }
.wtile:disabled { opacity: 0.15; }
.sent-reveal { text-align: center; font-size: 1.05em; }
.sent-reveal b { color: #6d3df0; font-size: 1.1em; }
.passage {
  background: #fff1b8;
  border: 3px solid #1a1033;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.35;
}

/* Host που δεν παίζει (καθηγητής) */
.teacher-badge { display: inline-block; align-self: flex-start; background: #ece4ff; color: #1a1033; border: 2px solid #1a1033; border-radius: 999px; padding: 0.3em 0.8em; font-weight: 900; font-size: 0.85em; }
.teacher-badge .icon { width: 1em; height: 1em; vertical-align: -0.15em; }
.teacher-answer { background: #d4f7ec; color: #0b5e46; border: 3px solid #1a1033; border-radius: 12px; padding: 0.7em 0.9em; font-size: 1.05em; font-weight: 700; }
.paused-note { color: #a34800; font-weight: 900; }
.paused-note .icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.teacher button { width: 100%; }

/* Στο τέλος: οι λέξεις που έχασες */
.missed { text-align: left; margin: 0.4em 0 1em; width: 100%; }
.missed h3 { font-size: 1.05em; margin: 0 0 0.5em; color: #6d3df0; font-weight: 900; }
.missed-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 0.5em;
  padding: 0.45em 0.6em;
  background: #ffffff;
  color: #1a1033;
  border: 3px solid #1a1033;
  border-radius: 12px;
  box-shadow: 0 3px 0 #1a1033;
  text-align: left;
  font-weight: 600;
}
.missed-row img, .missed-row .no-img { width: 2.2em; height: 2.2em; margin-right: 0.6em; flex: none; }
.missed-row .m-words { flex: 1; min-width: 0; }
.missed-row b { display: block; font-size: 1em; font-weight: 900; }
.missed-row small { display: block; color: #6b6290; font-size: 0.8em; font-weight: 700; }
.missed-row .icon { width: 1.3em; height: 1.3em; color: #6d3df0; flex: none; }

/* «Μάθημα»: κάρτα με τη λέξη */
.lesson-card { text-align: center; }
.lesson-card img { display: block; width: 7em; height: 7em; margin: 0.3em auto; }
.lesson-card .lesson-en { font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-weight: 400; font-size: 1.9em; color: #6d3df0; }
.lesson-card .lesson-gr { font-size: 1.2em; font-weight: 800; margin: 0.1em 0 0.6em; }

/* Κρεμάλα στο κινητό: η φιγούρα δίπλα στα λάθη */
.hang-mini { display: flex; align-items: center; justify-content: center; margin: 4px 0 8px; font-weight: 800; color: #e23a55; }
.hang-mini span { margin-left: 10px; font-size: 1.05em; }
.phone-gallows { width: 64px; height: 70px; fill: none; stroke: #1a1033; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.phone-gallows .wood { stroke: #a0612b; stroke-width: 8; }
.phone-gallows .body circle { fill: #ffcf3a; }
.phone-gallows .ghost { stroke: #d8cfee; stroke-width: 4; stroke-dasharray: 3 5; }

/* Κάρτες μνήμης */
.mem-grid { display: flex; flex-wrap: wrap; justify-content: space-between; }
.mem-btn {
  width: 48.5%; height: 74px; margin: 0 0 10px; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #1a1033; border-radius: 14px; box-shadow: 0 4px 0 #1a1033;
  background: #fffaf0; color: #1a1033; font-weight: 900; text-align: center;
}
.mem-btn.back { background: #8b5cf6; color: #ffffff; font-size: 1.7em; }
.mem-btn.en { background: #ffcf3a; }
.mem-btn.found { background: #c2ec3c; opacity: 0.85; }
.mem-btn.wrong { background: #ffd0d8; }
.mem-btn:disabled { opacity: 1; }
.mem-btn.found:disabled { opacity: 0.75; }
.mem-btn img { width: 56px; height: 56px; }
.mem-btn .mem-en { font-size: 1.05em; line-height: 1.1; }
.mem-btn .mem-gr { font-size: 0.9em; line-height: 1.15; }

/* Ρυθμίσεις: μεγάλα presets και «Περισσότερες ρυθμίσεις» */
.presets.big { display: flex; flex-wrap: wrap; margin: 0 0 14px; }
.presets.big .preset { flex: 1; display: flex; margin: 0 6px 6px 0; min-width: 30%; }
.presets.big .preset:last-child { margin-right: 0; }
.preset-btn {
  flex: 1; padding: 12px 8px; border-radius: 16px; font-size: 1.05em; font-weight: 900;
  background: #ffffff; color: #1a1033; border: 3px solid #1a1033; box-shadow: 0 4px 0 #1a1033;
}
.preset-btn.on { background: #ffcf3a; }
.preset-btn .icon { width: 1em; height: 1em; vertical-align: -0.12em; }
.adv-toggle {
  display: block; width: 100%; margin: 6px 0 12px; padding: 12px; border-radius: 14px;
  background: #f3eeff; color: #5b21b6; border: 2px dashed #a78bfa; box-shadow: none; font-weight: 800;
}
#adv .mini.save { margin: 4px 0 12px; }

/* Drop-down στις ρυθμίσεις */
.big-select {
  display: block; width: 100%; font: inherit; font-size: 1.1em; font-weight: 800; padding: 12px 14px;
  border-radius: 14px; border: 3px solid #1a1033; background: #ffffff; color: #1a1033; box-shadow: 0 4px 0 #1a1033;
}
.fold-btn {
  display: flex; align-items: center; width: 100%; padding: 12px 14px; margin-bottom: 8px; text-align: left;
  border-radius: 14px; border: 3px solid #1a1033; background: #ffffff; color: #1a1033; box-shadow: 0 4px 0 #1a1033;
}
.fold-btn .muted { margin-right: 8px; }
.fold-btn b { flex: 1; min-width: 0; }
.fold-arrow { font-size: 0.8em; font-weight: 800; color: #6d3df0; }

/* ---------- Math Wars ---------- */
.math-q-phone {
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: #1f5f4a;
  color: #fffaf0;
  border: 4px solid #1a1033;
  border-radius: 16px;
  box-shadow: 0 5px 0 #1a1033;
  text-align: center;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1.9em;
  line-height: 1.25;
}
.math-hole {
  display: inline-block;
  min-width: 1.1em;
  padding: 0 0.12em;
  background: #ffcf3a;
  color: #1a1033;
  border: 3px solid #1a1033;
  border-radius: 0.2em;
  line-height: 1.1;
}
.num-show {
  margin: 0 auto 12px;
  padding: 4px 10px;
  max-width: 220px;
  background: #ffffff;
  color: #6d3df0;
  border: 4px solid #1a1033;
  border-radius: 14px;
  text-align: center;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-size: 2.2em;
  line-height: 1.3;
}
.num-show.empty { color: #cfc6ea; }
.keypad { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 10px; }
.keypad .key {
  width: 100%;
  margin: 0;
  min-height: 62px;
  padding: 0;
  background: #ffcf3a;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1.7em;
  touch-action: manipulation;
}
.keypad .key.ok { background: #22d3a6; }
.keypad .key.secondary { background: #fffaf0; }
.keypad .key .icon { width: 1em; height: 1em; }

/* Σωστό (πράσινο) / Λάθος (κόκκινο), και οι πράξεις του «Ποιο βγάζει περισσότερο;» */
.t-buttons.tf .mill-btn { justify-content: center; min-height: 96px; font-size: 1.5em; }
.t-buttons.tf .mill-btn.opt-0 { background: #22d3a6; }
.t-buttons.tf .mill-btn.opt-1 { background: #ff5d73; }
.t-buttons.tf .letter, .t-buttons.cmp .letter { display: none; }
.t-buttons.cmp .mill-btn { justify-content: center; min-height: 76px; font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-weight: 400; font-size: 1.45em; }
.t-buttons.cmp .mill-btn.opt-2 { font-family: 'Geologica', sans-serif; font-weight: 900; font-size: 1.1em; min-height: 56px; }

/* «Στόχος» */
.target-chip {
  display: inline-block;
  padding: 0 0.35em;
  background: #fffaf0;
  color: #6d3df0;
  border: 3px solid #1a1033;
  border-radius: 10px;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
}
.expr-line {
  min-height: 1.8em;
  padding: 6px 10px;
  background: #ffffff;
  border: 3px solid #1a1033;
  border-radius: 12px;
  text-align: center;
  font-weight: 900;
  font-size: 1.35em;
  word-break: break-word;
}
.expr-val { min-height: 1.5em; margin: 6px 0 10px; text-align: center; font-weight: 800; font-size: 1.15em; }
.num-tiles { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.ntile {
  min-width: 64px;
  margin: 5px;
  padding: 10px 8px;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1.5em;
  touch-action: manipulation;
}
.ntile.tn0 { background: #ff9f43; }
.ntile.tn1 { background: #2dd4bf; }
.ntile.tn2 { background: #cdb6ff; }
.ntile.tn3 { background: #c2ec3c; }
.ntile:disabled { opacity: 0.25; }
.op-row { display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 6px; margin-bottom: 12px; }
.op { padding: 10px 0; font-size: 1.4em; font-weight: 900; touch-action: manipulation; }

/* ---------- Reflex Battle ---------- */
.rx-phone-top { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 0.85em; color: #f3eeff; margin-bottom: 6px; }
.card .rx-phone-top { color: #6b6290; width: 100%; }
.rx-boss-tag { background: #ff5d73; color: #ffffff; border: 2px solid #1a1033; border-radius: 8px; padding: 1px 6px; font-weight: 900; }
.rx-title { font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-weight: 400; font-size: 1.9em; text-transform: uppercase; color: #6d3df0; }
.rx-ready.boss .rx-title { color: #ff3b4e; }
.rx-rule { font-weight: 800; font-size: 1.1em; }
.rx-play { display: flex; flex-direction: column; }
.rx-instr {
  text-align: center;
  font-weight: 900;
  font-size: 1.45em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 3px 0 #1a1033;
  margin: 2px 0 12px;
  min-height: 1.2em;
}
.rx-instr.tiny { font-size: 0.8em; font-weight: 700; text-shadow: none; opacity: 0.85; letter-spacing: 0.04em; }
.rx-instr.inked { background: #1a1033; border-radius: 14px; padding: 6px 10px; text-shadow: none; }
.rx-stage {
  position: relative;
  height: 380px;
  height: calc(100vh - 200px);
  min-height: 300px;
  max-height: 620px;
  font-size: 18px;
}
.rx-lock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 16, 51, 0.72);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif;
  font-size: 1.9em;
  color: #ffffff;
  z-index: 5;
}
.rx-lock small { font-family: 'Geologica', sans-serif; font-weight: 800; font-size: 0.5em; margin-top: 8px; opacity: 0.9; }
.rx-lock.bad { background: rgba(255, 59, 78, 0.88); }
.rx-hit { -webkit-filter: brightness(0.85); filter: brightness(0.85); }
.rx-explain-phone { font-weight: 800; }
.rx-pts { font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-size: 1.5em; color: #12a67f; }
.rx-pts.minus { color: #ff3b4e; }
.rx-pts.zero { color: #9b91c4; }
/* Στο κινητό το κουμπί πιάνει σχεδόν όλο το πλάτος: πιο δύσκολο να μην το πατήσεις. */
.rx-play .rx-push { width: 14em; height: 14em; }
.rx-play .rx-push-label { font-size: 2.6em; }
.rx-play .rx-push.long .rx-push-label { font-size: 1.45em; }
.rx-play .rx-push.bank { width: 8em; height: 8em; }
.rx-play .rx-push.bank .rx-push-label { font-size: 1.15em; }

/* ---------- Ονειρόκαρτες ---------- */
.dr-grid { display: flex; flex-wrap: wrap; justify-content: space-between; }
.dr-pick { position: relative; width: 31.5%; margin-bottom: 10px; -webkit-tap-highlight-color: transparent; }
.dr-phonecard { width: 100%; height: 0; padding-bottom: 150%; font-size: 16px; }
.dr-phonecard.big { width: 150px; padding-bottom: 225px; margin: 0 auto 10px; }
.dr-pick.sel .dc { border-color: #ffcf3a; box-shadow: 0 0 0 4px #ffcf3a, 0 6px 0 4px #1a1033; transform: translateY(-4px); }
.dr-pick.mine { opacity: 0.45; }
.dr-grid.view .dr-pick { opacity: 0.9; }
.dr-pick .dr-num {
  position: absolute; top: -6px; left: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: #ffcf3a; color: #1a1033; border: 3px solid #1a1033; display: flex; align-items: center; justify-content: center;
  font-family: 'Dela Gothic One', 'Geologica', sans-serif; font-size: 13px; z-index: 2;
}
.dr-mine { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-weight: 900; font-size: 0.75em; color: #ffffff; text-shadow: 0 2px 0 #1a1033; }
.dr-phone-clue { font-weight: 900; font-size: 1.35em; text-align: center; color: #6d3df0; }
.dr-phone-clue.spoken { font-size: 1em; color: #1a1033; }
#dr-clue { font-size: 1.1em; }

/* ---------- Γεωγραφία: χάρτης για πάτημα ---------- */
.geo-place { text-align: center; margin: 6px 0 10px; }
.geo-place small { display: block; font-weight: 800; color: #7c3aed; text-transform: uppercase; font-size: 0.8em; }
.geo-place b { display: block; font-family: 'Dela Gothic One', Geologica, sans-serif; font-weight: 400; font-size: 1.7em; line-height: 1.15; text-transform: uppercase; }
.geo-map { position: relative; margin: 8px 0 12px; border: 3px solid #1a1033; border-radius: 14px; overflow: hidden; background: #3d2a85; touch-action: manipulation; cursor: crosshair; }
.geo-map img { display: block; width: 100%; height: auto; pointer-events: none; }
.geo-layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; }
.geo-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid #1a1033; border-radius: 50%; overflow: hidden; }
.geo-pin .avatar { width: 100%; height: 100%; font-size: 12px; border: 0; }
.geo-target { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; color: #ffd23f; }
.geo-target svg { width: 100%; height: 100%; fill: #ffd23f; stroke: #1a1033; stroke-width: 1.5; }

/* ---------- «Από μακριά»: ό,τι θα έδειχνε η τηλεόραση, στο κινητό ---------- */
.remote-invite { margin: 8px 0 12px; }
.remote-code { font-family: 'Dela Gothic One', Geologica, sans-serif; font-size: 2.6em; letter-spacing: 0.08em; color: #7c3aed; line-height: 1.1; }
.remote-toggle { display: block; width: 100%; margin: 6px 0 12px; }
.remote-toggle small { display: block; font-weight: 600; font-size: 0.75em; opacity: 0.8; }
.remote-panel { margin-top: 12px; }
.remote-box { background: #fff9ef; color: #1a1033; border: 3px solid #1a1033; border-radius: 16px; padding: 10px 12px; margin: 0 0 12px; text-align: left; box-shadow: 0 4px 0 #1a1033; }
.remote-box h3 { margin: 0 0 8px; font-size: 0.85em; text-transform: uppercase; color: #6d3df0; letter-spacing: 0.04em; }
.remote-chips { display: flex; flex-wrap: wrap; }
.remote-chip { display: flex; align-items: center; margin: 0 6px 6px 0; padding: 3px 8px 3px 3px; border: 2px solid #1a1033; border-radius: 999px; background: #ffffff; font-weight: 800; font-size: 0.9em; }
.remote-chip .avatar { width: 24px; height: 24px; margin-right: 5px; }
.remote-chip.off { opacity: 0.45; }
.remote-chip svg.icon { width: 16px; height: 16px; margin-left: 3px; }
.remote-row { display: flex; align-items: center; padding: 4px 0; border-bottom: 1px dashed #d9cdf5; font-weight: 700; }
.remote-row:last-child { border-bottom: 0; }
.remote-row.top { font-weight: 900; }
.remote-row .avatar { width: 26px; height: 26px; margin-right: 8px; flex: 0 0 auto; }
.remote-row .team-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1a1033; margin-right: 8px; }
.r-mark { width: 26px; text-align: center; flex: 0 0 auto; color: #4b4370; }
.r-mark svg { width: 18px; height: 18px; }
.r-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-name small { color: #6b6290; font-weight: 700; }
.r-pts { flex: 0 0 auto; font-weight: 900; color: #6d3df0; margin-left: 8px; }
.remote-cards { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.remote-card { width: 50%; padding: 4px; box-sizing: border-box; text-align: center; }
.remote-card.story .dr-phonecard { box-shadow: 0 0 0 4px #ffd23f; }
.r-owner { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85em; margin-top: 4px; }
.r-owner .avatar { width: 22px; height: 22px; margin: 0 4px; }
.r-voters { min-height: 22px; }
.r-voters .avatar { width: 20px; height: 20px; margin: 1px; }
/* «Από μακριά»: αντιδράσεις των άλλων που ανεβαίνουν στην οθόνη. */
.p-reaction { position: fixed; bottom: 90px; z-index: 50; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: p-float 2.6s ease-out forwards; }
.p-reaction .re-bubble { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #1a1033; padding: 6px; box-sizing: border-box; }
.p-reaction .re-bubble svg { width: 100%; height: 100%; }
.p-reaction .re-name { margin-top: 3px; font-weight: 800; font-size: 12px; color: #ffffff; text-shadow: 0 1px 0 #1a1033; }
@keyframes p-float { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { transform: translateY(-20px) scale(1); opacity: 1; } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
@-webkit-keyframes p-float { 0% { -webkit-transform: translateY(0) scale(0.6); opacity: 0; } 15% { -webkit-transform: translateY(-20px) scale(1); opacity: 1; } 100% { -webkit-transform: translateY(-260px) scale(1); opacity: 0; } }
.kick-row { display: flex; align-items: center; justify-content: flex-start; width: 100%; }
.kick-row .avatar { width: 28px; height: 28px; margin-right: 8px; }
