@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/michroma-latin.woff2) format('woff2'); }
/* REAL LOOOP – közös stílus. Telefonra készül, szélesebb kijelzőn középre igazítva. */
:root {
  /* LOOOP színvilág: sötét alap, neonzöld (#59FF00) kiemelés, szürkéskék (#98A7AF) és jégkék (#E4F4FF) szöveg */
  --bg: #101213; --panel: #191c20; --panel2: #22262b; --line: #2e3338; --text: #E4F4FF; --muted: #98A7AF;
  --accent: #59FF00; --accent2: #8dff4d; --on-accent: #0b0d0f; --good: #59FF00; --warn: #f5b84b; --bad: #ff6b6b;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent2); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #101213; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .grow { flex: 1; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); white-space: nowrap; }
.logo img { height: 40px; width: auto; display: block; }

.userchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); text-decoration: none; color: var(--text); max-width: 190px; }
.userchip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; }
.userchip .av img { width: 100%; height: 100%; object-fit: cover; }
.userchip .nm { font-size: 13px; line-height: 1.15; overflow: hidden; }
.userchip .nm small { display: block; color: var(--muted); font-size: 11px; }
.userchip .nm span, .userchip .nm small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel2); font-weight: 600; text-decoration: none; color: var(--text); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn:disabled, .btn.off { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row .grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: 24px; margin: 0 0 8px; } h2 { font-size: 18px; margin: 18px 0 10px; } h3 { font-size: 15px; margin: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 140px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
label.f { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.good { color: var(--good); border-color: rgba(62,207,142,.4); }
.pill.warn { color: var(--warn); border-color: rgba(245,184,75,.4); }
.pill.bad { color: var(--bad); border-color: rgba(255,107,107,.4); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(62,207,142,.2); }

.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); background: #fff; color: #111; padding: 10px 16px;
  border-radius: 12px; font-weight: 600; z-index: 100; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.toast.err { background: var(--bad); color: #fff; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--panel); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); max-height: 88vh; overflow: auto; border: 1px solid var(--line); }
.sheet h2 { margin-top: 0; }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.thumb { width: 64px; height: 44px; border-radius: 8px; background: #000 center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--muted); font-size: 11px; overflow: hidden; }
.thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Gépelés közben (billentyűzet nyitva) legyen hova görgetni a mezőt. */
body.kb { padding-bottom: 55vh; }
.pw { position: relative; display: block; flex: 1; min-width: 0; }
.pw input { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw-eye svg { width: 22px; height: 22px; }
/* Kapcsoló (pl. kijelző tájolása): rádiógombok egy sávban */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.seg input:checked + span { background: var(--accent); color: var(--on-accent); }
.sheet { position: relative; }
.sheet-x { position: sticky; top: 0; float: right; margin: -6px -4px 6px 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 18px; cursor: pointer; }
.thumb.landscape { width: 64px; height: 36px; margin: 4px 0; }
.thumb.portrait { width: 36px; height: 64px; margin: 0 14px; }
.thumb.landscape video, .thumb.landscape img, .thumb.portrait video, .thumb.portrait img { object-fit: contain; }
