/* =========================================================
   Offline Dice — original stylesheet. No external assets.
   ========================================================= */

:root {
  --bg: #0b0b10;
  --panel-bg: rgba(18, 18, 18, 0.85);
  --panel-border: #ffffff;
  --accent: #2196f3;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --radius: 15px;
  --footer-h: 52px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(160deg, #14141c 0%, #0b0b10 60%, #060608 100%);
  background-attachment: fixed;
  padding-bottom: calc(var(--footer-h) + 12px);
  transition: background 0.4s ease;
}

/* ---------- header ---------- */
.site-header {
  text-align: center;
  padding: 18px 16px 6px;
}
.brand-title {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    -2px -2px 0 #666, 2px -2px 0 #666, -2px 2px 0 #666, 2px 2px 0 #666,
    -3px 0 0 #333, 3px 0 0 #333, 0 -3px 0 #333, 0 3px 0 #333,
    0 6px 14px rgba(0, 0, 0, 0.9);
}
.brand-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- layout ---------- */
.main-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 15px 0;
}
.sidebar, .game-center {
  background-color: var(--panel-bg);
  border: 3px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: #fff;
}
.side-col { width: 240px; flex-shrink: 0; padding: 15px; }
.game-center { flex: 1; max-width: 560px; padding: 15px 20px; }

