/* ===================== 🧱 Τουβλόκοσμος ===================== */
.cr-wrap { position: absolute; inset: 0; background: #87c1fa; overflow: hidden; }
.cr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.cr-wrap.playing, .cr-wrap.playing .cr-canvas { cursor: none; }
.cr-water { position: absolute; inset: 0; background: rgba(20, 70, 170, .35); pointer-events: none; }
.cr-hurt { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(ellipse at center, rgba(229,57,53,0) 40%, rgba(229,57,53,.55) 100%); }
.cr-hurt.show { opacity: 1; transition: none; }
.cr-sleep { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; background: #05061a; z-index: 3; }
.cr-sleep.show { opacity: 1; }
.cr-sleep.red { background: #3a0a0a; transition: opacity .5s; }

/* ---- HUD (δεν πιάνει το ποντίκι) ---- */
.cr-hud { position: absolute; inset: 0; pointer-events: none; font-weight: 700; transition: opacity .2s; }
.cr-wrap:not(.playing) .cr-hud > :not(.cr-toast) { opacity: .45; }
.cr-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cr-cross::before, .cr-cross::after { content: ''; position: absolute; background: #fff; }
.cr-cross::before { left: 50%; top: 0; width: 3px; height: 100%; transform: translateX(-50%); }
.cr-cross::after { top: 50%; left: 0; height: 3px; width: 100%; transform: translateY(-50%); }
.cr-target {
  position: absolute; left: 50%; top: calc(50% + 22px); transform: translateX(-50%);
  color: #fff; font-size: 17px; text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,.6); white-space: nowrap;
}
.cr-target:empty { display: none; }
.cr-break { position: absolute; left: 50%; top: calc(50% + 48px); transform: translateX(-50%); width: 120px; height: 10px; border-radius: 6px; background: rgba(0,0,0,.5); box-shadow: 0 0 0 2px rgba(255,255,255,.6); overflow: hidden; }
.cr-break i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd54f, #ff8f00); }
.cr-info {
  position: absolute; left: 14px; top: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  font-family: 'Consolas', 'Courier New', monospace; font-size: 17px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.5);
}
.cr-info span { background: rgba(0,0,0,.42); padding: 3px 10px; border-radius: 10px; }
.cr-fly { color: #ffe082; }
.cr-info .cr-plot { font-family: inherit; }
.cr-info .cr-plot.mine { background: rgba(21,101,192,.72); }
/* Live: «Καλωσόρισες στο οικόπεδο…» μέσα στον κόσμο (εμφανίζεται και σβήνει μόνο του — Web Animations) */
.cr-title { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); opacity: 0; text-align: center; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,0,0,.65), 0 0 18px rgba(0,0,0,.55); font-family: inherit; }
.cr-title:empty { display: none; }
.cr-title small { display: block; font-size: 22px; font-weight: 700; }
.cr-title b { display: block; font-size: 46px; font-weight: 900; color: #fffde7; letter-spacing: .5px; }
.cr-mission {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); max-width: min(46%, 460px); display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.5); color: #fff; border-radius: 16px; padding: 7px 12px; font-size: 16px; line-height: 1.2;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.cr-mission .e { font-size: 24px; flex: none; }
.cr-mission .t { flex: 1; }
.cr-mission .p { flex: none; background: #ffb300; color: #3e2723; border-radius: 10px; padding: 2px 8px; font-size: 14px; }
.cr-mission .k { flex: none; border: 2px solid rgba(255,255,255,.6); border-radius: 6px; padding: 0 6px; font-size: 13px; opacity: .8; }
.cr-mapbox { position: absolute; right: 14px; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cr-map { width: 150px; height: 150px; border-radius: 14px; box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 6px 16px rgba(0,0,0,.35); image-rendering: pixelated; background: #0d1145; }
.cr-mapbox.big .cr-map { width: 260px; height: 260px; }
.cr-clock { background: rgba(0,0,0,.5); color: #fff; border-radius: 12px; padding: 3px 12px; font-size: 15px; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.cr-hearts { position: absolute; left: 50%; bottom: 82px; transform: translateX(-50%); display: flex; gap: 1px; font-size: 20px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.cr-hotbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 4px; background: rgba(0,0,0,.45); padding: 5px; border-radius: 14px; }
.cr-slot {
  position: relative; width: 54px; height: 54px; border-radius: 8px; background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center;
}
.cr-slot i { width: 40px; height: 40px; background-size: cover; image-rendering: pixelated; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.cr-slot span { position: absolute; left: 4px; top: 1px; font-size: 11px; color: #fff; text-shadow: 0 1px 0 #000; }
.cr-slot b { position: absolute; right: 3px; bottom: 1px; font-size: 13px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
.cr-slot.empty i { opacity: .35; filter: grayscale(1); }
.cr-slot.sel { background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px #ffb300; transform: scale(1.1); }
.cr-toast {
  position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 10px); opacity: 0; transition: opacity .2s, transform .2s;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 14px; padding: 6px 16px; font-size: 19px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis;
}
.cr-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Παύση / οδηγίες ---- */
.cr-pause { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 30, 60, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow: auto; padding: 12px; }
.cr-pause-box {
  background: linear-gradient(180deg, #fff, #f3f6ff); border-radius: 30px; padding: 18px 26px 22px; text-align: center; max-width: 720px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 0 0 3px #fff;
}
.cr-pause-box h2 { margin: 0 0 6px; font-size: 32px; color: #6d4c41; }
.cr-modes { display: flex; gap: 10px; justify-content: center; margin: 4px 0 8px; }
.cr-mode { flex: 1; max-width: 300px; font-family: inherit; border: 3px solid #cfd8dc; background: #fff; border-radius: 16px; padding: 8px 12px; cursor: pointer; text-align: left; transition: transform .1s; }
.cr-mode b { display: block; font-size: 18px; color: #37474f; }
.cr-mode small { display: block; font-size: 13px; color: #607d8b; font-weight: 600; line-height: 1.2; }
.cr-mode:hover { transform: scale(1.03); }
.cr-mode.sel { border-color: #ffb300; background: #fff8e1; box-shadow: 0 3px 0 #ffb300; }
.cr-loading { font-size: 20px; color: #607d8b; font-weight: 600; }
.cr-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; margin: 8px 0 14px; text-align: left; }
.cr-keys div { background: #fff8e1; border-radius: 12px; padding: 7px 10px; font-size: 14px; color: #5d4037; line-height: 1.25; }
.cr-keys b { display: block; color: #37474f; font-size: 15px; }
.cr-pause-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cr-play { font-size: 28px; padding: 12px 40px; }
.cr-pause-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cr-pause-tools .tool-btn { font-size: 16px; }
/* «Χάθηκα!»: μεγάλα, διακριτά κουμπιά επιστροφής (επιφάνεια / οικόπεδο) */
.cr-rescue { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.cr-rescue .cr-surface, .cr-rescue .cr-home {
  font-family: inherit; font-size: 22px; font-weight: 800; color: #fff; cursor: pointer; border: 0; border-radius: 18px; padding: 10px 22px;
  background: linear-gradient(180deg, #ff7043, #e64a19); box-shadow: 0 5px 0 #bf360c, 0 8px 18px rgba(0,0,0,.25); text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.cr-rescue .cr-home { background: linear-gradient(180deg, #42a5f5, #1e88e5); box-shadow: 0 5px 0 #1565c0, 0 8px 18px rgba(0,0,0,.25); }
.cr-rescue .cr-surface:hover, .cr-rescue .cr-home:hover { transform: translateY(-1px) scale(1.03); }
.cr-rescue .cr-surface:active, .cr-rescue .cr-home:active { transform: translateY(3px); box-shadow: 0 2px 0 #bf360c; }
/* Χαμηλές οθόνες (π.χ. 1366×768 με την πάνω μπάρα): η παύση μαζεύει ώστε να χωρά χωρίς κύλιση */
@media (max-height: 860px) {
  .cr-pause { padding: 6px 12px; }
  .cr-pause-box { padding: 10px 22px 12px; }
  .cr-pause-box h2 { font-size: 26px; margin-bottom: 2px; }
  .cr-mode { padding: 5px 12px; } .cr-mode b { font-size: 16px; }
  .cr-keys { gap: 4px 8px; margin: 6px 0 8px; } .cr-keys div { padding: 4px 9px; font-size: 13px; } .cr-keys b { font-size: 14px; }
  .cr-play { font-size: 24px; padding: 9px 30px; } .cr-rescue .cr-surface, .cr-rescue .cr-home { font-size: 19px; padding: 9px 18px; }
}
.cr-lost {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%); background: #e64a19; color: #fff; font-size: 22px; font-weight: 800;
  border-radius: 18px; padding: 10px 22px; box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(0,0,0,.4); animation: cr-lost 1.2s ease-in-out infinite; white-space: nowrap;
}
.cr-lost b { background: #fff; color: #e64a19; border-radius: 8px; padding: 0 9px; margin: 0 3px; }
@keyframes cr-lost { 50% { transform: translateX(-50%) scale(1.06); } }
.cr-wrap:not(.playing) .cr-hud > .cr-lost { opacity: 1; }
.cr-net { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; border-radius: 12px; padding: 4px 12px; }
.cr-net.warn { background: rgba(230, 74, 25, .9); }
.cr-modes.cr-off { display: none; }
.cr-shared-who { margin: 0 0 8px; font-size: 16px; color: #37474f; font-weight: 700; }

/* ---- Σακίδιο: οδηγία «σύρε στη ζώνη» (λεζάντα + κίνηση τουβλακιού με 👆 και ✖) ---- */
.cr-inv-tip { text-align: center; font-weight: 800; color: #e65100; font-size: 16px; margin: 6px 0 2px; animation: cr-tip 1.4s ease-in-out infinite; }
.cr-inv-tip b { color: #c62828; }
@keyframes cr-tip { 50% { transform: translateY(3px); } }
.cr-drag-demo { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 6; }
.cr-drag-demo i { position: absolute; width: 46px; height: 46px; left: -23px; top: -23px; background-size: cover; image-rendering: pixelated; border-radius: 6px; box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0,0,0,.45); }
.cr-drag-demo b { position: absolute; left: 4px; top: 2px; font-size: 32px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.cr-drag-demo em { position: absolute; left: 14px; top: -44px; font-style: normal; font-weight: 900; font-size: 30px; color: #e53935; opacity: 0; text-shadow: 0 0 4px #fff, 0 0 8px #fff; }

/* ---- Τουβλόκοσμος Live: χωρίς τις μπάρες της εφαρμογής (τίτλος, μασκότ), «🏁 Αφετηρία» πάντα πάνω δεξιά ---- */
html.cr-live #topbar, html.cr-live #coach { display: none !important; }
html.cr-live #stage { margin-top: 10px; }
.cr-start-btn {
  position: absolute; right: 14px; top: 12px; pointer-events: auto; cursor: pointer; z-index: 3;
  width: 150px; padding: 6px 8px;   /* ίδιο πλάτος με τον μικρό χάρτη· τα υπόλοιπα από το .cr-key-btn */
}
.cr-start-btn:hover { transform: scale(1.05); }
.cr-start-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #bf360c; }
.cr-wrap:not(.playing) .cr-hud > .cr-start-btn { opacity: 1; }
/* Κουμπιά-πλήκτρα με το ίδιο πλαίσιο: 🎒 I στην αρχή της ζώνης, 🗺️ M κάτω από τον μικρό χάρτη και 🏁 F2 πάνω του (Live)·
   εικονίδιο SVG + το πλήκτρο σε λευκό «πληκτράκι» */
.cr-key-btn {
  pointer-events: auto; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 800; color: #fff; border: 0; border-radius: 14px; padding: 6px 12px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, #ff7043, #e64a19); box-shadow: 0 4px 0 #bf360c, 0 6px 14px rgba(0,0,0,.35); text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.cr-key-btn:hover { transform: scale(1.05); }
.cr-key-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #bf360c; }
.cr-key-btn .cr-ki { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.cr-key-btn kbd { display: inline-block; min-width: 22px; padding: 0 5px; border-radius: 6px; background: #fff; color: #bf360c; font: 900 14px/22px Consolas, 'Courier New', monospace; text-align: center; text-shadow: none; box-shadow: 0 2px 0 #ffab91; }
.cr-inv-btn { align-self: center; height: 46px; margin: 0 4px 0 2px; padding: 0 9px; gap: 5px; }
.cr-inv-btn .cr-ki { width: 24px; height: 24px; }
.cr-map-btn { margin-top: 2px; width: 150px; padding: 6px 8px; }
.cr-sneak { color: #b2ebf2; }
.cr-key-btn.cr-start-btn { padding: 6px 6px; gap: 5px; font-size: 15px; }
.cr-wrap.live .cr-mapbox { top: 66px; }
.cr-keys-live { display: block; margin: 6px 0 12px; font-size: 15px; color: #5d4037; background: #fff8e1; border-radius: 12px; padding: 8px 12px; line-height: 1.5; }
.cr-keys-live b { color: #37474f; display: inline; font-size: inherit; }

/* ---- Τουβλόκοσμος Live: σύνδεση / νέος παίκτης (js/craftshared.js) ---- */
.crs-screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; overflow: auto;
  background: linear-gradient(180deg, #81d4fa 0%, #b3e5fc 55%, #8bc34a 55%, #689f38 100%); }
.crs-box { background: linear-gradient(180deg, #fff, #f3f6ff); border-radius: 30px; padding: 20px 28px 24px; text-align: center; width: min(100%, 520px); box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 0 0 3px #fff; }
.crs-box h2 { margin: 0 0 4px; font-size: 30px; color: #1565c0; }
.crs-box p { margin: 6px 0; color: #455a64; font-size: 16px; line-height: 1.35; }
.crs-tabs { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.crs-tabs button { font-family: inherit; font-size: 17px; font-weight: 700; border: 3px solid #cfd8dc; background: #fff; color: #37474f; border-radius: 14px; padding: 6px 16px; cursor: pointer; }
.crs-tabs button.sel { border-color: #1e88e5; background: #e3f2fd; color: #1565c0; }
.crs-form { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: left; }
.crs-form label { font-size: 15px; font-weight: 700; color: #37474f; }
.crs-form input { font-family: inherit; font-size: 20px; padding: 8px 12px; border: 3px solid #cfd8dc; border-radius: 12px; outline: none; }
.crs-form input:focus { border-color: #1e88e5; }
.crs-form small { color: #78909c; font-size: 13px; }
.crs-form small.ok { color: #2e7d32; } .crs-form small.bad { color: #c62828; }
.crs-msg { min-height: 22px; font-weight: 700; color: #c62828; font-size: 16px; }
.crs-msg.info { color: #1565c0; }
.crs-go { margin-top: 6px; font-size: 24px; padding: 10px 30px; align-self: center; }
.crs-who { font-size: 20px !important; font-weight: 800; color: #37474f !important; }
.crs-who-sub { font-size: 14px !important; color: #78909c !important; margin-top: -6px !important; word-break: break-word; }   /* εκπαιδευτικός: email · σχολείο (μόνο ο ίδιος) */
.crs-link { background: none; border: 0; color: #1e88e5; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---- Πάνελ: σακίδιο (θέσεις, πλέγμα κατασκευών, βιβλίο συνταγών) & αποστολές ---- */
.cr-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(94%, 860px); max-height: 94%;
  background: linear-gradient(180deg, #fff, #f3f6ff); border-radius: 26px; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 0 0 3px #fff; user-select: none;
}
.cr-panel-head { display: flex; align-items: center; gap: 12px; }
.cr-panel-head h3 { margin: 0; font-size: 22px; color: #6d4c41; white-space: nowrap; }
.cr-panel-head span { flex: 1; font-size: 14px; font-weight: 600; color: #607d8b; line-height: 1.2; }
.cr-panel-head .tool-btn { font-size: 15px; }
.cr-inv-body { display: flex; gap: 14px; min-height: 0; flex: 1; }
.cr-inv-left { display: flex; flex-direction: column; gap: 10px; align-items: center; flex: 1; min-width: 0; min-height: 0; }
/* Live: χάρτης οικοπέδων (M) */
.cr-plotmap { width: min(94%, 1000px); height: min(92%, 660px); }
.cr-panel { z-index: 5; }   /* πάνω από το «🏁 F2 - Αφετηρία» του Live — που κρύβεται όσο είναι ανοιχτό ένα πάνελ */
.cr-wrap:has(> .cr-panel:not(.hidden)) .cr-start-btn { display: none; }
.cr-pm-canvas { flex: 1; min-height: 0; width: 100%; border-radius: 16px; cursor: grab; touch-action: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.cr-pm-canvas.drag { cursor: grabbing; }
.cr-pm-sel { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; font-size: 16px; font-weight: 700; color: #37474f; }
.cr-pm-sel b { color: #e65100; }
.cr-pm-sel .tool-btn.cr-pm-go { background: #ff6d00; color: #fff; font-weight: 800; font-size: 16px; padding: 7px 16px; animation: crPmGo .35s ease-out; }
.cr-pm-sel .tool-btn.cr-pm-go:hover { background: #e65100; }
@keyframes crPmGo { from { transform: scale(.8); opacity: 0; } }
.cr-pm-legend { text-align: center; font-size: 14px; font-weight: 600; color: #546e7a; }
.cr-pm-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); margin-right: 2px; }
.cr-pm-legend b { color: #e53935; }
/* 🪧 Πινακίδα: γράψε το κείμενο */
.cr-signbox { width: min(94%, 600px); }
.cr-sign-row { display: flex; gap: 10px; align-items: center; }
.cr-sign-in { flex: 1; min-width: 0; font-family: inherit; font-size: 24px; font-weight: 700; padding: 10px 14px; border: 3px solid #bcaaa4; border-radius: 14px; background: #fff8e1; color: #3e2723; outline: none; }
.cr-sign-in:focus { border-color: #8d6e63; box-shadow: 0 0 0 4px rgba(141,110,99,.2); }
.cr-sign-n { font-weight: 800; color: #8d6e63; min-width: 52px; text-align: right; }
.cr-sign-msg { min-height: 22px; font-weight: 700; color: #6d4c41; text-align: center; }
.cr-sign-msg.bad { color: #c62828; }
.cr-sign-btns { display: flex; gap: 12px; justify-content: center; align-items: center; }
/* Καρτέλες κατηγοριών του σακιδίου (δημιουργικό) */
.cr-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 100%; }
.cr-tab { font-family: inherit; font-size: 14px; font-weight: 700; border: 3px solid #cfd8dc; background: #fff; color: #37474f; border-radius: 12px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.cr-tab:hover { border-color: #ffb300; }
.cr-tab.sel { border-color: #ff9800; background: #fff3e0; color: #e65100; box-shadow: 0 2px 0 #ffcc80; }
.cr-item.off { display: none; }
.cr-creative-grid { display: grid; grid-template-columns: repeat(auto-fill, 46px); justify-content: center; gap: 5px; overflow-y: auto; padding: 4px; max-height: 340px; width: 100%; }
.cr-item {
  position: relative; width: 46px; height: 46px; border-radius: 8px; border: 3px solid #fff; background-size: cover; image-rendering: pixelated;
  box-shadow: 0 0 0 2px #cfd8dc, 0 3px 6px rgba(0,0,0,.2); cursor: pointer; padding: 0; transition: transform .1s;
}
.cr-item:hover { transform: scale(1.15); box-shadow: 0 0 0 3px #ffb300, 0 6px 12px rgba(0,0,0,.25); z-index: 1; }
/* Θέσεις (slots) όπως στο Minecraft */
.cr-s { position: relative; width: 48px; height: 48px; border-radius: 6px; background: #8d8d8d; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cr-s:hover { background: #a8a8a8; }
.cr-s.sel { box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff, 0 0 0 3px #ffb300; }
.cr-s i { width: 36px; height: 36px; background-size: cover; image-rendering: pixelated; border-radius: 3px; pointer-events: none; }
.cr-s b { position: absolute; right: 3px; bottom: 1px; font-size: 14px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 4px #000; pointer-events: none; }
.cr-craftarea { display: flex; align-items: center; gap: 14px; background: #c6c6c6; border-radius: 12px; padding: 12px 18px; box-shadow: inset 0 0 0 3px #fff, 0 4px 0 #8d8d8d; }
.cr-grid { display: grid; gap: 4px; }
.cr-arrow { font-size: 30px; color: #37474f; }
.cr-out { width: 56px; height: 56px; }
.cr-out.ready { box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff, 0 0 0 3px #66bb6a; animation: cr-glow 1s infinite alternate; }
@keyframes cr-glow { to { box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff, 0 0 0 5px #ffd54f; } }
.cr-slots { display: grid; grid-template-columns: repeat(9, 48px); gap: 4px; background: #c6c6c6; padding: 8px; border-radius: 10px; box-shadow: inset 0 0 0 3px #fff; }
.cr-hotslots { display: grid; grid-template-columns: repeat(9, 48px); gap: 4px; background: #c6c6c6; padding: 8px; border-radius: 10px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #ffb300; }
.cr-cursor { position: absolute; z-index: 30; pointer-events: none; transform: translate(-50%, -50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.cr-cursor i { width: 40px; height: 40px; background-size: cover; image-rendering: pixelated; border-radius: 4px; }
.cr-cursor b { position: absolute; right: 0; bottom: -2px; font-size: 15px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
/* Βιβλίο συνταγών */
.cr-book { width: 300px; flex: none; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.cr-book-head { font-weight: 700; color: #6d4c41; font-size: 16px; }
.cr-book-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; max-height: 420px; padding: 2px; }
.cr-rb { display: flex; align-items: center; gap: 6px; font-family: inherit; text-align: left; border: 2px solid #e0e0e0; background: #fff8e1; border-radius: 10px; padding: 4px 8px; cursor: pointer; transition: transform .1s; }
.cr-rb:hover { transform: scale(1.03); border-color: #ffb300; }
.cr-rb.no { background: #f5f5f5; opacity: .6; }
.cr-pat { display: grid; grid-template-columns: repeat(3, 14px); gap: 1px; background: #b0bec5; padding: 2px; border-radius: 4px; flex: none; }
.cr-pat i { width: 14px; height: 14px; background: #eceff1; background-size: cover; image-rendering: pixelated; display: block; }
.cr-rb-arrow { color: #8d6e63; font-size: 16px; }
.cr-rb-out { width: 28px; height: 28px; background-size: cover; image-rendering: pixelated; border-radius: 4px; flex: none; box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0,0,0,.2); }
.cr-rb-name { font-size: 13px; font-weight: 700; color: #37474f; line-height: 1.15; }
.cr-missions-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 2px; }
.cr-m { display: flex; align-items: center; gap: 12px; background: #fff8e1; border-radius: 14px; padding: 8px 12px; }
.cr-m.done { background: #e8f5e9; }
.cr-m .e { font-size: 30px; flex: none; }
.cr-m .b { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cr-m b { font-size: 17px; color: #37474f; }
.cr-m.done b { text-decoration: line-through; color: #78909c; }
.cr-m small { font-size: 13px; color: #607d8b; font-weight: 600; line-height: 1.25; }
.cr-m .bar { display: block; height: 8px; border-radius: 4px; background: #eceff1; overflow: hidden; margin-top: 2px; }
.cr-m .bar i { display: block; height: 100%; background: linear-gradient(90deg, #66bb6a, #9ccc65); }
.cr-m .s { flex: none; font-size: 20px; font-weight: 700; color: #6d4c41; min-width: 40px; text-align: center; }


/* ---- 🤖 Το ρομπότ του παίκτη: οθόνη διαχείρισης (js/craftrobot.js) ---- */
.cr-botbox { width: min(96%, 1200px); height: min(94%, 780px); }
.cr-robot-shelf { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 6px 12px; border-radius: 16px; background: linear-gradient(90deg, #e3f2fd, #f3e5f5); box-shadow: inset 0 0 0 2px #bbdefb; }
.cr-robot-shelf.hidden { display: none; }
.cr-robot-shelf .cr-item { flex: none; width: 52px; height: 52px; background-color: #fff; border-radius: 12px; }
.cr-robot-shelf b { display: block; font-size: 15px; color: #0d47a1; }
.cr-robot-shelf small { display: block; font-size: 12.5px; font-weight: 600; color: #546e7a; line-height: 1.25; }
.crb-tip { font-size: 13px !important; }
.crb-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.crb-face { width: 76px; height: 76px; background: radial-gradient(circle at 50% 40%, #fff, #e3f2fd); border-radius: 18px; box-shadow: inset 0 0 0 2px #bbdefb; flex: none; }
.crb-f { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 800; color: #546e7a; }
.crb-f input, .crb-f select { font-family: inherit; font-size: 18px; font-weight: 700; padding: 6px 10px; border: 3px solid #bbdefb; border-radius: 12px; background: #fff; color: #0d47a1; outline: none; }
.crb-f input { width: 200px; }
.crb-f input:focus, .crb-f select:focus { border-color: #1e88e5; }
.crb-run { font-size: 20px; padding: 9px 22px; }
.crb-msg { flex: 1 1 200px; min-width: 0; align-self: center; font-size: 14px; font-weight: 700; color: #2e7d32; line-height: 1.25; }
.crb-msg.bad { color: #c62828; }
.crb-tabs { display: flex; gap: 6px; align-items: flex-end; border-bottom: 3px solid #e3f2fd; flex-wrap: wrap; }
.crb-tab { font-family: inherit; font-size: 16px; font-weight: 800; padding: 7px 18px; border: 0; border-radius: 12px 12px 0 0; background: #eceff1; color: #546e7a; cursor: pointer; }
.crb-tab.sel { background: #1e88e5; color: #fff; }
.crb-page { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.crb-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; flex: 1; padding-bottom: 4px; }
.crb-bar.hidden { display: none; }
.crb-bar .tool-btn { font-size: 14px; padding: 6px 10px; }
.crb-sp { width: 10px; }
.crb-ws { flex: 1; min-height: 260px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 2px #cfd8dc; }
.crb-saverow { display: flex; gap: 8px; align-items: center; }
.crb-saverow input { flex: 1; max-width: 420px; font-family: inherit; font-size: 17px; font-weight: 700; padding: 7px 12px; border: 3px solid #c8e6c9; border-radius: 12px; outline: none; }
.crb-saverow .big-btn { font-size: 16px; padding: 7px 16px; }
.crb-lib { position: absolute; top: 0; right: 120px; z-index: 3; width: min(460px, 100%); max-height: 70%; overflow: auto; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 12px 34px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 4px; }
.crb-li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; background: #f5f7fa; }
.crb-li:hover { background: #e3f2fd; }
.crb-li b { flex: 1; font-size: 15px; color: #37474f; }
.crb-li small { font-size: 12px; color: #78909c; }
.crb-li-ex { background: #fff3e0; }
.crb-del { border: 0; background: none; font-size: 17px; cursor: pointer; border-radius: 8px; padding: 2px 6px; }
.crb-del:hover { background: #ffcdd2; }
.crb-none { margin: 6px; font-size: 14px; color: #78909c; }
.crb-look { overflow: auto; gap: 6px; }
.crb-row { display: flex; align-items: center; gap: 14px; }
.crb-row > b { width: 150px; flex: none; font-size: 15px; color: #455a64; }
.crb-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.crb-opt { width: 50px; height: 50px; border: 3px solid transparent; border-radius: 16px; background: #f5f7fa; cursor: pointer; display: grid; place-items: center; padding: 0; }
.crb-opt:hover { background: #e3f2fd; }
.crb-opt.sel { border-color: #1e88e5; background: #e3f2fd; }
.crb-opt i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.crb-opt img { width: 44px; height: 44px; image-rendering: pixelated; }

/* ---- Κάρτα στο μενού ---- */
.craft-card .big { background: radial-gradient(circle at 35% 30%, #fff, #d7ccc8); }

@media (max-width: 900px) {
  .cr-keys { grid-template-columns: repeat(2, 1fr); }
  .cr-slot { width: 44px; height: 44px; } .cr-slot i { width: 32px; height: 32px; }
  .cr-mission { font-size: 14px; max-width: 40%; }
  .cr-map { width: 100px; height: 100px; }
  .cr-inv-body { flex-direction: column; }
  .cr-book { width: 100%; } .cr-book-list { max-height: 160px; }
  .cr-s { width: 36px; height: 36px; } .cr-s i { width: 28px; height: 28px; } .cr-slots, .cr-hotslots { grid-template-columns: repeat(9, 36px); }
  .cr-modes { flex-direction: column; align-items: center; }
  .crb-row > b { width: 90px; } .crb-opt { width: 52px; height: 52px; } .crb-opt img { width: 44px; height: 44px; }
}
