/* Ίδια έγχρωμα emoji παντού (τηλεόραση και κινητά): Twemoji, μόνο για τους χαρακτήρες emoji */
@font-face {
  font-family: 'Twemoji';
  src: url('/fonts/twemoji.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+00A9, U+00AE, U+200D, U+203C, U+2049, U+2122, U+2139, U+2194-2199, U+21A9-21AA, U+231A-231B, U+2328, U+23CF, U+23E9-23F3, U+23F8-23FA, U+24C2, U+2600-27BF, U+2934-2935, U+2B05-2B07, U+2B1B-2B1C, U+2B50, U+2B55, U+3030, U+303D, U+3297, U+3299, U+FE0F, U+1F000-1FAFF, U+E0020-E007F;
}
:root {
  --ink: #141530;      /* φόντο: σαλόνι με χαμηλωμένα φώτα */
  --night: #1C1E44;    /* επιφάνειες */
  --raise: #2A2D5C;    /* ανυψωμένα στοιχεία */
  --line: #3A3E78;
  --paper: #F2F0FF;    /* κείμενο */
  --mute: #A9A8D6;     /* δευτερεύον κείμενο */
  --gold: #FFB627;     /* εστίαση, ενέργεια */
  --coral: #FF6B5B;
  --sky: #4CC9F0;
  --mint: #3DDC97;
  --font: 'Twemoji', 'Commissioner', 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.art { display: block; width: 100%; height: 100%; }

.avatar {
  --c: var(--gold);
  display: inline-grid;
  place-items: center;
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  font-weight: 900;
  flex: none;
}
.avatar.off { opacity: .35; filter: grayscale(.6); }

.ans-icon { width: 1em; height: 1em; flex: none; }

.offline {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--coral); color: var(--ink);
  padding: .7em 1.2em; border-radius: 999px; font-weight: 700; z-index: 50;
}

/* Animations μόνο όταν αλλάζει οθόνη, όχι σε κάθε ενημέρωση */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
#app:not(.settled) .enter { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
#app:not(.settled) .pop { animation: pop .4s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.toast {
  position: fixed; left: 50%; top: 1.2rem; transform: translate(-50%, -150%);
  background: var(--paper); color: var(--ink);
  padding: .8em 1.2em; border-radius: .7em; font-weight: 700;
  max-width: min(92vw, 34em); text-align: center; line-height: 1.35;
  transition: transform .25s ease; z-index: 60;
}
.toast.show { transform: translate(-50%, 0); }

/* Λογότυπο: όνομα + ετικέτα GAMES */
.brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 900; letter-spacing: .065em; line-height: 1; white-space: nowrap; }
.brand b { font-weight: 900; }
.brand i { font-style: normal; font-size: .62em; letter-spacing: .14em; background: var(--gold); color: var(--ink); padding: .35em .55em .3em; border-radius: .3em; }

/* ---------- Κάρτα παιχνιδιού με λάμψη (TV και κινητό) ---------- */
.gcard {
  --c: var(--gold);
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; text-align: left; color: var(--paper);
  border-radius: .9em; overflow: hidden; isolation: isolate;
  background: #101129;
  box-shadow: 0 0 0 1px rgba(242,240,255,.07), 0 1.1em 2em -1.1em rgba(0,0,0,.8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gcard-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 82% 38%, color-mix(in srgb, var(--c) 38%, transparent) 0%, transparent 70%),
    linear-gradient(135deg, #101129 40%, color-mix(in srgb, var(--c) 14%, #101129) 100%);
  transition: opacity .2s;
}
.gcard-art { position: absolute; right: 3%; top: 4%; height: 52%; width: auto; filter: drop-shadow(0 0 .9em color-mix(in srgb, var(--c) 60%, transparent)); }
.gcard-body { position: absolute; left: 7%; right: 7%; bottom: 9%; display: flex; flex-direction: column; gap: .3em; }
.gcard-body b { font-size: 1.32em; font-weight: 900; letter-spacing: .015em; line-height: 1.12; text-shadow: 0 .1em .6em rgba(0,0,0,.6); }
.gcard-body small { font-size: .74em; font-weight: 700; color: #C9C8EA; }
.gcard-new, .gcard-soon { position: absolute; left: 6%; top: 8%; font-style: normal; font-size: .68em; font-weight: 800; padding: .22em .5em; border-radius: .35em; background: var(--coral); color: var(--ink); }
.gcard-soon { background: rgba(242,240,255,.14); color: var(--paper); }
.gcard.is-soon .gcard-art { opacity: .45; filter: none; }
.gcard.is-soon .gcard-body b { color: var(--mute); }
.gcard.is-focus {
  transform: scale(1.06);
  box-shadow: 0 0 0 .18em var(--c), 0 0 2.4em -.4em color-mix(in srgb, var(--c) 70%, transparent), 0 1.4em 2.4em -1.2em rgba(0,0,0,.9);
}
.gcard.is-focus .gcard-glow {
  background:
    radial-gradient(80% 100% at 80% 38%, color-mix(in srgb, var(--c) 55%, transparent) 0%, transparent 72%),
    linear-gradient(135deg, #12132E 30%, color-mix(in srgb, var(--c) 24%, #12132E) 100%);
}

/* Λίγο πιο αραιά γράμματα παντού */
body { letter-spacing: .015em; }
