/* ===================== Βασικά ===================== */
:root {
  --ink: #37474f;
  --accent: #ff6f61;
  --font: 'Fredoka', 'Comic Sans MS', 'Segoe UI', 'Arial Rounded MT Bold', sans-serif;
}
* { box-sizing: border-box; user-select: none; -webkit-user-select: none; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: url('../img/app_bg.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hidden { display: none !important; }

#app { height: 100%; display: flex; flex-direction: column; }

/* ===================== Πάνω μπάρα ===================== */
#topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  z-index: 5;
}
#title {
  font-weight: 900; font-size: 24px; color: var(--accent);
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(0,0,0,.08);
  white-space: nowrap;
}
.icon-btn {
  font-size: 26px; line-height: 1;
  background: #fff; border: 3px solid #ffd54f; border-radius: 50%;
  width: 54px; height: 54px; flex: none;
  box-shadow: 0 4px 0 #e0b000;
  transition: transform .1s, box-shadow .1s;
  font-family: inherit;
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #e0b000; }

#btn-sound { margin-left: 0; }
/* Ρολόι: ημέρα ολογράφως + ημερομηνία πάνω, ώρα κάτω· κρύβεται σταδιακά σε στενές οθόνες */
#tb-spacer { margin-left: auto; width: 0; flex: none; }
/* Ένδειξη «Esc» στο κέντρο της πάνω μπάρας (Τουβλόκοσμος: App.setEscHint) */
#esc-hint { margin: 0 auto; flex: none; font-size: 15px; font-weight: 800; color: #4e342e; background: linear-gradient(180deg, #fff8e1, #ffe082); border: 2px solid #ffb300; border-radius: 30px; padding: 6px 16px; white-space: nowrap; box-shadow: 0 3px 0 #e0a000; animation: esc-hint-in .4s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes esc-hint-in { from { transform: scale(.6); opacity: 0; } }
@media (max-width: 1100px) { #esc-hint { font-size: 13px; padding: 4px 10px; } }   /* σπρώχνει ρολόι/μπάρα ώρας/κουμπιά δεξιά, ό,τι κι αν είναι κρυμμένο */
#clock.off, #period.off { display: none !important; }      /* κλειστά από τις Ρυθμίσεις */
#clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; white-space: nowrap; flex: none; color: #546e7a; font-weight: 700; padding: 0 4px; }
#clock-date { font-size: 13px; }
#clock-time { font-size: 20px; font-weight: 900; color: #37474f; letter-spacing: .5px; }
@media (max-width: 1500px) { #hud:not(.hidden) ~ #clock #clock-date { display: none; } }   /* μέσα σε παιχνίδι (με μπάρα προόδου) μόνο η ώρα */
@media (max-width: 1250px) { #clock-date { display: none; } }
@media (max-width: 900px) { #clock { display: none; } }
/* Μπάρα διδακτικής ώρας: τρέχουσα (αριστερά, έντονη) → μπάρα προόδου με τα λεπτά που μένουν → επόμενη (δεξιά, αχνή) */
#period { display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; line-height: 1.1; }
.pd-side { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pd-name { font-size: 15px; font-weight: 900; }
.pd-time { font-size: 11px; font-weight: 700; color: #90a4ae; }
.pd-cur .pd-name { color: #fff; background: #5c6bc0; border-radius: 12px; padding: 2px 10px; box-shadow: 0 2px 0 #3949ab; }
#period.brk .pd-cur .pd-name { background: #ffa726; box-shadow: 0 2px 0 #ef6c00; }
.pd-next .pd-name { color: #78909c; font-weight: 800; }
.pd-bar { position: relative; width: 120px; height: 20px; border-radius: 10px; background: #e3e8f0; box-shadow: inset 0 2px 4px rgba(0,0,0,.12); overflow: hidden; }
.pd-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 10px; transition: width 1s linear, background 1s linear; }
.pd-left { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #37474f; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
@media (max-width: 1500px) { #hud:not(.hidden) ~ #period .pd-time { display: none; } #hud:not(.hidden) ~ #period .pd-bar { width: 80px; } }
@media (max-width: 1250px) { #hud:not(.hidden) ~ #period { display: none; } .pd-bar { width: 90px; } }
@media (max-width: 1000px) { #period { display: none; } }
/* Κουμπί επιστροφής στην ομάδα: μικρό βελάκι + emoji της ομάδας */
#btn-group { display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-size: 22px; width: auto; min-width: 54px; padding: 0 10px; border-radius: 27px; }
#btn-group .gb-arrow { font-size: 14px; color: #607d8b; }
/* Παράθυρο «Σχετικά με» */
/* Ένδειξη έκδοσης */
/* Υποσέλιδο κάτω αριστερά: δημιουργός (σύνδεσμος) + έκδοση (ανοίγει το «Τι νέο υπάρχει») */
#foot { display: flex; align-items: center; gap: 8px; padding: 0 22px 4px; flex: none; }
#about { font-family: inherit; font-size: 12px; font-weight: 800; color: #546e7a; background: rgba(255,255,255,.7); border: 0; border-radius: 12px; padding: 3px 10px; white-space: nowrap; cursor: pointer; transition: transform .1s, color .15s; }
#about:hover { transform: scale(1.06); color: #7c4dff; }
/* Παράθυρο «Σχετικά με» */
.modal.modal-about { max-width: 480px; }
.ab-box { text-align: left; background: #f5f7fa; border-radius: 18px; padding: 12px 18px 14px; margin: 4px 0 16px; }
.ab-head { font-size: 15px; font-weight: 800; color: #90a4ae; margin: 8px 0 4px; }
.ab-head:first-child { margin-top: 0; }
.ab-person { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 20px; color: #37474f; padding: 3px 0; }
.ab-credit { font-size: 13px; color: #546e7a; padding: 1px 0; }
.ab-credit .ab-link { font-size: 12px; }
.ab-links { display: flex; gap: 8px; }
.ab-link { font-size: 13px; font-weight: 700; color: #1565c0; text-decoration: none; background: #fff; border: 2px solid #cfd8dc; border-radius: 10px; padding: 2px 8px; }
.ab-link:hover { border-color: #7c4dff; color: #7c4dff; }
#version { font-size: 12px; font-weight: 700; color: #90a4ae; background: rgba(255,255,255,.7); border-radius: 12px; padding: 3px 9px; white-space: nowrap; flex: none; cursor: pointer; transition: transform .1s; }
#version:hover { transform: scale(1.08); color: #ff5c8a; }
/* Μετρητής επισκέψεων / online (js/stats.js) — στο κέντρο του υποσέλιδου */
#stats { margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: #546e7a; background: rgba(255,255,255,.7); border-radius: 12px; padding: 3px 12px; white-space: nowrap; }
#stats .st-sep { color: #b0bec5; }
#stats .st-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #43a047; margin-right: 5px; box-shadow: 0 0 0 0 rgba(67,160,71,.5); animation: st-blink 2s infinite; }
@keyframes st-blink { 50% { box-shadow: 0 0 0 4px rgba(67,160,71,0); } }
#feedback { font-family: inherit; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff6f61, #ff9800); border: 0; border-radius: 12px; padding: 4px 11px; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 0 #c62828; transition: transform .1s; }
#feedback:hover { transform: scale(1.06); }
#feedback:active { transform: translateY(1px); box-shadow: 0 1px 0 #c62828; }
/* Παράθυρο «Ιδέες & λάθη» (js/feedback.js) */
.modal.modal-feedback { max-width: 640px; padding: 22px 34px 26px; }
.modal-feedback .modal-emoji { font-size: 56px; }
.modal-feedback .tx-help { font-size: 15px; margin-bottom: 12px; }
.fb-types { display: flex; gap: 10px; margin-bottom: 12px; }
.fb-type { flex: 1; font-family: inherit; cursor: pointer; background: #f5f7fa; border: 3px solid #e0e6ee; border-radius: 18px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #37474f; transition: transform .1s, border-color .15s, background .15s; }
.fb-type b { font-size: 17px; } .fb-type small { font-size: 12px; color: #78909c; font-weight: 600; } .fb-type .fb-ico { font-size: 32px; line-height: 1; }
.fb-type:hover { transform: scale(1.03); }
.fb-type.sel { background: #fff8e1; border-color: #ffb300; box-shadow: 0 0 0 3px rgba(255,179,0,.25); }
.fb-text { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 18px; font-weight: 600; color: var(--ink); padding: 10px 14px; border: 3px solid #cfd8dc; border-radius: 14px; background: #fafcff; outline: none; resize: vertical; min-height: 110px; line-height: 1.3; user-select: text; -webkit-user-select: text; }
.fb-text:focus, .fb-name:focus { border-color: #29b6f6; box-shadow: 0 0 0 4px rgba(41,182,246,.2); background: #fff; }
.fb-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.fb-name { flex: 1; min-width: 0; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink); padding: 7px 12px; border: 3px solid #cfd8dc; border-radius: 12px; outline: none; user-select: text; -webkit-user-select: text; }
.fb-where { font-size: 12px; font-weight: 700; color: #90a4ae; white-space: nowrap; }
.fb-msg { min-height: 20px; font-size: 15px; font-weight: 700; color: #546e7a; margin: 8px 0 4px; }
.fb-msg.bad { color: #e53935; }
.fb-actions { display: flex; gap: 12px; justify-content: center; }
.fb-actions .big-btn { font-size: 21px; padding: 10px 26px; }
.fb-actions .big-btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) { .fb-row { flex-wrap: wrap; } .fb-types { flex-direction: column; } }
/* Παράθυρο «Τι νέο υπάρχει;» */
.changelog { text-align: left; max-height: 52vh; overflow-y: auto; margin: 6px 0 14px; padding-right: 6px; }
.cl-ver { background: #fafafa; border-radius: 16px; padding: 8px 14px; margin-bottom: 8px; border: 2px solid #eceff1; }
.cl-ver.cur { background: #fff8e1; border-color: #ffe082; }
.cl-ver h3 { margin: 0 0 4px; font-size: 20px; color: #5e35b1; display: flex; align-items: center; gap: 8px; }
.cl-ver h3 small { font-size: 13px; color: #90a4ae; font-weight: 600; margin-left: auto; }
.cl-ver ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.35; }
.cl-ver li { margin: 3px 0; }
.new-badge.static { position: static; transform: none; animation: none; font-size: 11px; padding: 2px 8px; }
/* Μενού με πλαϊνή στήλη Αγαπημένων */
.menu-layout { position: absolute; inset: 0; display: flex; }
.menu-layout .menu { flex: 1; min-width: 0; }
.menu-tip { font-size: 14px; color: #78909c; font-weight: 600; margin: 0; text-align: center; }
.favbar {
  position: relative; flex: none; width: 168px; margin: 14px 14px 14px 0; border-radius: 22px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 3px rgba(255,255,255,.9), 0 6px 18px rgba(72,96,150,.12); overflow: hidden;
  transition: width .38s cubic-bezier(.2, 1.1, .4, 1), background .15s, box-shadow .15s;
}
.favbar.mini { width: 64px; padding: 10px 6px; }
.favbar .t { transition: opacity .2s; white-space: nowrap; }
.favbar.mini .t { opacity: 0; width: 0; overflow: hidden; pointer-events: none; }
/* Κουμπί αναδίπλωσης: ανοιχτή στήλη = ευδιάκριτο πορτοκαλί βελάκι «δίπλωσε»· μίνι στήλη = μεγάλο αστέρι με βελάκι που «χορεύει» */
.fav-toggle {
  position: absolute; left: 6px; top: 7px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(180deg, #ffb300, #f57c00); color: #fff;
  font-size: 14px; font-weight: 900; cursor: pointer; padding: 0; line-height: 1; box-shadow: 0 2px 0 #e65100, 0 3px 8px rgba(230,81,0,.35); transition: transform .15s, width .3s, height .3s;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.fav-toggle .fav-arrow { display: block; transform: translateX(-1px); text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.fav-toggle .star { display: none; }
.fav-toggle:hover { transform: scale(1.15); }
.fav-toggle:hover .arrow { animation: fav-fold .6s ease-in-out infinite alternate; }
@keyframes fav-fold { from { transform: translateX(-1px); } to { transform: translateX(-4px); } }
.favbar.mini .fav-toggle {
  left: 50%; top: 6px; transform: translateX(-50%); width: 52px; height: 52px; border-width: 3px; font-size: 15px;
  background: linear-gradient(180deg, #fff9c4, #ffe082); box-shadow: 0 4px 0 #f9a825, 0 6px 16px rgba(249,168,37,.45);
  animation: fav-bounce 1.6s ease-in-out infinite;
}
.favbar.mini .fav-toggle .star { display: block; font-size: 24px; line-height: 1; animation: fav-spin 3s linear infinite; }
.favbar.mini .fav-toggle .fav-arrow { position: absolute; left: -2px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #e65100; animation: fav-nudge .9s ease-in-out infinite alternate; }
.favbar.mini .fav-toggle:hover { animation: none; transform: translateX(-50%) scale(1.12); }
@keyframes fav-bounce { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.12); } }
@keyframes fav-spin { 0%, 70% { transform: rotate(0); } 85% { transform: rotate(-20deg); } 100% { transform: rotate(0); } }
@keyframes fav-nudge { from { left: -2px; } to { left: -8px; } }
.favbar.mini .fav-title { display: none; }
.favbar.mini .fav-list { margin-top: 56px; }
.favbar.drop-over { background: #fff8e1; box-shadow: inset 0 0 0 4px #ffb300, 0 6px 18px rgba(72,96,150,.12); }
.favbar.drop-remove { background: #ffebee; box-shadow: inset 0 0 0 4px #ef5350; }
.fav-title { font-weight: 900; font-size: 17px; color: #f9a825; text-align: center; display: flex; align-items: center; justify-content: center; gap: 4px; padding-left: 28px; }
.fav-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 6px; }
.fav-chip {
  position: relative; font-family: inherit; display: flex; align-items: center; gap: 6px; width: 100%; text-align: left;
  background: #fff; border: 3px solid var(--c); border-radius: 16px; padding: 6px 26px 6px 8px; cursor: pointer; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #fff);
  touch-action: none; transition: transform .1s, padding .3s;
}
.favbar.mini .fav-chip { padding: 6px 4px; justify-content: center; }
.fav-chip:hover { transform: translateY(-2px); }
.fav-chip .e { font-size: 24px; line-height: 1; flex: none; }
.fav-chip .t { font-weight: 700; font-size: 13px; color: #37474f; line-height: 1.1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; white-space: normal; }
.fav-chip .fav-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: #b0bec5; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.favbar.mini .fav-chip .fav-x { display: none; }
.fav-chip .fav-x:hover { background: #ef5350; color: #fff; }
.fav-chip.drop-before { box-shadow: 0 -4px 0 #ffb300, 0 3px 0 color-mix(in srgb, var(--c) 60%, #fff); }
.fav-hint { font-size: 12px; color: #90a4ae; font-weight: 600; text-align: center; line-height: 1.25; }
.favbar.mini .fav-hint { display: none; }
/* Σύρε-και-άφησε */
.group-card, .card { touch-action: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.dragging { opacity: .3; filter: grayscale(.5); }
.drag-ghost { opacity: .95; transform-origin: center; box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 0 4px #ffb300 !important; transition: none !important; animation: none !important; }
.drag-ghost .big { animation: none !important; }
.group-card.drop-before, .group-card.drop-after { outline: 5px dashed #ffb300; outline-offset: 4px; transition: transform .15s; }
.group-card.drop-before { transform: translateX(14px); }
.group-card.drop-after { transform: translateX(-14px); }
.group-card.drop-before::after, .group-card.drop-after::after {
  content: '⬇'; position: absolute; top: 50%; font-size: 34px; color: #ffb300; transform: translateY(-50%); text-shadow: 0 2px 6px rgba(0,0,0,.25); animation: drop-arrow .6s ease-in-out infinite alternate;
}
.group-card.drop-before::after { left: 4px; content: '◀'; }
.group-card.drop-after::after { right: 4px; content: '▶'; }
@keyframes drop-arrow { from { opacity: .5; } to { opacity: 1; } }
@media (max-width: 900px) { .favbar { width: 120px; } .favbar:not(.mini) .fav-chip .t { display: none; } .favbar:not(.mini) .fav-chip { justify-content: center; padding: 6px; } .fav-chip .fav-x { right: 2px; } }

#hud { flex: 1; display: flex; align-items: center; gap: 14px; justify-content: center; }
#level-badge {
  font-weight: 700; font-size: 18px; background: #7e57c2; color: #fff;
  padding: 6px 14px; border-radius: 18px; box-shadow: 0 3px 0 #4d2c91;
  white-space: nowrap;
}
#progress {
  position: relative; width: min(380px, 38vw); height: 30px;
  background: #fff; border: 3px solid #7cb342; border-radius: 20px; overflow: hidden;
}
#progress-fill {
  height: 100%; width: 0;
  background: repeating-linear-gradient(45deg, #8bc34a 0 12px, #9ccc65 12px 24px);
  transition: width .35s ease-out; border-radius: 20px;
}
#progress-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #33691e;
}

/* Κάρτα avatar στο κεντρικό μενού */
.avatar-card .big svg { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.avatar-card .big { display: flex; justify-content: center; }

/* Παράθυρο ρυθμίσεων */
.settings-title { font-size: 34px !important; margin: 0 0 10px !important; }
.modal.modal-settings { max-width: 980px; padding: 22px 30px 24px; }
/* Ρυθμίσεις σε ομάδες (πλέγμα 2 στηλών) — χωρούν χωρίς κύλιση */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; text-align: left; }
.set-group { background: #fff8e1; border-radius: 18px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.set-group h3 { margin: 0 0 4px; font-size: 18px; color: #6d4c41; }
.set-group-wide { grid-column: 1; }
.set-group-danger { grid-column: 2; grid-row: 3; }
.set-group-wide:not(.set-group-danger) { grid-row: 3; }
.set-tool { align-self: flex-start; margin-top: 2px; }
.set-note { font-size: 13px; color: #757575; font-weight: 600; }
.set-row {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 6px 12px; cursor: pointer;
  border: 3px solid transparent; transition: border-color .15s; position: relative;
}
.set-row:hover { border-color: #ffd54f; }
.set-emoji { font-size: 26px; line-height: 1; flex: none; }
.set-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.set-text b { font-size: 17px; }
.set-text small { font-size: 12px; color: #757575; font-weight: 600; line-height: 1.2; }
.set-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch {
  flex: none; width: 54px; height: 30px; border-radius: 16px; background: #cfd8dc; position: relative; transition: background .2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.15);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: left .2s;
}
.set-row input:checked + .switch { background: #66bb6a; }
.set-row input:checked + .switch::after { left: 27px; }
/* «Να το θυμάσαι» κάτω από την πλήρη οθόνη: διακριτικό, αλλάζει μόνο σε πλήρη οθόνη (.off = αχνό & κλειδωμένο) */
.set-remember { display: flex; align-items: center; gap: 6px; margin: -3px 0 2px 48px; font-size: 13px; font-weight: 600; color: #6d4c41; cursor: pointer; user-select: none; }
.set-remember input { width: 16px; height: 16px; margin: 0; accent-color: #66bb6a; cursor: pointer; }
.set-remember.off { opacity: .45; cursor: not-allowed; }
.set-remember.off input { cursor: not-allowed; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } .set-group-wide, .set-group-danger, .set-group-wide:not(.set-group-danger) { grid-column: auto; grid-row: auto; } }
@media (max-height: 720px) { .modal.modal-settings { padding: 12px 24px 14px; } .settings-title { font-size: 26px !important; margin-bottom: 6px !important; } .settings-grid { gap: 8px; margin-bottom: 10px; } .set-group { padding: 6px 10px 8px; gap: 4px; } .set-group h3 { font-size: 16px; } .set-row { padding: 3px 10px; } .set-text small, .set-note { display: none; } .lang-btn svg { width: 34px; height: 20px; } }
/* Επιλογή γλώσσας: κουμπιά με σημαία (SVG) και όνομα */
.lang-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 8px 4px; border-radius: 14px; border: 3px solid #e3e8f0; background: #fff; cursor: pointer; font-family: inherit; transition: transform .1s, border-color .15s; }
.lang-btn:hover { transform: scale(1.06); border-color: #ffd54f; }
.lang-btn.sel { border-color: #66bb6a; background: #e8f5e9; }
.lang-btn svg { width: 40px; height: 24px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.25); display: block; }
.lang-btn .ln { font-size: 11px; font-weight: 800; color: #546e7a; }
.lang-btn.sel .ln { color: #2e7d32; }

/* Κουμπιά κάτω από τις κάρτες του μενού */
.menu-tools { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; }
.tool-btn {
  font-family: inherit; font-size: 17px; font-weight: 600; padding: 8px 18px; border-radius: 30px;
  border: 2px solid #bdbdbd; background: #fff; color: #757575; box-shadow: 0 3px 0 #bdbdbd;
}
.tool-btn:hover { color: #d32f2f; border-color: #ef9a9a; }
.big-btn.danger { background: #e53935; box-shadow: 0 6px 0 #b71c1c; }
.big-btn.danger:active { box-shadow: 0 2px 0 #b71c1c; }

/* ===================== Σχεδιαστής avatar ===================== */
.avatar-editor { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.6fr; gap: 14px; padding: 14px; }
.av-left { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.av-preview { filter: drop-shadow(0 10px 18px rgba(0,0,0,.2)); animation: bob 3s ease-in-out infinite; }
.av-preview svg { width: min(260px, 34vh, 22vw); height: auto; display: block; }
/* Όνομα + τμήμα (π.χ. Α1) σε μία σειρά */
.av-ids { display: flex; gap: 8px; width: 100%; max-width: 380px; justify-content: center; }
#av-class { flex: 0 0 104px; width: 104px; box-sizing: border-box; font-family: inherit; font-size: 20px; font-weight: 800; text-align: center; padding: 8px 6px; border-radius: 30px; border: 4px solid #b3e5fc; background: #fff; color: var(--ink); outline: none; text-transform: uppercase; user-select: text; -webkit-user-select: text; }
#av-class:focus { border-color: #039be5; box-shadow: 0 0 0 4px rgba(3,155,229,.2); }
#av-class::placeholder { color: #bdbdbd; font-weight: 600; font-size: 13px; text-transform: none; }
#av-name {
  font-family: inherit; font-size: 24px; font-weight: 700; text-align: center; flex: 1 1 200px; width: 100%; min-width: 0; max-width: 300px; box-sizing: border-box;
  padding: 8px 16px; border-radius: 30px; border: 4px solid #ffd54f; background: #fff; color: var(--ink);
  user-select: text; -webkit-user-select: text; outline: none;
}
#av-name:focus { border-color: #ff9800; box-shadow: 0 0 0 4px rgba(255,152,0,.25); }
#av-name::placeholder { color: #bdbdbd; font-weight: 600; font-size: 19px; }
.av-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.av-actions .big-btn { font-size: 21px; padding: 10px 22px; }
.av-right { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.av-tabs { display: flex; gap: 6px; }
.av-tab {
  flex: 1; min-width: 0; font-family: inherit; font-weight: 700; font-size: 14px; color: #5e35b1; white-space: nowrap;
  background: #fff; border: 3px solid #d1c4e9; border-radius: 16px; padding: 4px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 3px 0 #d1c4e9; transition: transform .1s;
}
.av-tab .e { font-size: 24px; line-height: 1; }
.av-tab .l { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.av-tab:hover { transform: scale(1.05); }
.av-tab.sel { background: #7e57c2; border-color: #7e57c2; color: #fff; box-shadow: 0 3px 0 #4527a0; }
.av-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.av-row { background: rgba(255,255,255,.78); border-radius: 20px; padding: 8px 12px 10px; }
.av-label { font-weight: 700; font-size: 17px; color: #7e57c2; margin-bottom: 6px; }
.av-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; justify-items: center; }
.av-opts.colors { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
.av-opt {
  width: 68px; height: 68px; padding: 2px; border-radius: 16px; border: 3px solid #e0e0e0; background: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform .1s; cursor: pointer;
}
.av-opt svg { width: 58px; height: 58px; border-radius: 50%; }
.av-opt.zoom svg { border-radius: 10px; }
.av-opt:hover, .av-swatch:hover { transform: scale(1.1); }
.av-opt.sel { border-color: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,.35); }
.av-swatch { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #bdbdbd; transition: transform .1s; cursor: pointer; }
.av-swatch.sel { box-shadow: 0 0 0 4px #4caf50; transform: scale(1.12); }
/* Λίγο μικρότερα σε χαμηλές/στενές οθόνες, ώστε να χωρούν όλα χωρίς κύλιση */
@media (max-height: 720px), (max-width: 1100px) {
  .av-opt { width: 58px; height: 58px; border-radius: 13px; }
  .av-opt svg { width: 50px; height: 50px; }
  .av-opts { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
  .av-swatch { width: 36px; height: 36px; }
  .av-opts.colors { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
  .av-tab { font-size: 13px; padding: 3px 4px; }
  .av-tab .e { font-size: 18px; }
  .av-label { font-size: 15px; margin-bottom: 4px; }
}
/* Μεγαλύτερες μικρογραφίες όταν υπάρχει χώρος */
@media (min-width: 1500px) and (min-height: 860px) {
  .av-opt { width: 84px; height: 84px; border-radius: 18px; }
  .av-opt svg { width: 72px; height: 72px; }
  .av-opts { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .av-swatch { width: 50px; height: 50px; }
}
@media (max-width: 900px) { .av-tab .l { display: none; } }
@media (max-width: 800px) {
  .avatar-editor { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .av-preview svg { width: 140px; }
}

/* ===================== Μασκότ & οδηγίες ===================== */
#coach { display: flex; align-items: center; gap: 12px; padding: 8px 20px 0; }
.icon-btn.small { width: 46px; height: 46px; font-size: 22px; }

.bubble {
  position: relative; flex: 1; background: #fff; border-radius: 22px; padding: 10px 20px;
  font-size: 22px; font-weight: 600; line-height: 1.25;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  display: flex; align-items: center; gap: 14px; min-height: 64px;
}
.bubble.bump { animation: bump .45s; }
#coach-icon:empty { display: none; }
/* Συννεφάκι της μασκότ δίπλα στο σημείο (coachAt, js/ui.js): σκούρο με βελάκι, όπως τα συννεφάκια της ξενάγησης· η μπάρα μένει αχνή */
#coach.dim .bubble { opacity: .45; transition: opacity .3s; }
.coach-pop { position: fixed; z-index: 40; max-width: 360px; background: #37474f; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.3; padding: 10px 34px 10px 12px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.28); display: flex; align-items: flex-start; gap: 10px; animation: cpIn .25s ease; }
.coach-pop::before { content: ''; position: absolute; bottom: 100%; left: var(--ax, 30px); margin-left: -8px; border: 8px solid transparent; border-bottom-color: #37474f; }
.coach-pop.up::before { bottom: auto; top: 100%; border-bottom-color: transparent; border-top-color: #37474f; }
.coach-pop.left::before { bottom: auto; left: 100%; top: var(--ay, 20px); margin: -8px 0 0; border-bottom-color: transparent; border-left-color: #37474f; }
.coach-pop .cp-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: #b0bec5; font-size: 15px; cursor: pointer; padding: 2px 4px; }
.coach-pop .cp-x:hover { color: #fff; }
.coach-pop .cp-say { flex: none; align-self: center; background: rgba(255,255,255,.12); border: 0; border-radius: 50%; width: 30px; height: 30px; font-size: 15px; line-height: 30px; padding: 0; cursor: pointer; }
.coach-pop .cp-say:hover { background: rgba(255,255,255,.28); }
.coach-pop .cp-say.on { background: #ffb300; }   /* μιλά τώρα — ξανά πάτημα = σταματά */
.coach-pop .cp-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: #fff; color: #263238; border: 2px solid #ffb300; font-size: 16px; font-weight: 700; animation: cpBtn 1.2s ease-in-out infinite; }
.coach-pop .cp-btn small { font-size: 10px; margin-left: 2px; }
.coach-pop .cp-btn i { display: inline-block; width: 20px; height: 20px; border-radius: 4px; }
@keyframes cpIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes cpBtn { 50% { box-shadow: 0 0 0 4px rgba(255, 179, 0, .45); } }

/* ===================== Εικονίδιο ποντικιού ===================== */
.mouse-icon { width: 40px; height: 50px; flex: none; }
.mouse-icon.small { width: 20px; height: 25px; }
.mouse-icon.big { width: 90px; height: 112px; }
.mouse-icon .hl { animation: pulse-fill .7s infinite alternate; }
.mouse-icon .hl-move { animation: pulse-move .7s infinite alternate; transform-box: fill-box; transform-origin: center; }

/* ===================== Σκηνή ===================== */
#stage {
  flex: 1; position: relative; overflow: hidden;
  margin: 10px 20px 6px; border-radius: 26px;
  background: rgba(255,255,255,.4);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.7), 0 8px 24px rgba(0,0,0,.08);
}

/* ===================== Μενού ===================== */
.menu {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: safe center;   /* safe: αν δεν χωρά, ξεκινά από πάνω και κυλά (δεν κόβεται η πρώτη σειρά) */
  gap: 18px; padding: 24px; overflow: auto;
}
.menu .trophy { font-size: 72px; animation: bob 2s ease-in-out infinite; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 230px)); justify-content: center;
  gap: 20px; width: 100%; max-width: 1250px;
}
.card {
  background: #fff; border-radius: 26px; padding: 18px 12px 16px; text-align: center;
  border: 5px solid var(--c);
  box-shadow: 0 8px 0 var(--c), 0 14px 22px rgba(0,0,0,.12);
  transition: transform .15s;
}
.card:hover { transform: translateY(-8px) scale(1.04); }
/* Κάρτα «🚧 Σύντομα» (GROUPS[].soon): υποενότητα που έρχεται — δεν ανοίγει, δεν κινείται */
.card.soon-card { cursor: default; opacity: .7; filter: grayscale(.45); border-style: dashed; box-shadow: 0 14px 22px rgba(0,0,0,.08); }
.card.soon-card:hover, .card.soon-card:active { transform: none; box-shadow: 0 14px 22px rgba(0,0,0,.08); }
.card.soon-card .big { animation: none; }
.card:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--c); }
.card .big { font-size: 72px; line-height: 1.1; animation: bob 2s ease-in-out infinite; }
.card:nth-child(2n) .big { animation-delay: -.7s; }
.card:nth-child(3n) .big { animation-delay: -1.3s; }
.card h3 { margin: 10px 0 6px; font-size: 24px; }
.card .skill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c); color: #fff; padding: 4px 12px; border-radius: 14px; font-size: 15px; font-weight: 600;
}
.card .stars { font-size: 24px; margin-top: 8px; letter-spacing: 3px; }

/* Οθόνη «Επίπεδα» (παιχνίδια με choose): όλα ανοιχτά — αριθμός, εικονίδιο σαν κουμπί εργαλειοθήκης, τίτλος, ρεκόρ αστεριών */
.lv-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 220px)); }
.lv-card { cursor: pointer; display: flex; flex-direction: column; align-items: center; padding-top: 34px; }
.lv-card .lv-no {
  position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%;   /* γωνία, λίγο πιο μέσα· τα κουμπιά ξεκινούν πιο χαμηλά (padding-top) */
  background: var(--c); color: #fff; font-weight: 900; font-size: 15px; line-height: 26px;
}
/* Επίπεδο σε δοκιμαστική έκδοση (levelInfo.beta): ετικέτα «beta» στην πάνω δεξιά γωνία */
.lv-card .lv-beta { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 10px; background: #ff7043; color: #fff; font: 700 12px/18px Arial, 'Arimo', sans-serif; letter-spacing: .5px; text-transform: uppercase; }
/* Το εικονίδιο = μικρή εργαλειοθήκη: κάθε στοιχείο του (B, I, U…) είναι ένα κουμπί με το στυλ του .tf-btn (css/keyboard.css) */
.lv-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px;
  font: 600 21px/1 Arial, 'Arimo', sans-serif; color: #37474f; animation: bob 2s ease-in-out infinite;
}
.lv-card:nth-child(2n) .lv-icon { animation-delay: -.7s; }
.lv-card:nth-child(3n) .lv-icon { animation-delay: -1.3s; }
.lv-icon > * {
  display: inline-block; vertical-align: top; min-width: 42px; height: 42px; line-height: 38px; text-align: center; padding: 0 7px; box-sizing: border-box;   /* όχι flex: θα χάνονταν το x² / x₂ και η διαγραφή */
  border: 2px solid #cfd8dc; border-radius: 10px; background: #fff; box-shadow: 0 2px 0 #e3e8f0;
}
/* Χρώμα ανά επίπεδο (--c από το LV_COLORS) στον αριθμό, στη λωρίδα, στον τίτλο και στα κουμπάκια· ΙΔΙΟ απαλό κρεμ φόντο σε όλες τις κάρτες
   (.card.lv-card: πιο ισχυρό από το .card του theme.css) */
.card.lv-card { background: linear-gradient(165deg, #fffdf6 0%, #fff1d2 100%); }
.card.lv-card h3 { color: color-mix(in srgb, var(--c) 72%, #000); }
.lv-card .lv-icon > * {
  border-color: color-mix(in srgb, var(--c) 40%, #fff); color: color-mix(in srgb, var(--c) 70%, #000);
  background: linear-gradient(#fff, color-mix(in srgb, var(--c) 6%, #fff)); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 30%, #fff);
}
.lv-card .lv-stars i { color: color-mix(in srgb, var(--c) 22%, #fff); text-shadow: 0 1px 0 color-mix(in srgb, var(--c) 40%, #fff); }
.lv-card .lv-stars i.on { color: #ffb300; text-shadow: 0 1px 0 #e65100; }
.lv-icon sup, .lv-icon sub { font-size: .6em; }
.lv-icon > .lv-ic-sm { font-size: 14px; }
.lv-icon > .lv-ic-lg { font-size: 25px; }
/* Κουμπιά στοίχισης (≡ + μικρή λέξη, όπως στην εργαλειοθήκη): στενότερα, ώστε τα 4 να χωρούν στην κάρτα */
.lv-icon > .lv-ic-al { min-width: 30px; height: 36px; line-height: 32px; padding: 0 3px; font-size: 16px; }
.lv-icon > .lv-ic-al small { font-size: 9px; font-weight: 700; }
/* Η κάρτα με τα 4 κουμπιά στοίχισης: λίγο πιο ψηλά τα κουμπιά ξεκινούν κάτω από τον αριθμό (αλλιώς πέφτουν πάνω του) */
.lv-card:has(.lv-ic-al) { padding-top: 46px; }
.lv-icon .lv-ic-color, .tour-btn .lv-ic-color { display: inline-block; line-height: 1; padding-bottom: 1px; border-bottom: 4px solid #e53935; }
.lv-card h3 { flex: 1; display: flex; align-items: center; font-size: 21px; line-height: 1.2; }
.lv-stars i { font-style: normal; color: #cfd8dc; }
.lv-stars i.on { color: #ffb300; text-shadow: 0 1px 0 #e65100; }
.lv-card .lv-stars { font-size: 32px; letter-spacing: 2px; }
.lv-stars.inline { font-size: 1.15em; letter-spacing: 1px; }
/* Οθόνη νίκης: ρεκόρ + τα αστέρια όλων των επιπέδων */
.lv-record { margin: 4px 0; font-size: 20px; font-weight: 700; color: #546e7a; }
.lv-record.new { color: #e65100; font-size: 23px; animation: lv-pop 1.6s ease-in-out infinite; }
@keyframes lv-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.lv-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.lv-dots > span { display: flex; flex-direction: column; align-items: center; padding: 3px 8px; border-radius: 12px; background: #f1f4f6; font-size: 15px; line-height: 1.2; }
.lv-dots > span.now { background: #fff3c4; box-shadow: 0 0 0 2px #ffb300; }
.lv-dots .lv-stars { font-size: 20px; }

/* Σήμανση «Νέο» σε κάρτες που άλλαξαν στην τρέχουσα έκδοση (APP_NEW στο app.js) */
.group-card, .card { position: relative; }
.new-badge {
  position: absolute; top: 12px; right: 10px; z-index: 2; background: linear-gradient(135deg, #ff5252, #ff1744); color: #fff;
  font-weight: 900; font-size: 13px; letter-spacing: .5px; padding: 4px 12px; border-radius: 14px 4px 4px 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,.25); transform: rotate(6deg); animation: new-pulse 1.6s ease-in-out infinite;
}
@keyframes new-pulse { 0%, 100% { transform: rotate(6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.1); } }
/* Άδεια ομάδα (χωρίς παιχνίδια ακόμη) */
/* Ρομποτική: οθόνη «ετοιμάζεται» κάθε ρομπότ */
.rob-soon { margin: auto; max-width: 560px; text-align: center; background: rgba(255,255,255,.85); border: 5px solid var(--c); border-radius: 30px; padding: 26px 34px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.rob-emoji { font-size: 96px; line-height: 1; animation: bob 2s infinite; }
.rob-soon h2 { margin: 8px 0 4px; font-size: 40px; color: var(--c); }
.rob-badge { display: inline-block; background: #fff3e0; color: #e65100; border: 3px dashed #ffb74d; border-radius: 16px; padding: 4px 14px; font-weight: 900; margin-bottom: 10px; }
.rob-soon p { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 16px; }
.stars.free.soon { color: #e65100; }
.menu-empty { text-align: center; background: rgba(255,255,255,.8); border-radius: 26px; padding: 24px 34px; max-width: 520px; }
.menu-empty .big { font-size: 64px; }
.menu-empty h3 { margin: 6px 0; font-size: 28px; color: #f4511e; }
.menu-empty p { margin: 0; font-size: 18px; color: #616161; }

/* ===================== Παράθυρα (overlay) ===================== */
#overlay {
  position: fixed; inset: 0; background: rgba(40, 20, 60, .45);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal {
  background: #fff; border-radius: 34px; padding: 30px 44px; text-align: center;
  max-width: 620px; width: calc(100% - 40px); max-height: calc(100vh - 40px); overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: popin .45s cubic-bezier(.2, 1.4, .5, 1); position: relative;
}
/* ✕ κλεισίματος στο παράθυρο επιπέδου/οδηγιών (πίσω χωρίς να μπεις στη δραστηριότητα) */
.modal .modal-x { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: none; background: #eceff1; color: #546e7a; font: 700 24px/1 var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, transform .15s; z-index: 1; }
.modal .modal-x:hover { background: #ef5350; color: #fff; transform: scale(1.08); }
/* Παράθυρο επιπέδου/οδηγιών: στήλη όπου ΜΟΝΟ οι οδηγίες (.how) κυλούν αν δεν χωρούν — τα επίπεδα και το «Πάμε!» φαίνονται πάντα.
   Σε χαμηλές οθόνες (π.χ. 1366×768) όλα μαζεύουν, ώστε συνήθως να μη χρειάζεται καν κύλιση. */
.modal.modal-start { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.modal.modal-start > * { flex: none; }
.modal.modal-start .how { flex: 0 1 auto; min-height: 0; overflow-y: auto; align-self: stretch; }
.modal.modal-start .big-btn.go { margin-bottom: 8px; }
/* Ξενάγηση εργαλείων (toolTourHTML/toolTour, js/ui.js) */
.modal .how.how-tour { display: block; padding: 14px 20px 6px; }
.tour { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tour-title { font-size: 22px; font-weight: 700; color: #5e35b1; }
.tour-text { font-size: 20px; font-weight: 600; color: #37474f; text-align: center; line-height: 1.35; }
.tour-bar { display: flex; gap: 16px; background: #fff; border-radius: 16px; padding: 10px 18px; margin: 4px 0 46px; box-shadow: 0 3px 10px rgba(72,96,150,.15), inset 0 0 0 2px #eef1f6; }
.tour-btn { position: relative; width: 56px; height: 56px; border-radius: 14px; border: 2px solid #cfd8dc; background: #fff; color: #37474f; font-size: 28px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: default; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.tour-btn.wide { width: auto; min-width: 56px; padding: 0 12px; font-size: 17px; }   /* κουμπί με λέξη (π.χ. «Αντικατάσταση» της 🔍) */
.tour-bar:has(small) { gap: 8px; padding: 10px 12px; }
.tour-btn:has(small) { width: auto; min-width: 50px; padding: 0 6px; gap: 2px; font-size: 22px; }
.tour-btn small { font-size: 12px; font-weight: 700; }
.tour-btn.lit { background: #ffe082; border-color: #ff9800; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255,152,0,.22); }
/* Συννεφάκι: ΜΙΑ γραμμή (width: max-content — αλλιώς στενεύει στο πλάτος του κουμπιού) */
.tour-tip { position: absolute; top: calc(100% + 12px); left: 50%; width: max-content; transform: translateX(-50%) translateY(-6px); opacity: 0; pointer-events: none; background: #37474f; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.2; padding: 7px 12px; border-radius: 10px; transition: opacity .25s, transform .25s; z-index: 2; }
.tour-tip::before { content: ''; position: absolute; bottom: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-bottom-color: #37474f; }
.tour-tip small { font-size: 12px; color: #ffd54f; font-weight: 700; margin-left: 8px; }
.tour-btn.lit .tour-tip { opacity: 1; transform: translateX(-50%) translateY(0) scale(calc(1 / 1.15)); }
/* Το πρώτο κουμπί: το συννεφάκι ξεκινά από την αριστερή του άκρη (στο κέντρο θα κοβόταν από το πλαίσιο των οδηγιών) */
.tour-bar .tour-btn:first-child .tour-tip { left: -4px; transform: translateY(-6px); transform-origin: left top; }
.tour-bar .tour-btn:first-child.lit .tour-tip { transform: scale(calc(1 / 1.15)); }
.tour-bar .tour-btn:first-child .tour-tip::before { left: 24px; }
/* Φακός με στιγμιότυπο της άσκησης: η σελίδα κινείται ώστε η λέξη να έρθει στο κέντρο· το .tour-lens θολώνει την περιφέρεια */
.tour.has-snap { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; }
.tour-left { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.tour-snap { position: relative; width: 176px; height: 176px; border-radius: 50%; overflow: hidden; flex: none; margin-bottom: 8px;
  -webkit-mask: radial-gradient(circle at center, #000 52%, transparent 71%); mask: radial-gradient(circle at center, #000 52%, transparent 71%); }   /* χωρίς περίγραμμα: η άκρη σβήνει μέσα στο φόντο */
.tour-page { position: absolute; left: 0; top: 0; width: 560px; min-height: 420px; padding: 6px 18px; text-align: left; color: #263238; font: 400 18px/32px var(--font); background: #fff repeating-linear-gradient(180deg, transparent 0 31px, #e3eaf3 31px 32px); background-position: 0 6px; transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); }
.tour-page .tp-title { font-size: 24px; font-weight: 600; }
.tour-lens { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px);
  -webkit-mask: radial-gradient(circle at center, transparent 30%, #000 60%); mask: radial-gradient(circle at center, transparent 30%, #000 60%);
  background: radial-gradient(circle at center, transparent 45%, rgba(255,255,255,.45) 100%); }
/* «Μικρή σελίδα» (tour.whole, στοίχιση): όλη η σελίδα σε σμίκρυνση, σαν χαρτάκι — οι γραμμές .tl γλιστρούν στη θέση τους */
.tour-snap.whole { width: 220px; height: 150px; border-radius: 12px; -webkit-mask: none; mask: none; box-shadow: 0 4px 14px rgba(72,96,150,.22), inset 0 0 0 1px #e3eaf3; }
.tour-snap.whole .tour-page { width: 440px; min-height: 306px; padding: 12px 20px; font-size: 22px; line-height: 34px; background: #fff; transform: scale(.5); transform-origin: 0 0; transition: none; }
.tour-snap.whole .tp-title { font-size: 28px; }
.tour-snap.whole .tour-lens { display: none; }
.modal.modal-start:has(.tour-snap.whole) { max-width: 680px; }   /* η εργαλειοθήκη στοίχισης (4 κουμπιά με λέξεις) + η σελίδα χωρούν δίπλα-δίπλα */
.tl { border-radius: 6px; transition: background .3s; }
.tl.sel { background: #b3d4fc; }
.tl-in { display: inline-block; max-width: 100%; transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); }
.tl.just { text-align: justify; } .tl.just .tl-in { display: block; }
.tl-mk { display: inline-block; width: 0; overflow: hidden; vertical-align: top; text-align: right; font-weight: 700; color: #1e88e5; transition: width .35s, padding .35s; }
.tl.li-on .tl-mk { width: 1.3em; padding-right: .45em; }
.tin { transition: padding-left 1.1s cubic-bezier(.4, 0, .2, 1), background .3s; }
.tin.ind { padding-left: 2.6em; }   /* εσοχή στη «μικρή σελίδα» */
.tsp { transition: line-height 1.1s cubic-bezier(.4, 0, .2, 1), background .3s; }   /* διάστιχο στη «μικρή σελίδα» */   /* η γραμμή μετακινείται δεξιά σαν να μπαίνει σε λίστα */
/* nowrap: λέξη/φράση σπασμένη σε 2 γραμμές δίνει λάθος offsetLeft/Width → ο φακός κεντράρει σε κενό σημείο */
.tw { border-radius: 4px; padding: 0 1px; transition: background .2s; white-space: nowrap; }
.tw.sel { background: #b3d4fc; }
/* Πληκτρολόγηση στον φακό (to): δρομέας που αναβοσβήνει + πράσινο φόντο στη διορθωμένη λέξη */
.tw-caret { display: inline-block; width: 2px; height: 1.05em; background: #1e88e5; vertical-align: -.15em; margin: 0 -1px; animation: twBlink .8s steps(1) infinite; }
@keyframes twBlink { 50% { opacity: 0; } }
.tf-editor .tf-oops { background: #ffcdd2 !important; box-shadow: 0 0 0 4px #ef9a9a; border-radius: 4px; transition: background .3s, box-shadow .3s; }   /* «ατύχημα» (✂️ επίπεδο 4) */
.tf-editor .tf-good { background: #c8e6c9 !important; box-shadow: 0 0 0 4px #a5d6a7; border-radius: 4px; transition: background .3s, box-shadow .3s; }   /* διόρθωση μέσα στην ιστορία */
/* Κάρτα-ιστορία πάνω από τη σελίδα (✂️ επίπεδο 4): «▶ Δες τι γίνεται» πριν από τα «ατυχήματα», «Εντάξει, πάμε!» μετά */
.tf-pagebox { position: relative; }
.tf-story { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(255,255,255,.6); backdrop-filter: blur(2px); }
.tf-story-card { max-width: 460px; background: #fff; border: 3px solid #ffb74d; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 18px 24px 20px; text-align: center; animation: cpIn .3s ease; }
.tf-story-emoji { font-size: 52px; line-height: 1.1; margin-bottom: 6px; }
.tf-story-text { font-size: 21px; font-weight: 600; line-height: 1.4; color: #37474f; margin-bottom: 14px; }
.tf-story-card .big-btn { font-size: 20px; padding: 10px 26px; }
.tw.on.fx-ed { background: #dcedc8; } .tw.fx-undone { opacity: .45; background: #eceff1; } .tw.on.fx-find { background: #fff176; box-shadow: 0 0 0 3px #fff176; } .tw.on.fx-copy { animation: twCopy .9s ease; } @keyframes twCopy { 30% { background: #b3d4fc; box-shadow: 0 0 0 4px #90caf9; } } .tw:empty { padding: 0; }   /* λέξη που σβήστηκε όλη: να μη μοιάζει με δρομέα */
.tw.on.fx-b { font-weight: 700; } .tw.on.fx-i { font-style: italic; } .tw.on.fx-u { text-decoration: underline; } .tw.on.fx-s { text-decoration: line-through; }
.tw.on { transition: color .4s, background .2s; }
/* !important: η μορφοποίηση των λέξεων του δείγματος είναι και inline (π.χ. <span style="color:…">), που αλλιώς νικά */
.tw.on.fx-clear * { font-weight: 400 !important; font-style: normal !important; text-decoration: none !important; color: inherit !important; background: none !important; font-size: inherit !important; font-family: inherit !important; }
.tw.on.fx-sup { vertical-align: super; font-size: .7em; line-height: 0; } .tw.on.fx-sub { vertical-align: sub; font-size: .7em; line-height: 0; }
/* Αναπτυσσόμενη λίστα της ξενάγησης (γραμματοσειρά, μέγεθος): κουτί με την τρέχουσα τιμή + ανοιχτό μενού */
.tour-dd { margin: 2px 0 6px; text-align: left; font-size: 15px; font-weight: 600; color: #37474f; }
.tour-dd-box { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; background: #fff; border: 2px solid #ff9800; border-radius: 10px 10px 0 0; box-shadow: 0 0 0 4px rgba(255,152,0,.18); }
.tour-dd-arrow { color: #78909c; font-size: 13px; }
.tour-dd-menu { background: #fff; border: 2px solid #ff9800; border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; box-shadow: 0 8px 16px rgba(72,96,150,.18); }
.tour-dd-opt { height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; white-space: nowrap; transition: background .25s, color .25s; }
.tour-dd-opt small { font-size: 12px; color: #78909c; font-weight: 700; transition: color .25s; }
.tour-pick { cursor: default; }
.tour-pick.lit { background: #1e88e5; color: #fff; }
.tour-pick.lit small { color: #ffe082; }
/* Παλέτα της ξενάγησης (χρώμα): κουμπί A με γραμμή στο τρέχον χρώμα + ανοιχτά τα χρώματα, όπως στην εργαλειοθήκη */
.tour-pal { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 2px 0 6px; }
.tour-pal-btn { position: relative; width: 44px; height: 44px; border: 2px solid #ff9800; border-radius: 10px; background: #ffe082; font-size: 22px; font-weight: 700; color: #37474f; display: flex; align-items: center; justify-content: center; padding-bottom: 6px; }
.tour-pal-bar { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 6px; border-radius: 3px; transition: background .4s; }
.tour-pal-sw { display: grid; grid-template-columns: repeat(var(--pal-cols, 5), 30px); gap: 6px; background: #fff; border: 2px solid #ffd54f; border-radius: 12px; padding: 7px; box-shadow: 0 8px 18px rgba(72,96,150,.18); }
.tour-sw { position: relative; width: 30px; height: 30px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px #bbb; display: block; transition: transform .25s, box-shadow .25s; }
.tour-sw.lit { transform: scale(1.2); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #37474f; z-index: 1; }
.tour-pal-name { min-width: 90px; text-align: center; padding: 4px 14px; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 700; background: #90a4ae; text-shadow: 0 1px 2px rgba(0,0,0,.35); transition: background .4s; }
.tour-pal.dark .tour-pal-name { color: #37474f; text-shadow: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }   /* μαρκαδόροι: παστέλ φόντο */
@media (max-height: 860px) {
  .modal.modal-start { padding: 18px 40px 16px; }
  .modal.modal-start .modal-emoji { font-size: 56px; }
  .modal.modal-start .modal-emoji img, .modal.modal-start .modal-emoji svg { width: 60px; height: 60px; }
  .modal.modal-start h2 { font-size: 34px; line-height: 1.15; margin-bottom: 4px; }
  .modal.modal-start .lvl { margin-bottom: 8px; }
  .modal.modal-start .how { padding: 10px 16px; margin: 4px 0 12px; gap: 14px; }
  .modal.modal-start .how p { font-size: 18px; line-height: 1.35; }
  .modal.modal-start .how .how-emoji { font-size: 50px; }
  .modal.modal-start .mouse-icon.big { width: 64px; height: 80px; }
  .modal.modal-start .level-picker { margin-bottom: 12px; }
  .modal.modal-start .big-btn.go { padding-top: 10px; padding-bottom: 10px; }
  .modal.modal-start .how.how-tour { padding: 10px 16px 4px; }
  .tour { gap: 6px; }
  .tour-title { font-size: 20px; }
  .tour-text { font-size: 18px; }
  .tour-btn { width: 48px; height: 48px; font-size: 24px; }
  .tour-btn.wide { width: auto; font-size: 15px; }
  .tour-snap { width: 150px; height: 150px; }
  .tour-snap.whole { width: 210px; height: 141px; }
  .tour-snap.whole .tour-page { transform: scale(.477); }
  .tour-dd-box { height: 30px; }
  .tour-dd-opt { height: 21px; font-size: 14px; }
}
@media (max-height: 640px) {
  .modal.modal-start { padding: 12px 28px 10px; max-height: calc(100vh - 16px); }
  .modal.modal-start .modal-emoji { display: none; }
  .modal.modal-start h2 { font-size: 28px; padding-right: 40px; }
  .modal.modal-start .how p { font-size: 16px; }
  .tour-snap { display: none; }
  .tour.has-snap { display: flex; }
}
@media (max-width: 700px) { .tour-snap { display: none; } .tour.has-snap { display: flex; } }
.modal h2 { font-size: 44px; margin: 0 0 6px; color: var(--accent); }
.modal .modal-emoji { font-size: 80px; line-height: 1; animation: bob 2s infinite; }
.modal .lvl { display: inline-block; background: #7e57c2; color: #fff; font-weight: 700; padding: 4px 16px; border-radius: 16px; margin-bottom: 14px; }
.modal .how { display: flex; align-items: center; gap: 20px; text-align: left; background: #fff8e1; border-radius: 20px; padding: 14px 20px; margin: 6px 0 18px; }
.modal .how p { margin: 0; font-size: 22px; font-weight: 600; }
.modal .how .how-emoji { font-size: 70px; line-height: 1; flex: none; }
.modal .stars-earned { font-size: 56px; letter-spacing: 6px; margin: 4px 0 10px; animation: popin .6s .2s both; }
.modal .trophy { font-size: 90px; line-height: 1; animation: bob 2s infinite; }
.modal p { font-size: 22px; margin: 6px 0 14px; }

/* Πρόοδος επιπέδων (τελίτσες) και επιλογέας επιπέδου */
.level-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; }
.level-dots span {
  width: 22px; height: 22px; border-radius: 50%; background: #e0e0e0; border: 2px solid #bdbdbd;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.level-dots span.done { background: #ffd54f; border-color: #ffb300; }
.level-dots span.now { background: #4caf50; border-color: #2e7d32; transform: scale(1.25); }
.level-picker { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.level-picker button {
  font-family: inherit; font-weight: 700; font-size: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid #ffb300; background: #fff3c4; color: #5d4037; box-shadow: 0 3px 0 #e0a000;
  transition: transform .1s;
}
.level-picker button:hover { transform: scale(1.1); }
.level-picker button.now { background: #4caf50; border-color: #2e7d32; color: #fff; box-shadow: 0 3px 0 #1b5e20; }
.level-picker button.done { background: #66bb6a; border-color: #2e7d32; color: #fff; box-shadow: 0 3px 0 #1b5e20; }   /* μέχρι εκεί έχει φτάσει ο παίκτης */
.level-picker button.locked { background: #eee; border-color: #ccc; color: #aaa; box-shadow: 0 3px 0 #bbb; font-size: 16px; }
.card .stars { font-size: 20px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.card .stars .bar { width: 90px; height: 12px; border-radius: 8px; background: #eee; overflow: hidden; border: 2px solid var(--c); }
.card .stars .bar i { display: block; height: 100%; background: var(--c); }

.big-btn {
  font-family: inherit; font-size: 26px; font-weight: 700;
  padding: 14px 32px; border-radius: 40px; border: 0;
  background: #4caf50; color: #fff; box-shadow: 0 6px 0 #2e7d32; margin: 6px;
  transition: transform .1s, box-shadow .1s;
}
.big-btn:hover { filter: brightness(1.08); animation: pulse-btn 1s infinite alternate; }
@keyframes pulse-btn { from { transform: scale(1); } to { transform: scale(1.05); } }
.big-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #2e7d32; }
.big-btn.alt { background: #ff9800; box-shadow: 0 6px 0 #e65100; }
.big-btn.alt:active { box-shadow: 0 2px 0 #e65100; }
.big-btn.blue { background: #29b6f6; box-shadow: 0 6px 0 #0277bd; }
.big-btn.blue:active { box-shadow: 0 2px 0 #0277bd; }
.big-btn.grey { background: #90a4ae; box-shadow: 0 6px 0 #546e7a; }
.big-btn.grey:active { box-shadow: 0 2px 0 #546e7a; }

/* ===================== Κομφετί & υποδείξεις ===================== */
#confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti-piece { position: absolute; top: -24px; border-radius: 3px; animation: fall linear forwards; }

#hints { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.hint {
  position: absolute; transform: translate(-50%, -110%);
  background: #fff; border: 4px solid #ff5252; border-radius: 20px;
  padding: 8px 16px; font-size: 24px; font-weight: 700; color: #d32f2f;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  animation: hint-float 2.2s forwards;
}

/* ===================== Παιχνίδι: Μαγική εικόνα ===================== */
.reveal-wrap { position: absolute; inset: 20px; display: flex; align-items: center; justify-content: center; }
.reveal-frame {
  position: relative; height: 100%; max-width: 100%; aspect-ratio: 4 / 3;
  border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.2); border: 6px solid #fff;
}
.reveal-frame.revealed { animation: glow 1.2s infinite alternate; }
.pic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic-emoji { font-size: min(28vw, 42vh); line-height: 1; }
.reveal-grid { position: absolute; inset: 0; display: grid; }
.tile {
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(16px, 3vw, 34px); border: 2px solid rgba(255,255,255,.75);
  transition: transform .5s cubic-bezier(.5, -.4, .6, 1), opacity .5s;
}
.tile.gone { opacity: 0; transform: scale(0) rotate(200deg); pointer-events: none; }
.pic-name {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: #fff; color: var(--accent); font-size: 34px; font-weight: 700;
  padding: 6px 26px; border-radius: 30px; box-shadow: 0 6px 16px rgba(0,0,0,.2);
  animation: popin .5s;
}

/* ===================== Παιχνίδι: Αστέρια ===================== */
.field { position: absolute; inset: 0; background: linear-gradient(rgba(8,10,40,.45), rgba(8,10,40,.45)), url('../img/space_bg.jpg') center/cover no-repeat; overflow: hidden; }

.star {
  position: absolute; font-size: var(--s); line-height: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px #fff176);
  animation: twinkle 1s infinite alternate;
}
.star.drift { animation: twinkle 1s infinite alternate, drift var(--d, 4s) ease-in-out infinite; }
.star.caught { animation: catch .5s forwards; pointer-events: none; }
.trail { position: absolute; pointer-events: none; font-size: 18px; transform: translate(-50%, -50%); animation: trail .6s forwards; }

/* ===================== Παιχνίδι: Φούσκες ===================== */
.sea {
  position: absolute; inset: 0; overflow: hidden;
  background: url('../img/sea_bg.jpg') center/cover no-repeat;
}
.sea .seabed { position: absolute; left: 0; right: 0; bottom: 0; font-size: 46px; display: flex; justify-content: space-around; pointer-events: none; opacity: .9; }
.bubble-item {
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 14%, rgba(255,255,255,.35) 30%, rgba(173,216,255,.45) 60%, rgba(100,149,237,.55));
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: inset -8px -8px 16px rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--s) * .48); line-height: 1;
  will-change: transform;
}
.bubble-item:hover { filter: brightness(1.1); }
.bubble-item.pop { animation: pop .28s forwards; pointer-events: none; }
.ripple { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 4px solid rgba(255,255,255,.8); transform: translate(-50%, -50%); pointer-events: none; animation: ripple .5s forwards; }

/* ===================== Παιχνίδι: Δώρα ===================== */
.gifts {
  position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center;
  align-items: center; justify-content: center; gap: 28px 44px; padding: 30px;
  background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)), url('../img/party_bg.jpg') center/cover no-repeat;
}
.gift {
  font-size: clamp(70px, 12vh, 120px); line-height: 1;
  transition: transform .2s; filter: drop-shadow(0 10px 8px rgba(0,0,0,.2));
}
.gifts.many { gap: 18px 28px; }
.gifts.many .gift { font-size: clamp(56px, 9vh, 90px); }
.gift:hover { transform: scale(1.12) rotate(-4deg); }
.gift.wobble { animation: wobble .5s; }
.gift.open { animation: popin .6s cubic-bezier(.2, 1.6, .5, 1); pointer-events: none; }

/* ===================== Παιχνίδι: Μπαλόνι ===================== */
.sky { position: absolute; inset: 0; overflow: hidden; background: url('../img/sky_bg.jpg') center/cover no-repeat; }
.sky .deco { position: absolute; font-size: 64px; pointer-events: none; }
.sky .sun { right: 3%; top: 3%; font-size: 80px; animation: spin-slow 20s linear infinite; }
.sky .cloud { animation: cloud-move linear infinite; opacity: .95; }
.sky .c1 { top: 18%; animation-duration: 45s; }
.sky .c2 { top: 45%; animation-duration: 60s; animation-delay: -25s; font-size: 50px; }
.sky .c3 { top: 65%; animation-duration: 52s; animation-delay: -10s; font-size: 56px; }
.ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12%;
  background: linear-gradient(#8bc34a, #558b2f);
  display: flex; justify-content: space-around; align-items: flex-end; font-size: 54px; pointer-events: none;
}
.ground span { transform: translateY(-40%); }
.zone {
  position: absolute; left: 0; right: 0; height: 10%;
  background: rgba(255, 235, 59, .25); border-top: 3px dashed rgba(255, 152, 0, .8); border-bottom: 3px dashed rgba(255, 152, 0, .8);
  transition: top .3s;
}
.zone.in { background: rgba(139, 195, 74, .45); animation: zone-pulse .7s infinite alternate; }
.target { position: absolute; left: 68%; transform: translate(-50%, -50%); font-size: 96px; line-height: 1; transition: top .3s; animation: bob 1.5s ease-in-out infinite; }
.target.hit { animation: catch .8s forwards; }
.balloon { position: absolute; left: 32%; transform: translate(-50%, -50%); font-size: 120px; line-height: 1; transition: top .18s linear; filter: drop-shadow(0 10px 10px rgba(0,0,0,.2)); z-index: 2; }
.balloon .basket { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); }
.balloon .basket::before { content: "🧺"; position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); font-size: 40px; z-index: -1; }
.arrow { position: absolute; left: calc(32% - 125px); width: 60px; height: 80px; transform: translate(-50%, -50%); transition: top .18s linear; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.arrow svg { width: 100%; height: 100%; animation: arrow-bounce .45s infinite alternate; }
.arrow.down svg { transform: rotate(180deg); animation-name: arrow-bounce-down; }
.wheel-hint {
  position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 18px; padding: 8px 14px; font-weight: 700; font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.wheel-hint .mouse-icon { width: 44px; height: 55px; }
.wheel-hint.spin { animation: bump .3s; }

/* ===================== Animations ===================== */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes jump { 0% { transform: translateY(0); } 40% { transform: translateY(-22px) rotate(-8deg); } 100% { transform: translateY(0); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes popin { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(115vh) rotate(720deg); opacity: .8; } }
@keyframes twinkle { from { transform: translate(-50%, -50%) scale(1) rotate(-6deg); } to { transform: translate(-50%, -50%) scale(1.15) rotate(6deg); } }
@keyframes drift { 0%, 100% { margin-left: calc(-1 * var(--amp, 40px)); } 50% { margin-left: var(--amp, 40px); } }
@keyframes catch { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2.2) rotate(360deg); opacity: 0; } }
@keyframes trail { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.2) translateY(20px); } }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(5); opacity: 0; } }
@keyframes glow { from { box-shadow: 0 0 20px 6px #fff176; } to { box-shadow: 0 0 40px 16px #ffd54f; } }
@keyframes hint-float { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -110%) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150%); } }
@keyframes pulse-fill { from { fill: #ff5252; } to { fill: #ffab91; } }
@keyframes pulse-move { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes cloud-move { from { left: -120px; } to { left: 110%; } }
@keyframes zone-pulse { from { background: rgba(139,195,74,.35); } to { background: rgba(139,195,74,.65); } }
@keyframes arrow-bounce { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
@keyframes arrow-bounce-down { from { transform: rotate(180deg) translateY(-8px); } to { transform: rotate(180deg) translateY(8px); } }

/* ===================== Μικρές οθόνες ===================== */
@media (max-width: 800px) {
  #title { font-size: 20px; }
  .bubble { font-size: 17px; padding: 8px 14px; }
  #coach .mascot { width: 60px; height: 60px; }
  .modal h2 { font-size: 32px; }
  .modal .how p { font-size: 18px; }
}

/* Λογότυπο Unity στη θέση του emoji (ομάδα «Unity Εκπαιδευτικά παιχνίδια», js/unity.js) */
.unity-logo { width: 1em; height: 1em; vertical-align: -.12em; }

/* SEO: κείμενο για μηχανές αναζήτησης / αναγνώστες οθόνης — οπτικά κρυμμένο (index.html) */
.seo-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
