/* ==========================================================================
   ZELON24 SHARED DESKTOP SHELL — dt-shell.css
   Electric Blue palette ONLY. Every colour below is one of the variables
   already defined in zelon24-theme.css :root (dark theme):
     --bg #050E1F, --hdr #081426, --surf #0C1B33, --surf2 #12294D,
     --bdr #1E3A5F, --bdr2 #274B73, --txt #EFF6FF, --txt2 #93A8C4,
     --txt3 #7C93B5, --pri #3B82F6, --sec #60A5FA, --yellow-dark #2563EB,
     --green #16A34A, --red #D82619.
   No new palette hex is introduced here and there is NO light theme in
   this file. The header gradient / nav sizing come from
   zelon24-desktop.css (.dt-header, .dt-nav); this file only adds the
   shell's own pieces (balance block, user chip + dropdown, sidebar).
   Load AFTER zelon24-desktop.css.
   ========================================================================== */

/* ---------- shell header: reuse .dt-header, add the new row-1 pieces ---------- */
/* Sticky header (2026-11-28): .dt-header itself is position:sticky, but
   its parent #dt-shell-header wraps ONLY the header, so the sticky range
   is zero and the header scrolls away on every desktop page. The wrapper
   is a direct child of <body>, so IT is what must stick. */
#dt-shell-header { position: sticky; top: 0; z-index: 200; }
.dt-shell-header .dt-header-row1 { position: relative; }
.dt-shell-flag { display: block; width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.dt-shell-flag-lang { width: 18px; height: 13px; display: inline-block; vertical-align: -2px; }

.dt-shell-gift {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  color: var(--txt); background: var(--surf2); border: 1px solid var(--bdr2);
  font-size: 15px; text-decoration: none;
}
.dt-shell-gift:hover { color: #fff; border-color: var(--sec); }

.dt-shell-userchip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 5px 10px 5px 5px; border-radius: 10px; cursor: pointer;
  color: var(--txt); background: var(--surf2); border: 1px solid var(--bdr2);
  font: 800 13px 'Roboto', sans-serif; white-space: nowrap;
}
.dt-shell-userchip:hover { border-color: var(--sec); }
.dt-shell-userchip-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--pri); color: #fff; font-size: 12px;
}
.dt-shell-userchip-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

.dt-shell-bal {
  display: inline-flex; flex-direction: column; line-height: 1.25;
  padding: 4px 10px; border-radius: 10px; flex-shrink: 0;
  background: var(--surf2); border: 1px solid var(--bdr2); color: var(--txt);
}
.dt-shell-bal-row { display: flex; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dt-shell-bal-row b { color: var(--sec); font-weight: 800; }
.dt-shell-bal-sub { font-size: 11px; font-weight: 500; color: var(--txt2); justify-content: space-between; }

.dt-shell-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; cursor: pointer;
  color: var(--txt2); background: transparent; border: 1px solid transparent; font-size: 13px;
}
.dt-shell-refresh:hover { color: #fff; border-color: var(--bdr2); }
.dt-shell-refresh.dt-shell-spinning svg { animation: dt-shell-spin .6s linear; }
.dt-shell-svg { display: block; flex-shrink: 0; }
.dt-shell-userchip-ico .dt-shell-svg, .dt-shell-menu-ico .dt-shell-svg { margin: 0 auto; }
@keyframes dt-shell-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.dt-shell-deposit { flex-shrink: 0; }
.dt-shell-ico {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  color: var(--txt); background: var(--surf2); border: 1px solid var(--bdr2);
  font-size: 15px; text-decoration: none;
}
.dt-shell-ico:hover { color: #fff; border-color: var(--sec); }
.dt-shell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
}

.dt-shell-langtime {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 12px; font-weight: 700; color: var(--txt2); white-space: nowrap;
}
.dt-shell-clock { color: var(--txt); font-variant-numeric: tabular-nums; }

/* Nav: only the shell's own additions (active item, featured game). */
.dt-shell-header .dt-nav-link.dt-shell-nav-active { color: #fff; background: var(--surf2); }
.dt-shell-featured { color: var(--sec) !important; }
.dt-shell-featured .dt-shell-svg { display: inline-block; vertical-align: -1px; margin-right: 5px; color: var(--sec); }

/* ---------- account dropdown (opens from the user chip) ---------- */
.dt-shell-user-menu {
  position: absolute; top: calc(100% + 6px); right: 20px; z-index: 300;
  width: 272px; max-height: calc(100vh - 120px); overflow-y: auto;
  background: var(--surf); border: 1px solid var(--bdr2); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55); padding: 12px;
}
.dt-shell-user-menu[hidden] { display: none; }

/* ---------- account sidebar / menu (shared by sidebar + dropdown) ---------- */
.dt-shell-sidebar {
  display: block; width: 272px; flex-shrink: 0;
  background: var(--surf); border: 1px solid var(--bdr); border-radius: 12px;
  padding: 14px 12px; color: var(--txt);
}
.dt-shell-menu-head {
  position: relative; padding: 2px 64px 10px 2px; min-height: 56px;
  border-bottom: 1px solid var(--bdr); margin-bottom: 8px;
}
.dt-shell-menu-id { display: flex; align-items: center; gap: 6px; }
.dt-shell-menu-idnum { font-size: 15px; font-weight: 800; color: var(--txt); }
.dt-shell-copy {
  background: none; border: 0; cursor: pointer; color: var(--txt2);
  font-size: 13px; padding: 2px; line-height: 1;
}
.dt-shell-copy:hover, .dt-shell-copy.dt-shell-copied { color: var(--sec); }
.dt-shell-menu-email {
  display: block; margin-top: 2px; font-size: 12px; color: var(--txt2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dt-shell-menu-addemail { display: block; margin-top: 2px; font-size: 12px; color: var(--sec); text-decoration: none; }
.dt-shell-menu-addemail:hover { text-decoration: underline; }
.dt-shell-ring { position: absolute; top: 0; right: 0; }
.dt-shell-ring-txt { fill: var(--txt); font-size: 13px; font-weight: 800; font-family: 'Roboto', sans-serif; }

.dt-shell-menu-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px; font-size: 13px; color: var(--txt2);
  border-bottom: 1px solid var(--bdr);
}
.dt-shell-menu-row b { color: var(--txt); font-size: 14px; }

.dt-shell-menu-sec {
  padding: 12px 4px 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .8px; color: var(--txt3); text-transform: uppercase;
}
.dt-shell-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none;
  color: var(--txt); font-size: 13px; font-weight: 500;
}
.dt-shell-menu-item:hover { background: var(--surf2); color: #fff; }
.dt-shell-menu-item.dt-shell-menu-active { background: var(--pri); color: #fff; font-weight: 700; }
.dt-shell-menu-item.dt-shell-menu-active .dt-shell-menu-ico { color: #fff; }
.dt-shell-menu-ico { width: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--sec); flex-shrink: 0; }
.dt-shell-need {
  margin-left: auto; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  line-height: 16px; text-align: center;
}
.dt-shell-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 11px; border-radius: 10px; text-decoration: none;
  background: var(--surf2); border: 1px solid var(--bdr2);
  color: var(--txt); font-size: 13px; font-weight: 800;
}
.dt-shell-logout:hover { border-color: var(--sec); color: #fff; }

/* Account pages: put the sidebar beside the content with
   <div class="dt-shell-account"><div id="dt-shell-sidebar"></div><main>… */
.dt-shell-account { display: flex; gap: 20px; align-items: flex-start; }
.dt-shell-account .dt-shell-sidebar { position: sticky; top: 118px; }
