/* =========================================================
   regionPASS — karta (samostatná šablóna)
   Bez závislostí na zvyšku projektu. Dopĺňa sa len QR a ID.

   FORMÁT NA VÝŠKU (ako súčasné bankové karty).
   ROZMER JE PEVNÝ: 296 × 470 px (pomer 1 : 1.586), zaoblenie 20 px.
   Všetko vnútri je v `em`, kde 1em = font-size karty (základ 16 px).
   Karta sa nikdy neroztiahne podľa okna — ak ju treba zmenšiť, mení sa
   JEDINÁ hodnota: `font-size` na .rp-card. Všetky pomery ostanú.

   Rozloženie:  hore biely pás s logom · v strede QR + ID · dole regionPASS
   ========================================================= */

.rp-card {
  font-size: 16px;               /* mierka karty — jediné, čo sa mení */

  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 18.5em;                 /* 296 px */
  height: 29.375em;              /* 470 px */
  padding: 1.5em 1.375em .95em;

  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 1.25em;         /* 20 px */
  background: linear-gradient(165deg, #2c58c7 0%, #022d84 58%, #011632 100%);
  box-shadow: 0 1.5em 3.25em rgba(4, 10, 30, .55);

  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.rp-card *,
.rp-card *::before,
.rp-card *::after { box-sizing: border-box; }

/* --- znak (verzia s bielym lemom) — jemne presvitá pri ľavom okraji --- */
.rp-card__symbol {
  position: absolute;
  z-index: 0;
  top: 53%;
  left: -5.7em;                  /* -91 px → vidieť ~107 px zo znaku */
  transform: translateY(-50%);
  height: 16em;                  /* 256 px */
  width: auto;
  opacity: .55;
  filter: drop-shadow(0 .625em 1.5em rgba(4, 12, 32, .45));
  pointer-events: none;
}

/* --- horný biely pás s logom --- */
.rp-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;

  margin: -1.5em -1.375em 0;     /* presah do okrajov karty */
  padding: 1.4em 1.375em 2.25em;

  background: linear-gradient(to bottom, rgba(255, 255, 255, .97) 72%, rgba(255, 255, 255, 0) 100%);
}

.rp-card__logo {
  display: block;
  height: 3.875em;               /* 62 px */
  width: auto;
}

/* --- QR kód + ID karty (stred) --- */
.rp-card__code {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: grid;
  justify-items: center;
  gap: .625em;
}

.rp-card__qr {
  line-height: 0;
  filter: drop-shadow(0 .375em 1.125em rgba(4, 12, 32, .45));
}

/* QR generuj bielymi bodmi na priehľadnom podklade */
.rp-card__qr img,
.rp-card__qr svg {
  display: block;
  width: 9.375em;                /* 150 px */
  height: 9.375em;
}

.rp-card__id {
  font-size: .8125em;            /* 13 px */
  font-weight: 600;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
}

/* --- pätička karty --- */
.rp-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;

  font-size: .6875em;            /* 11 px */
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.rp-card__brand {
  font-size: 1.909em;            /* 21 px */
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  color: #fff;
}

/* --- mierky pre menšie displeje (mení sa len font-size) --- */
@media (max-width: 480px) {
  .rp-card { font-size: 14px; }  /* 259 × 411 px */
}

@media (max-width: 380px) {
  .rp-card { font-size: 12px; }  /* 222 × 353 px */
}
