/* ===== CSS Variables ===== */
:root {
  /* Color Scheme */
  --cd-bg: #0c0d10;
  --cd-panel: #121318;
  --cd-text: #e9e9ee;
  --cd-muted: #b7b8c2;
  --cd-border: #1f222a;
  --cd-accent: #f1c24b;
  --cd-accent-2: #e89c3d;
  --cd-badge: #1a1a1f;
  --cd-shadow: 0 10px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.03);
  
  /* Component Colors */
  --c-card: #232323;
  --c-text: #ffffff;
  --c-line: #2a2a2a;
  --c-accent: #ffd600;
  --c-head: #181818;
  --c-dim: #d1d1d1;
  
  /* Font Sizes */
  --fs-xxs: 13px;
  --fs-s: 14px;
  --fs-m: 15px;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.45s cubic-bezier(.2,.8,.2,1);
}

/* ===== Base Styles ===== */
:where(html, body) {
  overflow-x: clip;
}

/* ===== Casino Disclaimer ===== */
.casino-disclaimer {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  background: radial-gradient(1200px 500px at 15% -20%, rgba(241,194,75,.10), transparent 60%),
              linear-gradient(180deg,#0d0e12 0%,#0b0c10 100%);
  color: var(--cd-text);
  border: 1px solid var(--cd-border);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  box-shadow: var(--cd-shadow);
  font: 14px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.casino-disclaimer.cd-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
}

.cd-wrap {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
}

.cd-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg,#171821,#0f1016);
  border: 1px solid #20222b;
  display: grid;
  place-items: center;
  position: relative;
}

.cd-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(241,194,75,.15), transparent 40%);
}

.cd-title {
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: .2px;
  display: flex;
  gap: 8px;
  font-size: 15px;
}

.cd-badge {
  display: inline-flex;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  color: #000;
  background: linear-gradient(180deg,var(--cd-accent),var(--cd-accent-2));
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}

.cd-sub {
  margin: 0;
  color: var(--cd-muted);
  font-size: 13px;
}

.cd-list {
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  color: var(--cd-text);
}

.cd-list li {
  margin: 6px 0;
}

.cd-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
}

.cd-links a {
  color: var(--cd-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(241,194,75,.35);
}

.cd-links a:hover {
  border-bottom-color: rgba(241,194,75,.8);
}

.cd-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 160px;
}

.cd-note {
  margin: 6px 0 0;
  color: var(--cd-muted);
  font-size: 12px;
}

.cd-mini {
  display: inline-block;
  font-size: 11px;
  color: var(--cd-muted);
  border: 1px solid var(--cd-border);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg,#14151b,#101117);
}

/* ===== Advice Widget ===== */
.adw {
  margin: 14px 0 10px;
  padding: var(--spacing-md);
  border-radius: var(--radius-xl);
  background: rgba(2,6,23,.35);
  border: 1px solid rgba(148,163,184,.22);
}

.adw .adw-content h2,
.adw .adw-content h6 {
  margin: 4px 0 8px;
}

.adw-window {
  display: inline-block;
  margin-top: 6px;
  opacity: .85;
}

.adw-vote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.adw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(2,6,23,.45);
  color: #e5e7eb;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
  user-select: none;
  transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease;
}

.adw-btn:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transform: translateY(-1px);
}

.adw-btn.active.high {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,.25) inset;
}

.adw-btn.active.low {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34,211,238,.25) inset;
}

.adw-btn .cnt {
  font-weight: 700;
  opacity: .95;
}

/* Tug-of-war track */
.tug {
  position: relative;
  flex: 1 1 auto;
  height: 34px;
  overflow: visible;
}

