/* ===== ExcelGames.cc - Global Styles v2.0 ===== */
:root {
  --bg-primary: #0f1117;
  --bg-secondary: #161b27;
  --bg-card: #1e2535;
  --bg-card-hover: #252d42;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --accent-glow: rgba(0,212,255,0.15);
  --text-primary: #eaf0fb;
  --text-secondary: #8a9cc2;
  --border: #2a3550;
  --border-accent: rgba(0,212,255,0.3);
  --header-bg: #090c14;
  --radius: 12px;
  --radius-sm: 8px;
}
body {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(0,80,160,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(0,40,100,0.2) 0%, transparent 55%);
  min-height: 100vh;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.driftbossio-header-frame {
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 200;
}
.driftbossio-header-content {
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  height: 58px;
}
.driftbossio-left { float: left; }
.driftbossio-logo {
  float: left;
  height: 46px;
  overflow: hidden;
}
.driftbossio-logo img { height: 100%; display: block; border-radius: 6px; }
.driftbossio-menu-header {
  float: left;
  position: absolute;
  left: 110px;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
}
.driftbossio-menu-header ul { margin: 0; padding: 0; }
.driftbossio-menu-header li { float: left; list-style: none; }
.driftbossio-menu-header a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  margin: 0 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s;
  display: block;
}
.driftbossio-menu-header a:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-glow);
  text-decoration: none;
}
.driftbossio-right {
  float: right;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
input#driftbossio-input-search {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 7px 36px 7px 14px;
  outline: none;
  border-radius: 20px;
  font-size: 14px;
  width: 200px;
  transition: border-color 0.2s;
}
input#driftbossio-input-search:focus { border-color: var(--accent); }
input#driftbossio-input-search::placeholder { color: var(--text-secondary); }
button#driftbossio-search-button {
  border: none;
  position: absolute;
  top: 0; right: 0;
  background: none;
  height: 100%;
  width: 34px;
  outline: none !important;
  cursor: pointer;
}
button#driftbossio-search-button svg { fill: var(--text-secondary); width: 16px; height: 16px; }
span#driftbossio-pull { display: none; }
span#driftbossio-pull svg { width: 28px; height: 28px; fill: var(--text-primary); }
.driftbossio-menu-header-mobile { display: none; }
.driftbossio-menu-header-mobile .driftbossio-formsearch { display: block !important; position: relative; margin: 5px 0; }
.driftbossio-menu-header-mobile input#driftbossio-input-search { width: 100%; }

