/* ============================================================================
   ION ARCADE — SDK стилове
   Реклами (заглавен банер, банер в мрежата, край на играта), панел с
   класация и вход с профил от ioncomputers.bg.

   Палитрата е същата като на портала — файлът не предефинира :root,
   а ползва променливите, ако ги има, с резервни стойности.
   ============================================================================ */

.arc,
#bsod.arc-end,
.arc-namebox {
  --arc-bg:      var(--bg, #04060c);
  --arc-panel:   var(--panel, #0a1322);
  --arc-panel2:  var(--panel2, #0d1a2e);
  --arc-cyan:    var(--cyan, #28e6ff);
  --arc-gold:    var(--gold, #f5b83d);
  --arc-copper:  var(--copper, #c07a3a);
  --arc-text:    var(--text, #d8ecff);
  --arc-dim:     var(--dim, #6b8db0);
  --arc-px:      'Press Start 2P', monospace;
  --arc-mono:    ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;
}

/* ─── Слот в мрежата: банерът заема цял ред ───────────────────────────────── */
.arc-slot { grid-column: 1 / -1; }
.arc-slot:empty { display: none; }

/* ─── Рекламна касетка ────────────────────────────────────────────────────── */
.arc-ad {
  position: relative;
  background: linear-gradient(180deg, var(--arc-panel2), var(--arc-panel));
  border: 2px solid #1c2f4d;
  border-radius: 10px 10px 6px 6px;
  padding: 16px 16px 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 238px 1fr;
  gap: 20px;
  align-items: center;
  font-family: var(--arc-mono);
}
.arc-ad::before {                    /* прорезът като на игровите касетки */
  content: "";
  position: absolute; top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 8px;
  background: var(--arc-bg);
  border: 2px solid #1c2f4d; border-top: none;
  border-radius: 0 0 6px 6px;
}
.arc-ad:hover { border-color: #2b4a72; }
.arc-ad__vitrina, .arc-ad__name, .arc-ad__desc { cursor: pointer; }
.arc-rest__name, .arc-rest__desc, .arc-rest .arc-ad__vitrina { cursor: pointer; }

.arc-ad__tag {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--arc-px); font-size: 7px; letter-spacing: 1px;
  color: #47688c;
}

/* Витрината: снимките от магазина са на бял фон → правим ги светещ екран */
.arc-ad__vitrina {
  position: relative;
  z-index: 60;                       /* над глобалните CRT линии на портала */
  aspect-ratio: 4 / 3;
  border: 2px solid #16273f; border-radius: 6px;
  background: #050a14;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 30px rgba(40, 230, 255, .10);
}
.arc-ad__plate {
  position: absolute; inset: 8px;
  border-radius: 4px;
  background: radial-gradient(120% 100% at 50% 0%, #fff 0%, #e7f1fb 55%, #c9dcef 100%);
  box-shadow: 0 0 26px rgba(40, 230, 255, .32), inset 0 -14px 24px rgba(11, 26, 44, .20);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.arc-ad__plate img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(10, 25, 45, .28));
}

.arc-ad__body { padding: 4px 0 16px; min-width: 0; }
.arc-ad__cat {
  display: inline-block;
  font-family: var(--arc-px); font-size: 7px; letter-spacing: 1px;
  color: var(--arc-gold);
  border: 1px solid var(--arc-copper); border-radius: 4px;
  padding: 6px 8px; margin-bottom: 12px;
}
.arc-ad__name {
  font-family: var(--arc-px); font-size: 12px; line-height: 1.85;
  color: #eaf6ff; font-weight: 400; letter-spacing: .5px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.arc-ad__desc {
  margin: 12px 0 0; color: var(--arc-dim); font-size: 13px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.arc-ad__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--arc-px); font-size: 9px; letter-spacing: 1px;
  text-decoration: none; color: #04060c; background: var(--arc-gold);
  border-radius: 6px; padding: 13px 16px;
  transition: box-shadow .2s, transform .12s;
}
.arc-ad__cta:hover { box-shadow: 0 0 22px rgba(245, 184, 61, .45); transform: translateY(-2px); }

/* Пинове + писта на ротацията */
.arc-ad__pins {
  grid-column: 1 / -1; height: 12px; margin: 0 -16px;
  background: repeating-linear-gradient(90deg, var(--arc-copper) 0 6px, transparent 6px 12px);
  opacity: .55;
}
.arc-ad__rail {
  position: absolute; left: 0; right: 0; bottom: 12px;
  height: 2px; background: rgba(192, 122, 58, .35);
}
.arc-ad__rail i {
  display: block; height: 100%; width: 0;
  background: var(--arc-cyan); box-shadow: 0 0 10px var(--arc-cyan);
}
.arc-ad.is-rolling .arc-ad__rail i { width: 100%; transition: width var(--arc-rot, 7s) linear; }

.arc-ad__dots { position: absolute; right: 14px; bottom: 22px; display: flex; gap: 6px; }
.arc-ad__dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 2px;
  background: #24405f; cursor: pointer;
}
.arc-ad__dots button.is-on { background: var(--arc-cyan); box-shadow: 0 0 8px var(--arc-cyan); }

.arc-ad__vitrina, .arc-ad__body { transition: opacity .28s ease, transform .28s ease; }
.arc-ad.is-swapping .arc-ad__vitrina,
.arc-ad.is-swapping .arc-ad__body { opacity: 0; transform: translateY(6px); }

/* ─── Вход с профил (заглавна страница) ───────────────────────────────────── */
.arc-sso {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--arc-px); font-size: 8px; letter-spacing: 1px;
  text-decoration: none; cursor: pointer;
  color: var(--arc-text); background: transparent;
  border: 1px solid #2b4a72; border-radius: 6px; padding: 10px 12px;
}
.arc-sso:hover { border-color: var(--arc-cyan); color: var(--arc-cyan); }
.arc-sso.is-linked { border-color: var(--arc-copper); color: var(--arc-gold); }

/* ─── Панел „край на играта" (вътре в BSOD екрана) ─────────────────────────── */
.arc-panel { margin-top: 18px; font-family: var(--arc-mono); text-align: center; }

.arc-panel__row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.arc-panel__row input {
  font-family: var(--arc-px); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; text-align: center;
  background: rgba(0, 0, 0, .28); color: #fff;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px;
  padding: 12px; width: 190px;
}
.arc-panel__row input::placeholder { color: rgba(255, 255, 255, .45); letter-spacing: 1px; }
.arc-panel__row button {
  font-family: var(--arc-px); font-size: 9px; letter-spacing: 1px; cursor: pointer;
  background: #ffe37a; color: #0a2a70; border: 0; border-radius: 6px; padding: 12px 14px;
}
.arc-panel__row button:disabled { opacity: .55; cursor: default; }

.arc-panel__saved {
  font-family: var(--arc-px); font-size: 9px; line-height: 2; color: #ffe37a;
}
.arc-panel__saved button {
  font-family: var(--arc-mono); font-size: 12px; letter-spacing: 0;
  background: none; border: 0; padding: 0 0 0 8px; cursor: pointer;
  color: rgba(255, 255, 255, .65); text-decoration: underline;
}
.arc-panel__note { margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .7); }

.arc-board {
  margin: 16px auto 0; max-width: 340px; text-align: left;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px;
  padding: 10px 12px;
}
.arc-board__head {
  font-family: var(--arc-px); font-size: 8px; letter-spacing: 1px;
  color: rgba(255, 255, 255, .75); padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.arc-board__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px; padding: 6px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, .18);
}
.arc-board__row:last-child { border-bottom: 0; }
.arc-board__row.is-me { color: #ffe37a; font-weight: 700; }
.arc-board__pos { font-family: var(--arc-px); font-size: 9px; margin-right: 8px; }

/* Рекламата „почини си" — тъмна карта върху синьото */
.arc-rest {
  margin: 20px auto 0; max-width: 520px; text-align: left;
  background: linear-gradient(180deg, #0d1a2e, #0a1322);
  border: 2px solid #1c2f4d; border-radius: 10px;
  padding: 14px;
  display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.arc-rest .arc-ad__vitrina { aspect-ratio: 1 / 1; }
.arc-rest__kick {
  display: block; margin-bottom: 8px;
  font-family: var(--arc-px); font-size: 7px; letter-spacing: 1px; color: var(--arc-gold);
}
.arc-rest__name {
  margin: 0; font-family: var(--arc-px); font-size: 10px; line-height: 1.8;
  color: #eaf6ff; font-weight: 400;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.arc-rest__desc {
  margin: 8px 0 0; color: var(--arc-dim); font-size: 12px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.arc-rest__row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.arc-rest__go {
  font-family: var(--arc-px); font-size: 8px; letter-spacing: 1px; text-decoration: none;
  background: var(--arc-gold); color: #04060c; border-radius: 6px; padding: 11px 12px;
}
.arc-rest__again {
  font-family: var(--arc-px); font-size: 8px; letter-spacing: 1px; cursor: pointer;
  background: transparent; color: var(--arc-text);
  border: 1px solid #2b4a72; border-radius: 6px; padding: 11px 12px;
}
.arc-rest__again:hover { border-color: var(--arc-cyan); color: var(--arc-cyan); }

/* ─── Оверлей за игри без BSOD екран (ПРИЦЕЛ) ─────────────────────────────── */
.arc-overlay {
  position: absolute; inset: 0; z-index: 20;
  display: none; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(4, 6, 12, .92);
  overflow-y: auto;
}
.arc-overlay.is-open { display: flex; }
.arc-overlay__inner { width: 100%; max-width: 560px; text-align: center; }
.arc-overlay__grade {
  font-family: var(--arc-px); font-size: 14px; color: #eaf6ff;
  text-shadow: 0 0 18px rgba(40, 230, 255, .55);
}
.arc-overlay__score {
  margin-top: 12px; font-family: var(--arc-px); font-size: 12px; color: var(--arc-gold);
}
.arc-overlay .arc-panel { margin-top: 14px; }

/* ─── Мобилно ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .arc-ad { grid-template-columns: 1fr; gap: 14px; padding: 16px 14px 0; }
  .arc-ad__vitrina { aspect-ratio: 16 / 10; }
  .arc-ad__name { font-size: 10px; line-height: 1.9; -webkit-line-clamp: 3; }
  .arc-ad__desc { font-size: 12px; -webkit-line-clamp: 3; }
  .arc-ad__cta { width: 100%; justify-content: center; font-size: 8px; }
  .arc-ad__dots { position: static; justify-content: center; margin: 14px 0 6px; }
  .arc-ad__body { padding-bottom: 6px; }

  .arc-rest { grid-template-columns: 1fr; }
  .arc-rest .arc-ad__vitrina { aspect-ratio: 16 / 10; }
  .arc-rest__go, .arc-rest__again { flex: 1; text-align: center; }
  .arc-panel__row input { width: 100%; max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .arc-ad__vitrina, .arc-ad__body, .arc-ad__cta { transition: none; }
  .arc-ad.is-rolling .arc-ad__rail i { transition: none; width: 100%; }
}

/* ============================================================================
   КЛАСАЦИИ
   ========================================================================== */

.arc-panel__more { margin-top: 14px; }
.arc-panel__link {
  font-family: var(--arc-px); font-size: 8px; letter-spacing: 1px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; padding: 10px 12px;
}
.arc-panel__link:hover { border-color: #ffe37a; color: #ffe37a; }
.arc-panel__error {
  margin-top: 10px; font-size: 12px; color: #ffd7dd;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 120, 140, .55);
  border-radius: 6px; padding: 8px 10px;
}

/* ─── Таблицата ───────────────────────────────────────────────────────────── */
.arc-lb {
  background: linear-gradient(180deg, var(--arc-panel2), var(--arc-panel));
  border: 2px solid #1c2f4d; border-radius: 10px;
  padding: 4px 14px 12px; text-align: left;
}
.arc-lb__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0 12px; border-bottom: 1px solid #1c2f4d;
  font-family: var(--arc-px); font-size: 9px; letter-spacing: 1px; color: #eaf6ff;
}
.arc-lb__count { color: var(--arc-dim); font-size: 7px; }
.arc-lb__row {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dotted #16273f;
  font-family: var(--arc-mono); font-size: 13px; color: var(--arc-text);
}
.arc-lb__row:last-child { border-bottom: 0; }
.arc-lb__row.is-me {
  color: var(--arc-gold); font-weight: 700;
  background: rgba(245, 184, 61, .07);
  box-shadow: inset 3px 0 0 var(--arc-gold);
  padding-left: 8px; margin-left: -8px;
}
.arc-lb__pos { font-family: var(--arc-px); font-size: 9px; color: var(--arc-dim); }
.arc-lb__row.is-me .arc-lb__pos { color: var(--arc-gold); }
.arc-lb__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-lb__score { font-family: var(--arc-px); font-size: 10px; }
.arc-lb__gap { text-align: center; color: var(--arc-dim); padding: 8px 0; letter-spacing: 3px; }
.arc-lb__empty, .arc-lb__loading {
  padding: 26px 4px; text-align: center; color: var(--arc-dim);
  font-family: var(--arc-mono); font-size: 13px;
}

/* ─── Превключватели ──────────────────────────────────────────────────────── */
.arc-lb__tabs, .arc-lb__games { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.arc-lb__tab, .arc-lb__game {
  font-family: var(--arc-px); font-size: 7px; letter-spacing: 1px; cursor: pointer;
  background: var(--arc-panel); color: var(--arc-dim);
  border: 1px solid #1c2f4d; border-radius: 5px; padding: 9px 10px;
}
.arc-lb__tab:hover, .arc-lb__game:hover { border-color: var(--arc-cyan); color: var(--arc-cyan); }
.arc-lb__tab.is-on { background: var(--arc-cyan); color: #04060c; border-color: var(--arc-cyan); }
.arc-lb__game.is-on { background: var(--arc-gold); color: #04060c; border-color: var(--arc-gold); }

/* ─── Оверлей върху играта ────────────────────────────────────────────────── */
.arc-lbover {
  position: absolute; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 6, 12, .94); overflow-y: auto;
}
.arc-lbover__inner { width: 100%; max-width: 520px; }
.arc-lbover__bar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--arc-px); font-size: 10px; letter-spacing: 1px; color: #eaf6ff;
}
.arc-lbover__close {
  font-family: var(--arc-mono); font-size: 16px; line-height: 1; cursor: pointer;
  background: transparent; color: var(--arc-dim);
  border: 1px solid #2b4a72; border-radius: 6px; padding: 6px 10px;
}
.arc-lbover__close:hover { border-color: var(--arc-danger); color: var(--arc-danger); }

@media (max-width: 640px) {
  .arc-lb__row { grid-template-columns: 38px 1fr auto; font-size: 12px; }
  .arc-lb__score { font-size: 9px; }
  .arc-lbover { padding: 10px; }
}

/* ============================================================================
   КРАЯТ НА ИГРАТА — единен екран

   Синият BSOD отпада. Остава един стоен вертикален екран в езика на портала:
       GAME OVER → резултат → реклама → класация → пълна класация
   Екранът се скролва, защото на телефон в landscape височината е ~380px и
   иначе рекламата остава под ръба.
   ВАЖНО: display не се пипа — той си остава на играта (.show → flex).
   ========================================================================== */

#bsod.arc-end {
  background: linear-gradient(180deg, #0b1626 0%, #04060c 100%) !important;
  border: 2px solid #1c2f4d;
  color: var(--arc-text, #d8ecff);
  font-family: var(--arc-mono, monospace) !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 22px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  cursor: default;
  text-align: center;
}

/* скролбар в стила на портала */
#bsod.arc-end::-webkit-scrollbar { width: 6px; }
#bsod.arc-end::-webkit-scrollbar-thumb { background: #1c2f4d; border-radius: 3px; }

/* Онова, което идваше от BSOD-а и вече не ни трябва */
#bsod.arc-end .sad,
#bsod.arc-end .err,
#bsod.arc-end .restart { display: none !important; }

#bsod.arc-end > * { flex: 0 0 auto; width: 100%; max-width: 520px; }

.arc-end__title {
  font-family: var(--arc-px, monospace);
  font-size: clamp(16px, 3.4vw, 24px);
  letter-spacing: 2px;
  color: #eaf6ff;
  text-shadow: 0 0 22px rgba(255, 77, 109, .55);
  margin-bottom: 10px;
}

/* Ред с изречението на играта — дребен, дискретен */
#bsod.arc-end h2 {
  font-family: var(--arc-mono, monospace) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55;
  color: var(--arc-dim, #6b8db0) !important;
  margin: 0 0 14px !important;
}

/* Резултатът */
#bsod.arc-end .score {
  font-family: var(--arc-px, monospace) !important;
  font-size: 11px !important;
  line-height: 2.1 !important;
  color: var(--arc-gold, #f5b83d) !important;
  margin: 0 0 16px !important;
  padding: 12px 14px;
  background: rgba(245, 184, 61, .06);
  border: 1px solid rgba(192, 122, 58, .5);
  border-radius: 8px;
}

#bsod.arc-end .arc-panel { margin-top: 0; text-align: left; }
#bsod.arc-end .arc-rest { margin: 0 0 14px; max-width: none; }
#bsod.arc-end .arc-board { max-width: none; }
#bsod.arc-end .arc-panel__row { justify-content: center; }
#bsod.arc-end .arc-panel__note,
#bsod.arc-end .arc-panel__error { text-align: center; }
#bsod.arc-end .arc-panel__more { text-align: center; }

/* Тъмната карта на рекламата вече лежи върху тъмен фон — вдигаме контраста */
#bsod.arc-end .arc-rest {
  background: linear-gradient(180deg, #10203a, #0c1526);
  border-color: #24406a;
}
#bsod.arc-end .arc-board {
  background: rgba(255, 255, 255, .04);
  border-color: #1c2f4d;
}
#bsod.arc-end .arc-board__head { color: var(--arc-dim, #6b8db0); }
#bsod.arc-end .arc-board__row { border-bottom-color: #16273f; }
#bsod.arc-end .arc-board__row.is-me { color: var(--arc-gold, #f5b83d); }
#bsod.arc-end .arc-panel__saved { color: var(--arc-gold, #f5b83d); }
#bsod.arc-end .arc-panel__row input {
  background: rgba(0, 0, 0, .35);
  border-color: #2b4a72;
  color: var(--arc-text, #d8ecff);
}
#bsod.arc-end .arc-panel__row button {
  background: var(--arc-gold, #f5b83d); color: #04060c;
}
#bsod.arc-end .arc-panel__link {
  color: var(--arc-text, #d8ecff); border-color: #2b4a72;
}
#bsod.arc-end .arc-panel__link:hover {
  color: var(--arc-cyan, #28e6ff); border-color: var(--arc-cyan, #28e6ff);
}
#bsod.arc-end .arc-panel__note { color: var(--arc-dim, #6b8db0); }

/* ─── Телефон в landscape (най-тясното място) ─────────────────────────────
   Височината е ~380px. Затова:
     • съдържанието се лепи ГОРЕ (GAME OVER се вижда веднага, без скрол);
     • всичко се смалява;
     • полето за име не стои в потока — отваря се като изскачащ прозорец.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-height: 520px) {
  #bsod.arc-end { padding: 10px 12px 16px; justify-content: flex-start; }
  .arc-end__title { font-size: 14px; letter-spacing: 1px; margin-bottom: 6px; }
  #bsod.arc-end h2 { font-size: 10px !important; margin-bottom: 8px !important; }
  #bsod.arc-end .score { font-size: 9px !important; line-height: 1.8 !important; padding: 8px 12px; margin-bottom: 10px !important; }
  #bsod.arc-end .arc-rest { grid-template-columns: 84px 1fr; padding: 10px; gap: 10px; }
  #bsod.arc-end .arc-rest__name { font-size: 9px; }
  #bsod.arc-end .arc-rest__desc { font-size: 11px; -webkit-line-clamp: 2; }
  #bsod.arc-end .arc-board__row { padding: 4px 0; font-size: 11px; }
  #bsod.arc-end .arc-board__head { font-size: 7px; }
}

/* ─── Поле за име като изскачащ прозорец (само на телефон) ───────────────── */
.arc-namecta {
  width: 100%; cursor: pointer; margin-bottom: 12px;
  font-family: var(--arc-px, monospace); font-size: 9px; letter-spacing: 1px;
  background: var(--arc-gold, #f5b83d); color: #04060c;
  border: 0; border-radius: 8px; padding: 14px 12px;
}
.arc-namebox {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 6, 12, .94);
}
.arc-namebox__inner {
  width: 100%; max-width: 400px; text-align: center;
  background: linear-gradient(180deg, var(--arc-panel2, #0d1a2e), var(--arc-panel, #0a1322));
  border: 2px solid #1c2f4d; border-radius: 12px; padding: 20px;
}
.arc-namebox__title {
  font-family: var(--arc-px, monospace); font-size: 10px; letter-spacing: 1px;
  color: var(--arc-gold, #f5b83d); margin-bottom: 14px;
}
.arc-namebox .arc-panel__row { justify-content: center; }
.arc-namebox .arc-panel__row input { flex: 1 1 auto; min-width: 0; }
.arc-namebox__skip {
  margin-top: 14px; width: 100%; cursor: pointer;
  font-family: var(--arc-px, monospace); font-size: 7px; letter-spacing: 1px;
  background: transparent; color: var(--arc-dim, #6b8db0);
  border: 1px solid #2b4a72; border-radius: 6px; padding: 11px;
}

/* ============================================================================
   КЛАСАЦИИ
   ========================================================================== */

.arc-panel__more { margin-top: 14px; }
.arc-panel__link {
  font-family: var(--arc-px); font-size: 8px; letter-spacing: 1px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; padding: 10px 12px;
}
.arc-panel__link:hover { border-color: #ffe37a; color: #ffe37a; }
.arc-panel__error {
  margin-top: 10px; font-size: 12px; color: #ffd7dd;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 120, 140, .55);
  border-radius: 6px; padding: 8px 10px;
}

/* ─── Таблицата ───────────────────────────────────────────────────────────── */
.arc-lb {
  background: linear-gradient(180deg, var(--arc-panel2), var(--arc-panel));
  border: 2px solid #1c2f4d; border-radius: 10px;
  padding: 4px 14px 12px; text-align: left;
}
.arc-lb__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0 12px; border-bottom: 1px solid #1c2f4d;
  font-family: var(--arc-px); font-size: 9px; letter-spacing: 1px; color: #eaf6ff;
}
.arc-lb__count { color: var(--arc-dim); font-size: 7px; }
.arc-lb__row {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dotted #16273f;
  font-family: var(--arc-mono); font-size: 13px; color: var(--arc-text);
}
.arc-lb__row:last-child { border-bottom: 0; }
.arc-lb__row.is-me {
  color: var(--arc-gold); font-weight: 700;
  background: rgba(245, 184, 61, .07);
  box-shadow: inset 3px 0 0 var(--arc-gold);
  padding-left: 8px; margin-left: -8px;
}
.arc-lb__pos { font-family: var(--arc-px); font-size: 9px; color: var(--arc-dim); }
.arc-lb__row.is-me .arc-lb__pos { color: var(--arc-gold); }
.arc-lb__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-lb__score { font-family: var(--arc-px); font-size: 10px; }
.arc-lb__gap { text-align: center; color: var(--arc-dim); padding: 8px 0; letter-spacing: 3px; }
.arc-lb__empty, .arc-lb__loading {
  padding: 26px 4px; text-align: center; color: var(--arc-dim);
  font-family: var(--arc-mono); font-size: 13px;
}

/* ─── Превключватели ──────────────────────────────────────────────────────── */
.arc-lb__tabs, .arc-lb__games { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.arc-lb__tab, .arc-lb__game {
  font-family: var(--arc-px); font-size: 7px; letter-spacing: 1px; cursor: pointer;
  background: var(--arc-panel); color: var(--arc-dim);
  border: 1px solid #1c2f4d; border-radius: 5px; padding: 9px 10px;
}
.arc-lb__tab:hover, .arc-lb__game:hover { border-color: var(--arc-cyan); color: var(--arc-cyan); }
.arc-lb__tab.is-on { background: var(--arc-cyan); color: #04060c; border-color: var(--arc-cyan); }
.arc-lb__game.is-on { background: var(--arc-gold); color: #04060c; border-color: var(--arc-gold); }

/* ─── Оверлей върху играта ────────────────────────────────────────────────── */
.arc-lbover {
  position: absolute; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 6, 12, .94); overflow-y: auto;
}
.arc-lbover__inner { width: 100%; max-width: 520px; }
.arc-lbover__bar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--arc-px); font-size: 10px; letter-spacing: 1px; color: #eaf6ff;
}
.arc-lbover__close {
  font-family: var(--arc-mono); font-size: 16px; line-height: 1; cursor: pointer;
  background: transparent; color: var(--arc-dim);
  border: 1px solid #2b4a72; border-radius: 6px; padding: 6px 10px;
}
.arc-lbover__close:hover { border-color: var(--arc-danger); color: var(--arc-danger); }

@media (max-width: 640px) {
  .arc-lb__row { grid-template-columns: 38px 1fr auto; font-size: 12px; }
  .arc-lb__score { font-size: 9px; }
  .arc-lbover { padding: 10px; }
}

/* ============================================================================
   ЕКРАНЪТ СЛЕД ИГРА — подредба

   BSOD екранът е с фиксирана височина (колкото платното на играта), а сега
   носи текст + реклама + класация. SDK-то обвива собствените елементи на
   играта в .arc-bsod__left, а панелът застава вдясно:
     • десктоп → две колони;
     • мобилен → един стълб със скрол вътре в екрана.
   Никъде не пипаме display — той си остава на играта (.show → flex).
   ========================================================================== */

#bsod.arc-split { gap: 24px; align-items: center; }
#bsod.arc-split .arc-bsod__left { flex: 1 1 0; min-width: 0; }
#bsod.arc-split .arc-panel { margin-top: 0; text-align: left; }

/* Панелът: компактен, със собствен скрол, за да не разпъва екрана */
#bsod.arc-split #arcadePanel {
  flex: 0 1 400px;
  align-self: center;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}
#bsod.arc-split #arcadePanel::-webkit-scrollbar { width: 6px; }
#bsod.arc-split #arcadePanel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .35); border-radius: 3px;
}

/* Компактни размери вътре в панела */
#bsod.arc-split .arc-rest {
  margin: 0 0 12px;
  max-width: none;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px;
}
#bsod.arc-split .arc-rest .arc-ad__vitrina { aspect-ratio: 1 / 1; }
#bsod.arc-split .arc-rest__kick { font-size: 6px; }
#bsod.arc-split .arc-rest__name { font-size: 9px; line-height: 1.7; }
#bsod.arc-split .arc-rest__desc { font-size: 11px; line-height: 1.45; }
#bsod.arc-split .arc-rest__go,
#bsod.arc-split .arc-rest__again { font-size: 7px; padding: 9px 10px; }

#bsod.arc-split .arc-panel__row { justify-content: flex-start; gap: 6px; }
#bsod.arc-split .arc-panel__row input { width: 148px; padding: 10px; font-size: 9px; }
#bsod.arc-split .arc-panel__row button { font-size: 8px; padding: 10px 11px; }
#bsod.arc-split .arc-panel__note { font-size: 11px; line-height: 1.5; margin-top: 8px; }
#bsod.arc-split .arc-panel__error { font-size: 11px; padding: 7px 9px; }
#bsod.arc-split .arc-board { margin: 12px 0 0; max-width: none; }
#bsod.arc-split .arc-board__head { font-size: 7px; padding-bottom: 6px; }
#bsod.arc-split .arc-board__row { padding: 5px 0; font-size: 12px; }
#bsod.arc-split .arc-panel__more { margin-top: 10px; }
#bsod.arc-split .arc-panel__link { font-size: 7px; padding: 9px 10px; }

/* ─── Десктоп: две колони ─────────────────────────────────────────────────── */
@media (min-width: 900px) {
  #bsod.arc-split { flex-direction: row; justify-content: center; }
}

/* ─── Мобилен / нисък екран: един стълб със скрол ─────────────────────────── */
@media (max-width: 899px) {
  #bsod.arc-split {
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    gap: 12px;
    padding: 4%;
  }

  #bsod.arc-split .arc-bsod__left { flex: 0 0 auto; width: 100%; }
  #bsod.arc-split #arcadePanel { flex: 0 0 auto; width: 100%; max-height: none; overflow: visible; }

  #bsod.arc-split .sad { font-size: 34px; }
  #bsod.arc-split .err { font-size: 8px; }
  #bsod.arc-split .restart { margin-top: 12px; }

  #bsod.arc-split .arc-rest { grid-template-columns: 72px 1fr; }
  #bsod.arc-split .arc-panel__row input { flex: 1 1 auto; width: auto; min-width: 0; }
}

/* ============================================================================
   ЦЯЛ ЕКРАН И ИНСТАЛИРАНЕ
   ========================================================================== */

/* Бутонът на iPhone (там Fullscreen API няма — отваря стъпките за PWA) */
.arc-fshint {
  position: absolute; top: 10px; right: 10px; z-index: 7;
  width: 38px; height: 38px; line-height: 1; cursor: pointer;
  font-size: 16px; color: var(--arc-dim, #6b8db0);
  background: rgba(10, 19, 34, .85);
  border: 1px solid #1c2f4d; border-radius: 8px;
}
.arc-fshint:hover, .arc-fshint:focus-visible {
  border-color: var(--arc-cyan, #28e6ff); color: var(--arc-cyan, #28e6ff);
}

/* Стъпките за „Добави в началния екран" */
.arc-a2hs {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(4, 6, 12, .93);
}
.arc-a2hs__box {
  width: 100%; max-width: 420px; text-align: left;
  background: linear-gradient(180deg, var(--arc-panel2, #0d1a2e), var(--arc-panel, #0a1322));
  border: 2px solid #1c2f4d; border-radius: 12px; padding: 20px;
  font-family: var(--arc-mono, monospace);
}
.arc-a2hs__title {
  font-family: var(--arc-px, monospace); font-size: 10px; letter-spacing: 1px;
  color: var(--arc-gold, #f5b83d); margin-bottom: 14px;
}
.arc-a2hs__text { color: var(--arc-dim, #6b8db0); font-size: 13px; line-height: 1.6; margin: 0; }
.arc-a2hs__steps {
  margin: 14px 0 0; padding-left: 20px;
  color: var(--arc-text, #d8ecff); font-size: 13px; line-height: 1.9;
}
.arc-a2hs__steps b { color: var(--arc-gold, #f5b83d); font-weight: 400; }
.arc-a2hs__close {
  margin-top: 18px; width: 100%; cursor: pointer;
  font-family: var(--arc-px, monospace); font-size: 9px; letter-spacing: 1px;
  background: var(--arc-cyan, #28e6ff); color: #04060c;
  border: 0; border-radius: 8px; padding: 13px;
}

/* Лентата на заглавната страница */
.arc-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--arc-panel2, #0d1a2e), var(--arc-panel, #0a1322));
  border: 2px solid #1c2f4d; border-radius: 10px; padding: 12px 14px;
  font-family: var(--arc-mono, monospace); font-size: 13px;
  color: var(--arc-text, #d8ecff);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
}
.arc-install span { flex: 1 1 auto; line-height: 1.5; }
.arc-install__go {
  flex: 0 0 auto; cursor: pointer;
  font-family: var(--arc-px, monospace); font-size: 8px; letter-spacing: 1px;
  background: var(--arc-gold, #f5b83d); color: #04060c;
  border: 0; border-radius: 6px; padding: 11px 12px;
}
.arc-install__no {
  flex: 0 0 auto; cursor: pointer; font-size: 14px; line-height: 1;
  background: transparent; color: var(--arc-dim, #6b8db0);
  border: 1px solid #2b4a72; border-radius: 6px; padding: 8px 10px;
}
.arc-install__no:hover { border-color: var(--arc-danger, #ff4d6d); color: var(--arc-danger, #ff4d6d); }

@media (min-width: 900px) {
  .arc-install { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
}

/* Двуезичните стъпки + мека блокада */
.arc-a2hs__box { max-height: 88vh; overflow-y: auto; }
.arc-a2hs__en {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed #1c2f4d;
}
.arc-a2hs__en .arc-a2hs__title { margin-bottom: 10px; color: var(--arc-cyan, #28e6ff); }
.arc-a2hs.is-gate { z-index: 120; }
.arc-a2hs.is-gate .arc-a2hs__close {
  background: transparent; color: var(--arc-dim, #6b8db0);
  border: 1px solid #2b4a72; font-size: 8px;
}
.arc-a2hs.is-gate .arc-a2hs__close:hover {
  color: var(--arc-cyan, #28e6ff); border-color: var(--arc-cyan, #28e6ff);
}
