/**
 * HOWTODOIT Lotto — modern mobile-first UI layer
 * Prefix: lotto- (does not replace legacy classes)
 */
:root {
  --lotto-navy: #0f1b33;
  --lotto-navy-soft: #1a2d52;
  --lotto-surface: #ffffff;
  --lotto-surface-2: #f4f7fc;
  --lotto-border: rgba(15, 27, 51, 0.08);
  --lotto-text: #0f1b33;
  --lotto-text-muted: #5a6b85;
  --lotto-accent: #2563eb;
  --lotto-accent-hover: #1d4ed8;
  --lotto-yellow: #f5c542;
  --lotto-green: #22a06b;
  --lotto-red: #e5484d;
  --lotto-blue: #3b82f6;
  --lotto-radius: 20px;
  --lotto-radius-sm: 12px;
  --lotto-shadow: 0 8px 32px rgba(15, 27, 51, 0.08);
  --lotto-shadow-sm: 0 2px 12px rgba(15, 27, 51, 0.06);
  --lotto-touch: 44px;
  --lotto-bottom-nav-h: 64px;
  --lotto-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

.header-logo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.lotto-home {
  font-family: var(--lotto-font);
  background: linear-gradient(180deg, #f0f4fb 0%, #f8fafc 240px, #f8fafc 100%);
  color: var(--lotto-text);
  padding-bottom: calc(var(--lotto-bottom-nav-h) + 16px);
}

@media (min-width: 900px) {
  body.lotto-home {
    padding-bottom: 0;
  }
}

.lotto-page {
  max-width: 1280px;
  margin: 0 auto;
}

/* Hero */
.lotto-hero {
  background: linear-gradient(135deg, var(--lotto-navy) 0%, var(--lotto-navy-soft) 55%, #243b6e 100%);
  color: #fff;
  border-radius: var(--lotto-radius);
  padding: 28px 24px 32px;
  margin: 20px 0 24px;
  box-shadow: var(--lotto-shadow);
  position: relative;
  overflow: hidden;
}

.lotto-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.lotto-hero h1,
.lotto-hero #lotto-hero-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  color: #ffffff;
}

/* theme-bento h1 { color: var(--tb-text) } 보다 우선 */
body.lotto-home .lotto-hero h1#lotto-hero-title,
body.lotto-home .lotto-hero #lotto-hero-title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.lotto-hero-desc {
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.lotto-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.lotto-hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  color: #fff;
}

.lotto-hero-stat strong {
  color: var(--lotto-yellow);
  font-weight: 800;
}

/* theme-bento .main { color } 등이 Hero 텍스트를 덮어쓰지 않도록 */
body.lotto-home .lotto-hero,
body.lotto-home .lotto-hero .lotto-hero-desc,
body.lotto-home .lotto-hero .lotto-hero-stat,
body.lotto-home .lotto-hero .lotto-disclaimer,
body.lotto-home .lotto-hero .lotto-countdown {
  color: #fff !important;
}

body.lotto-home .lotto-hero .lotto-hero-stat strong,
body.lotto-home .lotto-hero #lotto-hero-round,
body.lotto-home .lotto-hero #lotto-countdown-value,
body.lotto-home .lotto-hero #lotto-gen-count-display {
  color: var(--lotto-yellow) !important;
}

.lotto-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.lotto-hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.lotto-btn-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.lotto-btn-quick:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.lotto-btn-quick:focus-visible {
  outline: 3px solid var(--lotto-yellow);
  outline-offset: 2px;
}

.lotto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.lotto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--lotto-touch);
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lotto-btn:focus-visible {
  outline: 3px solid var(--lotto-yellow);
  outline-offset: 2px;
}

.lotto-btn-primary {
  background: var(--lotto-yellow);
  color: var(--lotto-navy);
  box-shadow: 0 4px 16px rgba(245, 197, 66, 0.35);
}

.lotto-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 197, 66, 0.45);
}

.lotto-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lotto-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lotto-disclaimer {
  margin-top: 16px;
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

/* Layout */
.lotto-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1100px) {
  .lotto-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.lotto-section {
  margin-bottom: 28px;
}

.lotto-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lotto-section-title h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lotto-text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.lotto-home .lotto-section-title a {
  color: var(--lotto-accent) !important;
}

.lotto-section-title a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lotto-accent);
  text-decoration: none;
}

