/* bonus.css — styles of the bonus page /bonus/, /ru/bonus/ only (2026-10-15, prompt for the bonus page + factor matrix).
   Linked after /assets/ultrapari.css. Only new classes with the bonus- prefix; nothing in ultrapari.css is redefined
   (the one modifier, .to-top.bonus-up, adds an offset to the existing back-to-top link on this page only).
   Every class is described in INTEGRATION.md §4. Behaviour — /assets/bonus.js (the page works without it). */

/* .bonus-meta — «Обновлено: месяц год · автор» line (C19, C20) under the key figures (the main button stays in the first
   screen on phones); not a pill, so the H1 stays the first block of the page */
.bonus-meta{font-family:var(--font-m);font-size:12px;letter-spacing:.04em;color:var(--dim);margin:-6px 0 14px}

/* .bonus-keys — key parameters of the welcome bonus in the first screen (S05): 4 cells (%, max, min deposit, wager);
   .stat-strip has a fixed 3-column grid, so a 4-cell strip in the same look */
.bonus-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:22px}
.bonus-keys div{background:var(--surface);padding:14px 14px 12px}
.bonus-keys b{display:block;font-family:var(--font-d);font-size:21px;font-weight:800;color:var(--paper);white-space:nowrap}
.bonus-keys span{font-size:12px;color:var(--dim)}
@media(max-width:600px){.bonus-keys{grid-template-columns:repeat(2,minmax(0,1fr))}.bonus-keys b{font-size:19px}}

/* .bonus-tabs — links to the brand's sections (S12): <nav class="bonus-tabs">, current page aria-current="page".
   The global nav rules (gap, hidden <=860px) are beaten by the class */
.bonus-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.bonus-tabs a{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:13px;font-weight:700;color:var(--dim)}
.bonus-tabs a:hover{color:var(--paper);border-color:rgba(237,241,251,.24)}
.bonus-tabs a[aria-current="page"]{color:var(--cyan);border-color:rgba(87,247,172,.4);background:rgba(87,247,172,.08)}

/* .bonus-filter — filter of the bonus catalogue by type (F04): buttons with aria-pressed and aria-controls (the grid).
   Hidden until bonus.js is ready (without JS all cards are shown and the buttons would do nothing) */
.bonus-filter{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 16px}
.bonus-filter[hidden]{display:none}
.bonus-filter button{font:inherit;font-size:13px;font-weight:700;cursor:pointer;min-height:38px;padding:7px 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--dim)}
.bonus-filter button:hover{color:var(--paper)}
.bonus-filter button[aria-pressed="true"]{color:var(--btn-text);background:var(--cyan);border-color:var(--cyan)}
.bonus-filter button:focus-visible,.bonus-calc :focus-visible,.bonus-code button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

/* .bonus-cards — the catalogue (F01, F02): .promo-card.pic cards in a grid (3 columns, 2 on <=860px); on phones a swipe
   carousel with scroll-snap, the same edge as .promo-scroll. Filtered-out cards get the hidden attribute */
.bonus-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.bonus-cards>[hidden]{display:none}
@media(max-width:860px){.bonus-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .bonus-cards{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 8px;scroll-padding-left:16px}
}
@media(max-width:360px){.bonus-cards{margin:0 -12px;padding:0 12px 8px;scroll-padding-left:12px}}
.bonus-cards .pc-body .eyebrow{margin-bottom:10px;padding:4px 10px;font-size:11px}
.bonus-cards .pc-body h3{font-size:16px}

/* .bonus-fig — the key figure of a card (F02): big number + short line; .figs only works inside .bonus-banner */
/* inside .promo-card.pic the card rule for <b> (margins, 16 px, white) is as specific as .bonus-cards .bonus-fig b; bonus.css loads later */
.bonus-fig{margin:4px 0 0}
.bonus-cards .bonus-fig b,.bonus-fig b{display:block;margin:0;font-family:var(--font-d);font-size:24px;font-weight:800;line-height:1.15;color:var(--cyan)}
.bonus-fig span{display:block;font-size:12.5px;color:var(--dim);margin-top:2px}
.bonus-fig .placeholder{font-size:12px;color:var(--gold)}

