/* Хэллоуин 2026 (screens/halloween.js): страница ивента — тыквы, таблица, лавка, кейс, призраки. Цвета — тыквенный
   (--hw) и фиолетовый (--hw2); анимаций нет, кроме общих (update/42_PERFORMANCE.md). */
.hw { --hw: #FF9A3A; --hw2: #B57BF7; }
.hw .tp-head { background: radial-gradient(120% 80% at 80% 0%, rgba(181, 123, 247, .28), transparent 60%),
  radial-gradient(90% 70% at 10% 10%, rgba(255, 154, 58, .22), transparent 60%); border-radius: 24px; }
.hw .tp-word { color: var(--hw); text-shadow: 0 2px 18px rgba(255, 120, 30, .45); }
.hw-st b { display: grid; place-items: center; }
.hw-st-pic { width: 46px; height: 46px; object-fit: contain; }
.hw-ico { color: var(--hw); }

.hw-wallet { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px;
  padding: 12px 16px; border-radius: 20px; background: linear-gradient(120deg, rgba(255, 154, 58, .2), rgba(20, 10, 30, .75) 55%);
  border: 1.5px solid rgba(255, 154, 58, .55); }
.hw-wallet-pic { width: 56px; height: 56px; object-fit: contain; }
.hw-wallet .tx small, .hw-wallet .sc small { display: block; font-size: 12px; font-weight: 700; color: rgba(246, 243, 236, .7); }
.hw-wallet .tx b { display: block; font-size: 32px; line-height: 1; color: var(--hw); }
.hw-wallet .sc { text-align: right; }
.hw-wallet .sc b { display: block; font-size: 20px; line-height: 1.1; }

.hw-seg button.on, .hw-sub button.on { background: var(--hw); color: #1a0d05; }
.hw-sub { margin-top: 12px; }
.hw-sub button { font-size: 14px; }

.hw-table { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hw-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px;
  padding: 6px 14px 6px 10px; border-radius: 16px; background: rgba(20, 10, 30, .62); border: 1px solid rgba(255, 255, 255, .08); }
.hw-row.top1 { background: linear-gradient(90deg, rgba(255, 154, 58, .3), rgba(20, 10, 30, .62) 65%); }
.hw-row.top2 { background: linear-gradient(90deg, rgba(181, 123, 247, .26), rgba(20, 10, 30, .62) 65%); }
.hw-row.top3 { background: linear-gradient(90deg, rgba(127, 216, 190, .2), rgba(20, 10, 30, .62) 65%); }
.hw-row.me { border-color: var(--hw); box-shadow: 0 0 0 1px rgba(255, 154, 58, .4); }
.hw-place { font-size: 24px; text-align: center; color: rgba(246, 243, 236, .75); }
.hw-row.top1 .hw-place { color: var(--hw); }
.hw-name { min-width: 0; }
.hw-name b { display: block; font-size: 18px; line-height: 1.1; overflow-wrap: anywhere; }
.hw-name small { display: block; font-size: 12px; font-weight: 600; color: rgba(246, 243, 236, .6); }
.hw-val { font-size: 22px; min-width: 40px; text-align: right; color: var(--hw); }

.hw-price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border-radius: 999px; font-size: 17px;
  background: rgba(255, 154, 58, .18); color: var(--hw); white-space: nowrap; }
.hw-price.low { opacity: .55; }
.hw-pi { width: 20px; height: 20px; object-fit: contain; }
.hw-done { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--aqua, #7FD8BE); }
.hw-done svg { width: 16px; height: 16px; }
.hw-frth { display: grid; place-items: center; }
.hw-fr-th { font-size: 30px; line-height: 1; }
.tp-row.hw-got { opacity: .72; }

.hw-sheet .hw-hero { --rc: var(--hw); }
.hw-frame { margin: 8px auto 4px; padding: 14px 18px; border-radius: 18px; text-align: center; font-size: 24px;
  background: rgba(20, 10, 30, .7); border: 1.5px solid rgba(255, 154, 58, .5); }
.hw-about { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: rgba(246, 243, 236, .8); }
.hw-why { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #F29A8E; }
.hw-sheet .tp-btn { margin-top: 14px; }

.hw-case { text-align: center; margin-top: 8px; }
.hw-have { margin: 8px 0 0; text-align: center; font-size: 18px; color: rgba(246, 243, 236, .85); }
.hw-prizes { display: grid; gap: 8px; margin-top: 8px; }
.hw-pz { padding: 10px 12px; border-radius: 16px; background: rgba(20, 10, 30, .6); border: 1.5px solid var(--rc); }
.hw-pz > b { display: block; font-size: 14px; color: var(--rc); margin-bottom: 4px; }
.hw-pzr { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 4px 0; }
.hw-pzr img { width: 48px; height: 48px; object-fit: contain; }
.hw-pzr b { display: block; font-size: 15px; line-height: 1.15; }
.hw-pzr small { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 600; color: rgba(246, 243, 236, .7); }

.hw-ghosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.hw-gh { padding: 8px 6px 10px; border-radius: 16px; text-align: center; background: rgba(20, 10, 30, .6);
  border: 1px solid rgba(255, 255, 255, .08); }
.hw-gh.on { opacity: 1; border-color: rgba(140, 255, 200, .55); background: linear-gradient(180deg, rgba(120, 255, 190, .14), rgba(20, 10, 30, .6)); }
.hw-gh img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hw-gh:not(.on) img { filter: grayscale(1) brightness(.45); }   /* не пойман: рыба тенью, а подписи читаются */
.hw-gh:not(.on) b { color: rgba(246, 243, 236, .78); }
.hw-gh b { display: block; font-size: 13px; line-height: 1.15; margin-top: 4px; }
.hw-gh small { display: block; font-size: 11px; font-weight: 600; color: rgba(246, 243, 236, .6); }
/* именные призрачные: в воде — светятся, все пойманы — тенью */
.hw-gh.ph em { display: block; margin-top: 4px; font-size: 11.5px; font-style: normal; font-weight: 700; color: #B9FFE0; }
.hw-gh.ph.gone img { filter: grayscale(1) brightness(.4) !important; }
.hw-gh.ph.gone em { color: rgba(246, 243, 236, .55); }

/* кнопка «Хэллоуин» на «Рыбалке» (spots.js) */
.ev-promo.hw-pill { border-color: rgba(255, 154, 58, .75); background: linear-gradient(120deg, rgba(255, 140, 40, .35), rgba(60, 20, 80, .7)); }
.ev-promo.hw-pill .ev-promo-ico img { width: 24px; height: 24px; object-fit: contain; }

/* «Сундуки» и «Магазин»: хэллоуинский кейс (gacha.js, social.js) */
.gc-prizes { display: grid; gap: 6px; }
.gc-prize { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 14px; background: rgba(8, 20, 24, .55); border: 1.5px solid var(--rc); text-align: left; }
.gc-prize img { width: 52px; height: 52px; object-fit: contain; }
.gc-prize b { display: block; font-size: 15px; line-height: 1.15; }
.gc-prize small { display: block; font-size: 12px; line-height: 1.3; font-weight: 600; color: rgba(246, 243, 236, .72); }
.ch-card.hw-shop { border-color: rgba(255, 154, 58, .6); background: linear-gradient(160deg, rgba(255, 140, 40, .22), rgba(40, 14, 60, .75)); }
.ch-card.hw-shop .ch-title { color: #FF9A3A; }

/* миниатюры лавки: высокие картинки (поплавки, кот) — целиком в рамке */
.hw .tp-th.contain img { width: 50px; height: 50px; object-fit: contain; }

/* награды таблицы: тройке лучших — титул и рамка */
.hw-awards { display: grid; gap: 6px; margin-top: 10px; }
.hw-aw { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 16px; background: linear-gradient(90deg, rgba(255, 154, 58, .18), rgba(20, 10, 30, .6) 70%);
  border: 1px solid rgba(255, 154, 58, .4); }
.hw-aw-fr { font-size: 20px; text-align: center; white-space: nowrap; letter-spacing: -2px; }
.hw-aw b { display: block; font-size: 15px; line-height: 1.15; color: var(--hw); }
.hw-aw small { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: rgba(246, 243, 236, .78); }

/* поплавок «Глаз» в поклёвку (fishing/game.js showPeek): карточка над водой — крупное «Подсекайте!» её не закрывает */
#fishing .eye-peek { position: absolute; left: 50%; top: calc(var(--safe-top, 0px) + 130px); z-index: 4; width: max-content;
  max-width: 86%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: rgba(8, 18, 24, .82); border: 1.5px solid rgba(90, 255, 138, .65); color: #f6f3ec; pointer-events: none;
  transform: translateX(-50%); animation: eyePeekIn .25s ease-out both; }
#fishing .eye-peek img { width: 64px; height: 64px; object-fit: contain; flex: none; }
#fishing .eye-peek small { display: block; font-size: 12px; font-weight: 800; color: #5aff8a; }
#fishing .eye-peek b { display: block; font-size: 19px; line-height: 1.15; }
#fishing .eye-peek i { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: rgba(246, 243, 236, .75); }
@keyframes eyePeekIn { from { opacity: 0; } to { opacity: 1; } }