.lotto-card {
  background: var(--lotto-surface);
  border-radius: var(--lotto-radius);
  border: 1px solid var(--lotto-border);
  box-shadow: var(--lotto-shadow-sm);
  padding: 20px;
}

/* Routine */
.lotto-routine-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .lotto-routine-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lotto-routine-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: var(--lotto-radius-sm);
  background: var(--lotto-surface-2);
  border: 1px solid var(--lotto-border);
  text-decoration: none;
  color: inherit;
  min-height: 88px;
  transition: border-color 0.15s, transform 0.15s;
}

.lotto-routine-step:hover {
  border-color: var(--lotto-accent);
  transform: translateY(-2px);
}

.lotto-routine-step i {
  color: var(--lotto-accent);
  font-size: 1.1rem;
}

.lotto-routine-step span {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Dashboard mini */
.lotto-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .lotto-dash-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lotto-dash-item {
  text-align: center;
  padding: 16px 10px;
  background: var(--lotto-surface-2);
  border-radius: var(--lotto-radius-sm);
}

.lotto-dash-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lotto-accent);
}

.lotto-dash-label {
  font-size: 0.78rem;
  color: var(--lotto-text-muted);
  margin-top: 4px;
}

/* Recent numbers */
.lotto-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lotto-recent-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--lotto-surface-2);
  border-radius: var(--lotto-radius-sm);
  font-size: 0.85rem;
}

