
  /* Losowanie mikołajkowe (#santa) – świąteczne kolory działają w motywie jasnym i ciemnym */
  .ss-tool { --ss-red: #D63B3B; --ss-red-d: #8E1B22; --ss-gold: #F2C14E; --ss-green: #2F8F5B; --ss-soft: color-mix(in srgb, var(--ss-red) 9%, var(--card)); }
  .ss-container { max-width: 1180px; position: relative; }
  #tool-santa [hidden] { display: none !important; }
  #tool-santa button { min-width: 0; margin: 0; transform: none; }
  #tool-santa svg { flex: none; }
  .ss-tool.ss-revealing .tart-slot { display: none; }
  body.ss-lock { overflow: hidden; }

  /* nagłówek */
  .ss-hero { position: relative; overflow: hidden; margin: 6px 0 22px; padding: 26px 28px; border-radius: 22px; color: #fff;
    background: radial-gradient(120% 140% at 0% 0%, #E0473F 0%, #B3202A 45%, #7A1219 100%); box-shadow: 0 14px 34px -18px rgba(122, 18, 25, .8); }
  .ss-hero-in { position: relative; display: flex; gap: 20px; align-items: center; }
  .ss-hero-ico { flex: none; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
  .ss-hero-ico svg { width: 52px; height: 52px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
  .ss-hero .toolhead { margin: 0; max-width: none; text-align: left; flex: 1 1 auto; }
  #tool-santa .ss-hero h1, #tool-santa .ss-hero .xh1 { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; }
  #tool-santa .ss-hero .toolhead p { color: rgba(255,255,255,.88) !important; }
  .ss-hero h1 { margin: 0 0 6px; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
  .ss-hero .toolhead p { margin: 0; color: rgba(255,255,255,.88); max-width: 62ch; font-size: 1.02rem; line-height: 1.5; }
  .ss-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
  .ss-badges li { padding: 5px 11px 5px 28px; position: relative; border-radius: 99px; background: rgba(255,255,255,.14); font-size: .84rem; font-weight: 600; color: #fff; }
  .ss-badges li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border-left: 2px solid var(--ss-gold); border-bottom: 2px solid var(--ss-gold); transform: rotate(-45deg); }
  .ss-snow { position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(2px 2px at 12% 20%, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(2.5px 2.5px at 55% 35%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 75% 80%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(2px 2px at 88% 25%, rgba(255,255,255,.75) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 45% 90%, rgba(255,255,255,.5) 50%, transparent 51%);
    background-size: 260px 200px; animation: ssSnow 14s linear infinite; opacity: .9; }
  @keyframes ssSnow { from { background-position: 0 0; } to { background-position: 40px 200px; } }
  @media (max-width: 640px) { .ss-hero { padding: 20px 18px; } .ss-hero-in { flex-direction: column; align-items: flex-start; gap: 12px; } .ss-hero-ico { width: 58px; height: 58px; border-radius: 16px; } .ss-hero-ico svg { width: 40px; height: 40px; } }

  /* układ */
  .ss-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 24px; align-items: start; }
  @media (max-width: 920px) { .ss-work { grid-template-columns: 1fr; } }
  .ss-card { padding: 18px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
  .ss-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.06rem; font-weight: 800; }
  .ss-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ss-red); color: #fff; font-size: .86rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px -3px var(--ss-red); }
  .ss-opt { margin-left: auto; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); font-size: .74rem; font-weight: 700; }
  .ss-hint { margin: 0 0 12px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
  #tool-santa input[type=text], #tool-santa input[type=date], #tool-santa textarea, #tool-santa select { width: 100%; box-sizing: border-box; margin: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: .96rem; }
  #tool-santa textarea { resize: vertical; min-height: 60px; }
  #tool-santa input:focus-visible, #tool-santa textarea:focus-visible, #tool-santa select:focus-visible { outline: 2px solid var(--ss-red); outline-offset: 0; border-color: transparent; }

  /* uczestnicy */
  .ss-add { display: flex; gap: 8px; }
  .ss-add input { flex: 1 1 auto; min-width: 0; font-size: 1.02rem !important; }
  #tool-santa .ss-add button { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: 12px; background: var(--ss-red); color: #fff; border: 0; font-weight: 800; }
  #tool-santa .ss-add button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .ss-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
  #tool-santa .ss-tools button { padding: 6px 12px; border-radius: 99px; font-size: .84rem; }
  .ss-pastebox { display: grid; gap: 8px; margin: 10px 0 0; }
  #tool-santa .ss-pastebox button { justify-self: start; }
  .ss-people { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
  .ss-person { display: grid; grid-template-columns: auto minmax(90px, 0.6fr) minmax(0, 1.4fr) auto; align-items: center; gap: 10px; padding: 7px 8px 7px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); animation: ssIn .18s ease; }
  @keyframes ssIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  .ss-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pc, var(--ss-red)); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
  .ss-pname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #tool-santa .ss-person .ss-wish { padding: 8px 11px; font-size: .88rem; background: var(--card); }
  @media (max-width: 560px) { .ss-person { grid-template-columns: auto minmax(0, 1fr) auto; } .ss-person .ss-x { grid-row: 1; grid-column: 3; } .ss-person .ss-wish { grid-row: 2; grid-column: 1 / -1; } }
  #tool-santa .ss-x { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); box-shadow: none; cursor: pointer; }
  #tool-santa .ss-x:hover { background: color-mix(in srgb, var(--ss-red) 14%, transparent); color: var(--ss-red); }
  .ss-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .ss-count { margin: 12px 0 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
  .ss-count.ss-warn { color: var(--ss-red); }

  /* wykluczenia */
  .ss-exadd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .ss-exarr { color: var(--muted); font-size: 1.2rem; }
  @media (max-width: 560px) { .ss-exadd { grid-template-columns: 1fr; } .ss-exarr { display: none; } }
  .ss-exlist { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .ss-ex { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 99px; background: var(--ss-soft); border: 1px solid color-mix(in srgb, var(--ss-red) 30%, var(--border)); font-size: .88rem; font-weight: 600; }
  .ss-ex svg { width: 16px; height: 16px; fill: none; stroke: var(--ss-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  #tool-santa .ss-ex .ss-x { width: 26px; height: 26px; }
  .ss-tog { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 0 2px; cursor: pointer; font-size: .93rem; }
  .ss-tog small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
  .ss-tog input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .ss-sw { flex: none; position: relative; width: 38px; height: 22px; margin-top: 1px; border-radius: 99px; background: color-mix(in srgb, var(--text) 22%, transparent); transition: background .15s; }
  .ss-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
  .ss-tog input:checked + .ss-sw { background: var(--ss-green); }
  .ss-tog input:checked + .ss-sw::after { transform: translateX(16px); }
  .ss-tog input:focus-visible + .ss-sw { outline: 2px solid var(--ss-red); outline-offset: 2px; }

  /* szczegóły */
  .ss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ss-fld { display: grid; gap: 5px; font-size: .86rem; color: var(--muted); font-weight: 600; }
  .ss-wide { grid-column: 1 / -1; }
  @media (max-width: 560px) { .ss-grid { grid-template-columns: 1fr; } }

  /* przycisk losowania */
  #tool-santa .ss-draw { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 22px; border: 0; border-radius: 18px; color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; cursor: pointer;
    background: linear-gradient(135deg, #E0473F, #B3202A); box-shadow: 0 12px 26px -12px rgba(179, 32, 42, .9); transition: transform .12s, box-shadow .12s, filter .12s; }
  #tool-santa .ss-draw:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(179, 32, 42, 1); }
  #tool-santa .ss-draw:disabled { filter: grayscale(.7); opacity: .55; cursor: not-allowed; }
  .ss-draw svg { width: 34px; height: 34px; }
  .ss-err { min-height: 1.2em; margin: 10px 0 0; font-size: .9rem; font-weight: 600; text-align: center; }
  .ss-err.bad { color: var(--ss-red); } .ss-err.ok { color: var(--ss-green); }

  /* panel boczny */
  .ss-side { position: sticky; top: 80px; }
  @media (max-width: 920px) { .ss-side { position: static; } }
  .ss-how ol { margin: 0; padding: 0; list-style: none; counter-reset: ss; display: grid; gap: 14px; }
  .ss-how li { counter-increment: ss; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
  .ss-how li::before { content: counter(ss); grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--ss-soft); color: var(--ss-red); font-weight: 800; }
  .ss-how strong { color: var(--text); }
  .ss-priv { display: flex; gap: 12px; align-items: flex-start; }
  .ss-priv svg { width: 26px; height: 26px; fill: none; stroke: var(--ss-green); stroke-width: 1.8; stroke-linecap: round; }
  .ss-priv p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }

  /* animacja losowania */
  .ss-shuffle { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(20, 8, 10, .72); backdrop-filter: blur(4px); }
  .ss-sh-in { text-align: center; color: #fff; }
  .ss-sh-hat svg { width: 120px; height: 120px; animation: ssShake .35s ease-in-out infinite; }
  @keyframes ssShake { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-4px); } }
  .ss-sh-name { margin: 14px 0 4px; min-height: 1.3em; font-size: 1.8rem; font-weight: 800; letter-spacing: .01em; }
  .ss-sh-t { margin: 0; opacity: .8; }

  /* wyniki */
  .ss-result { animation: ssIn .25s ease; }
  .ss-done-head { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--ss-green) 13%, var(--card)); border: 1px solid color-mix(in srgb, var(--ss-green) 35%, var(--border)); }
  .ss-done-head h2 { margin: 0 0 3px; font-size: 1.3rem; }
  .ss-done-head p { margin: 0; color: var(--muted); font-size: .9rem; }
  .ss-check { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ss-green); }
  .ss-check svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .ss-note { margin: 12px 0 0; padding: 10px 13px; border-radius: 12px; border: 1px solid color-mix(in srgb, #F59E0B 55%, var(--border)); background: color-mix(in srgb, #F59E0B 12%, var(--card)); font-size: .88rem; }
  .ss-howsend { margin: 18px 0 10px; font-weight: 700; color: var(--text); }
  .ss-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
  #tool-santa .ss-tab { display: grid; justify-items: center; gap: 3px; padding: 13px 8px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--card); color: var(--muted); font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: none; transition: border-color .15s, background .15s, color .15s; }
  #tool-santa .ss-tab small { font-weight: 600; font-size: .76rem; opacity: .85; text-align: center; }
  #tool-santa .ss-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #tool-santa .ss-tab:hover { color: var(--text); }
  #tool-santa .ss-tab[aria-selected="true"] { color: var(--text); border-color: var(--ss-red); background: var(--ss-soft); }
  #tool-santa .ss-tab[aria-selected="true"] svg { stroke: var(--ss-red); }
  @media (max-width: 560px) { #tool-santa .ss-tab small { display: none; } #tool-santa .ss-tab { font-size: .84rem; } }
  .ss-panel { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); animation: ssIn .18s ease; }
  .ss-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .ss-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
  .ss-link.sent { border-color: color-mix(in srgb, var(--ss-green) 45%, var(--border)); }
  .ss-lname { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
  .ss-lname small { display: block; font-weight: 600; font-size: .76rem; color: var(--muted); }
  .ss-link.sent .ss-lname small { color: var(--ss-green); }
  .ss-link.sent .ss-lname small::before { content: "✓ "; }
  .ss-lbtns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  #tool-santa .ss-lbtns button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font-size: .84rem; }
  .ss-lbtns svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #tool-santa .ss-lbtns .ss-wa { color: #1FA855; }
  @media (max-width: 640px) { .ss-link { flex-wrap: wrap; } .ss-lbtns { width: 100%; justify-content: stretch; } #tool-santa .ss-lbtns button { flex: 1 1 0; justify-content: center; padding: 8px 4px; } .ss-lbtns button span { font-size: .78rem; } }
  .ss-sentinfo { margin: 12px 0 0; font-size: .88rem; font-weight: 700; color: var(--muted); }
  .ss-sentinfo.ok { color: var(--ss-green); }
  .ss-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  #tool-santa .ss-pbtn { display: grid; justify-items: center; gap: 6px; padding: 16px 10px 13px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--text); font-weight: 800; cursor: pointer; box-shadow: none; transition: transform .12s, border-color .12s; }
  #tool-santa .ss-pbtn:hover { transform: translateY(-2px); border-color: var(--pc); }
  .ss-pbtn .ss-av { width: 44px; height: 44px; font-size: 1.15rem; }
  .ss-pbtn small { color: var(--muted); font-weight: 600; font-size: .76rem; }
  #tool-santa .ss-pbtn.seen { opacity: .62; border-style: dashed; }
  #tool-santa .ss-pbtn.seen small { color: var(--ss-green); }
  .ss-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
  #tool-santa .ss-foot button { padding: 8px 14px; border-radius: 99px; font-size: .86rem; }
  .ss-all { margin: 12px 0 0; padding: 14px 18px; border: 1px dashed var(--border); border-radius: 16px; }
  .ss-pairs { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
  .ss-pairs li span { font-weight: 700; }
  .ss-pairs svg { width: 18px; height: 18px; margin: 0 8px; vertical-align: -4px; fill: none; stroke: var(--ss-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* okno */
  .ss-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(12, 6, 8, .66); backdrop-filter: blur(5px); animation: ssFade .15s ease; }
  @keyframes ssFade { from { opacity: 0; } to { opacity: 1; } }
  .ss-modal-box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 22px; background: var(--card); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); animation: ssPop .2s ease; }
  @keyframes ssPop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
  .ss-mh { margin: 0 0 6px; font-size: 1.25rem; text-align: center; }
  .ss-mp { margin: 0 0 16px; color: var(--muted); text-align: center; font-size: .92rem; line-height: 1.5; }
  .ss-mbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  #tool-santa .ss-mbtns button { padding: 11px 18px; border-radius: 12px; font-weight: 800; }
  #tool-santa .ss-mbtns button:not(.ghost) { background: var(--ss-red); color: #fff; border: 0; }
  .ss-pass { text-align: center; }
  .ss-pass-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--ss-soft); }
  .ss-pass-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--ss-red); stroke-width: 1.8; stroke-linecap: round; }
  .ss-qr { width: min(280px, 100%); aspect-ratio: 1; margin: 0 auto 16px; padding: 10px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
  .ss-qr svg { width: 100%; height: 100%; }
  .ss-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--ss-red) 25%, transparent); border-top-color: var(--ss-red); animation: ssSpin .8s linear infinite; }
  @keyframes ssSpin { to { transform: rotate(360deg); } }
  .ss-toast { position: fixed; left: 50%; bottom: 24px; z-index: 99; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 99px; background: #1F2A22; color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
  .ss-toast.on { transform: translate(-50%, 0); opacity: 1; }

  /* odkrywanie wyniku */
  .ss-reveal { padding: 4px 0 30px; }
  .ss-rv-wrap { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; justify-items: stretch; }
  .ss-rv-wrap > .ss-spin { margin: 60px auto; }
  .ss-rv { position: relative; overflow: hidden; padding: 30px 24px 26px; border-radius: 26px; text-align: center; color: #fff;
    background: radial-gradient(120% 100% at 50% 0%, #E0473F 0%, #A81C26 55%, #6E1017 100%); box-shadow: 0 24px 50px -24px rgba(110, 16, 23, .9); }
  .ss-rv::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
    background-image: radial-gradient(2px 2px at 10% 15%, rgba(255,255,255,.8) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 80% 25%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(2.5px 2.5px at 25% 75%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 65% 60%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(2px 2px at 90% 85%, rgba(255,255,255,.7) 50%, transparent 51%);
    background-size: 220px 220px; animation: ssSnow 16s linear infinite; }
  .ss-rv > * { position: relative; }
  .ss-rv-phone { margin: -24px; border-radius: 22px; }
  .ss-rv-hi { margin: 0 0 4px; font-size: 1.55rem; font-weight: 800; }
  .ss-rv-sub { margin: 0 0 8px; opacity: .88; }
  #tool-santa .ss-box { display: block; position: relative; width: 190px; height: 190px; margin: 6px auto 0; padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer; }
  .ss-box .ss-gift { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
  .ss-box:not(.open) .ss-gift { animation: ssWiggle 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
  @keyframes ssWiggle { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-5deg); } 80% { transform: rotate(5deg); } 85% { transform: rotate(-3deg); } 90% { transform: rotate(2deg); } }
  .ss-gift-lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1), opacity .6s; }
  .ss-box.open .ss-gift-lid { transform: translate(18px, -48px) rotate(24deg); opacity: 0; }
  .ss-box.open .ss-gift-base { animation: ssBump .35s ease; transform-origin: 50% 100%; transform-box: fill-box; }
  @keyframes ssBump { 50% { transform: scaleY(.92); } }
  .ss-box-glow { position: absolute; left: 50%; top: 55%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,230,150,.95), rgba(255,230,150,0) 70%); opacity: 0; transition: width .6s, height .6s, opacity .6s; pointer-events: none; }
  .ss-box.open .ss-box-glow { width: 260px; height: 260px; opacity: 1; }
  #tool-santa .ss-box:focus-visible { outline: 3px solid var(--ss-gold); outline-offset: 4px; border-radius: 20px; }
  .ss-rv-tap { margin: 4px 0 2px; font-weight: 700; }
  .ss-rv-priv { margin: 0; font-size: .84rem; opacity: .75; }
  .ss-rv-out { animation: ssRise .5s ease; }
  @keyframes ssRise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
  .ss-rv-for { margin: 0; font-size: .95rem; opacity: .85; }
  .ss-rv-name { margin: 4px 0 14px; font-size: clamp(2rem, 8vw, 3rem); font-weight: 900; line-height: 1.1; color: var(--ss-gold); text-shadow: 0 3px 14px rgba(0,0,0,.25); overflow-wrap: anywhere; }
  .ss-rv-wish { margin: 0 auto 14px; max-width: 420px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.14); font-size: .95rem; line-height: 1.45; text-align: left; }
  .ss-rv-facts { list-style: none; margin: 0 auto 12px; padding: 0; max-width: 420px; display: grid; gap: 8px; text-align: left; }
  .ss-rv-facts li { display: flex; gap: 12px; align-items: center; padding: 10px 13px; border-radius: 14px; background: rgba(0,0,0,.16); font-weight: 700; font-size: .95rem; }
  .ss-rv-facts small { display: block; font-weight: 600; font-size: .76rem; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
  .ss-rv-facts svg { width: 22px; height: 22px; fill: none; stroke: var(--ss-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ss-rv-msg { margin: 0 auto 14px; max-width: 420px; padding: 0 0 0 14px; border-left: 3px solid var(--ss-gold); text-align: left; font-style: italic; opacity: .92; }
  .ss-rv-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
  #tool-santa .ss-rv-btns button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
  #tool-santa .ss-rv-btns button:hover { background: rgba(255,255,255,.2); }
  #tool-santa .ss-rv-btns .ss-done { background: #fff; color: #A81C26; border: 0; padding: 12px 20px; }
  .ss-rv-btns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ss-rv-bad { padding: 30px 24px; }
  .ss-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
  .ss-cta p { margin: 0; color: var(--muted); font-size: .9rem; }
  .ss-cta-a { font-weight: 800; color: var(--ss-red); text-decoration: none; }
  .ss-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
  .ss-confetti i { position: absolute; top: -14px; border-radius: 2px; animation-name: ssConf; animation-timing-function: cubic-bezier(.2, .6, .4, 1); animation-fill-mode: forwards; }
  @keyframes ssConf { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); opacity: .85; } }
  .ss-result, .ss-rv { position: relative; }
  @media (prefers-reduced-motion: reduce) { .ss-snow, .ss-rv::before, .ss-box:not(.open) .ss-gift { animation: none !important; } .ss-gift-lid, .ss-box-glow { transition: none !important; } }

  /* link uczestnika: sam ekran z prezentem – bez paska, stopki, reklam i nawigacji (klasa ss-solo ustawiana już w <head>) */
  html.ss-solo .topbar, html.ss-solo .footer, html.ss-solo #globalBack, html.ss-solo .ad-rail, html.ss-solo .ad-slot,
  html.ss-solo #tool-santa .ss-container > .back, html.ss-solo #tool-santa .tart-slot, html.ss-solo #ssOrg { display: none !important; }
  html.ss-solo { background: #140506 !important; }
  html.ss-solo body, html.ss-solo body.light-theme { padding-top: 0 !important; color: #fff;
    background: radial-gradient(120% 80% at 50% 0%, #4A1017 0%, #22080B 55%, #140506 100%) fixed !important; }
  html.ss-solo body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
    background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 65%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 55% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 75%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 15%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 42% 92%, #fff 50%, transparent 51%);
    background-size: 300px 260px; animation: ssSnow 18s linear infinite; }
  html.ss-solo main, html.ss-solo #tool-santa { position: relative; z-index: 1; margin: 0; padding: 0; }
  html.ss-solo #tool-santa .ss-container { max-width: 580px; padding-top: 0; padding-bottom: 0; }
  html.ss-solo .ss-reveal { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 22px 0; }
  html.ss-solo .ss-rv-wrap { width: 100%; }
  html.ss-solo .ss-rv { box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08) inset; }
  html.ss-solo .ss-cta { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
  html.ss-solo .ss-cta p { color: rgba(255,255,255,.72); }
  html.ss-solo .ss-cta-a { color: var(--ss-gold); }
  html.ss-solo .ss-brand { display: block; margin: 2px 0 0; text-align: center; color: rgba(255,255,255,.45); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
  .ss-brand { display: none; }
  @media (prefers-reduced-motion: reduce) { html.ss-solo body::before { animation: none; } }
  /* po otwarciu karton się zwija – wynik wskakuje wyżej */
  #tool-santa .ss-box { transition: height .45s ease, margin .45s ease, opacity .3s ease; }
  #tool-santa .ss-box.gone { height: 0; margin: 0 auto; opacity: 0; overflow: hidden; pointer-events: none; }

  /* v2: pytanie „Czy nazywasz się …?”, okienka potwierdzeń, link dla grupy */
  .ss-askin, .ss-notme { margin: 6px auto 0; max-width: 400px; animation: ssRise .3s ease; }
  .ss-askq { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; }
  .ss-askp { margin: 0 0 14px; font-size: .9rem; opacity: .85; line-height: 1.45; }
  .ss-askb { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  #tool-santa .ss-askb button { padding: 12px 20px; border-radius: 12px; font-weight: 800; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; }
  #tool-santa .ss-askb .ss-yes { background: #fff; color: #A81C26; border-color: #fff; }
  #tool-santa .ss-askb button:hover { filter: brightness(1.08); }
  .ss-notme .ss-rv-hi { font-size: 1.3rem; }
  .ss-rv-shuf { margin: -4px 0 6px; min-height: 1.4em; font-size: 1.5rem; font-weight: 900; color: var(--ss-gold); letter-spacing: .01em; }
  .ss-box.shaking .ss-gift { animation: ssShake .3s ease-in-out infinite !important; transform-origin: 50% 90%; }
  .ss-askbox { text-align: center; }
  .ss-askico { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: var(--ss-soft); }
  .ss-askico svg { width: 30px; height: 30px; fill: none; stroke: var(--ss-red); stroke-width: 2; stroke-linecap: round; }
  #tool-santa .ss-mbtns .ss-danger { background: #B42318 !important; }
  .ss-modal-box .ss-pairs { margin: 6px 0 18px; max-height: 55vh; overflow: auto; }
  .ss-glink { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
  #tool-santa .ss-glink input { flex: 1 1 260px; min-width: 0; font-size: .86rem; color: var(--muted); background: var(--card); }
  .ss-gwarn { margin: 12px 0 0; padding: 10px 13px; border-radius: 12px; border: 1px solid color-mix(in srgb, #F59E0B 50%, var(--border)); background: color-mix(in srgb, #F59E0B 10%, var(--card)); font-size: .86rem; line-height: 1.45; color: var(--text); }
  .ss-gh { margin: 14px 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
  .ss-gnames { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; text-align: left; }
  #tool-santa .ss-gname { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font-weight: 800; cursor: pointer; transition: background .15s, transform .12s; flex-wrap: wrap; }
  #tool-santa .ss-gname:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
  #tool-santa .ss-gname .ss-av { width: 32px; height: 32px; font-size: .9rem; }
  .ss-gn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ss-gname small { flex-basis: 100%; font-weight: 600; font-size: .74rem; opacity: .8; }
  #tool-santa .ss-gname.seen { opacity: .7; border-style: dashed; }
  .ss-gname.seen small::before { content: "✓ "; }

  /* własna lista wyboru osoby (wykluczenia) */
  #tool-santa select.ss-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .ss-pick { position: relative; min-width: 0; }
  #tool-santa .ss-pick-btn { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; font-weight: 700; text-align: left; box-shadow: none; cursor: pointer; transition: border-color .15s; }
  #tool-santa .ss-pick-btn:hover, #tool-santa .ss-pick-btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--ss-red) 60%, var(--border)); }
  #tool-santa .ss-pick-btn:focus-visible { outline: 2px solid var(--ss-red); outline-offset: 0; }
  #tool-santa .ss-pick-btn.empty .ss-pick-t { color: var(--muted); font-weight: 600; }
  .ss-pick-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ss-pick-ch { flex: none; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
  .ss-pick-btn[aria-expanded="true"] .ss-pick-ch { transform: rotate(180deg); }
  .ss-pick .ss-av { width: 28px; height: 28px; font-size: .8rem; }
  .ss-pick-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: 0 20px 44px -14px rgba(0,0,0,.55); animation: ssIn .12s ease; }
  .ss-pick-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }
  .ss-pick-list li:hover, .ss-pick-list li:focus { background: var(--ss-soft); outline: none; }
  .ss-pick-list li[aria-selected="true"] { background: color-mix(in srgb, var(--ss-red) 20%, var(--card)); }
  .ss-pick-list li[aria-selected="true"]::after { content: ""; margin-left: auto; width: 10px; height: 6px; border-left: 2px solid var(--ss-red); border-bottom: 2px solid var(--ss-red); transform: rotate(-45deg) translateY(-2px); }
  .ss-pick-none { padding: 10px; color: var(--muted); font-size: .88rem; }
  #tool-santa #ssExAdd { min-height: 46px; padding: 0 16px; border-radius: 12px; }