.sidebar h3 {
  text-align: center;
  margin: 0 0 15px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ---------- roll title ---------- */
.roll-title {
  font-size: 32px;
  color: #fff;
  text-align: center;
  margin: 0 0 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow:
    -2px -2px 0 #777, 2px -2px 0 #777, -2px 2px 0 #777, 2px 2px 0 #777,
    -3px 0 0 #444, 3px 0 0 #444, 0 -3px 0 #444, 0 3px 0 #444,
    0 5px 0 #2a2a2a, 0 8px 15px rgba(0, 0, 0, 0.9);
}

/* ---------- streamers ---------- */
.streamer-list { display: flex; flex-direction: column; gap: 8px; }
.streamer-card-link { text-decoration: none; color: inherit; }
.streamer-card {
  background: rgba(15, 15, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--accent);
  border-right: 4px solid var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.streamer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(33, 150, 243, 0.3);
}
.streamer-card img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.streamer-card strong { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.streamer-card span { font-size: 11px; color: var(--muted); display: block; }
.verify-badge { width: 16px; height: 16px; }

/* ---------- controls ---------- */
.controls { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; }
.controls select {
  flex: 1 1 0;
  min-width: 0;
  background-color: #fff;
  color: #111;
  border: 3px solid var(--accent);
  padding: 11px 28px 11px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.controls select:hover { background-color: #f2f4f6; }
.controls select option { font-size: 15px; font-weight: 600; }

/* ---------- dice ---------- */
.dice-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  margin: 8px 0;
}
.die-wrapper { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.die {
  width: 62px; height: 62px;
  border: 5px solid #fff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease;
}
.die:hover { transform: scale(1.06); }
.die-dot {
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.die-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

/* dice skins */
.skin-neon .die { box-shadow: 0 0 14px currentColor, 0 4px 10px rgba(0,0,0,0.5); }
.skin-rainbow .die {
  background: conic-gradient(#ff0000, #ffa500, #ffd700, #008000, #0000ff, #800080, #ff0000) !important;
  color: #fff;
}
.skin-gold .die {
  background: linear-gradient(160deg, #ffe45c 0%, #d4af37 55%, #8a6d1a 100%) !important;
  color: #fff;
}
.skin-gold .die-dot { background: #3a2e0a; }

/* ---------- roll button ---------- */
.roll-btn {
  width: 100%;
  background: linear-gradient(180deg, #ffea3d 0%, #ff9800 100%);
  color: #fff;
  border: 2px solid #ffe57f;
  padding: 8px 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 4px 0 #c86a00,
    0 8px 15px rgba(0, 0, 0, 0.4);
  text-shadow: 2px 2px 0 #e67e00, -2px -2px 0 #e67e00, 2px -2px 0 #e67e00, -2px 2px 0 #e67e00;
}
.roll-btn:hover:not(:disabled) { filter: brightness(1.08); }
.roll-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #c86a00; }
.roll-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.6); }
.stretch-text { display: inline-block; transform: scaleX(1.12); }

/* ---------- counter ---------- */
.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 18, 22, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 4px 0 10px;
  width: 100%;
}
.counter-side { display: flex; flex-direction: column; gap: 6px; min-width: 52px; }
.counter-chip {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  padding: 0;
  text-align: left;
}
.side-left { align-items: flex-start; }
.side-left .counter-chip { color: #ff6b6b; }
.side-right { align-items: flex-end; }
.side-right .counter-chip { color: #51cf66; }
.counter-chip:hover { color: #fff; transform: scale(1.1); }

.counter-center-wrapper { position: relative; flex: 1; display: flex; justify-content: center; align-items: center; }
.counter-center {
  font-size: 44px;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.counter-center.positive { color: #51cf66; }
.counter-center.negative { color: #ff6b6b; }

.counter-item-selector { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.selected-item-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.skin-swatch {
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 2px solid #fff;
  display: block;
}
.dropdown-arrow { color: #fff; font-size: 12px; }

.item-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18, 18, 22, 0.97);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 8px;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  min-width: 120px;
}
.item-dropdown-menu.show { display: flex; }
.item-option {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
}
.item-option:hover { background: rgba(255, 255, 255, 0.15); }
.item-option.active { border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }

/* ---------- stats ---------- */
.stats-container { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.stats-row { display: flex; justify-content: center; gap: 12px; width: 100%; }
.stat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
}
.stat-pill strong { color: #ffea3d; font-weight: 800; }
.stat-pill:nth-child(2) strong { color: #22c55e; }

.global-goal-card {
  width: 100%;
  background: rgba(10, 10, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
}
.global-goal-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.global-goal-header strong { color: #00d2ff; }
.goal-bar-bg { height: 14px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; overflow: hidden; }
.goal-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2196f3, #00d2ff);
  border-radius: 8px;
  transition: width 0.5s ease;
}
.global-goal-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; gap: 4px; }
.global-goal-footer strong { color: #ffea3d; }

.small-grey-text { color: #e0e0e0; font-size: 15px; text-align: center; line-height: 1.5; margin-top: 6px; }

/* ---------- history ---------- */
.history-section { margin-top: 12px; width: 100%; }
.history-title {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; text-align: center;
}
.inline-history-list {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px;
  max-height: 320px;
  overflow-y: auto;
}
.history-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
}
.history-number {
  font-weight: 800; color: #00d2ff;
  background: rgba(0, 112, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.mini-die {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 2px solid #fff;
  display: inline-flex; justify-content: center; align-items: center;
  flex-shrink: 0;
}
.mini-die-dot { width: 5px; height: 5px; background: #fff; border-radius: 50%; }
.history-label { font-size: 13px; font-weight: 600; }

/* ---------- info squares ---------- */
.info-square {
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.85), rgba(12, 12, 18, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
  text-align: center;
}
.info-square-title {
  font-size: 18px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.info-square-text { font-size: 13.5px; color: rgba(255, 255, 255, 0.88); line-height: 1.5; margin: 0 0 8px; }
.info-square-text:last-child { margin-bottom: 0; }

/* ---------- wheel ---------- */
.wheel-wrapper { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.wheel-canvas-container { position: relative; width: 100%; max-width: 360px; }
#wheelCanvas { width: 100%; height: auto; display: block; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 5; text-align: center; }
.pointer-head { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #ff4757; margin: 0 auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6)); }
.pointer-body { width: 8px; height: 16px; background: #fff; margin: 0 auto; border-radius: 0 0 4px 4px; }
.pointer-glow { width: 40px; height: 12px; margin: 0 auto; background: radial-gradient(ellipse, rgba(255,71,87,0.5), transparent); }

.wheel-controls-panel { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.wheel-panel-header { display: flex; justify-content: space-between; align-items: center; }
.wheel-panel-title { font-weight: 800; letter-spacing: 1px; font-size: 14px; }
.wheel-count-badge { font-size: 12px; color: #00d2ff; font-weight: 700; }

.wheel-names-input {
  width: 100%;
  min-height: 80px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}
.wheel-names-input:focus { outline: none; border-color: var(--accent); }

.wheel-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wheel-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wheel-action-btn:hover { background: rgba(255, 255, 255, 0.16); }
.wheel-action-btn.clear-btn { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.4); }

.wheel-settings-section { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 12px; }
.section-badge { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.wheel-settings-grid { display: flex; flex-direction: column; gap: 10px; }
.wheel-setting-card { display: flex; flex-direction: column; gap: 6px; }
.wheel-setting-card.full-width { width: 100%; }
.wheel-setting-card label { font-size: 12px; color: var(--muted); }
.wheel-select, .wheel-text-input {
  width: 100%;
  background: #fff;
  color: #111;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 600;
}
.wheel-text-input:focus { outline: none; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #fff; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.2s;
}
.switch-slider::before {
  content: ""; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .switch-slider { background: #22c55e; }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

.wheel-volume-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.wheel-volume-row input[type="range"] { flex: 1; }

/* ---------- overlay ---------- */
.roll-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000;
  transition: opacity 0.3s ease;
}
.roll-overlay.hidden { opacity: 0; pointer-events: none; }
.overlay-title {
  font-size: 34px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 #555, -2px -2px 0 #555, 2px -2px 0 #555, -2px 2px 0 #555, 4px 4px 0 #111;
}
.overlay-dice-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 94vw;
  max-height: 68vh;
  overflow-y: auto;
  padding: 10px;
}
.big-die {
  width: 72px; height: 72px;
  border-radius: 14px;
  border: 6px solid #fff;
  display: flex; justify-content: center; align-items: center;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.5);
}
.big-die-dot { width: 14px; height: 14px; background: #fff; border-radius: 50%; }

@keyframes diceShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  12% { transform: translate(-3px, 2px) rotate(-2deg); }
  25% { transform: translate(3px, -3px) rotate(2deg); }
  37% { transform: translate(-2px, -3px) rotate(-1deg); }
  50% { transform: translate(3px, 3px) rotate(2deg); }
  62% { transform: translate(-3px, -2px) rotate(-2deg); }
  75% { transform: translate(2px, 3px) rotate(1deg); }
  87% { transform: translate(-2px, 2px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.initial-shake { animation: diceShake 0.6s ease-in-out infinite; }

/* ---------- winner modal ---------- */
.winner-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; justify-content: center; align-items: center;
  background: rgba(0, 0, 0, 0.7);
}
.winner-modal[hidden] { display: none; }
.winner-card {
  background: linear-gradient(160deg, #1d1d28, #0e0e14);
  border: 3px solid #ffd700;
  border-radius: 18px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.3);
  animation: diceShake 0.5s ease-in-out;
}
.winner-card h2 { margin: 0 0 14px; color: #ffd700; font-size: 30px; letter-spacing: 2px; }
.winner-name-display { font-size: 40px; font-weight: 900; margin-bottom: 18px; }
.winner-close-btn {
  background: linear-gradient(180deg, #ffea3d, #ff9800);
  border: none; color: #fff; font-weight: 800; letter-spacing: 1px;
  padding: 10px 26px; border-radius: 10px; cursor: pointer; font-size: 16px;
  text-shadow: 1px 1px 0 #e67e00;
}

/* ---------- toast ---------- */
.success-toast {
  position: fixed;
  top: -70px; left: 50%;
  transform: translateX(-50%);
  background: #2e7d32;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  z-index: 999999;
  transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #81c784;
  letter-spacing: 0.5px;
}
.success-toast.show { top: 25px; }

/* ---------- footer ---------- */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: linear-gradient(180deg, rgba(16, 16, 22, 0.95), rgba(6, 6, 8, 0.99));
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.9);
}
.footer-left-group { display: flex; align-items: center; gap: 10px; z-index: 2; }
.footer-center-group { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; z-index: 2; }

.lang-dropup-container { position: relative; }
.lang-footer-btn {
  background: rgba(33, 150, 243, 0.2);
  color: #64b5f6;
  border: 2px solid #2196f3;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-footer-btn:hover { background: rgba(33, 150, 243, 0.35); color: #fff; }

.lang-dropup-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #1a1a1a;
  border: 2px solid #2196f3;
  border-radius: 10px;
  z-index: 999999;
  overflow: hidden;
  flex-direction: column;
}
.lang-dropup-menu.show { display: flex; }
.lang-option {
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: #2196f3; }

.tiktok-footer-btn, .discord-footer-btn {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.8px;
  transition: transform 0.2s ease, opacity 0.2s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.tiktok-footer-btn { background-image: linear-gradient(45deg, #fe2c55, #25f4ee); }
.discord-footer-btn { background: linear-gradient(45deg, #404eed, #7289da); }
.tiktok-footer-btn:hover, .discord-footer-btn:hover { transform: scale(1.05); opacity: 0.9; }

.news-ticker-bar {
  position: absolute;
  right: 16px;
  left: calc(50% + 150px);
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  background: rgba(15, 15, 22, 0.9);
  border: 2px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.news-ticker-badge {
  background: #ff4757;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-left: 4px;
}
.news-ticker-content { flex: 1; overflow: hidden; }
.news-ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 25s linear infinite;
  font-size: 12.5px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.news-ticker-text:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .side-col { display: none; }
  .news-ticker-bar { display: none; }
  .footer-center-group { position: static; transform: none; }
}
@media (max-width: 560px) {
  .game-center { padding: 12px 12px; }
  .controls { flex-direction: column; }
  .counter-center { font-size: 34px; }
}