.lotto-recent-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lotto-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.lotto-ball--y { background: linear-gradient(145deg, #f5c542, #d4a017); color: #1a1a1a; }
.lotto-ball--b { background: linear-gradient(145deg, #4f8ef7, #2563eb); }
.lotto-ball--r { background: linear-gradient(145deg, #f87171, #dc2626); }
.lotto-ball--g { background: linear-gradient(145deg, #4ade80, #16a34a); }
.lotto-ball--d { background: linear-gradient(145deg, #64748b, #334155); }

/* Community tabs */
.lotto-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.lotto-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--lotto-border);
  background: var(--lotto-surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lotto-text-muted);
  cursor: pointer;
  min-height: var(--lotto-touch);
}

.lotto-tab.is-active {
  background: var(--lotto-navy);
  color: #fff;
  border-color: var(--lotto-navy);
}

.lotto-post-card {
  background: var(--lotto-surface);
  border-radius: var(--lotto-radius);
  border: 1px solid var(--lotto-border);
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.lotto-post-card:hover {
  box-shadow: var(--lotto-shadow);
  transform: translateY(-2px);
}

.lotto-post-card .lotto-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--lotto-text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--lotto-border);
}

.lotto-post-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lotto-surface-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lotto-accent);
}

.lotto-post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.4;
}

.lotto-post-preview {
  font-size: 0.9rem;
  color: var(--lotto-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Game preview */
.lotto-game-card {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.lotto-game-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.lotto-game-card p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--lotto-text-muted);
}

/* FAQ */
.lotto-faq details {
  border: 1px solid var(--lotto-border);
  border-radius: var(--lotto-radius-sm);
  margin-bottom: 8px;
  background: var(--lotto-surface);
  overflow: hidden;
}

.lotto-faq summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  min-height: var(--lotto-touch);
  display: flex;
  align-items: center;
}

.lotto-faq summary::-webkit-details-marker {
  display: none;
}

.lotto-faq details[open] summary {
  border-bottom: 1px solid var(--lotto-border);
}

.lotto-faq .lotto-faq-body {
  padding: 12px 16px 16px;
  font-size: 0.9rem;
  color: var(--lotto-text-muted);
  line-height: 1.6;
}

/* Generator overrides */
.lotto-generator-wrap {
  scroll-margin-top: 80px;
}

.lotto-generator-inner.bento-grid,
.lotto-generator-inner .bento-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lotto-generator-inner .bento-span-7,
.lotto-generator-inner .bento-span-5,
.lotto-generator-inner .bento-span-12 {
  width: 100%;
  max-width: 100%;
}

/* style.css 가 wish-section 에 color:#fff + 보라 그라데이션 → 밝은 카드와 충돌 */
body.lotto-home .lotto-generator-inner .wish-section,
body.lotto-home .lotto-generator-inner .wish-container {
  background: var(--lotto-surface) !important;
  border: 1px solid var(--lotto-border) !important;
  border-radius: var(--lotto-radius) !important;
  box-shadow: var(--lotto-shadow-sm) !important;
  padding: 20px !important;
  color: var(--lotto-text) !important;
  text-align: left !important;
}

body.lotto-home .lotto-generator-inner .wish-section h3,
body.lotto-home .lotto-generator-inner .wish-container h3,
body.lotto-home .lotto-generator-inner .wish-container p,
body.lotto-home .lotto-generator-inner .generation-count-section h4 {
  color: var(--lotto-text) !important;
}

body.lotto-home .lotto-generator-inner .wish-container h3 i {
  color: var(--lotto-accent) !important;
}

body.lotto-home .lotto-generator-inner .wish-input-container input {
  color: var(--lotto-text) !important;
  background: #fff !important;
  border: 1px solid var(--lotto-border) !important;
}

body.lotto-home .lotto-generator-inner .wish-example,
body.lotto-home .lotto-generator-inner .lotto-preset-chip {
  color: var(--lotto-text) !important;
  background: var(--lotto-surface-2) !important;
  border: 1px solid var(--lotto-border) !important;
}

body.lotto-home .lotto-generator-inner .lotto-preset-chip.is-active {
  color: #fff !important;
}

body.lotto-home .lotto-generator-inner .wish-example:hover {
  border-color: var(--lotto-accent) !important;
  background: #e8f0fe !important;
}

body.lotto-home .lotto-generator-inner .quick-action-buttons {
  border-top-color: var(--lotto-border) !important;
}

body.lotto-home .lotto-generator-inner .content-header-intro h2,
body.lotto-home .lotto-generator-inner .content-header h2,
body.lotto-home .lotto-generator-inner #gen_number_list h2 {
  color: var(--lotto-text) !important;
}

body.lotto-home .lotto-generator-inner .content-header-intro p,
body.lotto-home .lotto-generator-inner .content-header p {
  color: var(--lotto-text-muted) !important;
}

body.lotto-home .lotto-generator-inner #lotto-gen-count-inline {
  color: var(--lotto-accent) !important;
  font-weight: 800;
}

body.lotto-home .lotto-generator-inner .count-btn:not(.active) {
  color: var(--lotto-text) !important;
  background: var(--lotto-surface-2) !important;
  border: 1px solid var(--lotto-border) !important;
}

body.lotto-home .lotto-generator-inner .secondary-button,
body.lotto-home .lotto-generator-inner a.secondary-button {
  color: var(--lotto-text) !important;
  border-color: var(--lotto-border) !important;
}

body.lotto-home .lotto-generator-inner #bento-right-col,
body.lotto-home .lotto-generator-inner #bento-right-col h2 {
  color: var(--lotto-text) !important;
}

body.lotto-home .lotto-generator-inner .global-comment-section,
body.lotto-home .lotto-generator-inner .global-comment-section h4,
body.lotto-home .lotto-generator-inner .global-comment-section p {
  color: var(--lotto-text) !important;
}

body.lotto-home .lotto-generator-inner .global-comment-section textarea {
  color: var(--lotto-text) !important;
  background: #fff !important;
  border: 1px solid var(--lotto-border) !important;
}

body.lotto-home .lotto-post-title {
  color: var(--lotto-text) !important;
}

body.lotto-home .sidebar .widget,
body.lotto-home .sidebar .widget h3,
body.lotto-home .sidebar .widget-header h3 {
  color: var(--lotto-text) !important;
}

body.lotto-home .sidebar .post-list-title {
  color: var(--lotto-text) !important;
}

body.lotto-home .sidebar .post-list-meta,
body.lotto-home .sidebar .stat-mini-label {
  color: var(--lotto-text-muted) !important;
}

body.lotto-home .sidebar .stat-mini-value {
  color: var(--lotto-accent) !important;
}

body.lotto-home .loading {
  color: var(--lotto-text-muted) !important;
}

body.lotto-home .lotto-routine-step {
  color: var(--lotto-text) !important;
}

body.lotto-home .lotto-game-card strong {
  color: var(--lotto-text) !important;
}

body.lotto-home .lotto-faq summary {
  color: var(--lotto-text) !important;
}

body.lotto-home .lotto-dash-label {
  color: var(--lotto-text-muted) !important;
}

body.lotto-home .lotto-dash-value {
  color: var(--lotto-accent) !important;
}

.lotto-generator-inner .count-btn {
  min-height: var(--lotto-touch);
  border-radius: 999px !important;
  font-weight: 700;
}

.lotto-generator-inner .count-btn.active {
  background: var(--lotto-navy) !important;
  color: #fff !important;
}

.lotto-generator-inner .primary-button.large-button,
.lotto-generator-inner a.button.primary-button {
  min-height: 52px !important;
  border-radius: 999px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--lotto-accent), var(--lotto-navy-soft)) !important;
  width: 100%;
  justify-content: center;
}

