/* ==========================================================================
   Szerencsekerék — a téma tokenjeiből, új szín és betűtípus nélkül.
   Rétegek: fejléc 20 · lebegő gomb 25 · sütibanner 30 · <dialog> top layer.
   ========================================================================== */

/* Lebegő gomb ------------------------------------------------------------ */
.efi-wheel-fab{
  position:fixed;right:var(--gutter);z-index:25;
  bottom:calc(20px + var(--efi-consent-h, 0px));
  padding:9px 26px 9px 9px;gap:12px;
  box-shadow:var(--shadow-raised);
  transition:bottom var(--dur-base) var(--ease-standard),
             background var(--dur-base) var(--ease-standard),
             transform var(--dur-fast) var(--ease-standard),
             box-shadow var(--dur-base) var(--ease-standard),
             opacity var(--dur-slow) var(--ease-out-soft);
}
.efi-wheel-fab:hover{box-shadow:var(--shadow-raised)}
.efi-wheel-fab.is-arrived{transition-duration:var(--dur-base),var(--dur-base),var(--dur-slow),var(--dur-base),var(--dur-slow)}
.efi-wheel-fab[hidden]{display:none}
.efi-wheel-fab::after{
  content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 0 0 rgba(201,162,74,.55);opacity:0;
}

/* A kis kerék a gombban: a nagy kerék palettájából, de erősebb kontraszttal,
   hogy ekkora méretben is kerékként olvasható legyen. */
.efi-wheel-fab__wheel{
  position:relative;width:30px;height:30px;flex:none;border-radius:50%;
  background:repeating-conic-gradient(var(--stone-0) 0deg 22.5deg, var(--stone-5) 22.5deg 45deg);
  box-shadow:0 0 0 1.5px var(--gold-2);
}
.efi-wheel-fab__wheel::after{
  content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;
  border-radius:50%;background:var(--gold-2);box-shadow:0 0 0 1.5px var(--stone-0);
}

/* Érkezés: a gomb beúszik, a kis kerék egyszer körbefordul, az arany gyűrű kétszer felvillan. */
@media (prefers-reduced-motion:no-preference){
  .efi-wheel-fab.is-arriving{opacity:0;transform:translateY(16px)}
  .efi-wheel-fab.is-arrived .efi-wheel-fab__wheel{animation:efi-fab-spin 1.8s cubic-bezier(.12,.62,.08,1) .15s 1}
  .efi-wheel-fab.is-arrived::after{animation:efi-fab-ring 1.6s var(--ease-out-soft) 1.7s 2}
}
@keyframes efi-fab-spin{from{transform:rotate(0)}to{transform:rotate(720deg)}}
@keyframes efi-fab-ring{
  0%{opacity:1;box-shadow:0 0 0 0 rgba(201,162,74,.55)}
  100%{opacity:0;box-shadow:0 0 0 14px rgba(201,162,74,0)}
}

/* Ablak ------------------------------------------------------------------ */
.efi-wheel{
  width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 32px);
  padding:0;border:1px solid var(--line-hairline);border-radius:0;
  background:var(--surface-canvas);color:var(--text-body);
  box-shadow:var(--shadow-raised);overflow:auto;
}
.efi-wheel::backdrop{background:rgba(9,5,2,.55)}
.efi-wheel[open]{animation:efi-wheel-in var(--dur-base) var(--ease-out-soft)}
@keyframes efi-wheel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.efi-wheel__close{
  position:absolute;top:10px;right:14px;z-index:2;width:40px;height:40px;
  border:0;background:transparent;cursor:pointer;color:var(--text-muted);
  font-family:var(--font-sans);font-weight:300;font-size:30px;line-height:1;
  transition:color var(--dur-fast);
}
.efi-wheel__close:hover{color:var(--text-body)}

.efi-wheel__grid{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;
}
.efi-wheel__stage{
  background:var(--surface-taupe-soft);
  padding:clamp(28px,4vw,56px);
  display:flex;flex-direction:column;align-items:center;gap:18px;align-self:stretch;justify-content:center;
}
.efi-wheel__panel{padding:clamp(28px,4vw,52px)}

/* A kerék ---------------------------------------------------------------- */
.efi-wheel__dial{
  --d:clamp(260px,34vw,400px);
  position:relative;width:var(--d);height:var(--d);flex:none;
}
.efi-wheel__rotor{
  position:absolute;inset:0;border-radius:50%;overflow:hidden;
  border:1px solid var(--line-strong);
  box-shadow:inset 0 0 0 7px rgba(252,253,245,.55),inset 0 0 0 8px var(--gold-2);
  transform:rotate(0deg);will-change:transform;
  transition:transform 5.6s cubic-bezier(.12,.62,.08,1);
}
.efi-wheel__rotor.is-instant{transition:none}

.efi-wheel__sep{
  position:absolute;left:50%;top:0;width:1px;height:50%;margin-left:-.5px;
  background:var(--line-hairline);transform-origin:50% 100%;transform:rotate(var(--a));
}
.efi-wheel__label{
  position:absolute;left:50%;top:50%;
  width:calc(var(--d) * .36);margin-top:-1em;height:2em;
  transform-origin:0 50%;
  transform:rotate(calc(var(--a) - 90deg)) translateX(calc(var(--d) * .115));
  display:flex;align-items:center;justify-content:flex-end;
  padding-right:calc(var(--d) * .035);
}
.efi-wheel__label > span{
  display:block;max-width:100%;text-align:right;
  font-family:var(--font-sans);font-weight:400;font-size:clamp(9px,1vw,11px);
  letter-spacing:.1em;line-height:1.2;text-transform:uppercase;color:var(--text-body);
  text-wrap:balance;
}
.efi-wheel__label.is-blank > span{color:var(--text-muted)}

