/* Modul: okvir mobitela. Na širokom ekranu crta iPhone okvir, na mobitelu je to cijeli ekran. */
.om-scena { min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start; }
.om-uredaj { position: relative; width: 100%; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }

.om-statusbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 54px; padding: max(env(safe-area-inset-top), 0px) 28px 0;
  font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums;
}
.om-sat { justify-self: start; }
.om-otok { width: 120px; height: 34px; border-radius: var(--r-pill); background: #000; border: 1px solid #1a1a1a; }
.om-ikone { justify-self: end; display: flex; gap: 6px; align-items: center; }
.om-ikone svg { height: 13px; width: auto; }
.om-sadrzaj { flex: 1; padding: var(--s3) var(--s4) var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
/* Dopuna dna (main.js) je prazan element, ne padding: zalijepljeni slojevi smiju ostati gore i u tom prostoru
   (sticky ne ulazi u padding roditelja, pa bi ljestvica na dnu stranice odjurila gore i odrezala prvi tim). */
/* Dno stranice: uzorak „Obzor” (Potez 285, varijanta C iz prototipi/varijante/2026-11-13-uzorak-dna/): greben vrhova izazova
   sa zastavicom, iznad nebo malih kvačica navika koje prema gore nestaju. Pozadina sadržaja (local), a ne element —
   ne mijenja visinu ni ljepljive slojeve. Greben je ispunjen bojom pozadine pa kroz njega ne vire kvačice. */
.om-sadrzaj {
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22240%22%20height%3D%22120%22%20viewBox%3D%220%200%20240%20120%22%3E%3Cpath%20d%3D%22M0%20120%20L30%2078%20L52%20100%20L84%2046%20L104%2070%20L120%2056%20L150%2096%20L176%2064%20L210%20104%20L240%20120%20Z%22%20fill%3D%22%23000%22%20stroke%3D%22%23ff9f0a%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20stroke-opacity%3D%22.7%22/%3E%3Cpath%20d%3D%22M84%2046%20V24%20l13%205%20-13%205%22%20fill%3D%22none%22%20stroke%3D%22%23ff9f0a%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.7%22/%3E%3Cpath%20d%3D%22M0%20120%20L40%2096%20L70%20110%20L130%2084%20L170%20108%20L200%2092%20L240%20120%22%20fill%3D%22none%22%20stroke%3D%22%23ff9f0a%22%20stroke-width%3D%221.5%22%20opacity%3D%22.3%22/%3E%3C/svg%3E") 0 100% / 240px 120px repeat-x local,
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2280%22%20height%3D%22432%22%20viewBox%3D%220%200%2080%20432%22%3E%3Cg%20transform%3D%22translate%2810%20370%29%20scale%280.667%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.38%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2850%20406%29%20scale%280.500%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.28%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2810%20298%29%20scale%280.667%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.29%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2850%20334%29%20scale%280.500%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.22%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2810%20226%29%20scale%280.667%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.20%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2850%20262%29%20scale%280.500%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.16%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2810%20154%29%20scale%280.667%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.13%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2850%20190%29%20scale%280.500%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.11%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2810%2082%29%20scale%280.667%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.06%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2850%20118%29%20scale%280.500%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.06%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2810%2010%29%20scale%280.667%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.01%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2850%2046%29%20scale%280.500%29%22%20fill%3D%22none%22%20stroke%3D%22%2364d2ff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%220.02%22%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22%20fill%3D%22%2364d2ff%22%20fill-opacity%3D%22.25%22%20stroke%3D%22none%22/%3E%3Crect%20x%3D%223.5%22%20y%3D%223.5%22%20width%3D%2217%22%20height%3D%2217%22%20rx%3D%225%22/%3E%3Cpath%20d%3D%22M8%2012.3l2.8%202.8L16.2%209%22/%3E%3C/g%3E%3C/svg%3E") 0 100% / 80px 432px repeat-x local;
}
.om-sadrzaj::after { content: ""; flex: none; margin-top: calc(-1 * var(--s4)); }   /* visinu (dopunu dna) postavlja jezgra/pogled.js */

/* Pravi mobitel: bez okvira, sustav crta svoju statusnu traku */
@media (max-width: 499px) {
  .om-statusbar { display: none; }
  .om-sadrzaj { padding-top: max(env(safe-area-inset-top), var(--s4)); padding-bottom: calc(var(--s6) + env(safe-area-inset-bottom)); }
}

/* Desktop: okvir uređaja */
@media (min-width: 500px) {
  .om-scena { padding: 32px 16px; }
  .om-uredaj {
    width: 402px; min-height: 0; height: min(874px, calc(100dvh - 64px));
    border-radius: 56px; overflow: hidden;
    border: 12px solid #1b1d22;
    box-shadow: 0 0 0 2px #2c2f36, 0 30px 80px rgba(0, 0, 0, 0.6);
  }
  .om-sadrzaj { overflow-y: auto; }
}