.rope {
  position: absolute;
  top: 14px;
  height: 6px;
  width: 50%;
  background: repeating-linear-gradient(45deg, #d2b48c 0 6px, #a98248 6px 12px);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

.rope.left {
  left: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.rope.right {
  right: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.knot {
  --left: 50%;
  position: absolute;
  top: 6px;
  left: var(--left);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, #f7e7a6, #d4af37 60%, #8f6b00 100%);
  border: 1px solid rgba(0,0,0,.35);
  transform: translateX(-50%);
  transition: left var(--transition-slow);
  box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 1px 2px rgba(255,255,255,.35);
  z-index: 2;
}

/* Jiggle animations while "pulling" */
.tug.tugging-left .rope.left {
  animation: jiggle-left 300ms ease-in-out 4;
}

.tug.tugging-right .rope.right {
  animation: jiggle-right 300ms ease-in-out 4;
}

@keyframes jiggle-left {
  0%,100% { transform: translateX(0) }
  50% { transform: translateX(-2px) }
}

@keyframes jiggle-right {
  0%,100% { transform: translateX(0) }
  50% { transform: translateX(2px) }
}

/* Emoji bursts */
.burst {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 3;
}

.burst span {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  transform: translate(-50%,0) scale(.6);
  animation: floatUp 900ms ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.6); }
  30% { opacity: 1; transform: translate(-50%, -6px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(.9); }
}

/* ===== Notice Board ===== */
.sk-nb {
  margin: 12px 0;
}

.sk-nb .sk-nb-card {
  background: linear-gradient(180deg,#17171a 0%,#121214 100%);
  border: 1px solid #242428;
  border-radius: var(--radius-lg);
  padding: 12px 12px 10px;
  color: #e9eaee;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.sk-nb .sk-nb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sk-nb .sk-ico {
  width: 18px;
  height: 18px;
}

.sk-nb .sk-nb-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: #b9bbc2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.sk-nb .sk-nb-close:hover {
  background: #1f1f22;
}

.sk-nb .sk-nb-text {
  margin: 6px 0 10px;
  color: #cdd0d6;
  line-height: 1.5;
}

.sk-nb .sk-nb-text .yt {
  color: #ff6b6b;
  font-weight: 700;
}

.sk-nb .sk-nb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.sk-nb .sk-nb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg,#f7d18a,#caa24a);
  color: #101114;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.sk-nb .sk-nb-mini {
  margin: 4px 2px 2px;
  font-size: 13px;
  color: #b9bbc2;
}

/* ===== YouTube Widget ===== */
.ytw {
  background: var(--c-card);
  color: var(--c-text);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  margin: var(--spacing-lg) 0;
  border: 1px solid var(--c-line);
}

.ytw__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.ytw__title {
  margin: 0;
  font: 700 1.1rem/1.2 'Segoe UI', Arial, sans-serif;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ytw__title::before {
  content: "▶️";
  font-size: 1rem;
}

.ytw__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ytw__btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--c-accent);
  text-decoration: none;
  color: var(--c-accent);
  font-weight: 600;
  font-size: var(--fs-s);
  transition: var(--transition-fast);
}

.ytw__btn:hover {
  background: var(--c-accent);
  color: var(--c-head);
}

.ytw__player {
  width: 100%;
  margin: 0 0 var(--spacing-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--c-line);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: var(--spacing-md);
  background: var(--c-head);
}

.video-info h4 {
  margin: 0 0 6px 0;
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--c-text);
}

.video-date {
  margin: 0;
  font-size: var(--fs-xxs);
  color: var(--c-dim);
}

.ytw__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.ytw__card {
  display: block;
  background: var(--c-head);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ytw__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 214, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.ytw__card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.ytw__card:hover .play-overlay {
  opacity: 1;
}

.ytw__meta {
  padding: var(--spacing-md);
}

.ytw__t {
  font-weight: 600;
  font-size: var(--fs-s);
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--c-text);
}

.ytw__d {
  display: block;
  color: var(--c-dim);
  font-size: var(--fs-xxs);
  margin-top: 6px;
}

.ytw__note {
  color: var(--c-dim);
  font-size: var(--fs-xxs);
  margin: var(--spacing-md) 0 0;
  padding: 8px 0;
  border-top: 1px solid var(--c-line);
}