.efi-wheel__pointer{
  position:absolute;left:50%;top:-6px;z-index:2;margin-left:-9px;
  width:0;height:0;border-left:9px solid transparent;border-right:9px solid transparent;
  border-top:16px solid var(--surface-ink);
  filter:drop-shadow(0 1px 1px rgba(9,5,2,.18));
}
.efi-wheel__hub{
  position:absolute;left:50%;top:50%;z-index:1;
  width:calc(var(--d) * .2);height:calc(var(--d) * .2);
  margin:calc(var(--d) * -.1) 0 0 calc(var(--d) * -.1);
  border-radius:50%;display:grid;place-items:center;
  background:var(--surface-canvas);border:1px solid var(--line-hairline);
  box-shadow:0 1px 2px rgba(9,5,2,.14);
  color:var(--gold-2);font-family:var(--font-display);font-size:calc(var(--d) * .07);line-height:1;
}
.efi-wheel__odds{margin:0;font-size:12px;letter-spacing:.04em;color:var(--text-muted)}

/* Űrlap ------------------------------------------------------------------ */
.efi-wheel__testflag{
  margin:0 0 18px;padding:8px 12px;border-left:2px solid var(--gold-2);background:var(--stone-1);
  font-size:12px;letter-spacing:.04em;color:var(--text-muted);
}
.efi-wheel__title{
  margin:0;font-family:var(--font-display);font-weight:500;
  font-size:clamp(28px,3vw,42px);line-height:1.06;letter-spacing:.02em;text-transform:uppercase;
}
.efi-wheel__lede{margin:14px 0 26px;max-width:38ch;font-size:15px;line-height:1.65;color:var(--text-muted);text-wrap:pretty}
.efi-wheel__form{display:flex;flex-direction:column;gap:18px}
.efi-wheel__check{align-items:flex-start;font-size:13px;line-height:1.55}
.efi-wheel__check .ds-checkbox__box{margin-top:2px}
.efi-wheel__check a{text-decoration:underline}
.efi-wheel__hp{position:absolute;left:-9999px;margin:0}
.efi-wheel__error{margin:0;padding:10px 12px;border-left:2px solid var(--gold-3);background:var(--stone-1);font-size:13px;line-height:1.5}
.efi-wheel__form .ds-btn.is-busy{opacity:.55;pointer-events:none}

/* Eredmény --------------------------------------------------------------- */
.efi-wheel__result{display:flex;flex-direction:column;gap:16px}
.efi-wheel__result[hidden]{display:none}
.efi-wheel__result-kicker{
  margin:0;font-family:var(--font-serif);font-size:var(--text-eyebrow);
  letter-spacing:var(--tracking-caps-wide);text-transform:uppercase;color:var(--text-muted);
}
.efi-wheel__result-prize{
  margin:0;font-family:var(--font-display);font-weight:500;
  font-size:clamp(28px,3vw,40px);line-height:1.08;letter-spacing:.02em;text-transform:uppercase;
}
.efi-wheel__code{border:1px solid var(--line-hairline);background:var(--stone-1);padding:16px 18px}
.efi-wheel__code[hidden]{display:none}
.efi-wheel__code-label{
  display:block;margin-bottom:8px;font-family:var(--font-serif);font-size:var(--text-eyebrow);
  letter-spacing:var(--tracking-caps);text-transform:uppercase;color:var(--text-muted);
}
.efi-wheel__code-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.efi-wheel__code code{font-family:var(--font-serif);font-size:22px;letter-spacing:.16em;color:var(--text-body);background:none}
.efi-wheel__expires{margin:10px 0 0;font-size:12px;color:var(--text-muted)}
.efi-wheel__help{border-left:2px solid var(--gold-2);background:var(--stone-1);padding:12px 16px}
.efi-wheel__help[hidden]{display:none}
.efi-wheel__help-title{
  margin:0 0 6px;font-family:var(--font-serif);font-size:var(--text-eyebrow);
  letter-spacing:var(--tracking-caps-wide);text-transform:uppercase;color:var(--text-muted);
}
.efi-wheel__help-text{margin:0;font-size:14px;line-height:1.55;color:var(--text-body);text-wrap:pretty}
.efi-wheel__conditions{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.efi-wheel__conditions li{display:flex;gap:12px;font-size:14px;line-height:1.55;color:var(--text-muted)}
.efi-wheel__conditions li::before{content:"\2726";color:var(--text-accent);flex:none}
.efi-wheel__applied{margin:0;font-size:14px;color:var(--text-body)}
.efi-wheel__result .ds-btn{align-self:flex-start;margin-top:6px}

/* Mobil ------------------------------------------------------------------ */
@media (max-width:760px){
  .efi-wheel{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border:0}
  .efi-wheel__grid{grid-template-columns:minmax(0,1fr)}
  .efi-wheel__stage{padding:56px 16px 22px}
  .efi-wheel__dial{--d:min(76vw,330px)}
  .efi-wheel__panel{padding:24px 16px 32px}
  .efi-wheel-fab{right:16px}
  .efi-wheel-fab.ds-btn--md{padding:7px 18px 7px 7px;font-size:var(--text-xs)}
  .efi-wheel-fab__wheel{width:26px;height:26px}
}

@media (prefers-reduced-motion:reduce){
  .efi-wheel__rotor{transition-duration:.6s}
  .efi-wheel[open]{animation:none}
}
