/* Κυβομάγοι — GorbaTech theme (gorbatech.com). Για άλλο brand άλλαξε τις μεταβλητές του :root (βλ. CUSTOMIZATION.md). */
@font-face { font-family: "Ubuntu Sans"; font-weight: 400 800; font-display: swap; src: url("assets/fonts/ubuntu-sans-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Ubuntu Sans"; font-weight: 400 800; font-display: swap; src: url("assets/fonts/ubuntu-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212; }

:root {
  --bg: #06090E;
  --sky: #38BDF8;
  --blue: #2563EB;
  --indigo: #6366F1;
  --purple: #A855F7;
  --pink: #EC4899;
  --gold: #FACC15;
  --green: #22C55E;
  --danger: #EF4444;
  --glass: rgba(15, 23, 42, .75);
  --line: rgba(255, 255, 255, .1);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --plastic: #0B1120;
  --font: "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(60% 40% at 15% 0%, rgba(56, 189, 248, .18), transparent 70%),
    radial-gradient(60% 40% at 90% 100%, rgba(99, 102, 241, .22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  background-attachment: fixed;
  color: var(--text); font-family: var(--font);
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
b { font-weight: 800; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* top bar */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: linear-gradient(rgba(6, 9, 14, .92), rgba(6, 9, 14, .6) 70%, rgba(6, 9, 14, 0)); }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(56, 189, 248, .6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 16px; }
.brand-text b span { color: var(--sky); }
.brand-text small { font-family: var(--mono); font-size: 8px; letter-spacing: .22em; color: var(--muted); }
.bar-tools { display: flex; gap: 8px; align-items: center; }
.tool { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); padding: 3px; gap: 2px; }
.lang button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 9px; border-radius: 9px; cursor: pointer; }
.lang button.on { background: var(--blue); color: #fff; }

/* screens */
.screen { display: none; min-height: 100%; padding: calc(62px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
.screen.active { display: block; }
.screen.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(6, 9, 14, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.screen.overlay.active { display: flex; }
.col { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.col.wide { max-width: 560px; }
.mono-tag { font-family: var(--mono); letter-spacing: .3em; font-size: 11px; color: var(--sky); margin-top: 6px; }
.title { margin: 0; font-size: clamp(34px, 11.5vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  background: linear-gradient(90deg, #38BDF8, #A855F7, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 0; color: #CBD5E1; font-size: 18px; }
.h2 { margin: 6px 0 0; font-size: 26px; font-weight: 800; }
.note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }

.btn { border: 1px solid var(--line); background: var(--glass); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .1s; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, #38BDF8, #2563EB); box-shadow: 0 10px 30px rgba(37, 99, 235, .35); }
.btn.big { font-size: 20px; padding: 16px 26px; width: 100%; }
.btn.small { font-size: 14px; padding: 8px 12px; }
.btn.ghost { background: transparent; }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; cursor: default; }
.row { display: flex; gap: 10px; width: 100%; }
.row .btn { flex: 1; }

/* hero */
.hero { position: relative; width: 260px; height: 180px; display: flex; justify-content: center; }
.bob { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* speech bubble */
.bubble { position: relative; margin: 0; background: #fff; color: #0F172A; border-radius: 18px; padding: 12px 14px; font-size: 16px; line-height: 1.4; text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.bubble.big { font-size: 17px; }
.bubble b { color: #1D4ED8; }
.bubble .sq { display: inline-block; background: #E0E7FF; color: #3730A3; border-radius: 6px; padding: 0 5px; font-weight: 800; }
.bubble .praise { color: #15803D; }
.bubble .oops { color: #B91C1C; }
.bubble .after { display: block; margin-top: 6px; }

/* map */
.trail { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; position: relative; display: flex; flex-direction: column; gap: 6px; }
.trail::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; border-left: 4px dashed rgba(56, 189, 248, .35); }
.stop { position: relative; width: 78%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; text-align: left; }
.trail li:nth-child(odd) .stop { margin-right: auto; }
.trail li:nth-child(even) .stop { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.stop .ic { flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1E3A8A, #312E81); border: 3px solid rgba(255, 255, 255, .18); }
.stop .ic img, .stop .ic svg { width: 40px; height: 40px; }
.stop .num { font-family: var(--mono); font-size: 11px; color: var(--sky); letter-spacing: .15em; }
.stop .name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.stop .st { font-size: 15px; letter-spacing: 2px; color: rgba(255, 255, 255, .25); }
.stop .st .on { color: var(--gold); }
.stop.next { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56, 189, 248, .25), 0 10px 30px rgba(37, 99, 235, .3); }
.stop.next .ic { animation: pulse 1.6s ease-in-out infinite; }
.stop.done .ic { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, .25); } }
.map-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }

/* lesson */
#lesson { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.lesson-col { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.lesson-head { display: flex; align-items: center; gap: 10px; }
.lesson-title { flex: 1; font-weight: 800; font-size: 17px; text-align: center; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; max-width: 90px; justify-content: flex-end; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dots i.on { background: var(--sky); }
.dots i.cur { background: var(--gold); transform: scale(1.3); }
.guide { display: flex; align-items: flex-start; gap: 8px; min-height: 64px; }
.guide-img { flex: none; }
.guide .bubble { flex: 1; }
.guide .bubble::before { content: ""; position: absolute; left: -8px; top: 22px; border: 8px solid transparent; border-left: 0; border-right-color: #fff; }
.guide-img.happy { animation: hop .5s ease; }
.guide-img.sad { animation: shake .45s ease; }
@keyframes hop { 40% { transform: translateY(-14px) rotate(-8deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* κουμπάκια κινήσεων μέσα σε κείμενο */
.mv { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; margin: 1px 0; border-radius: 7px; background: #1E3A8A; color: #fff; font-weight: 800; font-size: .92em; line-height: 1.45; white-space: nowrap; vertical-align: baseline; }
.bubble .mv b, .mv b { color: inherit; }
.mv i { font-style: normal; color: #7DD3FC; font-size: .95em; }
.mv.next { background: #CA8A04; box-shadow: 0 0 0 3px rgba(250, 204, 21, .45); }
.mv.done { background: #15803D; }
.mv.more { background: #334155; }
.seq { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* κύβος */
.stage { position: relative; display: flex; justify-content: center; }
#cv { width: 100%; }
.cubeview { --s: 64px; position: relative; display: flex; justify-content: center; touch-action: none; cursor: grab; }
.scene { width: calc(var(--s) * 5); height: calc(var(--s) * 4.6); perspective: calc(var(--s) * 15); display: flex; align-items: center; justify-content: center; }
.cube { position: relative; width: calc(var(--s) * 3); height: calc(var(--s) * 3); transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1); }
.cube.dragging { transition: none; }
.cubie, .layer { transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; }
.cubie { position: absolute; left: var(--s); top: var(--s); width: var(--s); height: var(--s);
  transform: translate3d(calc(var(--x) * var(--s)), calc(var(--y) * var(--s)), calc(var(--z) * var(--s))); }
.face { position: absolute; inset: 0; background: var(--plastic); border-radius: 9%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cubeview .st { position: absolute; inset: 6%; border-radius: 14%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .35); transition: background-color .15s; }
.cubeview .st.hl { outline: 3px solid #fff; outline-offset: -3px; filter: brightness(1.08); }
.cubeview .st.mk { box-shadow: 0 0 0 4px #EC4899, 0 0 16px 4px rgba(236, 72, 153, .8); z-index: 2; }
.cubeview .st.ok { box-shadow: 0 0 0 4px #22C55E, 0 0 16px 4px rgba(34, 197, 94, .8); }
.cubeview .st.bad { animation: blink .5s; box-shadow: 0 0 0 4px var(--danger); }
.cubeview .st.dim { filter: grayscale(.85) brightness(.45); }
@keyframes blink { 50% { opacity: .25; } }
.arrows { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; transform: translateZ(calc(var(--s) * 1.5 + 3px)); overflow: visible; }
.arrows.hide { opacity: 0; }
.arrows .ar { fill: none; stroke: #fff; stroke-width: 15; stroke-linecap: round; }
.arrows .ar-shadow { fill: none; stroke: #0F172A; stroke-width: 27; stroke-linecap: round; opacity: .75; }
.arrows .ar-two { fill: #fff; stroke: #0F172A; stroke-width: 6; paint-order: stroke; font: 800 54px var(--font); text-anchor: middle; }
.net { display: none; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, auto); gap: 4px; width: min(100%, 440px); margin: 6px auto; }
.cubeview.flat { cursor: default; }
.cubeview.flat .scene { display: none; }
.cubeview.flat .net { display: grid; }
.nf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; background: var(--plastic); border-radius: 8px; aspect-ratio: 1; }
.net .st { position: relative; inset: auto; border-radius: 5px; aspect-ratio: 1; }
.net-arrows { width: 100%; height: 100%; transform: none; padding: 2px; box-sizing: border-box; }
.stage { flex-direction: column; align-items: center; }
.view-tools { position: relative; z-index: 5; display: flex; gap: 6px; justify-content: center; }
.chip-btn { border: 1px solid var(--line); background: var(--glass); border-radius: 10px; padding: 6px 9px; font-size: 12px; font-weight: 700; cursor: pointer; }
.chip-btn[hidden] { display: none; }

.status { min-height: 18px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.status b { color: var(--sky); }
.options { display: flex; flex-direction: column; gap: 8px; }
.options:empty { display: none; }
.opt { width: 100%; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--glass); font-size: 18px; font-weight: 700; cursor: pointer; }
.opt.ok { border-color: var(--green); background: rgba(34, 197, 94, .25); }
.opt.bad { border-color: var(--danger); background: rgba(239, 68, 68, .2); animation: shake .4s; }

/* πληκτρολόγιο κινήσεων */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pad:empty, .pad[hidden] { display: none; }
.grp { display: flex; flex-direction: column; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
.grp small { font-size: 11px; color: var(--muted); text-align: center; font-weight: 700; }
.grp div { display: flex; gap: 5px; }
.mvb { flex: 1; min-height: 44px; border-radius: 10px; border: 0; background: linear-gradient(135deg, #1E3A8A, #312E81); font-weight: 800; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 3px; touch-action: manipulation; }
.mvb i { font-style: normal; color: #7DD3FC; font-size: 18px; }
.mvb:active { transform: scale(.94); }
.mvb.next { background: linear-gradient(135deg, #FACC15, #EAB308); color: #0F172A; animation: pulse 1.2s ease-in-out infinite; }
.mvb.next i { color: #0F172A; }
.mvb[disabled] { opacity: .4; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tools .btn[hidden] { display: none; }
.actions { display: flex; gap: 10px; justify-content: center; }
.actions .btn { min-width: 140px; }
.actions .btn[hidden] { display: none; }

/* σκονάκι */
.sheet { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.sheet li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.sheet .ic { flex: none; width: 48px; height: 48px; }
.sheet .ic svg { width: 48px; height: 48px; }
.sheet b.t { display: block; font-size: 16px; }
.sheet p { margin: 4px 0 0; font-size: 14px; color: #CBD5E1; line-height: 1.4; }

/* done */
.done-card { padding: 22px 20px; width: min(92vw, 380px); }
.big-stars { font-size: 46px; letter-spacing: 6px; color: rgba(255, 255, 255, .2); }
.big-stars .on { color: var(--gold); text-shadow: 0 0 20px rgba(250, 204, 21, .6); display: inline-block; animation: pop .5s backwards; }
.big-stars .on:nth-child(2) { animation-delay: .2s; } .big-stars .on:nth-child(3) { animation-delay: .4s; }
@keyframes pop { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3); } }

/* diploma */
#nameInput { width: 100%; padding: 14px; border-radius: 14px; border: 2px solid var(--sky); background: var(--glass); color: var(--text); font: inherit; font-size: 20px; text-align: center; user-select: text; -webkit-user-select: text; }
#dipCanvas { width: min(100%, 360px); height: auto; border-radius: 16px; box-shadow: 0 16px 50px rgba(37, 99, 235, .35); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* «Επικοινωνήστε μαζί μας» (../shared/contact.js — υπάρχει μόνο στο website) */
.gt-contact { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.gt-contact[hidden] { display: none; }
.gt-contact-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 12, 0.78); backdrop-filter: blur(6px); }
.gt-contact-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(10, 15, 29, 0.97));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(56, 189, 248, 0.12);
  user-select: text;
}
.gt-contact-card h2 { font-size: 26px; line-height: 1.2; }
.gt-contact-intro { color: var(--muted); font-size: 14.5px; }
.gt-contact-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sky); background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.3);
}
.gt-contact-tag b { color: var(--text); }
.gt-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gt-contact-card label { display: flex; flex-direction: column; gap: 6px; font: 600 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
.gt-contact-card input:not([type="checkbox"]), .gt-contact-card textarea {
  font: 400 15px var(--font);
  color: var(--text);
  background: rgba(6, 9, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
}
.gt-contact-card input:focus, .gt-contact-card textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
.gt-contact-card .gt-contact-consent { flex-direction: row; align-items: flex-start; gap: 10px; font: 400 13px var(--font); text-transform: none; letter-spacing: 0; color: var(--muted); }
.gt-contact-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sky); flex-shrink: 0; }
.gt-contact-consent a { color: var(--sky); }
.gt-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gt-contact-status { font-size: 14px; min-height: 1.2em; color: var(--muted); }
.gt-contact-status[data-state="error"] { color: var(--danger); }
.gt-contact-status[data-state="ok"] { color: #34D399; }
.gt-contact-card .gt-btn { align-self: flex-start; font-size: 14px; }
.gt-contact-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(15, 23, 42, 0.9); color: var(--muted); cursor: pointer; font-size: 16px; }
.gt-contact-x:hover { color: var(--sky); border-color: var(--sky); }
@media (max-width: 520px) {
  .gt-contact-card { padding: 22px 18px; }
  .gt-contact-grid { grid-template-columns: 1fr; }
  .gt-contact-card h2 { font-size: 22px; }
}

.gt-contact-card h2 { margin: 0; }
.gt-contact-card p { margin: 0; }
.gt-contact-card .gt-btn { border: 0; color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 14px; cursor: pointer; background: linear-gradient(135deg, #38BDF8, #2563EB); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 8px var(--sky); }
#contactBtn[hidden] { display: none; }
.gt-contact-card input, .gt-contact-card textarea { user-select: text; -webkit-user-select: text; }

@media (min-width: 700px) { .pad { grid-template-columns: repeat(6, 1fr); } }
@media print {
  body { background: #fff; color: #000; }
  .bar, .no-print, #home, #map, #lesson { display: none !important; }
  .sheet li { border-color: #ccc; background: #fff; break-inside: avoid; }
  .sheet p, .note { color: #333; }
  .h2 { color: #000; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