details.ytw__pl {
  margin-top: var(--spacing-lg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

details.ytw__pl summary {
  cursor: pointer;
  user-select: none;
  padding: var(--spacing-md);
  background: var(--c-head);
  font-weight: 600;
  color: var(--c-accent);
  outline: none;
  transition: background var(--transition-fast);
}

details.ytw__pl summary:hover {
  background: rgba(255, 214, 0, 0.1);
}

details.ytw__pl[open] summary {
  border-bottom: 1px solid var(--c-line);
}

/* Google Subscribe button styling */
.g-ytsubscribe {
  margin-left: 8px;
}

/* ===== Media Queries ===== */
@media (max-width: 720px) {
  .cd-wrap {
    grid-template-columns: 40px 1fr;
  }
  
  .cd-right {
    grid-column: 1/-1;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .sk-nb .sk-nb-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ytw {
    padding: 14px;
    margin: 14px 0;
  }
  
  .ytw__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .ytw__title {
    font-size: 1rem;
  }
  
  .ytw__sub {
    width: 100%;
    justify-content: space-between;
  }
  
  .ytw__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  
  .ytw__meta {
    padding: 10px;
  }
  
  .ytw__t {
    font-size: var(--fs-xxs);
  }
  
  .ytw__d {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .ytw {
    padding: var(--spacing-md);
  }
  
  .ytw__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .ytw__card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
  
  .video-thumbnail {
    width: 120px;
    padding-bottom: 67.5px; /* 16:9 aspect ratio */
    flex-shrink: 0;
  }
  
  .ytw__meta {
    padding: 8px 0;
    flex: 1;
  }
  
  .ytw__t {
    font-size: var(--fs-xxs);
    -webkit-line-clamp: 3;
  }
}
/* ==== Article (scoped) ============================ */
      #game-article { margin-top: 28px; }
      #game-article h2 { font-size: 1.4rem; margin: 0 0 12px; }
      .article-body { font-size: 1rem; line-height: 1.8; color: #e5e7eb; }
      .article-body a { color: #22d3ee; text-decoration: none; border-bottom: 1px dashed rgba(34,211,238,.4); }
      .article-body a:hover { border-bottom-style: solid; }
      .article-body h3 { font-size: 1.25rem; margin: 1.25rem 0 .5rem; }
      .article-body h4 { font-size: 1.05rem; margin: 1rem 0 .4rem; color: #cbd5e1; }
      .article-body p { margin: .75rem 0; }
      .article-body ul, .article-body ol { margin: .5rem 0 .75rem 1.25rem; }
      .article-body li { margin: .25rem 0; }
      .article-body figure { margin: 14px 0; border: 1px solid rgba(148,163,184,.15); border-radius: 14px; overflow: hidden; background: rgba(2,6,23,.35); }
      .article-body figure img, .article-body figure video { display: block; width: 100%; height: auto; }
      .article-body figcaption { font-size: .875rem; color: #94a3b8; padding: 10px 12px; border-top: 1px solid rgba(148,163,184,.12); }
      .article-body .embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: rgba(2,6,23,.5); border: 1px solid rgba(148,163,184,.15); border-radius: 14px; overflow: hidden; margin: 14px 0; }
      .article-body .embed iframe, .article-body .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
      .article-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 10px auto; border: 1px solid rgba(148,163,184,.15); }
      .article-body .callout { border-left: 4px solid #22d3ee; background: rgba(34,211,238,.07); padding: 12px 14px; border-radius: 10px; margin: 16px 0; color: #dbeafe; }
      .article-body blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid #94a3b8; background: rgba(148,163,184,.08); border-radius: 10px; color: #e2e8f0; }
      .article-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
      .article-body th, .article-body td { border: 1px solid rgba(148,163,184,.18); padding: 8px 10px; text-align: left; }
      .article-body thead th { background: rgba(148,163,184,.12); color: #cbd5e1; }
      .article-body tbody tr:nth-child(odd) { background: rgba(2,6,23,.35); }
      .article-body .gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
      @media (min-width: 768px) { .article-body .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
      .article-body .gallery img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(148,163,184,.15); }
      .article-body details { background: rgba(2,6,23,.45); border: 1px solid rgba(148,163,184,.18); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
      .article-body summary { cursor: pointer; color: #e5e7eb; font-weight: 600; }
      .article-body .badge { display: inline-block; padding: 2px 8px; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(148,163,184,.25); color: #cbd5e1; background: rgba(148,163,184,.08); }
/* Advice widget clickability/z-order */
.adw{ position:relative; }
.adw .tug{ pointer-events:none; z-index:1; }          /* the center rope UI shouldn't eat clicks */
.adw .adw-btn{ position:relative; z-index:2; pointer-events:auto; } /* buttons always on top */

    /* reaction styles (theme-friendly) */
.latest-react{ display:flex; gap:8px; align-items:center; margin-top:8px; }
.react-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; font-size:.95rem; line-height:1;
  background:rgba(2,6,23,.45); color:#e5e7eb;
  border:1px solid rgba(148,163,184,.22); border-radius:999px; cursor:pointer;
  transition:transform .06s ease, box-shadow .12s ease, border-color .12s ease;
}
.react-btn:hover{ box-shadow:0 6px 18px rgba(0,0,0,.25); transform:translateY(-1px); }
.react-btn .cnt{ font-weight:700; opacity:.95; }
.react-btn.like.active{ border-color:#d4af37; box-shadow:0 0 0 2px rgba(212,175,55,.2) inset; }
.react-btn.dislike.active{ border-color:#22d3ee; box-shadow:0 0 0 2px rgba(34,211,238,.2) inset; }