.gift-value [data-welcome-hours] { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
html.secret-is-open { overflow: hidden; }

/* A small, permanent souvenir of the first discovery. */
.secret-dock {
  --secret-progress: 0%;
  position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 12px; min-width: 166px; min-height: 72px; box-sizing: border-box;
  padding: 12px 17px 12px 12px; overflow: hidden; isolation: isolate;
  border: 1px solid #ffffff30; border-radius: 18px; color: #f5f4f2;
  background: linear-gradient(135deg, #27211e, #161413 68%); box-shadow: 0 10px 36px #0008, inset 0 1px #ffffff0b;
  font-family: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.secret-dock:hover { border-color: #ffb28a66; box-shadow: 0 10px 40px #000a, 0 0 28px #f0250717, inset 0 1px #ffffff12; }
.secret-dock:focus-visible { outline: 2px solid #ffb18d; outline-offset: 4px; }
.secret-dock::after {
  content: ''; position: absolute; inset: -55% auto -55% -65%; width: 45%; z-index: 2;
  background: linear-gradient(90deg, transparent, #ffcfb973, #fff6de9c, transparent);
  transform: rotate(24deg) translateX(0); opacity: 0; pointer-events: none;
}
.secret-dock.is-flashing::after { animation: secret-dock-flash .8s cubic-bezier(.2,.6,.3,1) both; }
.secret-dock.is-flashing { animation: secret-dock-halo 1s ease-out both; }
.secret-dock-icon {
  width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(from -90deg, #ff734f var(--secret-progress), #ffffff16 var(--secret-progress));
  box-shadow: 0 0 20px #f0250712;
}
.secret-dock-icon svg { box-sizing: border-box; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #201b18; color: #ffd3bf; }
.secret-dock-copy { position: relative; z-index: 1; display: grid; gap: 2px; }
.secret-dock-copy small { font-size: 10px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: #b9ada6; }
.secret-dock-copy strong { font-size: 21px; line-height: 1.1; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.secret-dock-track { display: flex; gap: 4px; margin-top: 5px; }
.secret-dock-track i { display: block; width: 6px; height: 3px; border-radius: 3px; background: #ffffff26; transition: background .25s, box-shadow .25s; }
.secret-dock-track i.is-found { background: #ff9473; box-shadow: 0 0 7px #ff653955; }
@keyframes secret-dock-flash { 0% { opacity: 0; transform: rotate(24deg) translateX(0); } 20% { opacity: .85; } 80% { opacity: .65; } 100% { opacity: 0; transform: rotate(24deg) translateX(570%); } }
@keyframes secret-dock-halo { 0%, 100% { box-shadow: 0 10px 36px #0008, inset 0 1px #ffffff0b; } 22% { box-shadow: 0 10px 36px #0008, 0 0 0 5px #ffad8124, 0 0 42px #ff71334d, inset 0 1px #ffffff30; } }

.secret-reward {
  box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid #ffffff24; border-radius: 22px; margin: auto;
  background: #131110; color: #f5f4f2; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 140px #000a; font-family: inherit; scrollbar-width: thin; scrollbar-color: #6b5144 #191513;
}
.secret-reward[open].is-revealing { animation: secret-dialog-in .32s cubic-bezier(.2,.75,.3,1) both; }
.secret-reward::backdrop { background: #080706c9; backdrop-filter: blur(9px); }
.secret-reward[open]::backdrop { animation: secret-backdrop-in .25s ease-out both; }
.secret-reward-content { position: relative; padding: 28px 32px 22px; text-align: center; overflow: hidden; }
.secret-reward-content::before {
  content: ''; position: absolute; top: -190px; left: 50%; width: 490px; height: 380px;
  transform: translateX(-50%); background: radial-gradient(ellipse, #f0250726, transparent 68%); pointer-events: none;
}
.secret-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: transparent; color: #b8b2ae; font-size: 28px; z-index: 2; border: 0; cursor: pointer; }
.secret-eyebrow { margin: 0 24px 18px; font-size: 10px; line-height: 1.4; letter-spacing: .15em; color: #b8aaa3; }
.secret-badge { display: flex; align-items: center; justify-content: center; flex-direction: column; box-sizing: border-box; width: 108px; min-height: 78px; padding: 8px; margin: 0 auto 18px; border: 1px solid #ff8c6855; border-radius: 22px; background: #f02507; box-shadow: 0 0 0 7px #f0250712, 0 10px 48px #f0250733; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.secret-badge span { width: 100%; max-width: none; font-size: 11px; text-align: center; line-height: 1.2; font-weight: 500; letter-spacing: 0; margin-top: 4px; }
.secret-reward h2 { margin: 0 0 12px; font-size: clamp(26px, 4.5vw, 34px); line-height: 1.13; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
#secret-description { margin: 0 auto 18px; max-width: 440px; color: #c6bfbb; font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.secret-count { width: fit-content; margin: 0 auto 16px; padding: 5px 12px; border: 1px solid #ffffff26; border-radius: 20px; color: #e1d4cc; font-size: 11px; line-height: 1.3; background: #ffffff03; }
.secret-reward[data-mode="journal"] { width: min(620px, calc(100% - 32px)); }
.secret-reward[data-mode="journal"] .secret-badge { display: none; }
.secret-reward[data-mode="journal"] .secret-eyebrow { margin-bottom: 16px; }
.secret-reward[data-mode="journal"] #secret-description { margin-bottom: 14px; font-size: 13px; }
.secret-reward[data-mode="journal"] .secret-count { margin-bottom: 12px; }
.secret-reward[data-mode="journal"] .secret-reward-content { padding-top: 24px; padding-bottom: 20px; }
.secret-reward[data-mode="journal"] .secret-progress-wrap { margin-bottom: 13px; }
.secret-reward[data-mode="journal"] .secret-bonus-explanation { margin-bottom: 13px; }
.secret-reward[data-mode="journal"] .secret-all-found { font-size: 13px; margin-bottom: 14px; }

/* The journal shows discoveries; the three balances never share a total. */
.secret-journal { margin: 0 0 17px; text-align: left; }
.secret-journal-list { display: grid; gap: 0; max-height: clamp(150px, calc(100dvh - 680px), 240px); overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #6b5144 #191513; }
.secret-journal-list::-webkit-scrollbar { width: 4px; }
.secret-journal-list::-webkit-scrollbar-track { background: #ffffff08; border-radius: 8px; }
.secret-journal-list::-webkit-scrollbar-thumb { background: #8c7161; border-radius: 8px; }
.secret-journal.is-scrollable::after { content: "↓ Ниже — ещё найденные секреты"; display: block; margin-top: 9px; text-align: right; color: #bda697; font-size: 10px; line-height: 1.4; }
.secret-entry { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid #ffffff12; }
.secret-entry:first-child { padding-top: 4px; }
.secret-entry:last-child { padding-bottom: 4px; border-bottom: 0; }
.secret-entry-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid #ffffff20; background: #ffffff05; color: #f5c4ab; font-size: 18px; line-height: 1; }
.secret-entry-icon svg { width: 17px; height: 17px; }
.secret-entry h3 { margin: 0 0 5px; color: #f5f4f2; font-size: 15px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.secret-entry p { margin: 0 0 7px; color: #b3a8a0; font-size: 12px; line-height: 1.5; text-wrap: pretty; }
.secret-entry-reward { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #ffffff23; border-radius: 5px; background: #ffffff05; color: #ede6df; font-size: 11px; font-weight: 550; line-height: 1.4; }
.secret-entry-reward[data-type="urgent"] { color: #f4c79d; border-color: #edb7822b; background: #edb78207; }
.secret-entry-reward[data-type="emergency"] { color: #d3c1ed; border-color: #c5a5f52b; background: #c5a5f507; }
.secret-empty { margin: 0; padding: 18px 15px; border: 1px dashed #ffffff24; border-radius: 10px; color: #b8aaa1; font-size: 13px; line-height: 1.55; text-align: center; }
.secret-progress-wrap { margin: 0 0 18px; text-align: left; }
.secret-progress-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #d7cdc6; font-size: 12px; line-height: 1.4; }
.secret-progress-bar { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 4px; overflow: hidden; margin: 9px 0 0; border: 0; border-radius: 10px; background: #ffffff14; accent-color: #ff8865; }
.secret-progress-bar::-webkit-progress-bar { background: #ffffff14; border-radius: 10px; }
.secret-progress-bar::-webkit-progress-value { background: linear-gradient(90deg, #e94a24, #ffb993); border-radius: 10px; transition: width .35s ease; }
.secret-progress-bar::-moz-progress-bar { background: linear-gradient(90deg, #e94a24, #ffb993); border-radius: 10px; }
.secret-progress-detail { margin: 8px 0 0; color: #a99c93; font-size: 11px; line-height: 1.5; text-wrap: pretty; }
.secret-balance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border: 1px solid #ffffff24; border-radius: 12px; background: radial-gradient(ellipse at 50% 0, #ffffff08, transparent 75%), #ffffff02; box-shadow: inset 0 1px #ffffff05; overflow: hidden; text-align: left; }
.secret-balance-grid > div { min-width: 0; padding: 13px; }
.secret-balance-grid > div + div { border-left: 1px solid #ffffff14; }
.secret-balance-grid > div > span { display: block; min-height: 18px; font-size: 10px; line-height: 1.3; color: #bfb2a9; }
.secret-balance-grid strong { display: block; color: #fff; font-size: clamp(23px,4vw,30px); line-height: 1.15; font-weight: 650; letter-spacing: -.04em; white-space: nowrap; -webkit-user-select: none; user-select: none; }
.secret-balance-grid strong small { display: inline; margin: 0; color: inherit; font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: -.01em; }
.secret-balance-grid > div > small { display: block; margin-top: 6px; color: #a99e95; font-size: 10px; line-height: 1.45; }
.secret-balance-grid > div[data-type="urgent"] > span { color: #e0bb98; }
.secret-balance-grid > div[data-type="emergency"] > span { color: #cdb8e5; }
.secret-bonus-explanation { margin: 10px 2px 17px; color: #ac9e94; font-size: 11px; line-height: 1.5; text-wrap: pretty; }
.secret-location { margin: 0 0 17px; color: #bcaea4; font-size: 12px; line-height: 1.5; }
.secret-location a { color: #f0d8c9; text-decoration: underline; text-decoration-color: #f0d8c947; text-underline-offset: 3px; }
.secret-location a:hover { text-decoration-color: currentColor; }
.secret-all-found { margin: 0 0 17px; font-size: 14px; line-height: 1.55; color: #eee4dc; text-wrap: pretty; }
.secret-reward .button.secret-cta { display: flex; width: 100%; box-sizing: border-box; min-height: 51px; padding: 14px 12px; font-size: 14px; gap: 14px; }
.secret-reward .secret-cta svg { width: 20px; height: 20px; flex: 0 0 20px; }
.secret-actions { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 16px; margin: 12px 0 0; text-align: left; }
.secret-actions button { min-height: 40px; padding: 8px 4px; background: transparent; border: 0; color: #b5aaa2; font: inherit; font-size: 11px; cursor: pointer; }
.secret-actions button:hover, .secret-close:hover { color: #fff; }
.secret-actions .secret-reset { padding: 8px 12px; border: 1px solid #ffffff20; border-radius: 8px; color: #d9ccc2; transition: border-color .2s, background .2s; }
.secret-actions .secret-reset:hover { border-color: #ffffff44; background: #ffffff06; }
.secret-reward button:focus-visible, .secret-reward a:focus-visible { outline: 2px solid #ffad8a; outline-offset: 3px; border-radius: 5px; }
.secret-fine { margin: 9px 0 0; color: #91847b; font-size: 10px; line-height: 1.5; }
.secret-reset-note { margin: 0; color: #91847b; font-size: 10px; line-height: 1.5; text-wrap: pretty; }
.secret-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 3; }
.secret-confetti i { position: absolute; width: 6px; height: 10px; top: 115px; left: 50%; opacity: 0; border-radius: 1px; animation: secret-confetti 1.5s cubic-bezier(.12,.55,.26,1) var(--delay) both; }
@keyframes secret-confetti { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 10%,75% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(var(--spin)); } }
@keyframes secret-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes secret-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* These notes also appear on registration and account pages. */
.secret-welcome-note { border: 1px solid #f0250755; background: #f0250709; padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.secret-welcome-note strong { font-size: 18px; }
.secret-welcome-note p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.gift-secret-urgent { display: block; margin-top: 7px; color: #ffc7a7; font-size: 12px; line-height: 1.4; }
.secret-urgent-account { border-top: 1px solid #f0250730; margin-top: 14px; padding-top: 14px; }
.secret-reward [hidden], .secret-dock[hidden], .gift-secret-urgent[hidden] { display: none !important; }
.secret-balance-grid ::selection { background: #ffffff26; color: #fff; }

@media (max-width: 600px) {
  .secret-dock { right: max(14px,env(safe-area-inset-right)); bottom: max(14px,env(safe-area-inset-bottom)); min-width: 144px; min-height: 64px; padding: 10px 13px 10px 10px; gap: 10px; border-radius: 16px; }
  .secret-dock-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .secret-dock-icon svg { width: 34px; height: 34px; padding: 8px; }
  .secret-dock-copy strong { font-size: 19px; }
  .secret-dock-copy small { font-size: 9px; }
}
@media (max-width: 420px) {
  .secret-reward, .secret-reward[data-mode="journal"] { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .secret-reward-content { padding: 26px 20px 18px; }
  .secret-reward h2 { font-size: 27px; }
  #secret-description { font-size: 13px; }
  .secret-balance-grid > div { padding: 13px 9px 12px; }
  .secret-balance-grid strong { font-size: 23px; }
  .secret-balance-grid > div > span { font-size: 9px; min-height: 17px; }
  .secret-balance-grid strong small { font-size: 10px; }
  .secret-balance-grid > div > small { font-size: 9px; }
  .secret-bonus-explanation { font-size: 10px; }
  .secret-entry { gap: 9px; }
  .secret-entry h3 { font-size: 14px; }
  .secret-journal-list { max-height: clamp(130px, calc(100dvh - 670px), 190px); }
  .secret-actions { gap: 11px; }
  .secret-actions .secret-reset { padding: 7px 9px; }
  .secret-reset-note { font-size: 9px; }
}
@media (max-height: 720px) {
  .secret-reward-content { padding-top: 23px; padding-bottom: 17px; }
  .secret-eyebrow { margin-bottom: 14px; }
  .secret-badge { width: 96px; min-height: 68px; padding: 6px; font-size: 28px; border-radius: 18px; margin-bottom: 15px; }
  .secret-badge span { font-size: 10px; }
  .secret-reward h2 { font-size: 27px; }
  #secret-description { margin-bottom: 14px; }
  .secret-journal-list { max-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .secret-confetti { display: none; }
  .secret-dock, .secret-dock::after, .secret-reward[open], .secret-reward[open]::backdrop { animation: none !important; transition: none; }
  .secret-progress-bar::-webkit-progress-value { transition: none; }
}
html[data-motion="off"] .secret-confetti { display: none; }
html[data-motion="off"] .secret-dock, html[data-motion="off"] .secret-dock::after,
html[data-motion="off"] .secret-reward[open], html[data-motion="off"] .secret-reward[open]::backdrop { animation: none !important; }

.secret-discovery-note{font-size:14px;line-height:1.5;color:#ddc0aa;margin:0 0 16px}.secret-reward:not([data-mode="journal"]) .secret-discovery-note{display:none}

.secret-retention{font-size:13px;line-height:1.5;color:#dbc1ad;text-align:left;padding:12px 14px;border-left:2px solid #ff6943;background:#ff694309;border-radius:0 8px 8px 0;margin:12px 0}
