/* ===================== HALLOWEEN CALENDAR ===================== */
.hwc, .hwc-reveal, .hwc-adm {
  --hwc-orange: #4fc3ff;
  --hwc-gold: #ffd36b;
  --hwc-purple: #ff4d6d;
  --hwc-card: var(--card, #18131c);
  --hwc-line: rgba(255, 255, 255, 0.07);
  --hwc-text: var(--text-default, #f2ebe1);
  --hwc-muted: var(--text-secondary, #8a8090);
  --hwc-r: 16px;
  color: var(--hwc-text);
}

.hwc *, .hwc-reveal *, .hwc-adm * { box-sizing: border-box; }

.hwc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--hwc-text);
}

/* ---------- Hero ---------- */
.hwc-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: var(--hwc-r);
  background:
    radial-gradient(ellipse 50% 120% at 85% 50%, rgba(79, 195, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 80% at 100% 0%, rgba(255, 77, 109, 0.18), transparent 70%),
    var(--hwc-card);
  border: 1px solid var(--hwc-line);
}

.hwc-hero__text { position: relative; z-index: 1; max-width: 640px; }
.hwc-kicker {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hwc-orange); font-weight: 700;
}
.hwc-title { margin: 0.35rem 0 0.5rem; font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.hwc-sub { margin: 0; color: var(--hwc-muted); font-size: 0.98rem; line-height: 1.5; }
.hwc-sub b { color: var(--hwc-text); }

.hwc-hero__side {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
  margin-right: 110px;
}
.hwc-hero__pumpkin {
  position: absolute; right: 18px; bottom: -6px; width: 120px;
  will-change: transform;
  filter: drop-shadow(0 0 22px rgba(79, 195, 255, 0.55));
  animation: hwc-sway 3.4s ease-in-out infinite;
  pointer-events: none;
}

.hwc-timer { text-align: right; }
.hwc-timer__label { display: block; font-size: 0.8rem; color: var(--hwc-muted); }
.hwc-timer__value {
  font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--hwc-gold); text-shadow: 0 0 18px rgba(255, 211, 107, 0.35);
}

/* ---------- Buttons ---------- */
.hwc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 46px; padding: 0 1.4rem; border: 0; border-radius: 12px; cursor: pointer;
  font-weight: 700; font-size: 0.95rem; color: #06131f;
  background: linear-gradient(135deg, var(--hwc-gold), var(--hwc-orange));
  transition: filter .15s, background .15s;
}
.hwc-btn:hover { filter: brightness(1.06); }
.hwc-btn:active { filter: brightness(.95); }
.hwc-btn:disabled { filter: none; opacity: .55; cursor: default; }
.hwc-btn svg { width: 18px; height: 18px; fill: currentColor; }
.hwc-btn--ghost { background: var(--button, #261e2c); color: var(--hwc-text); box-shadow: none; }
.hwc-btn--ghost:hover { background: var(--button-hover, #30263a); filter: none; }
.hwc-btn--big { height: 54px; padding: 0 2rem; font-size: 1.05rem; }
.hwc-btn--claim { min-width: 260px; border-radius: 14px; letter-spacing: .01em; }
.hwc-btn--claim:disabled { background: rgba(255, 255, 255, .06); color: var(--hwc-muted); opacity: 1; }
.hwc-btn--sm { height: 36px; padding: 0 0.9rem; font-size: 0.85rem; border-radius: 10px; }
.hwc-btn--danger { background: rgba(255, 70, 70, 0.12); color: #ff7b7b; box-shadow: none; }

.hwc-note { font-size: 0.85rem; color: var(--hwc-muted); text-align: right; }
.hwc-note a { color: var(--hwc-orange); }

/* ---------- Streak ---------- */
.hwc-streak {
  padding: 1.25rem 1.5rem 1.4rem; border-radius: var(--hwc-r);
  background: var(--hwc-card); border: 1px solid var(--hwc-line);
}
.hwc-streak__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; gap: 1rem; }
.hwc-streak__head h3 { margin: 0; font-size: 1.05rem; }
.hwc-streak__head span { color: var(--hwc-muted); font-size: 0.88rem; }
.hwc-streak__head b { color: var(--hwc-gold); }
.hwc-track { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); margin: 0 70px 3.2rem 18px; }
.hwc-track__fill {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--hwc-purple), var(--hwc-orange));
  box-shadow: 0 0 14px rgba(79, 195, 255, 0.5);
  transition: width .8s ease;
}
.hwc-goal { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.hwc-goal__dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hwc-card); border: 2px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem; font-weight: 800;
}
.hwc-goal.is-done .hwc-goal__dot { border-color: var(--hwc-orange); background: var(--hwc-orange); color: #06131f; box-shadow: 0 0 16px rgba(79, 195, 255, .6); }
.hwc-goal__label { position: absolute; top: 40px; white-space: nowrap; font-size: 0.78rem; color: var(--hwc-muted); text-align: center; }
.hwc-goal__label b { display: block; color: var(--hwc-text); font-size: 0.8rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Grid ---------- */
.hwc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.75rem; }

/* Висоту задає aspect-ratio, а вміст позиціонується абсолютно:
   у Safari на iPhone height:100% всередині aspect-ratio дає 0 і комірки «злипалися» в смужку */
.hwc-cell { position: relative; perspective: 900px; aspect-ratio: 1 / 1.12; min-width: 0; }
@supports not (aspect-ratio: 1 / 1) {
  .hwc-cell { height: 0; padding-top: 112%; }
}
.hwc-cell__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1);
}
.hwc-cell.is-flipped .hwc-cell__inner { transform: rotateY(180deg); }
.hwc-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--hwc-card); border: 1px solid var(--hwc-line); padding: 0.6rem; text-align: center;
}
.hwc-face--back { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(79, 195, 255, 0.16), rgba(255, 77, 109, 0.12)), var(--hwc-card); }