.lotto-generator-inner #bento-right-col {
  background: var(--lotto-surface);
  border: 1px solid var(--lotto-border);
  border-radius: var(--lotto-radius);
  padding: 16px;
  min-height: 120px;
}

.lotto-generator-inner #settings-container {
  border-radius: var(--lotto-radius-sm);
}

.lotto-generator-inner .settings-collapsed {
  display: none !important;
}

.lotto-generator-inner .dream-section {
  border-radius: var(--lotto-radius) !important;
  margin-top: 0 !important;
}

.lotto-generator-inner .card-grid {
  gap: 12px !important;
}

.lotto-generator-inner .card {
  border-radius: var(--lotto-radius-sm) !important;
  border: 1px solid var(--lotto-border) !important;
  box-shadow: none !important;
}

.lotto-gen-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  margin: 12px 0;
  background: var(--lotto-surface-2);
  border-radius: var(--lotto-radius-sm);
  font-weight: 600;
  color: var(--lotto-text-muted);
}

.lotto-gen-loading.is-active {
  display: flex;
}

.lotto-gen-loading .lotto-shuffle-dots {
  display: flex;
  gap: 6px;
}

.lotto-gen-loading .lotto-shuffle-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: lotto-bounce 0.6s ease-in-out infinite;
}

.lotto-gen-loading .lotto-shuffle-dots span:nth-child(1) { background: var(--lotto-yellow); animation-delay: 0s; }
.lotto-gen-loading .lotto-shuffle-dots span:nth-child(2) { background: var(--lotto-blue); animation-delay: 0.1s; }
.lotto-gen-loading .lotto-shuffle-dots span:nth-child(3) { background: var(--lotto-red); animation-delay: 0.2s; }
.lotto-gen-loading .lotto-shuffle-dots span:nth-child(4) { background: var(--lotto-green); animation-delay: 0.3s; }

@keyframes lotto-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.lotto-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.lotto-preset-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--lotto-border);
  background: var(--lotto-surface-2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}

.lotto-preset-chip.is-active {
  background: var(--lotto-navy);
  color: #fff;
  border-color: var(--lotto-navy);
}

/* Mobile bottom nav */
.lotto-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--lotto-bottom-nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--lotto-border);
  padding: 0 8px env(safe-area-inset-bottom);
}

@media (min-width: 900px) {
  .lotto-bottom-nav {
    display: none;
  }
}

.lotto-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-height: var(--lotto-touch);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--lotto-text-muted);
  text-decoration: none;
}

.lotto-bottom-nav a i {
  font-size: 1.15rem;
}

.lotto-bottom-nav a.is-active {
  color: var(--lotto-accent);
}

.lotto-fab-generate {
  position: fixed;
  right: 16px;
  bottom: calc(var(--lotto-bottom-nav-h) + 12px);
  z-index: 899;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lotto-yellow);
  color: var(--lotto-navy);
  border: none;
  box-shadow: 0 6px 24px rgba(15, 27, 51, 0.2);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .lotto-fab-generate {
    display: none;
  }
}

.lotto-fab-generate:focus-visible {
  outline: 3px solid var(--lotto-accent);
  outline-offset: 2px;
}

/* Hide legacy quick-actions on home */
body.lotto-home .quick-actions {
  display: none !important;
}

body.lotto-home .community-layout {
  display: contents;
}

body.lotto-home .main-content {
  min-width: 0;
}

body.lotto-home .sidebar .widget {
  border-radius: var(--lotto-radius);
  border: 1px solid var(--lotto-border);
  box-shadow: var(--lotto-shadow-sm);
}

.lotto-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--lotto-text-muted);
  font-size: 0.9rem;
}

.lotto-ad-slot {
  min-height: 90px;
  margin: 24px 0;
}

/* Result cards animation */
#lotto_num_contents .card,
#lotto_num_contents article {
  animation: lotto-fade-in 0.35s ease-out;
}

@keyframes lotto-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lotto-gen-loading .lotto-shuffle-dots span,
  #lotto_num_contents .card,
  #lotto_num_contents article {
    animation: none;
  }
}
