@charset "UTF-8";

@keyframes hw-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hw-modal-in {
  from { opacity: 0; transform: scale(.9) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes hw-pk-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes hw-pk-win {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-4deg); }
  70% { transform: scale(.96) rotate(2deg); }
  100% { transform: scale(1.06); }
}
@keyframes hw-pk-lose {
  0% { transform: scale(1); filter: grayscale(0); }
  100% { transform: scale(.92); filter: grayscale(.35); opacity: .75; }
}
@keyframes hw-result-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hw-entry-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hw-hidden { display: none !important; }

/* Főoldali belépő tök – ugyanolyan kinézet, mint az oszi-pk */
.hw-entry-pk,
#oszi-falevelek-front .oszi-pk-game {
  cursor: pointer;
  animation: hw-entry-bob 2.2s ease-in-out infinite;
}
.hw-entry-pk {
  position: fixed;
  left: 48vw;
  bottom: 10px;
  width: 64px;
  height: 60px;
  z-index: 9990;
  margin-left: -12px;
  color: #ffd54a;
  filter: drop-shadow(0 0 10px rgba(255,170,40,.85)) brightness(1.05);
  pointer-events: auto;
}
.hw-entry-pk svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 991.98px) {
  .hw-entry-pk { bottom: 16px; width: 56px; height: 52px; }
}

.hw-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 6, 3, .72);
  backdrop-filter: blur(3px);
  animation: hw-backdrop-in .25s ease;
}
.hw-modal {
  position: relative;
  width: min(440px, 100%);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(249,115,22,.28), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(124,45,18,.45), transparent 50%),
    linear-gradient(165deg, #2a140a 0%, #1a0c07 55%, #120805 100%);
  color: #fff7ed;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(251,146,60,.25);
  animation: hw-modal-in .28s ease;
}
.hw-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 2;
}
.hw-close:hover { background: rgba(255,255,255,.18); }

.hw-body { padding: 26px 20px 18px; text-align: center; }
.hw-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #ffedd5;
}
.hw-sub {
  margin: -6px auto 14px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,237,213,.8);
}

.hw-pumpkins {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  margin: 4px 0 12px;
  min-height: 110px;
}
.hw-pk {
  width: 92px;
  height: 86px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #3b1208;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
  transition: transform .15s ease;
  animation: hw-pk-bounce 2.2s ease-in-out infinite;
}
.hw-pk:nth-child(2) { animation-delay: .25s; width: 104px; height: 96px; }
.hw-pk:nth-child(3) { animation-delay: .5s; }
.hw-pk:hover { transform: translateY(-6px) scale(1.04); }
.hw-pk:disabled { cursor: default; }
.hw-pk svg { display: block; width: 100%; height: 100%; }
.hw-pk.win {
  animation: hw-pk-win .55s ease forwards;
  color: #1a0804;
  filter: drop-shadow(0 0 16px rgba(251,146,60,.85));
}
.hw-pk.lose { animation: hw-pk-lose .45s ease forwards; }
.hw-pk.dim { opacity: .4; filter: grayscale(.5); animation: none; }

.hw-result {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(251,146,60,.28);
  animation: hw-result-in .3s ease;
}
.hw-result.treat { border-color: rgba(74,222,128,.45); background: rgba(22,101,52,.25); }
.hw-result.trick { border-color: rgba(248,113,113,.4); background: rgba(127,29,29,.28); }
.hw-result-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.hw-result-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,237,213,.9);
}
.hw-code {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.35);
  border: 1px dashed rgba(251,146,60,.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fdba74;
  font-size: 15px;
}
.hw-copy {
  border: none;
  background: rgba(249,115,22,.25);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.hw-meta {
  margin-top: 8px;
  font-size: 11px;
  opacity: .75;
}

.hw-actions { margin-top: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hw-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #c2410c);
}
.hw-btn-ghost {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
}
.hw-status {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,237,213,.75);
  min-height: 0;
}

@media (max-width: 480px) {
  .hw-pk { width: 76px; height: 72px; }
  .hw-pk:nth-child(2) { width: 86px; height: 80px; }
  .hw-title { font-size: 20px; }
}
