/* ===================== HALLOWEEN CALENDAR ===================== */
.hwc, .hwc-reveal, .hwc-adm {
  --hwc-orange: #ff7a1a;
  --hwc-gold: #ffb347;
  --hwc-purple: #8b4dff;
  --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(255, 122, 26, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 80% at 100% 0%, rgba(139, 77, 255, 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;
  filter: drop-shadow(0 0 22px rgba(255, 122, 26, 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, 179, 71, 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: #1a0d02;
  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(255, 122, 26, 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: #1a0d02; box-shadow: 0 0 16px rgba(255, 122, 26, .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; }

.hwc-cell { perspective: 900px; aspect-ratio: 1 / 1.12; }
.hwc-cell__inner {
  position: relative; width: 100%; height: 100%;
  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(255, 122, 26, 0.16), rgba(139, 77, 255, 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 26px rgba(255, 122, 26, 0.35);
  cursor: pointer;
  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(139, 77, 255, .55); }
.hwc-cell.is-special .hwc-face--front { background: radial-gradient(circle at 50% 30%, rgba(139, 77, 255, 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: #1a0d02; 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(255, 122, 26, .7)); }
.hwc-reveal__burst {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 179, 71, .95) 0%, rgba(255, 122, 26, .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, 179, 71, .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(139, 77, 255, .16); border: 1px solid rgba(139, 77, 255, .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: #ff7a1a; color: #1a0d02; }
.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: #ff7a1a; box-shadow: 0 0 0 1px #ff7a1a; }

.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, #ffb347); 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% { box-shadow: inset 0 0 0 1px var(--hwc-orange), 0 0 18px rgba(255,122,26,.25); } 50% { box-shadow: inset 0 0 0 1px var(--hwc-orange), 0 0 34px rgba(255,122,26,.5); } }
@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; }
}
@media (prefers-reduced-motion: reduce) {
  .hwc-cell__inner { transition: none; }
  .hwc-hero__pumpkin, .hwc-cell.is-today .hwc-face--front, .hwc-cell.is-today .hwc-cell__icon img { animation: none; }
}

/* ---------- 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: #ff7a1a; color: #1a0d02; }
.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: #ff7a1a; }
.hwc-ccard.is-chosen::after {
  content: '✓'; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: #ff7a1a; color: #1a0d02; 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(255, 122, 26, .92); color: #1a0d02; 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: #ff7a1a; }

/* Топ */
.hwc-top td a { color: inherit; font-weight: 600; text-decoration: none; }
.hwc-top td a:hover { color: #ff7a1a; }
.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: #ffb347; color: #1a0d02; }
.hwc-place.is-top2 { background: #c9c9d1; color: #1a0d02; }
.hwc-place.is-top3 { background: #c97a3a; color: #1a0d02; }

/* ===================== Топ серій (для гравців) ===================== */
.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, 179, 71, .14), transparent 70%),
    radial-gradient(ellipse 35% 60% at 100% 100%, rgba(139, 77, 255, .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, 179, 71, .16), rgba(255, 122, 26, .08));
  border: 1px solid rgba(255, 122, 26, .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: #ffb347; --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: #ffb347; filter: drop-shadow(0 0 10px rgba(255, 179, 71, .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: #1a0d02;
  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: #ffb347; padding: .15rem .55rem; border-radius: 99px; background: rgba(255, 122, 26, .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(255, 122, 26, .45); background: rgba(255, 122, 26, .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, #8b4dff, #ff7a1a); }
.hwc-lrow__fire { font-size: .8rem; font-weight: 700; color: #ffb347; }
.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; }