/* .bonus-card-cta — CTA row at the bottom of a card: «Получить» (.btn-primary.small) + .bonus-rules link (R13, V04) */
.bonus-card-cta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:auto;padding-top:16px}
.bonus-rules{font-size:13px;font-weight:700;color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
.bonus-rules:hover{color:var(--cyan-2)}

/* .bonus-code — promo code shown as text + copy button (C08, V10, F03); the button is disabled while there is no code */
.bonus-code{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 6px;padding:14px 16px;border:1px dashed rgba(87,247,172,.45);border-radius:14px;background:var(--surface)}
.bonus-code .bonus-code-label{font-family:var(--font-m);font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--dim)}
.bonus-code code{font-family:var(--font-m);font-size:17px;font-weight:600;color:var(--paper);word-break:break-all}
.bonus-code button{margin-left:auto;font:inherit;font-size:14px;font-weight:700;cursor:pointer;padding:10px 18px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--paper)}
.bonus-code button[disabled]{cursor:not-allowed;opacity:.5}
@media(max-width:600px){.bonus-code button{margin-left:0}}

/* .bonus-calc — wagering calculator (F06, C14): the site has no forms at all, so fields and results are styled here.
   Results are filled in the HTML for the default values, bonus.js recalculates them */
.bonus-calc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin-top:16px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.bonus-calc label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:var(--paper)}
.bonus-calc select,.bonus-calc input{font:inherit;font-size:15px;font-weight:600;color:var(--paper);background:var(--surface-2);border:1px solid rgba(237,241,251,.18);border-radius:10px;padding:10px 12px;min-height:44px;width:100%}
.bonus-calc .bonus-calc-out{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.bonus-calc .bonus-calc-out div{background:var(--surface-2);padding:12px 14px}
.bonus-calc output{display:block;font-family:var(--font-d);font-size:20px;font-weight:800;color:var(--cyan)}
.bonus-calc .bonus-calc-out span{font-size:12px;color:var(--dim)}
.bonus-calc .bonus-calc-msg{grid-column:1/-1;font-size:13px;color:var(--gold);min-height:1em}
@media(max-width:600px){.bonus-calc{grid-template-columns:minmax(0,1fr);padding:14px}.bonus-calc .bonus-calc-out{grid-template-columns:minmax(0,1fr)}}

/* .bonus-reviews — player reviews (F17): only an empty state while there are no real reviews (no backend, nothing invented) */
.bonus-reviews{margin-top:14px;padding:22px;border:1px dashed var(--line);border-radius:14px;text-align:center}
.bonus-reviews p{font-size:14.5px}
.bonus-reviews b{display:block;font-family:var(--font-d);font-size:17px;color:var(--paper);margin-bottom:6px}

/* .bonus-toc — sidebar on desktop (F31, C21): table of contents by H2 + pinned CTA, fixed in the free space to the right of the
   852 px column (>=1200 px only), shown by bonus.js after the first screen and hidden over the footer; .is-on — visible */
.bonus-toc{display:none}
@media(min-width:1200px){
  .bonus-toc{display:block;position:fixed;top:96px;left:calc(50% + 330px);width:220px;max-height:calc(100vh - 120px);overflow:auto;z-index:15;padding:16px;border:1px solid var(--line);border-radius:14px;background:rgba(20,13,34,.92);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
  .bonus-toc.is-on{opacity:1;visibility:visible}
}
.bonus-toc p{font-family:var(--font-m);font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--dim);margin-bottom:8px}
.bonus-toc ol{list-style:none;margin:0 0 14px;font-size:13px}
.bonus-toc li a{display:block;padding:4px 0 4px 10px;border-left:2px solid transparent;color:var(--dim)}
.bonus-toc li a:hover{color:var(--paper)}
.bonus-toc li a[aria-current="true"]{color:var(--cyan);border-left-color:var(--cyan)}
.bonus-toc .btn-primary{display:block;text-align:center}

/* .bonus-sticky — sticky CTA on phones (F20): a bar right above the .tabbar (<=860 px), shown by bonus.js after the first
   screen and hidden over the footer; .is-on — visible */
.bonus-sticky{display:none}
@media(max-width:860px){
  .bonus-sticky{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;left:0;right:0;bottom:calc(60px + env(safe-area-inset-bottom));z-index:29;padding:10px 16px;background:rgba(20,13,34,.96);border-top:1px solid var(--line);transform:translateY(120%);opacity:0;visibility:hidden;transition:transform .2s ease,opacity .2s ease,visibility .2s ease}
  .bonus-sticky.is-on{transform:none;opacity:1;visibility:visible}
  .bonus-sticky span{font-size:13px;color:var(--dim)}
  .bonus-sticky b{color:var(--cyan);font-family:var(--font-d)}
  /* .to-top.bonus-up — the back-to-top link sits above the CTA bar on this page (modifier, .to-top itself is unchanged) */
  .to-top.bonus-up{bottom:136px}
}

/* .bonus-store — promo-code store (2026-10-16, v50; customer: «переделай блок, можно даже форму добавить, как на основном сайте»):
   the operator's store in the site's look — «how it works» card, promo check form, category filter (.bonus-filter + bonus.js,
   the grid has data-bonus-cards) and a grid of code cards. Data — INTEGRATION §5.19 */
.bonus-store{margin-top:18px}
.bonus-store-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:760px){.bonus-store-top{grid-template-columns:minmax(0,1fr)}}
.bonus-store-how,.bonus-check{display:flex;flex-direction:column;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.bonus-store-title{display:block;font-family:var(--font-d);font-size:16px;font-weight:800;color:var(--paper);margin:0 0 6px}
.bonus-store-note{font-size:13px;color:var(--dim);margin:6px 0 14px}
.bonus-store-how .steps{margin:0;font-size:14px}
.bonus-store-how .steps li{padding:7px 0 7px 38px}
.bonus-store-how .steps li::before{top:5px}
/* .bonus-check — promo check form: the field and the button in one row (stacked on narrow phones); the button is .btn-primary.small */
.bonus-check-row{display:flex;gap:10px;width:100%;margin-top:4px}
.bonus-check input{flex:1;min-width:0;font:inherit;font-size:15px;color:var(--paper);background:var(--surface-2);border:1px solid rgba(237,241,251,.18);border-radius:10px;padding:10px 12px;min-height:44px}
.bonus-check input::placeholder{color:var(--dim)}
.bonus-check input:focus-visible,.bonus-check button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.bonus-check button{border:0;cursor:pointer;font-family:inherit}
@media(max-width:380px){.bonus-check-row{flex-direction:column}}
.bonus-store .bonus-filter{margin:20px 0 14px}
/* .bonus-codes / .bonus-code-card / .bonus-price — the code cards: name, price in points (chip), what the code gives; 4 / 3 / 2 columns */
.bonus-codes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bonus-codes>[hidden]{display:none}
@media(max-width:860px){.bonus-codes{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.bonus-codes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.bonus-code-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.bonus-code-card b{font-family:var(--font-d);font-size:15px;font-weight:800;line-height:1.2;color:var(--paper)}
.bonus-code-card span{font-size:12.5px;line-height:1.45;color:var(--dim)}
.bonus-code-card .bonus-price{font-family:var(--font-m);font-size:11px;letter-spacing:.04em;line-height:1.3;padding:3px 9px;border-radius:999px;color:var(--cyan);background:rgba(87,247,172,.08);border:1px solid rgba(87,247,172,.3)}

/* v52 (2026-10-16). .bonus-code-card img — the vector icon of a store code (images/store-*.svg, ev-*.svg; 160x160 drawn, shown 48 px) above its name */
.bonus-code-card img{display:block;width:48px;height:48px;flex:none}

/* v55 (2026-10-17). Casino amounts in UZS («пересчитай и округли»): 4 000 000 is much wider than 300 EUR, so the key figures of the
   first screen (.bonus-keys) go 2 × 2 at every width (4 in a row clipped them at 320–1280 px); on phones ≤360 px the figure is 16 px.
   The calculator results (.bonus-calc output, three in a row at 601–760 px) are 16 px there. */
.bonus-keys{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:360px){.bonus-keys b{font-size:16px}}
@media(min-width:601px) and (max-width:760px){.bonus-calc output{font-size:16px}}

/* v56 (2026-10-17, «да» заказчика). .bonus-card-name — the name of a catalogue card: a paragraph, not an H3 (the same promos have their
   headings with the real text further down in «Акции для постоянных игроков»); looks exactly like the former .bonus-cards .pc-body h3. */
.bonus-cards .pc-body .bonus-card-name{font-family:var(--font-d);font-size:16px;font-weight:800;line-height:1.15;letter-spacing:-.01em;color:var(--paper);margin:0 0 6px}

/* v57 (2026-10-17). .bonus-calc-pic — the calculator picture (images/calc-bonus.webp, 1200×1200): from 861 px a 200 px square in the first
   column of the form, the two fields (one per row, so the long deposit names are not cut) and the results to its right; hidden below 861 px (on phones and tablets the form comes first, no picture). */
.bonus-calc-pic{display:none}
@media(min-width:861px){
  .bonus-calc{grid-template-columns:200px repeat(2,minmax(0,1fr))}
  .bonus-calc .bonus-calc-pic{display:block;grid-column:1;grid-row:1/span 4;align-self:center;width:200px;height:200px;border-radius:12px}
  .bonus-calc label,.bonus-calc .bonus-calc-out,.bonus-calc .bonus-calc-msg{grid-column:2/-1}
  .bonus-calc output{font-size:17px}
}

.bonus-keys b{white-space:normal;overflow-wrap:break-word}
