/* Hra o svobodu reveal layer (T1003). Without the JS classes nothing here hides anything. */
.hos-offer-hidden main .hos-offer { display: none; }
.hos-locked main .hos-after-gate, .hos-locked main .hos-offer { display: none; }
.hos-endmark { text-align: center; color: var(--grey); letter-spacing: 0.4em; margin: 2.2em 0 0; }

@keyframes hos-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hos-opening main .hos-after-gate, .hos-offer-opening main .hos-offer { animation: hos-rise 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--hos-d, 0ms); }

/* inline e-mail step: part of the letter, not a pop-up */
.hos-gate { margin: 0.4em 0 2em; opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease, max-height .8s ease, margin .8s ease; max-height: 900px; overflow: hidden; }
.hos-gate.hos-in { opacity: 1; transform: none; }
.hos-gate.hos-done { opacity: 0; max-height: 0; margin: 0; }
.hos-gate { position: relative; }
.hos-peek { min-height: 30em; user-select: none; -webkit-user-select: none; pointer-events: none; transition: filter 1.1s ease, opacity 1.1s ease; -webkit-mask-image: linear-gradient(#000 45%, transparent 100%); mask-image: linear-gradient(#000 45%, transparent 100%); }
.hos-blur .hos-peek { filter: blur(5px); opacity: .55; }
.hos-card { position: absolute; left: 0; right: 0; top: 2.4em; background: rgba(255,255,255,.95); border: 1px solid #e6e0d6; border-radius: 12px; padding: 18px 16px 12px; box-shadow: 0 14px 40px rgba(34,33,31,.18); opacity: 0; transform: translateY(28px); transition: opacity .8s ease .3s, transform .8s cubic-bezier(.2,.7,.2,1) .3s; }
.hos-blur .hos-card { opacity: 1; transform: none; }
.hos-card .hos-lead:first-child { margin-top: 0; }
/* signature with his photo, to the right (Pavel 20. 11.) */
#o5 { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-align: right; }
#o5 .hos-sig-foto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; order: 2; }
.hos-gate .hos-lead { margin-bottom: 0.7em; }
.hos-gate form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4em 0 0.5em; }
.hos-gate input[type=email] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 18px; padding: 12px 14px; border: 1.5px solid #22211f; border-radius: 4px; background: #fff; color: var(--ink); }
.hos-gate input[type=email]:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.hos-gate button { flex: 0 0 auto; font: inherit; font-size: 18px; padding: 12px 22px; border: 0; border-radius: 4px; background: var(--red); color: #fff; cursor: pointer; }
.hos-gate form.hos-busy button { opacity: .6; pointer-events: none; }
.hos-gate .hos-small { font-size: 0.75em; color: var(--grey); margin: 0; }
.hos-gate .hos-err { color: var(--red); font-size: 0.85em; margin: 0 0 0.5em; }
.hos-gate .hos-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { .hos-gate button { flex: 1 1 100%; } }

/* buttons in the offer */
a.hos-cta { display: block; text-align: center; text-decoration: none; background: var(--red); color: #fff; border-radius: 6px; padding: 0.7em 0.8em; margin: 1.2em 0 1.4em; font-weight: 700; line-height: 1.25; box-shadow: 0 3px 0 #8f1f18; }
a.hos-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f1f18; }

/* returning visitor: thin strip at the top, says where he is (T1003 r9: no price, no offer button on open) */
.hos-return { position: fixed; left: 0; right: 0; top: 0; z-index: 10; box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 8px 44px 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: rgba(255,255,255,.97); color: var(--ink); border-bottom: 1px solid #e6e0d6; box-shadow: 0 4px 14px rgba(34,33,31,.08); font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; line-height: 1.35; transform: translateY(-105%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.hos-return.hos-in { transform: none; }
.hos-return p { margin: 0; }
.hos-return .hos-chip-msg a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.hos-return .hos-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hos-return .hos-btns:empty { display: none; }
.hos-return button[data-hos=close] { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); font: inherit; border: 0; background: transparent; color: var(--grey); font-size: 20px; padding: 6px 10px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hos-gate, .hos-return, .hos-peek, .hos-card { transition: none; } .hos-opening main .hos-after-gate, .hos-offer-opening main .hos-offer { animation: none; } }
.hos-locked .hos-endmark { display: none; }
/* personal deadline (deadline.js) */
.hos-left{display:block;margin-top:.35em;font-weight:700;color:#c73026}
.hos-expired #o322,.hos-expired #o323,.hos-expired #o324,.hos-expired #o325,.hos-expired main h2:has(a.hos-cta){display:none}
.hos-chip-left{margin:0;font-size:.95em}
.hos-return .hos-chip-msg:not([hidden]) + .hos-chip-left{margin-top:.4em}
.hos-return .hos-btns a.hos-support{flex:1 1 auto;display:block;text-align:center;padding:.7em 1em;border-radius:8px;background:#c73026;color:#fff;text-decoration:none;font-weight:600}
.hos-expired .hos-expired-hide{display:none}
.hos-until a{color:inherit;text-decoration:underline}
/* presale closed: Pavel's closing line where the offer will go (build.py close_offer) */
.hos-pokracovani { margin: 2.4em 0 0; padding-top: 1.4em; border-top: 1px solid rgba(0,0,0,.12); font-style: italic; }
