/* ==========================================================================
   rating.css - brand rating block, zahranicnicasino.com
   Layout "terc": dark olive cards on the light page, two per row on desktop
   and one per row on a phone. Target rings behind the logo, the rank as a cut
   yellow corner, the score as a ring diagram filled from the rating itself.
   The brand name always sits under the logo.

   The file is deliberately outside the inlined theme bundle and is linked with
   ?v=filemtime, so an edit shows up at once. The bundle is inlined into <head>,
   so this link has to come after it.

   Palette taken from the live theme: olive #435717, yellow #fab758.
   ========================================================================== */

.zn-grid{
  --zn-ol:#435717;
  --zn-ol2:#4b6220;
  --zn-ol3:#27340d;
  --zn-yel:#fab758;
  --zn-yel2:#ffd089;
  --zn-ink:#3b2a04;
  --zn-pap:#e8ecdf;
  --zn-pap2:rgba(232,236,223,.6);
  --zn-glass:rgba(255,255,255,.08);
  --zn-gline:rgba(255,255,255,.14);

  /* one brand under another - a plain vertical list, never two in a row */
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:10px 0 22px;
  text-align:left;
  font-family:Urbanist,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  -webkit-text-size-adjust:100%;
          text-size-adjust:100%;
}
.zn-grid__title{font-size:26px;font-weight:800;color:#343f52;margin:0 0 2px;line-height:1.2}

/* ---------- theme typography reset ---------- */
.zn-grid p,.zn-grid ul,.zn-grid ol,.zn-grid li,
.zn-grid dl,.zn-grid dt,.zn-grid dd,
.zn-grid div,.zn-grid span,.zn-grid a,.zn-grid u,.zn-grid s,.zn-grid b,
.zn-grid em,.zn-grid i,.zn-grid strong,.zn-grid code,.zn-grid h2{
  font-size:inherit;line-height:inherit;margin:0;padding:0;color:inherit;
}
.zn-grid a{text-decoration:none}
.zn-grid u,.zn-grid s{text-decoration:none}
.zn-grid *{box-sizing:border-box}

/* the theme declares `ul li{display:list-item}` with disc markers and is
   parsed after this file, so `body` specificity keeps the reset winning */
body .zn-grid ul,body .zn-grid ol{
  list-style:none !important;list-style-type:none !important;padding-left:0 !important;margin:0 !important;
}
body .zn-grid ul li,body .zn-grid ol li{
  display:inline-flex !important;list-style:none !important;list-style-type:none !important;margin-bottom:0 !important;
}
body .zn-grid ul li::marker,body .zn-grid ol li::marker{content:'' !important}

/* ==========================================================================
   Card
   ========================================================================== */
.zn-grid .zn-card{
  position:relative;
  background:
    radial-gradient(120% 90% at 85% -10%,rgba(250,183,88,.22),transparent 60%),
    linear-gradient(160deg,var(--zn-ol2),var(--zn-ol3));
  border-radius:22px;
  /* the card is full width, so the right side is reserved for the score and
     the CTA; the min-height keeps that panel inside even on a short card */
  padding:24px 272px 20px 22px;
  min-height:290px;
  overflow:hidden;
  color:var(--zn-pap);
  box-shadow:0 16px 36px -14px rgba(39,52,13,.7);
  transition:transform .24s ease,box-shadow .24s ease;
}
.zn-grid .zn-card:hover{transform:translateY(-3px);box-shadow:0 22px 44px -16px rgba(39,52,13,.8)}

/* target rings behind the logo */
.zn-grid .zn-card:before{
  content:'';position:absolute;left:-70px;top:-70px;width:250px;height:250px;border-radius:50%;
  background:repeating-radial-gradient(circle,rgba(255,255,255,.12) 0 1px,transparent 1px 17px);
  pointer-events:none;
}

/* rank in a cut corner */
.zn-grid .zn-corner{
  position:absolute;right:0;top:0;width:96px;height:96px;background:var(--zn-yel);
  clip-path:polygon(100% 0,100% 100%,0 0);
}
.zn-grid .zn-corner b{position:absolute;right:12px;top:10px;font-size:19px;font-weight:900;color:var(--zn-ink);line-height:1}

/* hairline that cuts the score-and-action panel off the content */
.zn-grid .zn-card:after{
  /* 272px = the card's right padding, so the panel keeps an equal 22px gap
     on both sides of the line and does not hug it */
  content:'';position:absolute;right:272px;top:20px;bottom:20px;width:1px;background:rgba(255,255,255,.14);
}

/* ---------- head: logo with the name under it, offer flows beside it ------- */
/* static on purpose: the ring inside it is positioned against the card */
.zn-grid .zn-hd{display:block;margin:0}
.zn-grid .zn-id{
  float:left;width:170px;margin:0 24px 12px 0;
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
}
.zn-grid .zn-logo{
  width:170px;height:88px;background:#fff;border-radius:16px;display:flex;align-items:center;justify-content:center;
  padding:11px;flex:0 0 88px;box-shadow:0 10px 24px -10px rgba(0,0,0,.8);
}
.zn-grid .zn-logo a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.zn-grid .zn-logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.zn-grid .zn-logo__txt{font-size:17px;font-weight:800;color:var(--zn-ol3);text-align:center;line-height:1.2}

.zn-grid .zn-nm{display:block;font-size:17px;font-weight:800;letter-spacing:.02em;color:#fff;line-height:1.15}
.zn-grid .zn-nm s{display:block;width:26px;height:3px;background:var(--zn-yel);border-radius:2px;margin-top:6px}

.zn-grid .zn-bds{display:flex;flex-wrap:wrap;gap:5px}
.zn-grid .zn-bds em{
  font-style:normal;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:3px 9px;border-radius:999px;
}
.zn-grid .zn-b1{background:var(--zn-yel);color:var(--zn-ink)}
.zn-grid .zn-b2{border:1px solid var(--zn-gline);color:var(--zn-pap2)}

/* the score ring heads the right-hand panel, so it is pulled out of the
   head row and centred over the button */
.zn-grid .zn-ring{
  position:absolute;right:22px;top:26px;width:228px;
  display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;
}
.zn-grid .zn-ring:before{
  content:'';position:absolute;left:50%;top:-14px;width:170px;height:170px;margin-left:-85px;border-radius:50%;
  background:radial-gradient(circle,rgba(250,183,88,.16),transparent 68%);
  pointer-events:none;
}
.zn-grid .zn-ring__o{
  position:relative;width:88px;height:88px;border-radius:50%;display:grid;place-items:center;flex:0 0 88px;
  background:conic-gradient(var(--zn-yel) var(--p,0%),rgba(255,255,255,.16) 0);
}
.zn-grid .zn-ring__o i{
  width:70px;height:70px;border-radius:50%;background:#2e3d10;display:grid;place-items:center;
  font-style:normal;font-size:24px;font-weight:800;color:#fff;
}
.zn-grid .zn-ring u{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;line-height:1.25;color:var(--zn-pap2)}

/* ---------- offer ---------- */
/* flow-root: these blocks sit beside the floated logo, so they have to shrink
   next to it instead of running under it - otherwise the yellow accent bar
   would be hidden behind the logo */
.zn-grid .zn-of{display:flow-root;position:relative;font-size:24px;font-weight:800;color:#fff;line-height:1.28;padding-left:16px}
.zn-grid .zn-of:before{content:'';position:absolute;left:0;top:4px;bottom:4px;width:5px;background:var(--zn-yel);border-radius:3px}
.zn-grid .zn-of .bonus-main,.zn-grid .zn-of p{font-size:24px;font-weight:800;color:#fff;line-height:1.28}

.zn-grid .zn-special{display:flow-root;margin-top:9px;font-size:15.5px;font-weight:600;line-height:1.45;color:var(--zn-yel2);padding-left:16px}

/* features as cut yellow tags */
.zn-grid .zn-fe{margin-top:9px;display:flex;flex-wrap:wrap;gap:6px}
.zn-grid .zn-fe li{
  font-size:12px;font-weight:700;color:var(--zn-ink);background:var(--zn-yel);padding:4px 11px;
  clip-path:polygon(7px 0,100% 0,calc(100% - 7px) 100%,0 100%);
}
.zn-grid .zn-specialfeat{display:flow-root;margin-top:9px;font-size:14px;line-height:1.5;color:var(--zn-pap2)}

.zn-grid .zn-promo{
  margin-top:10px;display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px;color:var(--zn-pap2);
}
.zn-grid .zn-promo u{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase}
.zn-grid .zn-promo code{
  font-family:ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
  font-size:12px;font-weight:700;color:#fff;border:1px dashed var(--zn-yel);border-radius:7px;padding:4px 11px;
}

/* ---------- advantages as glass tiles ---------- */
/* clear:both - the tiles run the full content width under the floated logo */
.zn-grid .zn-tiles{clear:both;margin-top:14px;display:grid;grid-template-columns:repeat(6,1fr);gap:7px}

/* the toggle exists only on a phone - here both parts stay out of the way */
.zn-grid .zn-tglbox{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
.zn-grid .zn-tgl{display:none}
.zn-grid .zn-tile{
  background:var(--zn-glass);border:1px solid var(--zn-gline);border-radius:10px;padding:9px 10px;min-width:0;
}
.zn-grid .zn-tile svg{width:17px;height:17px;color:var(--zn-yel);margin-bottom:5px;display:block}
.zn-grid .zn-tile dd{font-size:14px;font-weight:800;color:#fff;line-height:1.1;overflow-wrap:anywhere}
.zn-grid .zn-tile dt{
  font-size:8.5px;letter-spacing:.09em;text-transform:uppercase;color:rgba(232,236,223,.55);margin-top:2px;font-weight:600;
}

.zn-grid .zn-extra{margin-top:10px;font-size:12px;line-height:1.55;color:var(--zn-pap2)}

/* ---------- payments ---------- */
.zn-grid .zn-pay{margin-top:11px;display:flex;align-items:center;flex-wrap:wrap;gap:5px 13px;font-size:11.5px;color:var(--zn-pap2)}
.zn-grid .zn-pay u{font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:rgba(232,236,223,.5)}
.zn-grid .zn-pay span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.zn-grid .zn-pay svg{width:14px;height:14px;flex:0 0 14px;color:var(--zn-yel)}

/* ---------- action: parked in the reserved right column, under the ring --- */
.zn-grid .zn-act{position:absolute;right:22px;top:166px;width:228px}
.zn-grid .zn-btn{
  position:relative;display:block;text-align:center;background:var(--zn-yel);color:var(--zn-ink);
  font-weight:900;font-size:13.5px;letter-spacing:.07em;text-transform:uppercase;padding:14px;border-radius:12px;overflow:hidden;
  transition:background .2s ease;
}
.zn-grid .zn-btn:hover{background:var(--zn-yel2);color:var(--zn-ink)}
.zn-grid .zn-btn:after{
  content:'';position:absolute;top:0;bottom:0;left:-35%;width:26%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);
}
.zn-grid .zn-rev{display:block;margin-top:8px;text-align:center;font-size:11.5px;color:var(--zn-yel2);text-decoration:underline;text-underline-offset:3px}
.zn-grid .zn-rg{clear:both;margin-top:12px;font-size:10px;line-height:1.4;color:rgba(232,236,223,.5);text-align:left}
.zn-grid .zn-rg p,.zn-grid .zn-rg span,.zn-grid .zn-rg div,.zn-grid .zn-rg strong{
  font-size:10px;line-height:1.4;display:inline;color:rgba(232,236,223,.5);
}

@media (prefers-reduced-motion:reduce){
  .zn-grid .zn-card{transition:none}
  .zn-grid .zn-card:hover{transform:none}
}

/* ==========================================================================
   Tablet and phone
   ========================================================================== */
@media (max-width:860px){
  /* no room for the reserved column any more - the score and the CTA go back
     into the flow and the logo stops floating */
  .zn-grid .zn-card{padding:24px 18px 18px;min-height:0}
  .zn-grid .zn-card:after{display:none}

  /* padding-right keeps the score clear of the cut rank corner above it */
  .zn-grid .zn-hd{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding-right:78px}
  .zn-grid .zn-id{float:none;width:auto;margin:0;flex:1 1 auto}

  .zn-grid .zn-ring{position:static;width:auto;flex:0 0 auto;flex-direction:row;align-items:center;gap:10px;text-align:left}
  .zn-grid .zn-ring:before{display:none}
  .zn-grid .zn-ring__o{width:64px;height:64px;flex-basis:64px}
  .zn-grid .zn-ring__o i{width:52px;height:52px;font-size:19px}
  .zn-grid .zn-ring u{letter-spacing:.12em;max-width:92px}

  .zn-grid .zn-act{position:static;width:auto;margin-top:16px}
  .zn-grid .zn-tiles{grid-template-columns:repeat(3,1fr)}
  .zn-grid .zn-rg{text-align:center}

  /* the six tiles fold behind a tap target; the checkbox right before them
     drives it, so the card opens without any script */
  .zn-grid .zn-tgl{
    clear:both;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;
    margin-top:13px;padding:11px 14px;border:1px solid var(--zn-gline);border-radius:12px;
    background:var(--zn-glass);color:#fff;font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  }
  .zn-grid .zn-tgl i{
    width:9px;height:9px;flex:0 0 9px;border-right:2px solid var(--zn-yel);border-bottom:2px solid var(--zn-yel);
    transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s ease;
  }
  .zn-grid .zn-tglbox:checked ~ .zn-tgl i{transform:rotate(-135deg) translate(-2px,-2px)}
  .zn-grid .zn-tglbox:not(:checked) ~ .zn-tiles{display:none}
  .zn-grid .zn-tglbox:focus-visible ~ .zn-tgl{outline:2px solid var(--zn-yel);outline-offset:2px}
  .zn-grid .zn-tiles{margin-top:9px}
}

@media (max-width:560px){
  .zn-grid{margin:8px 0 18px}
  .zn-grid__title{font-size:21px}
  .zn-grid .zn-card{padding:20px 16px 16px;border-radius:18px}
  .zn-grid .zn-corner{width:72px;height:72px}
  .zn-grid .zn-corner b{right:10px;top:8px;font-size:17px}

  /* the score keeps its place at the right edge of the head instead of
     dropping under the brand name */
  .zn-grid .zn-hd{align-items:center;gap:10px;margin-bottom:13px;padding-right:56px}
  .zn-grid .zn-logo{width:138px;height:72px;flex-basis:72px}
  .zn-grid .zn-ring{flex-direction:column;gap:4px;text-align:center}
  .zn-grid .zn-ring__o{width:62px;height:62px;flex-basis:62px}
  .zn-grid .zn-ring__o i{width:50px;height:50px;font-size:18px}
  .zn-grid .zn-ring u{font-size:8.5px;letter-spacing:.1em;max-width:74px}

  .zn-grid .zn-of,.zn-grid .zn-of .bonus-main,.zn-grid .zn-of p{font-size:20px}
  .zn-grid .zn-tiles{grid-template-columns:1fr 1fr;gap:6px}
  .zn-grid .zn-tile{padding:8px 9px}
  .zn-grid .zn-tile dd{font-size:13.5px}
  .zn-grid .zn-btn{padding:13px;font-size:13px}
  .zn-grid .zn-act{margin-top:14px}
}

/* ==========================================================================
   Phone: the three counter cards move below the rating table
   The container that holds the table has exactly three children - the counter
   row, the table and the author card - so a flex order is enough and the
   markup stays untouched. :has() scopes it to that one container; where it is
   unsupported the page simply keeps its original order.
   ========================================================================== */
@media (max-width:860px){
  /* the Obsah card is hidden on a phone and the table moves up to the intro;
     the selector matches only the card in the hero row - the author card is a
     direct child of the container, so it is not touched */
  section.bg-blue2 .row > div:has(> .card .card-body > blockquote.icon){display:none !important}
  /* body … .container.pt-17 in the theme bundle is more specific, so the
     selector has to outweigh it to pull the table up to the intro */
  /* 76px = the height of the absolutely positioned navbar plus a clear gap,
     so the site logo never lands on the H1 */
  body section.bg-blue2 > .container.pt-17{padding-top:76px !important}
  body section.bg-blue2 > .container{padding-bottom:2px !important}
  body section.bg-blue2 > .overflow-hidden .divider svg{height:8px}
  body section.bg-blue2 h1{margin-bottom:4px !important}
  body section.bg-blue2 .zc-line{margin-top:6px !important;margin-bottom:6px !important;padding-top:4px !important;padding-bottom:4px !important}
  body section.wrapper > .container:has(> .zn-grid){padding-top:0 !important}
  .zn-grid{margin-top:0 !important}

  .container:has(> .zn-grid){display:flex;flex-direction:column}
  .container:has(> .zn-grid) > .zn-grid{order:1}
  .container:has(> .zn-grid) > .row{order:2;margin-top:0 !important;margin-bottom:0 !important}
  .container:has(> .zn-grid) > .card{order:3;margin-top:28px}
}

@media (max-width:360px){
  .zn-grid .zn-of,.zn-grid .zn-of .bonus-main,.zn-grid .zn-of p{font-size:18.5px}
  .zn-grid .zn-tile dd{font-size:13px}
}
