/* home.css — Home screen (dark, minimal) */
#s-home {
  background: var(--bg);
  background-image: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(232,103,74,.08) 0%, transparent 70%);
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: calc(36px + var(--sat)) 20px 48px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
}
#s-home::-webkit-scrollbar { display: none }

/* Streak icon — top left (mirrors gear top-right) */
.h-streak {
  position: absolute;
  top: calc(10px + var(--sat));
  left: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  opacity: .85;
  transition: opacity .2s;
}
.h-streak:active { opacity: .5; }
.h-streak .si-cnt { font-size: 13px; font-weight: 900; color: #FFB703; }

/* Settings gear — top right */
.h-gear {
  position: absolute;
  top: calc(10px + var(--sat));
  right: 14px;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: opacity .2s;
}
.h-gear:active { opacity: .5; }

/* ColorFlow title */
.h-title {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  text-align: center;
  margin: 6px 0 24px;
}
.h-title span { display: inline-block; }

/* Progress counter */
.h-progress {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: .5px;
}

/* World cards on home */
#h-worlds {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.h-w-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 14px; border-radius: 20px;
  background: var(--card); cursor: pointer;
  border: 1.5px solid var(--border);
  transition: transform .12s;
  position: relative; overflow: hidden;
  width: 100%; box-sizing: border-box;
}
.h-w-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--wc, transparent); opacity: .08; pointer-events: none;
}
.h-w-card:active { transform: scale(.98); }
.h-w-icon {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.h-w-body { flex: 1; min-width: 0; }
.h-w-name { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.h-w-meta { font-size: 12px; color: var(--text2); font-weight: 600; margin-bottom: 7px; }
.h-w-bar  { height: 4px; background: var(--bg2); border-radius: 2px; overflow: hidden; }
.h-w-fill { height: 100%; border-radius: 2px; transition: width .4s; }
.h-w-arr  { font-size: 20px; color: var(--text2); flex-shrink: 0; font-weight: 300; }

/* Daily Challenge banner */
.h-daily-banner {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 14px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(232,103,74,.08), rgba(245,150,124,.08));
  border: 1.5px solid rgba(232,103,74,.22);
  cursor: pointer; transition: transform .12s, opacity .15s;
  margin-top: 10px;
}
.h-daily-banner:active { transform: scale(.98); opacity: .85; }
.h-daily-banner.done { opacity: .55; }

.h-daily-icon {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: rgba(232,103,74,.1);
}
.h-daily-body { flex: 1; min-width: 0; }
.h-daily-title {
  font-size: 15px; font-weight: 800; color: var(--primary);
  letter-spacing: .3px; margin-bottom: 3px;
}
.h-daily-sub {
  font-size: 12px; color: var(--text2); font-weight: 600;
}
.h-daily-arr { font-size: 20px; color: var(--primary2); flex-shrink: 0; font-weight: 300; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── TABLET (≥ 768px) ──────────────────────────────────────── */
@media(min-width:768px){
  #s-home {
    padding: calc(72px + var(--sat)) 48px 72px;
    justify-content: center;
  }
  .h-title { font-size:80px; letter-spacing:-3px; margin-bottom:36px }
  .h-actions { gap:32px }
  .h-btn-daily { font-size:15px }
  .h-btn-options { font-size:13px; letter-spacing:3px }
  .h-streak { top: calc(14px + var(--sat)); left: 20px; font-size:20px }
  .h-gear { width:40px; height:40px; font-size:20px }
  #h-worlds { max-width:640px; gap:14px }
  .h-w-card { padding:20px 18px; border-radius:22px }
  .h-w-icon { width:60px; height:60px; font-size:30px; border-radius:18px }
  .h-w-name { font-size:18px }
  .h-w-meta { font-size:13px }
  .h-daily-banner { max-width:640px; padding:20px 18px; border-radius:22px; margin-top:14px }
  .h-daily-icon { width:60px; height:60px; font-size:30px; border-radius:18px }
  .h-daily-title { font-size:17px }
  .h-daily-sub { font-size:13px }
}

/* ── LARGE TABLET / iPad (≥ 1024px) ───────────────────────── */
@media(min-width:1024px){
  #s-home {
    padding: calc(80px + var(--sat)) 60px 80px;
    justify-content: center;
  }
  .h-title { font-size:96px; letter-spacing:-4px; margin-bottom:44px }
  .h-actions { gap:40px }
  .h-gear { width:44px; height:44px; font-size:22px }
  .h-streak { top: calc(18px + var(--sat)); left: 28px; font-size:22px }
  #h-worlds { max-width:720px; gap:16px }
  .h-w-card { padding:22px 20px; border-radius:24px }
  .h-w-icon { width:64px; height:64px; font-size:32px; border-radius:20px }
  .h-w-name { font-size:20px }
  .h-w-meta { font-size:14px }
  .h-daily-banner { max-width:720px; padding:22px 20px; border-radius:24px; margin-top:16px }
  .h-daily-icon { width:64px; height:64px; font-size:32px; border-radius:20px }
  .h-daily-title { font-size:18px }
  .h-daily-sub { font-size:14px }
}