.hwc-num { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.hwc-month { font-size: 0.72rem; color: var(--hwc-muted); text-transform: uppercase; letter-spacing: .08em; }
.hwc-cell__title { font-size: 0.75rem; color: var(--hwc-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwc-cell__icon { width: 34px; height: 34px; opacity: .35; }
.hwc-cell__icon svg { width: 100%; height: 100%; fill: currentColor; }
.hwc-badge {
  position: absolute; top: 8px; right: 8px; font-size: 0.66rem; font-weight: 700;
  padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: var(--hwc-muted);
}

.hwc-cell.is-locked .hwc-face--front { opacity: .55; }
.hwc-cell.is-missed .hwc-face--front { opacity: .35; filter: grayscale(1); }
.hwc-cell.is-missed .hwc-num { text-decoration: line-through; }

.hwc-cell.is-today .hwc-face--front {
  border-color: var(--hwc-orange);
  box-shadow: inset 0 0 0 1px var(--hwc-orange), 0 0 18px rgba(79, 195, 255, 0.25);
  cursor: pointer;
}
/* пульсація через opacity окремого шару — без перемальовування тіні щокадру */
.hwc-cell.is-today::before {
  content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 34px rgba(79, 195, 255, 0.55);
  opacity: 0; will-change: opacity;
  animation: hwc-pulse 2.2s ease-in-out infinite;
}
.hwc-cell.is-today .hwc-num { color: var(--hwc-orange); }
.hwc-cell.is-today .hwc-cell__icon { opacity: 1; }
.hwc-cell.is-today .hwc-cell__icon img { width: 100%; animation: hwc-sway 2.4s ease-in-out infinite; }

.hwc-cell.is-special .hwc-face { border-color: rgba(255, 77, 109, .55); }
.hwc-cell.is-special .hwc-face--front { background: radial-gradient(circle at 50% 30%, rgba(255, 77, 109, 0.25), transparent 70%), var(--hwc-card); }
.hwc-cell.is-special .hwc-badge { background: var(--hwc-purple); color: #fff; }

.hwc-reward-img { width: 58%; max-height: 52%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.hwc-reward-name { font-size: 0.78rem; font-weight: 700; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.hwc-check {
  position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--hwc-orange); color: #06131f; display: grid; place-items: center; font-size: 12px; font-weight: 900;
}

/* ---------- Reveal ---------- */
.hwc-reveal {
  position: fixed; inset: 0; z-index: 99990; display: none; place-items: center;
  background: rgba(6, 4, 8, 0.82); backdrop-filter: blur(6px);
}
.hwc-reveal.is-open { display: grid; }
.hwc-reveal__box { width: min(420px, 92vw); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hwc-reveal__stage { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.hwc-reveal__pumpkin { width: 170px; filter: drop-shadow(0 0 30px rgba(79, 195, 255, .7)); }
.hwc-reveal__burst {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 211, 107, .95) 0%, rgba(79, 195, 255, .5) 30%, transparent 65%);
}
.hwc-reveal__reward {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(-120px) scale(.4);
}
.hwc-reveal__reward img { width: 190px; max-height: 190px; object-fit: contain; filter: drop-shadow(0 0 26px rgba(255, 211, 107, .6)); }
.hwc-reveal__reward .hwc-reveal__ph { font-size: 5rem; }
.hwc-reveal__text { min-height: 3.4rem; opacity: 0; }
.hwc-reveal__text small { display: block; color: var(--hwc-muted); font-size: .85rem; margin-bottom: .2rem; }
.hwc-reveal__text strong { font-size: 1.4rem; }
.hwc-reveal__bonus { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.hwc-reveal__bonus > div {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 12px;
  background: rgba(255, 77, 109, .16); border: 1px solid rgba(255, 77, 109, .4); text-align: left; font-size: .9rem;
}
.hwc-reveal__bonus img { width: 40px; height: 40px; object-fit: contain; }
.hwc-reveal__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; opacity: 0; pointer-events: none; }
.hwc-reveal__actions .hwc-btn { min-width: 170px; text-decoration: none; }

.hwc-reveal.is-playing .hwc-reveal__pumpkin { animation: hwc-shake .9s ease-in-out, hwc-pop .35s ease-in .9s forwards; }
.hwc-reveal.is-playing .hwc-reveal__burst { animation: hwc-burst .7s ease-out .95s forwards; }
.hwc-reveal.is-playing .hwc-reveal__reward { animation: hwc-drop .75s cubic-bezier(.3, 1.5, .5, 1) 1.1s forwards; }
.hwc-reveal.is-playing .hwc-reveal__text { animation: hwc-fade .4s ease 1.6s forwards; }
.hwc-reveal.is-playing .hwc-reveal__actions { animation: hwc-fade .4s ease 1.9s forwards; pointer-events: auto; }

/* ---------- Admin ---------- */
.hwc-admin-open { display: flex; justify-content: flex-end; }
.hwc-adm { position: fixed; inset: 0; z-index: 99980; display: none; place-items: center; background: rgba(6, 4, 8, 0.7); }
.hwc-adm.is-open { display: grid; }
.hwc-adm__box {
  width: min(1100px, 96vw); height: min(86vh, 900px); display: flex; flex-direction: column;
  background: var(--bg-modal, #16111a); border: 1px solid var(--hwc-line); border-radius: 18px; overflow: hidden;
  color: var(--text-default, #f2ebe1);
}
.hwc-adm__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.hwc-adm__head h2 { margin: 0; font-size: 1.15rem; }
.hwc-adm__x { background: none; border: 0; cursor: pointer; color: inherit; padding: 6px; }
.hwc-adm__x svg { width: 18px; height: 18px; fill: currentColor; }
.hwc-tabs { display: flex; gap: .4rem; padding: .75rem 1.25rem; flex-wrap: wrap; }
.hwc-tab { border: 0; cursor: pointer; padding: .55rem .9rem; border-radius: 10px; background: var(--button, #261e2c); color: inherit; font-weight: 600; }
.hwc-tab.is-active { background: var(--hwc-orange, #4fc3ff); color: #06131f; }
.hwc-adm__body { flex: 1; overflow: auto; padding: 0 1.25rem 1.25rem; }
.hwc-pane { display: none; }
.hwc-pane.is-active { display: block; }
.hwc-hint { color: var(--text-secondary, #8a8090); font-size: .88rem; line-height: 1.5; margin: .25rem 0 1rem; }
.hwc-hint b { color: var(--text-default, #f2ebe1); }

.hwc-adm-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.hwc-adm-days button {
  border: 1px solid rgba(255,255,255,.08); background: var(--card, #18131c); color: inherit; cursor: pointer;
  border-radius: 10px; padding: .5rem .3rem; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700;
}
.hwc-adm-days button small { font-weight: 500; font-size: .7rem; color: var(--text-secondary, #8a8090); }
.hwc-adm-days button.is-empty small { color: #ff7b7b; }
.hwc-adm-days button.is-active { border-color: var(--hwc-orange, #4fc3ff); box-shadow: 0 0 0 1px var(--hwc-orange, #4fc3ff); }

.hwc-adm-day, .hwc-streak-row, .hwc-form {
  background: var(--card, #18131c); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 1rem; margin-bottom: .75rem;
}
.hwc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: .9rem; }
.hwc-field { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--text-secondary, #8a8090); }
.hwc-field input, .hwc-field select, .hwc-items input, .hwc-items select {
  height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.06); padding: 0 .7rem;
  background: var(--input-form, #211a26); color: var(--text-default, #f2ebe1); font-size: .9rem; width: 100%; min-width: 0;
}
.hwc-check-field { flex-direction: row; align-items: center; gap: .5rem; padding-top: 1.4rem; color: var(--text-default, #f2ebe1); }
.hwc-check-field input { width: 18px; height: 18px; }
.hwc-items { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .75rem; }
.hwc-items__head, .hwc-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 110px 64px 40px; gap: .5rem; align-items: center;
}
.hwc-items__head { font-size: .75rem; color: var(--text-secondary, #8a8090); padding: 0 .2rem; }
.hwc-item__img {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: var(--input-form, #211a26); color: var(--text-secondary, #8a8090); font-weight: 700;
}
.hwc-item__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.hwc-item__pct { font-size: .8rem; color: var(--money, #ffd36b); text-align: center; }
.hwc-item__del { height: 40px; border: 0; border-radius: 10px; background: rgba(255,70,70,.12); color: #ff7b7b; cursor: pointer; font-size: 1.1rem; }
.hwc-row { display: flex; gap: .6rem; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.hwc-streak-row h4 { margin: 0 0 .75rem; display: flex; justify-content: space-between; align-items: center; }

.hwc-stats { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hwc-stats th, .hwc-stats td { padding: .5rem .6rem; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
.hwc-stats th { color: var(--text-secondary, #8a8090); font-weight: 600; }
.hwc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.hwc-kpi { background: var(--card, #18131c); border-radius: 14px; padding: 1rem; border: 1px solid rgba(255,255,255,.07); }
.hwc-kpi span { display: block; font-size: .8rem; color: var(--text-secondary, #8a8090); }
.hwc-kpi b { font-size: 1.6rem; }

/* ---------- Animations ---------- */
@keyframes hwc-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-3px); } }
@keyframes hwc-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes hwc-shake {
  0%, 100% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-9deg) scale(1.03); } 30% { transform: rotate(8deg) scale(1.05); }
  45% { transform: rotate(-7deg) scale(1.07); } 60% { transform: rotate(6deg) scale(1.1); }
  75% { transform: rotate(-4deg) scale(1.13); } 90% { transform: rotate(2deg) scale(1.16); }
}
@keyframes hwc-pop { to { transform: scale(1.6); opacity: 0; } }
@keyframes hwc-burst { 0% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hwc-drop { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hwc-fade { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .hwc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .hwc-hero { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .hwc-hero__side { align-items: flex-start; margin-right: 0; }
  .hwc-timer { text-align: left; }
  .hwc-hero__pumpkin { width: 80px; top: 12px; bottom: auto; }
  .hwc-title { font-size: 1.7rem; }
  .hwc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hwc-items__head { display: none; }
  .hwc-item { grid-template-columns: 44px minmax(0, 1fr) 80px 40px; }
  .hwc-item__pct { display: none; }
  .hwc-goal__label b { max-width: 80px; }

  /* Серія на телефоні: підписи вужчі й переносяться, щоб не налазили один на одного */
  .hwc-streak { padding: 1rem 1rem 1.1rem; }
  .hwc-streak__head { margin-bottom: 1rem; }
  .hwc-track { margin: 0 46px 3.6rem 12px; }
  .hwc-goal__dot { width: 30px; height: 30px; font-size: .72rem; }
  .hwc-goal__label {
    top: 36px; width: 78px; white-space: normal; font-size: .66rem; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hwc-goal__label b { max-width: none; font-size: .7rem; white-space: normal; overflow: visible; }

  .hwc-grid { gap: .55rem; }
  .hwc-face { padding: .5rem .4rem; border-radius: 12px; gap: .25rem; }
  .hwc-num { font-size: 1.6rem; }
  .hwc-cell__icon { width: 28px; height: 28px; }
  .hwc-reward-img { width: 62%; max-height: 46%; }
  .hwc-reward-name { font-size: .72rem; }
  .hwc-reward-sub { font-size: .64rem; }
  .hwc-badge { top: 6px; right: 6px; font-size: .6rem; padding: 1px 6px; }
  .hwc-check { top: 6px; left: 6px; width: 18px; height: 18px; font-size: 11px; }
  .hwc-btn--claim { min-width: 0; width: 100%; }
  .hwc-hero__side { width: 100%; }
}
@media (max-width: 400px) {
  .hwc-grid { gap: .45rem; }
  .hwc-num { font-size: 1.4rem; }
  .hwc-goal__label { width: 68px; }
}
/* На сенсорних екранах наведення немає — підказка «в інвентар» видна завжди */
@media (hover: none) {
  .hwc-cell.is-claimed .hwc-goinv { transform: none; padding: .3rem; font-size: .64rem; }
}


/* ---------- DB error ---------- */
.hwc-dberr {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
  padding: .9rem 1.1rem; border-radius: 14px; font-size: .9rem;
  background: rgba(255, 70, 70, .1); border: 1px solid rgba(255, 70, 70, .35); color: #ffb4b4;
}
.hwc-warn { color: #ff7b7b !important; }

/* ---------- Item picker (як в інвентарі) ---------- */
.hwc-sel, .hwc-picker { margin-top: .9rem; }
.hwc-sel__title { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.hwc-sel__list { display: flex; flex-wrap: wrap; gap: .75rem; }
.hwc-sel__empty { color: var(--text-secondary, #8a8090); font-size: .88rem; padding: .9rem; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; }
.hwc-sel__item { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; width: 150px; position: relative; }
.hwc-sel__item .hwc-item__del { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; font-size: .95rem; z-index: 2; background: #3a1d22; }
.hwc-sel__chance { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-secondary, #8a8090); }
.hwc-sel__chance input { height: 32px !important; border-radius: 8px; border: 1px solid rgba(255,255,255,.06); background: var(--input-form, #211a26); color: inherit; padding: 0 .5rem; width: 100%; }
.hwc-sel__item .hwc-item__pct { text-align: left; }

.hwc-picker__search {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06);
  background: var(--input-form, #211a26); color: var(--text-default, #f2ebe1); padding: 0 1rem; font-size: .92rem; margin-bottom: .75rem;
}
.hwc-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.hwc-picker__pager { display: flex; justify-content: center; margin-top: .9rem; }
.hwc-picker__pager button {
  min-width: 44px; height: 42px; border: 1px solid rgba(255,255,255,.06); background: var(--card, #18131c); color: inherit; cursor: pointer; font-weight: 600;
}
.hwc-picker__pager button:first-child { border-radius: 10px 0 0 10px; }
.hwc-picker__pager button:last-child { border-radius: 0 10px 10px 0; }
.hwc-picker__pager button.is-active { background: #4fc3ff; color: #06131f; }
.hwc-picker__pager button:disabled { opacity: .4; cursor: default; }

.hwc-ccard {
  --c: #5b6b8c;
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end; padding: .8rem;
  border: 2px solid rgba(255,255,255,.05);
  background: #1c1c1c;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 42%, #151515), color-mix(in srgb, var(--c) 16%, #121212));
  transition: border-color .15s, transform .15s;
}
.hwc-ccard::before {
  content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background: repeating-linear-gradient(135deg, #fff 0 10px, transparent 10px 26px);
}
.hwc-ccard:hover { border-color: rgba(255,255,255,.18); }
.hwc-ccard.is-chosen { border-color: #4fc3ff; }
.hwc-ccard.is-chosen::after {
  content: '✓'; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: #4fc3ff; color: #06131f; font-weight: 900; font-size: 13px; display: grid; place-items: center;
}
.hwc-ccard__bar { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 56%; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.hwc-ccard__img { position: absolute; inset: 14% 14% 38% 14%; display: grid; place-items: center; }
.hwc-ccard__img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.hwc-ccard__img span { font-size: 2rem; color: rgba(255,255,255,.3); }
.hwc-ccard__name { position: relative; font-weight: 800; font-size: .95rem; color: #fff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwc-ccard__sub { position: relative; font-size: .8rem; color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwc-ccard.is-small { cursor: default; }
.hwc-ccard.is-small:hover { border-color: rgba(255,255,255,.05); }

.hwc-reward-sub { font-size: .72rem; color: var(--hwc-muted); margin-top: -2px; }
.hwc-reveal__sub { display: block; font-style: normal; color: var(--hwc-muted); font-size: .95rem; margin-top: .15rem; }

/* Отримані комірки ведуть в інвентар */
.hwc-cell.is-claimed { cursor: pointer; }
.hwc-goinv {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem; font-size: .72rem; font-weight: 700;
  background: rgba(79, 195, 255, .92); color: #06131f; transform: translateY(100%); transition: transform .2s;
}
.hwc-cell.is-claimed:hover .hwc-goinv { transform: translateY(0); }
.hwc-cell.is-claimed:hover .hwc-face--back { border-color: #4fc3ff; }

/* Топ */
.hwc-top td a { color: inherit; font-weight: 600; text-decoration: none; }
.hwc-top td a:hover { color: #4fc3ff; }
.hwc-place { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.06); font-weight: 800; font-size: .8rem; }
.hwc-place.is-top1 { background: #ffd36b; color: #06131f; }
.hwc-place.is-top2 { background: #c9c9d1; color: #06131f; }
.hwc-place.is-top3 { background: #c97a3a; color: #06131f; }

/* ===================== Топ серій (для гравців) ===================== */
.hwc-lb {
  position: relative; overflow: hidden;
  padding: 1.5rem 1.6rem 1.6rem; border-radius: var(--hwc-r);
  background:
    radial-gradient(ellipse 45% 70% at 50% 0%, rgba(255, 211, 107, .14), transparent 70%),
    radial-gradient(ellipse 35% 60% at 100% 100%, rgba(255, 77, 109, .14), transparent 70%),
    var(--hwc-card);
  border: 1px solid var(--hwc-line);
}
.hwc-lb__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hwc-lb__head h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.hwc-lb__head p { margin: .25rem 0 0; color: var(--hwc-muted); font-size: .9rem; }
.hwc-lb__head p b { color: var(--hwc-text); }
.hwc-lb__me {
  display: flex; align-items: baseline; gap: .55rem; padding: .7rem 1.1rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 211, 107, .16), rgba(79, 195, 255, .08));
  border: 1px solid rgba(79, 195, 255, .4);
}
.hwc-lb__me span { color: var(--hwc-muted); font-size: .85rem; }
.hwc-lb__me b { font-size: 1.35rem; font-weight: 800; color: var(--hwc-gold); }
.hwc-lb__me em { font-style: normal; color: var(--hwc-text); font-size: .9rem; }
.hwc-lb__me.is-empty b { font-size: 1rem; }

/* п'єдестал */
.hwc-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; max-width: 760px; margin: 0 auto; }
.hwc-pod {
  --ring: #c9c9d1; --base-h: 90px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  color: var(--hwc-text); text-decoration: none; min-width: 0;
}
.hwc-pod--1 { --ring: #ffd36b; --base-h: 130px; }
.hwc-pod--2 { --ring: #c9c9d1; --base-h: 95px; }
.hwc-pod--3 { --ring: #d0834a; --base-h: 70px; }
.hwc-pod__ava { position: relative; margin-bottom: .35rem; }
.hwc-ava { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; background: #241c2a; }
.hwc-pod--1 .hwc-ava { width: 96px; height: 96px; }
.hwc-pod .hwc-ava { box-shadow: 0 0 0 3px var(--ring), 0 0 26px color-mix(in srgb, var(--ring) 55%, transparent); transition: transform .25s; }
.hwc-pod:hover .hwc-ava { transform: translateY(-4px) scale(1.03); }
.hwc-ava--ph { display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: var(--hwc-muted); }
.hwc-pod__crown {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%) rotate(-8deg); width: 38px; height: 38px;
  color: #ffd36b; filter: drop-shadow(0 0 10px rgba(255, 211, 107, .7)); animation: hwc-sway 3s ease-in-out infinite;
}
.hwc-pod__crown svg { width: 100%; height: 100%; fill: currentColor; }
.hwc-pod__place {
  position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: .85rem; color: #06131f;
  background: var(--ring); border: 3px solid var(--hwc-card);
}
.hwc-pod__name { font-weight: 800; font-size: 1rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwc-pod__days { color: var(--hwc-muted); font-size: .9rem; }
.hwc-pod__days b { color: var(--hwc-text); font-size: 1.25rem; font-weight: 800; }
.hwc-pod--1 .hwc-pod__days b { color: var(--hwc-gold); }
.hwc-pod__fire { font-size: .78rem; font-weight: 700; color: #ffd36b; padding: .15rem .55rem; border-radius: 99px; background: rgba(79, 195, 255, .14); }
.hwc-pod__fire.is-off { background: none; }
.hwc-pod__base {
  width: 100%; height: var(--base-h); margin-top: .5rem; border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ring) 30%, transparent), rgba(255, 255, 255, .02)),
    rgba(255, 255, 255, .03);
  border: 1px solid color-mix(in srgb, var(--ring) 40%, transparent); border-bottom: 0;
  position: relative; overflow: hidden;
}
.hwc-pod__base::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 8px, transparent 8px 22px);
}

/* список 4–10 */
.hwc-lb__list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.2rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.hwc-lrow {
  display: grid; grid-template-columns: 34px 38px minmax(0, 1fr) minmax(80px, 160px) 60px 90px; gap: .8rem; align-items: center;
  padding: .55rem .9rem; border-radius: 12px; text-decoration: none; color: var(--hwc-text);
  background: rgba(255, 255, 255, .03); border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.hwc-lrow:hover { border-color: rgba(79, 195, 255, .45); background: rgba(79, 195, 255, .06); }
.hwc-lrow__place { font-weight: 800; color: var(--hwc-muted); text-align: center; }
.hwc-ava.hwc-ava--sm { width: 38px; height: 38px; font-size: 1rem; }
.hwc-ava--ph { background: rgba(255, 255, 255, .07); }
.hwc-lrow__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwc-lrow__bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.hwc-lrow__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff4d6d, #4fc3ff); }
.hwc-lrow__fire { font-size: .8rem; font-weight: 700; color: #ffd36b; }
.hwc-lrow__days { text-align: right; color: var(--hwc-muted); font-size: .85rem; }
.hwc-lrow__days b { color: var(--hwc-text); font-size: 1rem; }

.hwc-lb__empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.5rem; color: var(--hwc-muted); }
.hwc-lb__empty img { width: 70px; opacity: .85; margin-bottom: .4rem; }
.hwc-lb__empty b { color: var(--hwc-text); font-size: 1.05rem; }

@media (max-width: 768px) {
  .hwc-podium { gap: .5rem; }
  .hwc-ava { width: 56px; height: 56px; }
  .hwc-pod--1 .hwc-ava { width: 70px; height: 70px; }
  .hwc-pod { --base-h: 50px; }
  .hwc-pod--1 { --base-h: 80px; }
  .hwc-pod--3 { --base-h: 35px; }
  .hwc-lrow { grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: .6rem; padding: .5rem .7rem; }
  .hwc-ava.hwc-ava--sm { width: 34px; height: 34px; }
  .hwc-lb { padding: 1.2rem 1rem; }
  .hwc-lrow__bar, .hwc-lrow__fire { display: none; }
}

/* ===================== Адмін: гравці, Discord ===================== */
.hwc-psearch { display: flex; gap: .6rem; margin-bottom: 1rem; }
.hwc-psearch input {
  flex: 1; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06);
  background: var(--input-form, #211a26); color: var(--text-default, #f2ebe1); padding: 0 1rem; font-size: .95rem; min-width: 0;
}
.hwc-pcard { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 14px; background: var(--card, #18131c); margin-bottom: .8rem; }
.hwc-pcard .hwc-ava { width: 48px; height: 48px; }
.hwc-pcard div { flex: 1; display: flex; flex-direction: column; }
.hwc-pcard span { color: var(--text-secondary, #8a8090); font-size: .82rem; }
.hwc-pcard a { text-decoration: none; }
.hwc-pitem { display: inline-flex; align-items: center; gap: .5rem; }
.hwc-pitem img { width: 30px; height: 30px; object-fit: contain; }
.hwc-subh { margin: 1.2rem 0 .6rem; font-size: 1rem; }

/* =====================================================================
   ДИЗАЙН v2 — атмосферніший календар
   ===================================================================== */

/* ---------- Шапка ---------- */
.hwc-hero { padding: 2.25rem 2.5rem; min-height: 210px; isolation: isolate; }
.hwc-hero::before { /* туман знизу */
  content: ''; position: absolute; inset: auto 0 0 0; height: 60%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 30% 120%, rgba(255, 77, 109, .18), transparent 70%),
              radial-gradient(ellipse 50% 90% at 75% 130%, rgba(79, 195, 255, .16), transparent 70%);
}
.hwc-hero::after { /* кажани */
  content: ''; position: absolute; top: 18px; left: 46%; width: 140px; height: 60px; z-index: 0; pointer-events: none; opacity: .22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 60'%3E%3Cg fill='%23f2ebe1'%3E%3Cpath d='M20 22c-4-6-12-6-16-2 5 0 7 3 8 6 2-2 5-2 8-4zm0 0c4-6 12-6 16-2-5 0-7 3-8 6-2-2-5-2-8-4z'/%3E%3Cpath d='M78 10c-3-4-9-4-12-1 4 0 5 2 6 4 1-1 4-1 6-3zm0 0c3-4 9-4 12-1-4 0-5 2-6 4-1-1-4-1-6-3z'/%3E%3Cpath d='M118 40c-4-5-10-5-13-2 4 0 6 3 7 5 1-1 4-2 6-3zm0 0c3-5 10-5 13-2-4 0-6 3-7 5-1-1-4-2-6-3z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  animation: hwc-bats 6s ease-in-out infinite;
}
@keyframes hwc-bats { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -6px); } }
.hwc-title { font-size: 2.6rem; letter-spacing: -.01em; background: linear-gradient(180deg, #fff 30%, #cdeeff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hwc-hero__pumpkin { width: 150px; right: 10px; bottom: -14px; }
.hwc-hero__side { margin-right: 140px; }
.hwc-timer__value { font-size: 2.4rem; letter-spacing: .02em; }
.hwc-stats-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hwc-chip {
  display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .85rem 0 .6rem; border-radius: 99px;
  font-size: .85rem; color: var(--hwc-muted); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
}
.hwc-chip i { font-style: normal; font-size: 1rem; }
.hwc-chip b { color: var(--hwc-text); }
.hwc-btn--claim:disabled { background: rgba(61, 220, 132, .1); color: #7fe8ad; border: 1px solid rgba(61, 220, 132, .25); }
.hwc-btn--claim:disabled::before { content: '✓'; font-weight: 900; }
.hwc-btn--claim:not(:disabled) { box-shadow: 0 8px 30px rgba(79, 195, 255, .35); animation: hwc-cta 2.4s ease-in-out infinite; }
@keyframes hwc-cta { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ---------- Серія ---------- */
.hwc-streak { padding: 1.4rem 1.6rem 1.3rem; background: radial-gradient(ellipse 40% 120% at 0% 0%, rgba(79, 195, 255, .08), transparent 70%), var(--hwc-card); }
.hwc-streak__head { align-items: center; margin-bottom: 1.6rem; }
.hwc-streak__title { display: flex; align-items: center; gap: .75rem; }
.hwc-streak__flame { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(79, 195, 255, .14); }
.hwc-streak__title h3 { font-size: 1.15rem; }
.hwc-streak__title h3 b { color: var(--hwc-gold); }
.hwc-streak__title span { color: var(--hwc-muted); font-size: .82rem; }
.hwc-streak__next { font-size: .88rem; color: var(--hwc-muted); padding: .45rem .9rem; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.hwc-streak__next b { color: var(--hwc-text); }
.hwc-streak__next.is-done { color: #7fe8ad; }
.hwc-track { height: 10px; margin: 0 72px 4.6rem 24px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.hwc-track__fill { min-width: 20px; }
.hwc-track__head {
  position: absolute; right: -14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 900; color: #06131f;
  background: radial-gradient(circle at 35% 30%, #ffd9a8, var(--hwc-orange)); box-shadow: 0 0 0 4px rgba(79, 195, 255, .2), 0 0 20px rgba(79, 195, 255, .7);
}
.hwc-goal__dot {
  position: relative; width: 52px; height: 52px; padding: 7px; background: #1b1520; border: 2px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.hwc-goal__dot img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.85) brightness(.75); transition: filter .3s; }
.hwc-goal.is-next .hwc-goal__dot { border-color: var(--hwc-orange); box-shadow: 0 0 0 4px rgba(79, 195, 255, .12), 0 0 22px rgba(79, 195, 255, .35); }
.hwc-goal.is-next .hwc-goal__dot img { filter: none; }
.hwc-goal.is-done .hwc-goal__dot { background: #0f2235; border-color: var(--hwc-orange); }
.hwc-goal.is-done .hwc-goal__dot img { filter: none; }
.hwc-goal__ok { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #06131f; background: var(--hwc-orange); border: 2px solid var(--hwc-card); }
.hwc-goal__label { top: 60px; }
.hwc-goal__label b { font-size: .82rem; max-width: 160px; }
.hwc-goal__label span { font-size: .74rem; color: var(--hwc-muted); }
.hwc-goal.is-next .hwc-goal__label b { color: var(--hwc-gold); }

/* ---------- Комірки ---------- */
.hwc-grid { gap: .8rem; }
.hwc-face { border-radius: 16px; }
/* закриті: «запечатані» з павутинкою в куті */
.hwc-cell.is-locked .hwc-face--front { opacity: 1; background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Cpath d='M60 0L20 60M60 0L0 30M60 0L0 0M60 0L40 60M60 0L60 60'/%3E%3Cpath d='M50 0Q52 8 60 10M38 0Q42 18 60 22M26 0Q32 28 60 34M14 0Q22 38 60 46'/%3E%3C/svg%3E") no-repeat right top / 46% auto,
    linear-gradient(170deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, .18)), var(--hwc-card); }
.hwc-cell.is-locked .hwc-num { font-size: 2.2rem; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28); }
.hwc-cell.is-locked .hwc-month { color: rgba(255, 255, 255, .28); }
.hwc-cell__when { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; padding: 3px 9px; border-radius: 99px; font-size: .7rem; color: var(--hwc-muted); background: rgba(255, 255, 255, .04); }
.hwc-cell__when svg { width: 11px; height: 11px; fill: currentColor; opacity: .7; }
.hwc-cell.is-locked:hover .hwc-face--front { border-color: rgba(255, 255, 255, .14); }
/* завтра */
.hwc-cell.is-tomorrow .hwc-face--front { border: 1px dashed rgba(79, 195, 255, .55); }
.hwc-cell.is-tomorrow .hwc-num { -webkit-text-stroke-color: rgba(255, 211, 107, .7); }
.hwc-cell.is-tomorrow .hwc-cell__when { color: var(--hwc-gold); background: rgba(79, 195, 255, .12); }
/* сьогодні */
.hwc-cell.is-today .hwc-face--front { background: radial-gradient(circle at 50% 35%, rgba(79, 195, 255, .28), transparent 70%), var(--hwc-card); }
.hwc-cell.is-today .hwc-num { font-size: 2.2rem; }
.hwc-cell.is-today .hwc-cell__icon { width: 46px; height: 46px; }
.hwc-cell__cta { margin-top: .3rem; padding: 4px 12px; border-radius: 99px; font-size: .74rem; font-weight: 800; color: #06131f; background: linear-gradient(135deg, var(--hwc-gold), var(--hwc-orange)); }
/* отримані: колір рідкісності приза */
.hwc-cell { --rc: #ffd36b; }
.hwc-cell.is-claimed .hwc-face--back {
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 68%),
              linear-gradient(180deg, color-mix(in srgb, var(--rc) 10%, var(--hwc-card)), var(--hwc-card));
  border-color: color-mix(in srgb, var(--rc) 45%, transparent);
  justify-content: center; gap: .2rem;
}
.hwc-cell.is-claimed .hwc-face--back::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--rc); box-shadow: 0 0 14px var(--rc); }
.hwc-reward-img { width: 64%; max-height: 54%; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px color-mix(in srgb, var(--rc) 40%, transparent)); transition: transform .25s; }
.hwc-cell.is-claimed:hover .hwc-reward-img { transform: scale(1.06) rotate(-2deg); }
.hwc-reward-name { color: var(--rc); font-size: .82rem; }
.hwc-cell__date { position: absolute; top: 9px; right: 10px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hwc-muted); }
.hwc-check { width: 22px; height: 22px; box-shadow: 0 0 10px rgba(79, 195, 255, .6); }
/* пропущені */
.hwc-cell.is-missed .hwc-face--front { opacity: .45; }
/* фінальний приз — на дві колонки */
.hwc-cell.is-special { grid-column: span 2; aspect-ratio: auto; }
.hwc-cell.is-special .hwc-face { border: 1px solid rgba(255, 77, 109, .6); }
.hwc-cell.is-special .hwc-face--front {
  background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(255, 77, 109, .35), transparent 70%),
              radial-gradient(ellipse 50% 60% at 50% 100%, rgba(79, 195, 255, .18), transparent 70%), #0e1424;
  box-shadow: inset 0 0 40px rgba(255, 77, 109, .25);
}
.hwc-cell.is-special .hwc-face--front::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, #ff8fa3, transparent 35%, transparent 65%, #ffd36b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* «дихаюче» сяйво: анімується лише opacity — без перемальовування кожного кадру */
.hwc-cell.is-special::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 34px rgba(255, 77, 109, .55); opacity: .35; will-change: opacity;
  animation: hwc-pulse 3s ease-in-out infinite;
}
.hwc-cell.is-special .hwc-num { -webkit-text-stroke: 0; color: #e7dcff; font-size: 2.6rem; text-shadow: 0 0 24px rgba(255, 77, 109, .8); }
.hwc-cell.is-special .hwc-month { color: #b9a5e8; }
.hwc-cell__mystery { font-size: 2.2rem; font-weight: 900; color: #fff; text-shadow: 0 0 18px #ff8fa3; animation: hwc-sway 3s ease-in-out infinite; }
.hwc-cell.is-special .hwc-badge { left: 50%; right: auto; transform: translateX(-50%); top: 10px; background: linear-gradient(90deg, #ff4d6d, #ff7a92); color: #fff; letter-spacing: .06em; padding: 3px 10px; }

@media (max-width: 1100px) { .hwc-cell.is-special { grid-column: span 2; } }
@media (max-width: 768px) {
  .hwc-hero { padding: 1.5rem; }
  .hwc-title { font-size: 1.9rem; }
  .hwc-hero__side { margin-right: 0; }
  .hwc-hero__pumpkin { width: 86px; }
  .hwc-hero::after { display: none; }
  .hwc-streak__head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .hwc-track { margin: 0 34px 4.4rem 14px; }
  .hwc-goal__dot { width: 40px; height: 40px; padding: 5px; }
  .hwc-goal__label { top: 46px; }
  .hwc-goal__label span { display: none; }
  .hwc-cell.is-locked .hwc-num, .hwc-cell.is-today .hwc-num { font-size: 1.6rem; }
  .hwc-cell__when { font-size: .62rem; padding: 2px 7px; }
  .hwc-cell.is-special { grid-column: span 3; aspect-ratio: auto; min-height: 150px; }
}
.hwc-cell.is-special .hwc-face--front { padding-top: 2.2rem; }
@media (max-width: 768px) {
  .hwc-hero__pumpkin { width: 64px; top: 10px; right: 10px; bottom: auto; opacity: .9; }
  .hwc-hero__text { padding-right: 52px; }
  .hwc-cell__date { display: none; }
  .hwc-reward-img { width: 58%; }
}

/* ---------- v2.1: стриманіший, «дорожчий» вигляд ---------- */
.hwc-hero::after { display: none; } /* без мультяшних кажанів */
.hwc-hero {
  background:
    radial-gradient(ellipse 45% 130% at 88% 60%, rgba(79, 195, 255, .20), transparent 65%),
    radial-gradient(ellipse 35% 90% at 100% 0%, rgba(255, 77, 109, .14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%),
    var(--hwc-card);
}
.hwc-hero::before { height: 45%; opacity: .7; }
.hwc-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .18em; }
.hwc-kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.hwc-title { font-size: 2.5rem; background: linear-gradient(180deg, #fff 45%, #d6f0ff); -webkit-background-clip: text; background-clip: text; }
.hwc-sub { max-width: 560px; }

/* лічильники */
.hwc-stats-row { gap: .4rem; margin-top: 1.25rem; }
.hwc-chip { height: 32px; padding: 0 .75rem; gap: .5rem; font-size: .8rem; border-radius: 10px; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .06); }
.hwc-chip svg { width: 15px; height: 15px; fill: var(--hwc-orange); opacity: .9; }
.hwc-chip span { color: var(--hwc-muted); }
.hwc-chip b { font-variant-numeric: tabular-nums; font-weight: 700; }
.hwc-chip em { font-style: normal; color: var(--hwc-muted); font-weight: 500; }

/* таймер сегментами */
.hwc-timer { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.hwc-timer__label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hwc-timer__value { display: flex; align-items: flex-start; gap: .3rem; font-size: 1rem; text-shadow: none; color: var(--hwc-text); }
.hwc-timer__value > i { font-style: normal; font-size: 1.4rem; font-weight: 800; color: rgba(255, 211, 107, .55); line-height: 46px; }
.hwc-t { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.hwc-t b {
  min-width: 52px; height: 48px; padding: 0 .4rem; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.65rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #e6f6ff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 211, 107, .18); box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .3);
}
.hwc-t small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hwc-muted); }

/* кнопка «Подарунок отримано» — спокійна, без кричущого зеленого */
.hwc-btn--claim:disabled { height: 46px; min-width: 230px; font-size: .9rem; background: rgba(255, 255, 255, .04); color: #9fdcb8; border: 1px solid rgba(61, 220, 132, .22); }
.hwc-btn--claim:disabled::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #3ddc84 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2312301f' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* серія */
.hwc-streak__flame { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, rgba(79, 195, 255, .22), rgba(79, 195, 255, .06)); border: 1px solid rgba(79, 195, 255, .25); }
.hwc-streak__flame svg { width: 20px; height: 20px; fill: var(--hwc-orange); filter: drop-shadow(0 0 6px rgba(79, 195, 255, .6)); }
.hwc-streak__title h3 { font-weight: 700; }
.hwc-streak__next { border-radius: 10px; font-size: .82rem; }
.hwc-goal__dot { border-width: 1px; }
.hwc-track { height: 8px; }

@media (max-width: 768px) {
  .hwc-timer { align-items: flex-start; }
  .hwc-t b { min-width: 46px; height: 42px; font-size: 1.4rem; }
  .hwc-timer__value > i { line-height: 40px; }
}

/* ---------- v2.2: прибрано кольорову смужку внизу отриманих комірок ---------- */
.hwc-cell.is-claimed .hwc-face--back::after { display: none; }

/* ===== зимова тема — базова (Крижана зима) ===== */
.hwc, .hwc-reveal, .hwc-adm { --hwc-card: #121826; }
.hwc-hero { background:
    radial-gradient(ellipse 45% 130% at 88% 60%, rgba(79, 195, 255, .20), transparent 65%),
    radial-gradient(ellipse 35% 90% at 100% 0%, rgba(255, 77, 109, .12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%), #111827; }
.hwc-hero__pumpkin { animation: hwc-float 4s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(79, 195, 255, .45)); }
@keyframes hwc-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.hwc-hero .xm-snow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 90px 80px, #fff, transparent),
    radial-gradient(2px 2px at 160px 20px, #fff, transparent), radial-gradient(1px 1px at 230px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 300px 60px, #fff, transparent), radial-gradient(2px 2px at 370px 140px, #fff, transparent);
  background-size: 400px 180px; animation: xm-snow 9s linear infinite; }
@keyframes xm-snow { to { background-position: 0 180px; } }
.hwc-hero::before { background: radial-gradient(ellipse 70% 100% at 50% 140%, rgba(214, 240, 255, .16), transparent 70%); height: 50%; }
.hwc-cell.is-locked .hwc-face--front { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23d6f0ff' stroke-opacity='.10' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M20 4v32M6 12l28 16M6 28l28-16M20 4l-3 4M20 4l3 4M20 36l-3-4M20 36l3-4'/%3E%3C/svg%3E") no-repeat right 8px top 8px / 34% auto,
  linear-gradient(170deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .18)), var(--hwc-card); }
.hwc-cell.is-claimed .hwc-face--back { background:
  radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 68%),
  linear-gradient(180deg, color-mix(in srgb, var(--rc) 9%, #121826), #121826); }
.hwc-cell.is-special .hwc-face--front { background:
  radial-gradient(ellipse 60% 80% at 50% 40%, rgba(255, 77, 109, .30), transparent 70%),
  radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 211, 107, .18), transparent 70%), #1a0f1a; }
.hwc-cell.is-special .hwc-num { color: #ffe3e8; text-shadow: 0 0 24px rgba(255, 77, 109, .8); }
.hwc-cell.is-special .hwc-month { color: #ffb3c0; }
.hwc-cell__mystery { text-shadow: 0 0 18px #ff8fa3; }
.hwc-track__fill { background: linear-gradient(90deg, #ff4d6d, #ffd36b 55%, #4fc3ff); }
.hwc-btn { color: #06131f; }

/* ======================= ТЕМА: Класичне Різдво (html.wtheme-classic) ======================= */
/* ===== Варіант B: «Класичне Різдво» — зелений, червоний, золото, комірки-подарунки ===== */
html.wtheme-classic .hwc, html.wtheme-classic .hwc-reveal, html.wtheme-classic .hwc-adm { --hwc-card: #132018; --hwc-orange: #e8b341; --hwc-gold: #f6d77a; --hwc-purple: #c8283c; --hwc-line: rgba(246, 215, 122, .12); }
html.wtheme-classic .hwc-hero { background: radial-gradient(ellipse 50% 130% at 88% 60%, rgba(232, 179, 65, .22), transparent 65%), linear-gradient(160deg, #183022, #101b14) !important; border-color: rgba(246, 215, 122, .18); padding-top: 3rem; }
html.wtheme-classic .hwc-hero .xm-snow { opacity: .35; }
/* гірлянда зверху */
html.wtheme-classic .hwc-hero::before { inset: 0 0 auto 0; height: 34px; opacity: 1; background:
  radial-gradient(circle at 20px 18px, #ff4d4d 5px, rgba(255,77,77,.5) 7px, transparent 12px),
  radial-gradient(circle at 60px 22px, #ffd84d 5px, rgba(255,216,77,.5) 7px, transparent 12px),
  radial-gradient(circle at 100px 18px, #4dff88 5px, rgba(77,255,136,.45) 7px, transparent 12px),
  radial-gradient(circle at 140px 22px, #4dc3ff 5px, rgba(77,195,255,.5) 7px, transparent 12px);
  background-size: 160px 34px; animation: xmb-blink 2.4s steps(2) infinite; }
@keyframes xmb-blink { 50% { filter: hue-rotate(90deg) brightness(1.2); } }
html.wtheme-classic .hwc-hero::after { display: block !important; content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: none; border-top: 0;
  -webkit-mask: none; animation: none; opacity: .35;
  background-image: radial-gradient(ellipse 40px 14px at 40px -2px, transparent 12px, rgba(255,255,255,.55) 13px, transparent 14px); background-size: 80px 26px; }
html.wtheme-classic .hwc-kicker { color: #f6d77a !important; }
html.wtheme-classic .hwc-title { background: linear-gradient(180deg, #fff 40%, #f6d77a) !important; -webkit-background-clip: text !important; background-clip: text !important; font-family: Georgia, 'Times New Roman', serif; font-style: italic; letter-spacing: 0; }
html.wtheme-classic .hwc-chip svg { fill: #f6d77a !important; }
html.wtheme-classic .hwc-btn { background: linear-gradient(135deg, #f6d77a, #d9982a) !important; color: #2a1606 !important; }
html.wtheme-classic .hwc-t b { color: #fff4d6 !important; border-color: rgba(246, 215, 122, .3) !important; background: linear-gradient(180deg, rgba(200, 40, 60, .35), rgba(200, 40, 60, .12)) !important; }
html.wtheme-classic .hwc-streak { background: #132018 !important; border-color: rgba(246, 215, 122, .12); }
html.wtheme-classic .hwc-track__fill { background: repeating-linear-gradient(45deg, #c8283c 0 10px, #fff 10px 20px) !important; box-shadow: 0 0 12px rgba(200, 40, 60, .5) !important; }
html.wtheme-classic .hwc-track__head { background: radial-gradient(circle at 35% 30%, #fff3c4, #e8b341) !important; color: #2a1606 !important; }
html.wtheme-classic .hwc-streak__flame { background: rgba(200, 40, 60, .2) !important; border-color: rgba(200, 40, 60, .4) !important; }
html.wtheme-classic .hwc-streak__flame svg { fill: #ff6b6b !important; }
/* закриті комірки — запаковані подарунки */
html.wtheme-classic .hwc-cell.is-locked .hwc-face--front, html.wtheme-classic .hwc-cell.is-locked:nth-child(odd) .hwc-face--front { border: 0 !important; background:
  linear-gradient(90deg, transparent 45%, #f6d77a 45%, #d9a636 55%, transparent 55%),
  linear-gradient(180deg, transparent 45%, #f6d77a 45%, #d9a636 55%, transparent 55%),
  linear-gradient(160deg, #b8222f, #7d1220) !important; }
html.wtheme-classic .hwc-cell.is-locked:nth-child(even) .hwc-face--front { background:
  linear-gradient(90deg, transparent 45%, #f3f3f3 45%, #cfcfcf 55%, transparent 55%),
  linear-gradient(180deg, transparent 45%, #f3f3f3 45%, #cfcfcf 55%, transparent 55%),
  linear-gradient(160deg, #1f6b3a, #124226) !important; }
html.wtheme-classic .hwc-cell.is-locked .hwc-num { -webkit-text-stroke: 0 !important; color: #fff !important; font-size: 2.1rem !important; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 14px rgba(0,0,0,.5);
  background: rgba(0, 0, 0, .28); border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; backdrop-filter: blur(2px); }
html.wtheme-classic .hwc-cell.is-locked .hwc-month { color: #fff !important; opacity: .85; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
html.wtheme-classic .hwc-cell.is-locked .hwc-cell__when { background: rgba(0, 0, 0, .45) !important; color: #fff !important; }
html.wtheme-classic .hwc-cell.is-tomorrow .hwc-face--front { outline: 2px dashed #f6d77a; outline-offset: -6px; }
html.wtheme-classic .hwc-cell.is-today .hwc-face--front { background: radial-gradient(circle at 50% 35%, rgba(246, 215, 122, .3), transparent 70%), #183022 !important; border-color: #f6d77a !important; }
html.wtheme-classic .hwc-cell.is-today .hwc-num { color: #f6d77a !important; }
html.wtheme-classic .hwc-cell__cta { background: linear-gradient(135deg, #f6d77a, #d9982a) !important; color: #2a1606 !important; }
html.wtheme-classic .hwc-cell.is-claimed .hwc-face--back { background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 25%, transparent), transparent 68%), #132018 !important; }
html.wtheme-classic .hwc-check { background: #c8283c !important; color: #fff !important; }
html.wtheme-classic .hwc-cell.is-special .hwc-face--front { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(246, 215, 122, .35), transparent 70%), linear-gradient(160deg, #7d1220, #3a0a12) !important; }
html.wtheme-classic .hwc-cell.is-special .hwc-face { border-color: rgba(246, 215, 122, .6) !important; }
html.wtheme-classic .hwc-cell.is-special .hwc-badge { background: linear-gradient(90deg, #f6d77a, #d9982a) !important; color: #2a1606 !important; }
html.wtheme-classic .hwc-cell.is-special .hwc-num { color: #fff6d8 !important; text-shadow: 0 0 24px rgba(246, 215, 122, .8) !important; }
html.wtheme-classic .hwc-cell.is-special::after { box-shadow: 0 0 34px rgba(246, 215, 122, .45) !important; }


/* ======================= ТЕМА: Північне сяйво (html.wtheme-aurora) ======================= */
/* ===== Варіант C: «Північне сяйво» — ніч, зорі, аврора, скляні комірки ===== */
html.wtheme-aurora .hwc, html.wtheme-aurora .hwc-reveal, html.wtheme-aurora .hwc-adm { --hwc-card: rgba(255, 255, 255, .035); --hwc-orange: #2ee6b4; --hwc-gold: #9ef5dc; --hwc-purple: #8c5aff; --hwc-line: rgba(255, 255, 255, .08); }
html.wtheme-aurora .hwc-hero { min-height: 240px; background:
  radial-gradient(ellipse 60% 70% at 25% 0%, rgba(46, 230, 180, .35), transparent 70%),
  radial-gradient(ellipse 50% 80% at 60% -10%, rgba(140, 90, 255, .40), transparent 70%),
  radial-gradient(ellipse 40% 60% at 95% 10%, rgba(80, 160, 255, .30), transparent 70%),
  linear-gradient(180deg, #0c1230, #070a14) !important; border-color: rgba(255, 255, 255, .1); }
html.wtheme-aurora .hwc-hero::before { inset: 0 !important; height: auto !important; opacity: .9; background:
  radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 60%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 55% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 75%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 85% 40%, #fff, transparent), radial-gradient(1px 1px at 45% 85%, #fff, transparent) !important;
  animation: xmc-twinkle 3s ease-in-out infinite; }
@keyframes xmc-twinkle { 50% { opacity: .4; } }
html.wtheme-aurora .hwc-hero .xm-snow { display: none; }
html.wtheme-aurora .hwc-kicker { color: #9ef5dc !important; }
html.wtheme-aurora .hwc-title { background: linear-gradient(90deg, #e9fffa, #9ef5dc 40%, #c3a8ff) !important; -webkit-background-clip: text !important; background-clip: text !important; font-weight: 900; }
html.wtheme-aurora .hwc-chip { background: rgba(255,255,255,.06) !important; backdrop-filter: blur(8px); border-color: rgba(255,255,255,.12) !important; }
html.wtheme-aurora .hwc-chip svg { fill: #9ef5dc !important; }
html.wtheme-aurora .hwc-btn { background: linear-gradient(135deg, #2ee6b4, #8c5aff) !important; color: #fff !important; box-shadow: 0 8px 30px rgba(140, 90, 255, .4) !important; }
html.wtheme-aurora .hwc-t b { color: #fff !important; background: rgba(255, 255, 255, .06) !important; border-color: rgba(158, 245, 220, .25) !important; backdrop-filter: blur(8px); }
html.wtheme-aurora .hwc-timer__value > i { color: rgba(158, 245, 220, .6) !important; }
html.wtheme-aurora .hwc-hero__pumpkin { filter: drop-shadow(0 10px 30px rgba(140, 90, 255, .6)) hue-rotate(0deg) !important; }
html.wtheme-aurora .hwc-streak, html.wtheme-aurora .hwc-lb { background: rgba(255, 255, 255, .03) !important; backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .08) !important; }
html.wtheme-aurora .hwc-track__fill { background: linear-gradient(90deg, #2ee6b4, #50a0ff, #8c5aff) !important; box-shadow: 0 0 16px rgba(46, 230, 180, .5) !important; }
html.wtheme-aurora .hwc-track__head { background: radial-gradient(circle at 35% 30%, #fff, #2ee6b4) !important; color: #04221a !important; }
html.wtheme-aurora .hwc-streak__flame { background: rgba(46, 230, 180, .12) !important; border-color: rgba(46, 230, 180, .3) !important; }
html.wtheme-aurora .hwc-streak__flame svg { fill: #2ee6b4 !important; }
/* скляні комірки */
html.wtheme-aurora .hwc-face { background: rgba(255, 255, 255, .035) !important; border: 1px solid rgba(255, 255, 255, .08) !important; backdrop-filter: blur(10px); }
html.wtheme-aurora .hwc-cell.is-locked .hwc-face--front { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)) !important; }
html.wtheme-aurora .hwc-cell.is-locked .hwc-num { -webkit-text-stroke: 0 !important; background: linear-gradient(180deg, rgba(233,255,250,.55), rgba(195,168,255,.25)); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 900; }
html.wtheme-aurora .hwc-cell.is-locked .hwc-month { color: rgba(233, 255, 250, .35) !important; }
html.wtheme-aurora .hwc-cell.is-tomorrow .hwc-face--front { border: 1px solid rgba(46, 230, 180, .55) !important; box-shadow: 0 0 22px rgba(46, 230, 180, .18) inset; }
html.wtheme-aurora .hwc-cell.is-tomorrow .hwc-cell__when { color: #9ef5dc !important; background: rgba(46, 230, 180, .12) !important; }
html.wtheme-aurora .hwc-cell.is-today .hwc-face--front { background: radial-gradient(circle at 50% 30%, rgba(140, 90, 255, .35), transparent 70%), rgba(255,255,255,.04) !important; border-color: #8c5aff !important; }
html.wtheme-aurora .hwc-cell.is-today .hwc-num { color: #e1d4ff !important; }
html.wtheme-aurora .hwc-cell__cta { background: linear-gradient(135deg, #2ee6b4, #8c5aff) !important; color: #fff !important; }
html.wtheme-aurora .hwc-check { background: #2ee6b4 !important; color: #04221a !important; }
html.wtheme-aurora .hwc-cell.is-claimed .hwc-face--back { background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 68%), rgba(255,255,255,.04) !important; }
html.wtheme-aurora .hwc-cell.is-special .hwc-face--front { background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(46, 230, 180, .35), transparent 70%), radial-gradient(ellipse 60% 80% at 50% 100%, rgba(140, 90, 255, .45), transparent 70%), #0b0f26 !important; }
html.wtheme-aurora .hwc-cell.is-special .hwc-face { border-color: rgba(158, 245, 220, .45) !important; }
html.wtheme-aurora .hwc-cell.is-special .hwc-badge { background: linear-gradient(90deg, #2ee6b4, #8c5aff) !important; color: #fff !important; }
html.wtheme-aurora .hwc-cell.is-special .hwc-num { color: #fff !important; text-shadow: 0 0 24px rgba(46, 230, 180, .8) !important; }
html.wtheme-aurora .hwc-cell.is-special::after { box-shadow: 0 0 40px rgba(140, 90, 255, .5) !important; }


html.wtheme-aurora .hwc-adm { --hwc-card: #0e1328; }

/* ======================= Адмін-частина у стилі Neo / інвентаря =======================
   Нейтральні кольори шаблону (var(--card), var(--button), var(--span)…) — тема календаря сюди не лізе. */
.hwc-adminbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 10px; padding: .75rem .9rem; border-radius: var(--br-16, 16px); background: var(--card, #121826); }
.hwc-adminbar__status { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.hwc-adminbar__status b { color: var(--text-default, #fff); font-weight: 600; font-size: .92rem; }
.hwc-adminbar__status small { color: var(--text-secondary, #8b97ad); font-size: .8rem; }
.hwc-adminbar__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green, #2ecc71); }
.hwc-adminbar.is-maint .hwc-adminbar__dot { background: var(--red, #ff5b5b); }
.hwc-adminbar__actions { display: flex; gap: .3rem; flex-wrap: wrap; }

/* кнопки адмінки = кнопки Neo (.button / .btn-green / .btn-red з інвентаря) */
html .hwc-adminbar .hwc-btn, html .hwc-adm .hwc-btn {
  height: var(--input-height, 41px) !important; padding: 0 1rem !important; border-radius: var(--br-8, 8px) !important;
  font-weight: var(--font-weight-5, 500) !important; font-size: var(--font-size-m, .9rem) !important; letter-spacing: 0 !important;
  background: var(--button, #1c2536) !important; color: var(--text-custom, #c9bfb4) !important;
  border: 1px solid transparent !important; box-shadow: none !important; filter: none !important; text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem; transition: var(--transition-duration, .2s); }
html .hwc-adminbar .hwc-btn:hover, html .hwc-adm .hwc-btn:hover { background: var(--button-hover, #243049) !important; color: var(--text-default, #fff) !important; }
html .hwc-adminbar .hwc-btn svg, html .hwc-adm .hwc-btn svg { width: 1rem; height: 1rem; fill: currentColor; }
html .hwc-adm .hwc-btn:not(.hwc-btn--ghost):not(.hwc-btn--danger), html .hwc-adminbar .hwc-btn--ok {
  background: color-mix(in srgb, var(--green, #2ecc71) 10%, transparent) !important; color: var(--green, #2ecc71) !important; }
html .hwc-adm .hwc-btn:not(.hwc-btn--ghost):not(.hwc-btn--danger):hover, html .hwc-adminbar .hwc-btn--ok:hover {
  background: color-mix(in srgb, var(--green, #2ecc71) 20%, transparent) !important; border-color: color-mix(in srgb, var(--green, #2ecc71) 20%, transparent) !important; }
html .hwc-adminbar .hwc-btn--danger, html .hwc-adm .hwc-btn--danger {
  background: color-mix(in srgb, var(--red, #ff5b5b) 10%, transparent) !important; color: var(--red, #ff5b5b) !important; }
html .hwc-adminbar .hwc-btn--danger:hover, html .hwc-adm .hwc-btn--danger:hover {
  background: color-mix(in srgb, var(--red, #ff5b5b) 20%, transparent) !important; border-color: color-mix(in srgb, var(--red, #ff5b5b) 20%, transparent) !important; }
html .hwc-adminbar .hwc-btn[data-sure] { background: var(--red, #ff5b5b) !important; color: #fff !important; }
html .hwc-adminbar .hwc-btn:disabled, html .hwc-adm .hwc-btn:disabled { opacity: .5; cursor: default; }
html .hwc-adm .hwc-btn--sm { height: 34px !important; padding: 0 .8rem !important; font-size: var(--font-size-s, .82rem) !important; }

/* сторінка налаштувань /winter/?admin — без модалки */
.hwc.is-admin-page > :not(.hwc-adminbar):not(.hwc-dberr) { display: none !important; }
.hwc-adm.is-page { position: static; inset: auto; z-index: auto; display: block; background: none; padding: 0; }
.hwc-adm.is-page .hwc-adm__box { width: 100%; height: auto; background: none; border: 0; border-radius: 0; overflow: visible; color: var(--text-default); }
.hwc-adm.is-page .hwc-adm__head { display: none; }
.hwc-adm.is-page .hwc-adm__body { overflow: visible; padding: 0; }
/* вкладки = .module-tabs інвентаря */
.hwc-adm.is-page .hwc-tabs { display: flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; margin-bottom: 10px;
  background: var(--input-form, #1a2233); border-radius: var(--br-12, 12px); }
.hwc-adm.is-page .hwc-tab { flex: 1; height: var(--input-height, 41px); border-radius: var(--br-8, 8px); border: 1px solid transparent;
  background: var(--button, #1c2536); color: var(--text-custom, #c9bfb4); font-weight: var(--font-weight-5, 500); white-space: nowrap; padding: 0 .8rem; }
.hwc-adm.is-page .hwc-tab:hover { background: var(--button-hover, #243049); color: var(--text-default, #fff); }
.hwc-adm.is-page .hwc-tab.is-active { background: var(--span-middle, rgba(79,195,255,.25)); color: var(--span, #4fc3ff); border-color: var(--span-middle, rgba(79,195,255,.25)); }
/* кожна вкладка — картка Neo */
.hwc-adm.is-page .hwc-pane.is-active { display: block; background: var(--card, #121826); border-radius: var(--br-16, 16px); padding: 20px; }
.hwc-adm .hwc-hint { color: var(--text-secondary, #8b97ad); font-size: var(--font-size-s, .85rem); }
.hwc-adm .hwc-hint b { color: var(--text-default); font-weight: 600; }
.hwc-adm .hwc-adm-day, .hwc-adm .hwc-streak-row, .hwc-adm .hwc-form { background: transparent; border: 1px solid var(--transparent-5-w, rgba(255,255,255,.05)); border-radius: var(--br-12, 12px); }
.hwc-adm .hwc-adm-days button { background: var(--button, #1c2536); border-color: transparent; border-radius: var(--br-8, 8px); }
.hwc-adm .hwc-adm-days button:hover { background: var(--button-hover, #243049); }
.hwc-adm .hwc-adm-days button.is-active { background: var(--span-middle); color: var(--span); border-color: var(--span-middle); box-shadow: none; }
.hwc-adm .hwc-field { text-align: left; font-size: var(--font-size-s, .85rem); color: var(--text-secondary, #8b97ad); }
.hwc-adm .hwc-field input:not([type=checkbox]), .hwc-adm .hwc-field select, .hwc-adm .hwc-field textarea {
  height: var(--input-height, 41px); background: var(--input-form, #1a2233); border: 1px solid transparent; border-radius: var(--br-8, 8px); color: var(--text-default); }
.hwc-adm .hwc-field textarea { height: auto; min-height: 80px; padding: .6rem .75rem; resize: vertical; font: inherit; font-size: var(--font-size-m, .9rem); }

/* «Загальне»: блоки як fieldset у налаштуваннях інвентаря */
.wset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wset__box { border: 1px solid var(--transparent-5-w, rgba(255,255,255,.05)); border-radius: var(--br-12, 12px); padding: 0 16px 16px; }
.wset__box--wide { grid-column: 1 / -1; }
.wset__title { display: flex; align-items: center; gap: .5rem; padding: 14px 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--transparent-5-w, rgba(255,255,255,.05));
  color: var(--text-custom, #c9bfb4); font-weight: var(--font-weight-6, 600); }
.wset__title small { margin-left: auto; font-weight: 500; color: var(--text-secondary, #8b97ad); }
.wset__row { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; color: var(--text-default); font-size: var(--font-size-m, .9rem); cursor: pointer; }
.wset__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.wset__actions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .7rem; }
.wset__save { display: flex; justify-content: flex-end; gap: .3rem; margin-top: 10px; }
.wset .hwc-hint { margin: .2rem 0 .7rem; }
.wset__status { display: inline-flex; align-items: center; gap: .4rem; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: color-mix(in srgb, var(--green, #2ecc71) 12%, transparent); color: var(--green, #2ecc71); }
.wset__status.is-on { background: color-mix(in srgb, var(--red, #ff5b5b) 12%, transparent); color: var(--red, #ff5b5b); }

/* екран техробіт для гравців */
.hwc-maint__box { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 3rem 1.5rem; }
.hwc-maint__box > *:not(.xm-snow) { position: relative; z-index: 1; }
.hwc-maint__icon { width: 120px; height: 120px; animation: hwc-float 4s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(79, 195, 255, .45)); margin-bottom: .4rem; }
.hwc-maint .hwc-sub { max-width: 520px; margin: 0 auto; }

@media (max-width: 768px) {
  .wset { grid-template-columns: 1fr; }
  .hwc-adm.is-page .hwc-pane.is-active { padding: 14px; }
}
@media (max-width: 600px) {
  .hwc-adminbar__actions { width: 100%; }
  .hwc-adminbar__actions .hwc-btn { flex: 1; justify-content: center; }
  .hwc-adm.is-page .hwc-tab { flex: 1 1 45%; }
}

/* мобільні: комірка «сьогодні» не налазить */
@media (max-width: 480px) {
  .hwc-cell.is-today .hwc-badge { display: none; }
  .hwc-cell.is-today .hwc-month { display: none; }
  .hwc-cell.is-today .hwc-cell__icon { width: 34px; height: 34px; }
  .hwc-cell.is-today .hwc-num { font-size: 1.5rem; line-height: 1; }
  .hwc-cell.is-today .hwc-cell__cta { padding: 3px 10px; font-size: .7rem; }
}
.hwc-adm #hwcAdmSettings { border: 0; padding: 0; margin: 0; background: none; }
.wset__row input.switch { flex: none; }
html .hwc-adminbar .hwc-btn[data-sure], html .hwc-adm .hwc-btn[data-sure] { background: var(--red, #ff5b5b) !important; color: #fff !important; }
.hwc-adm .hwc-field { align-items: stretch; text-align: left; }
@media (max-width: 600px) { .hwc-adminbar__status small { display: none; } .hwc-adminbar__actions .hwc-btn { white-space: nowrap; font-size: .85rem !important; padding: 0 .6rem !important; } }
