/* =========================================================
   Κινητά & tablet (html.mobile — βλ. App.detectDevice στο app.js):
   συμπαγής πάνω μπάρα, μασκότ και υποσέλιδο, μενού και παιχνίδια σε 2 στήλες
   με κύλιση, μικρότερα παράθυρα. Η στήλη Αγαπημένων κρύβεται.
   html.touch (μόνο οθόνη αφής, χωρίς ποντίκι/πληκτρολόγιο): τα παιχνίδια που
   θέλουν πραγματικό πληκτρολόγιο γίνονται γκρι (.card.disabled) και εξηγούν γιατί.
   ========================================================= */

/* ---- παιχνίδια που χρειάζονται πληκτρολόγιο (σε συσκευές χωρίς πληκτρολόγιο) ---- */
.group-card.disabled, .card.disabled { filter: grayscale(1); opacity: .6; }
.group-card.disabled:hover, .card.disabled:hover { transform: none; }
.group-card.disabled .big, .card.disabled .big { animation: none; }
.needs-keys { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; color: #fff; background: #546e7a; border-radius: 10px; padding: 3px 9px; }
.modal .nokeys { font-size: 18px; font-weight: 700; color: #37474f; line-height: 1.4; margin: 6px 0 12px; }

/* ---- οθόνη αφής: το δάχτυλο κάνει κύλιση (το σύρσιμο καρτών είναι μόνο για ποντίκι) ---- */
html.touch .group-card, html.touch .card, html.touch .fav-chip { touch-action: pan-y; }

/* ---- πάνω μπάρα ---- */
html.mobile #topbar { padding: 4px 8px; gap: 6px; }
html.mobile #title { font-size: 14px; }
html.mobile #title b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.1; }
html.mobile .icon-btn { width: 38px; height: 38px; font-size: 18px; border-width: 2px; }
html.mobile .icon-btn.small { width: 34px; height: 34px; font-size: 16px; }
html.mobile #clock, html.mobile #period { display: none !important; }
html.mobile #level-badge { font-size: 12px; padding: 4px 8px; }
html.mobile #progress { width: 90px; }
html.mobile #btn-group { font-size: 16px; }

/* ---- μασκότ ---- */
html.mobile #coach { padding: 4px 8px 0; gap: 6px; }
html.mobile .bubble { font-size: 14px; padding: 6px 10px; line-height: 1.25; border-radius: 14px; }
html.mobile #coach .mascot { width: 40px; height: 40px; }

/* ---- σκηνή & υποσέλιδο ---- */
html.mobile #stage { margin: 6px 8px 3px; border-radius: 18px; }
html.mobile #foot { padding: 0 10px 3px; gap: 6px; }
html.mobile #foot a, html.mobile #version, html.mobile #stats, html.mobile #feedback, html.mobile #about { font-size: 10px; padding: 2px 7px; }

/* ---- μενού ομάδων & παιχνιδιών: 2 στήλες με κύλιση ---- */
html.mobile .favbar { display: none; }
html.mobile .menu, html.mobile .menu-layout .menu { padding: 10px 8px 16px; gap: 10px; justify-content: flex-start; overflow-x: hidden; overflow-y: auto; }
html.mobile .menu-layout { overflow: hidden; }
html.mobile .menu .trophy { font-size: 44px; }
html.mobile .groups, html.mobile .menu-layout .groups, html.mobile .menu-layout.fav-mini .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none; width: 100%; }
html.mobile .group-card, html.mobile .menu-layout .group-card, html.mobile .menu-layout.fav-mini .group-card { padding: 8px 6px 8px; border-width: 4px; border-radius: 18px; min-width: 0; box-sizing: border-box; }
/* οριζόντιο κινητό: 3 στήλες */
@media (orientation: landscape) { html.mobile .groups, html.mobile .menu-layout .groups, html.mobile .menu-layout.fav-mini .groups, html.mobile .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html.mobile .group-card .big, html.mobile .menu-layout .group-card .big, html.mobile .menu-layout.fav-mini .group-card .big { width: 56px; height: 56px; font-size: 32px; margin: 0 auto 2px; }
html.mobile .group-card h2, html.mobile .menu-layout .group-card h2, html.mobile .menu-layout.fav-mini .group-card h2 { font-size: 15px; margin: 3px 0 2px; line-height: 1.15; }
html.mobile .group-card p, html.mobile .menu-layout .group-card p, html.mobile .menu-layout.fav-mini .group-card p { font-size: 11px; line-height: 1.2; margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.mobile .group-card .gcount, html.mobile .menu-layout .group-card .gcount { font-size: 10.5px; margin-top: 2px; }
html.mobile .group-card .gbar { height: 8px; }
html.mobile .menu-tip { display: none; }
html.mobile .new-badge { font-size: 10px; padding: 2px 8px; top: 6px; right: 4px; }
html.mobile .menu-head { gap: 8px; }
html.mobile .menu-head h2 { font-size: 20px; margin: 0; }
html.mobile .back-btn { font-size: 15px; padding: 8px 14px; margin: 0; }
html.mobile .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html.mobile .card { padding: 10px 6px 10px; border-width: 4px; border-radius: 18px; min-width: 0; box-sizing: border-box; }
html.mobile .card .big { font-size: 42px; }
html.mobile .card h3 { font-size: 15px; margin: 6px 0 4px; line-height: 1.15; }
html.mobile .card .skill { font-size: 11px; padding: 3px 8px; }
html.mobile .card .stars { font-size: 13px; margin-top: 6px; gap: 4px; }
html.mobile .card .stars .bar { width: 50px; height: 9px; }
html.mobile .menu-empty { padding: 14px 16px; }
html.mobile .menu-empty h3 { font-size: 20px; }
html.mobile .menu-empty p { font-size: 14px; }

/* ---- παράθυρα ---- */
html.mobile .modal { padding: 16px 14px; border-radius: 22px; width: calc(100% - 16px); max-height: calc(100vh - 16px); }
html.mobile .modal h2 { font-size: 24px; }
html.mobile .modal-emoji { font-size: 44px; }
html.mobile .modal .how p, html.mobile .modal p { font-size: 15px; }
html.mobile .big-btn { font-size: 17px; padding: 9px 16px; margin: 4px; border-radius: 30px; }
html.mobile .tool-btn { font-size: 14px; }
html.mobile .settings-grid { grid-template-columns: 1fr; }
html.mobile .modal.modal-settings { padding: 12px 12px; }

/* ---- Ρομποτική στο κινητό: πιο συμπαγή τμήματα ---- */
html.mobile .rl-play { padding: 4px 6px 12px; }
html.mobile .rl-bar { gap: 6px; padding: 4px 6px; }
html.mobile .rl-crumb { font-size: 13px; }
html.mobile .rl-dots span { width: 26px; height: 26px; font-size: 13px; }
html.mobile .rl-sec-head h3 { font-size: 17px; }
html.mobile .rl-sec-body { padding: 10px; }
html.mobile .rl-bl-wrap { height: 380px; }
html.mobile .rl-sim-row { grid-template-columns: 1fr; }