/* ===== PLAY AREA ===== */
.play-game-box {
  padding-top: 12px !important;
  padding-bottom: 16px !important;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.game-play { overflow: hidden; }
.play-box {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border), 0 8px 48px rgba(0,0,0,0.7);
  background: #000;
}
.play-box iframe { border-radius: var(--radius); display: block; }
.title-box { padding: 4px 0; }
.title-box h1 {
  margin: 0;
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  padding: 6px 2px 2px;
}
.title-game { width: fit-content; }
.rate_fullscreen {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.rate_fullscreen-block {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  float: right;
  position: relative;
}
.rate-block { display: inline-block; }
.full-screen-btn {
  height: 40px;
  width: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  display: inline-block;
  float: right;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.full-screen-btn:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.full-screen-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a9cc2'%3E%3Cpath d='M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.full-screen-icon:hover { opacity: 0.75; cursor: pointer; }
.force_full_screen {
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999;
  top: 0 !important;
  left: 0 !important;
  border: 0 !important;
  max-height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== GAME CARDS (sidebar / related) ===== */
.cr-detail { margin: 5px; position: relative; }
.cr-img img { width: 100%; }
.cr-item-content {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cr-item-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,212,255,0.25);
}
.cr-info {
  width: 100%;
  z-index: 4;
  bottom: 0;
  position: absolute;
  padding: 18px 4px 5px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  text-align: center;
}
.cr-info span {
  color: #fff;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.cr-info-side span { font-size: 12px; }
.sides-games .cr-item { max-width: 156px; }

/* ===== CONTENT PANELS ===== */
.driftbossio-panel-container {
  border-bottom: none;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.driftbossio-content {
  margin: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 20px !important;
}
.driftbossio-panel-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.driftbossio-panel-heading span { font-size: 18px; font-weight: 700; }
.driftbossio-panel-heading h1 { font-size: 18px; font-weight: 700; text-align: left; margin: 0; }
.driftbossio-panel-body { overflow: hidden; }
.driftbossio-panel-body-content { overflow: hidden; padding: 5px; }
.game-detail { padding: 6px 2px; }
.game-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.game-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 4px;
  text-align: left !important;
}
.game-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.more-game-content { overflow: hidden; margin: -4px; }
.more-game-content > div { padding: 4px; }

/* ===== BREADCRUMB ===== */
.eg-breadcrumb {
  padding: 10px 0 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.eg-breadcrumb a { color: var(--text-secondary); transition: color 0.15s; }
.eg-breadcrumb a:hover { color: var(--accent); }
.eg-breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ===== TAGS ===== */
.eg-tags { margin: 8px 0 4px; }
.eg-tags a {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.eg-tags a:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ===== DIVIDER WALL ===== */
.border-wall {
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0.5;
}

/* ===== FOOTER ===== */
.block-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.footer-content { text-align: center; }
.footer-content a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  margin: 4px;
  display: inline-block;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.footer-content a:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-glow);
  text-decoration: none;
}

/* ===== ADS ===== */
.ads { text-align: center; width: 100%; color: var(--text-secondary); font-size: 11px; }
.ads-title { margin-bottom: 4px; }
.ads-play { width: 100%; }
.ads-play .ads-content { width: 100%; }
.ads-play-right .ads-content { height: 600px; overflow: hidden; }

/* ===== MISC ===== */
#back_to_top {
  width: 44px;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 100;
  cursor: pointer;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
  border: 2px solid var(--border-accent);
  opacity: 0.9;
  transition: all 0.2s;
}
#back_to_top:hover { opacity: 1; box-shadow: 0 0 20px rgba(0,212,255,0.5); }
.list-bsk-tags a {
  margin: 4px;
  padding: 2px 10px;
  color: #fff;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  display: block;
  text-transform: capitalize;
  float: left;
  height: 32px;
  line-height: 32px;
}
.list-bsk-tags { overflow: hidden; margin-bottom: 8px; }
.list-bsk-tags a.color1 { background: #1565c0; }
.list-bsk-tags a.color1:hover { background: #0d47a1; }
.list-bsk-tags a.color2 { background: #455a64; }
.list-bsk-tags a.color2:hover { background: #263238; }
.list-bsk-tags a.color3 { background: #2e7d32; }
.list-bsk-tags a.color3:hover { background: #1b5e20; }
.list-bsk-tags a.color4 { background: #c62828; }
.list-bsk-tags a.color4:hover { background: #b71c1c; }
.main_container { padding: 20px; min-height: 100vh; color: var(--text-primary); }
.main_container h1 { color: var(--text-primary); font-size: 28px; margin-bottom: 16px; }
.main_container h2 { color: var(--accent); font-size: 20px; margin: 20px 0 10px; }
.main_container p { color: var(--text-secondary); line-height: 1.85; font-size: 16px; margin-bottom: 14px; }
.main_container a { color: var(--accent); }
.main_container ol li { color: var(--text-secondary); font-size: 16px; line-height: 1.85; margin-bottom: 10px; }
.noresult { text-align: center; min-height: 100vh; margin-top: 40px; }
.noresult a { font-size: 22px; color: var(--accent); }
.pagination { width: 100%; float: left; padding: 20px 0; text-align: center; }
.pagination span { padding: 0 10px; margin: 3px; background: var(--bg-card); border-radius: 4px; font-weight: bold; color: var(--accent); }
.pagination a { padding: 0 10px; margin: 4px; border-radius: 4px; font-weight: bold; color: var(--text-secondary); background: var(--bg-card); }
.pagination a:hover { color: var(--accent); }

/* color util overrides for dark theme */
.blue { background: var(--bg-card) !important; }
.black { background: #111 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  .driftbossio-left { width: 75%; }
}
@media (max-width: 991px) {
  .driftbossio-menu-header { width: 52%; }
}
@media (max-width: 767px) {
  .full-screen-btn { display: none !important; }
  span#driftbossio-pull { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); cursor: pointer; }
  .driftbossio-left { position: relative; top: 50%; transform: translateY(-50%); }
  .driftbossio-header-frame { height: 57px; }
  .driftbossio-header-content { padding: 0; height: 57px; }
  .driftbossio-menu-header { display: none; }
  .driftbossio-formsearch { display: none; }
  .driftbossio-right { height: 100%; }
  .driftbossio-menu-header-mobile {
    display: block;
    height: 100%; width: 0;
    position: fixed; z-index: 300;
    top: 0; left: 0;
    background: rgba(9,12,20,0.97);
    border-right: 1px solid var(--border);
    overflow-x: hidden;
    transition: 0.35s;
    padding-top: 60px;
  }
  .driftbossio-menu-header-mobile a {
    padding: 10px 30px;
    text-decoration: none;
    font-size: 20px;
    color: var(--text-secondary);
    display: block;
    transition: 0.2s;
    text-align: center;
  }
  .driftbossio-menu-header-mobile a:hover { color: var(--accent); }
  a.driftbossio-btn-unset { position: absolute; top: 5px; right: 18px; font-size: 32px; color: var(--text-secondary); }
}
@media (max-width: 575px) {
  .full-screen-btn { display: none !important; }
}
@media (min-width: 1200px) {
  .ads-play-right .ads-content { height: 288px; overflow: hidden; }
}
@media (min-width: 1600px) {
  .ads-play-right .ads-content { height: 600px; overflow: hidden; }
}
