/* Instagram interface kit (ig.js), prefix ik-. Light Instagram look: white surfaces, #000 text, #737373 secondary,
 * #0095F6 blue buttons, #DBDBDB hairlines. Satoshi everywhere (no system or monospace faces). Text never under 14 px. */
.ik-phone { --ik-fg: #000; --ik-mut: #737373; --ik-line: #DBDBDB; --ik-soft: #EFEFEF; --ik-blue: #0095F6;
  position: relative; display: grid; grid-template-rows: 30px minmax(0, 1fr); width: min(100%, 340px); aspect-ratio: 9 / 18.6; max-height: 100%;
  margin: 0 auto; padding: 8px; border-radius: 40px; background: #111; box-shadow: 0 0 0 1px #2a2a2a, 0 40px 70px -34px rgb(30 20 10 / .55), 0 12px 24px -16px rgb(30 20 10 / .35); color: var(--ik-fg); font-size: 15px; line-height: 1.35; }
.ik-phone::before { content: ""; position: absolute; inset: 8px; border-radius: 32px; background: #fff; }
.ik-status { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ik-notch { position: absolute; left: 50%; top: 4px; width: 96px; height: 24px; margin-left: -48px; border-radius: 14px; background: #111; }
.ik-status__r { display: flex; gap: 4px; }
.ik-status__r i { width: 14px; height: 9px; border-radius: 2px; background: #111; }
.ik-status__r i:nth-child(1) { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ik-status__r i:nth-child(2) { width: 12px; border-radius: 6px 6px 2px 2px; }
.ik-screen { position: relative; z-index: 1; min-height: 0; overflow: hidden; border-radius: 0 0 32px 32px; background: #fff; }
.ik-i { display: inline-grid; place-items: center; flex: none; color: currentColor; }

/* a halftone "photo" (dots over a soft gradient) */
.ik-cover { position: relative; overflow: hidden; background:
  radial-gradient(circle at var(--cx, 40%) var(--cy, 40%), rgb(255 255 255 / .5), transparent 46%),
  linear-gradient(var(--cang, 150deg), var(--ca, #F2C3A6), var(--cb, #8B5A3C)); }
.ik-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgb(0 0 0 / .32) 1.1px, transparent 1.6px) 0 0 / 5px 5px;
  -webkit-mask: radial-gradient(ellipse at 52% 78%, #000 0 34%, transparent 62%), linear-gradient(0deg, #000, transparent 70%); mask: radial-gradient(ellipse at 52% 78%, #000 0 34%, transparent 62%), linear-gradient(0deg, #000, transparent 70%); }
.ik-cover__t { position: absolute; left: 8%; right: 8%; top: 50%; transform: translateY(-50%); z-index: 1; text-align: center; font-size: 15px; line-height: 1.15; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .45); text-wrap: balance; }
.ik-cover--big .ik-cover__t { font-size: clamp(18px, 1.6vw, 26px); }

/* the Reel view */
.ik-reel { position: absolute; inset: 0; color: #fff; }
.ik-reel__bg { position: absolute; inset: 0; }
.ik-reel__top { position: absolute; left: 10%; right: 18%; top: 16%; z-index: 2; padding: 6px 10px; border-radius: 6px; background: rgb(0 0 0 / .55); font-size: 16px; line-height: 1.25; font-weight: 600; text-align: center; }
.ik-reel__end { position: absolute; left: 10%; right: 18%; top: 44%; z-index: 2; padding: 10px 12px; border-radius: 8px; background: #fff; color: #000; font-size: 16px; line-height: 1.25; font-weight: 700; text-align: center; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .6); }
.ik-rail { position: absolute; right: 10px; bottom: 76px; z-index: 2; display: grid; gap: 16px; justify-items: center; }
.ik-rail__b { display: grid; place-items: center; width: 36px; height: 36px; filter: drop-shadow(0 1px 4px rgb(0 0 0 / .5)); transition: color .3s, transform .3s; }
.ik-rail__b.is-hot { color: #FF7F32; transform: scale(1.18); }
.ik-reel__foot { position: absolute; left: 14px; right: 60px; bottom: 18px; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.ik-reel__h { font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.ik-reel__cap { grid-column: 1 / -1; }
.ik-reel .ik-bar { background: rgb(255 255 255 / .7); }

/* avatars, bars, buttons */
.ik-av { --ah: 24; display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, hsl(var(--ah) 60% 82%) 0 26%, hsl(var(--ah) 40% 46%) 27% 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #D62976; }
.ik-av--sm { width: 26px; height: 26px; box-shadow: none; }
.ik-av--lg { width: 74px; height: 74px; }
.ik-bar { display: block; height: 8px; border-radius: 4px; background: var(--ik-soft, #EFEFEF); }
.ik-btn { display: inline-grid; place-items: center; min-height: 32px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--ik-soft, #EFEFEF); color: #000; white-space: nowrap; }
.ik-btn--blue { background: var(--ik-blue, #0095F6); color: #fff; }

/* profile and grid */
.ik-prof { display: grid; gap: 10px; padding: 8px 14px 0; align-content: start; }
.ik-prof__top { display: flex; align-items: center; justify-content: space-between; }
.ik-prof__h { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ik-prof__row { display: flex; align-items: center; gap: 18px; }
.ik-prof__stats { flex: 1; display: flex; justify-content: space-around; }
.ik-prof__st { display: grid; justify-items: center; gap: 4px; font-size: 14px; }
.ik-prof__st b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ik-prof__bio { font-size: 15px; line-height: 1.35; }
.ik-prof .ik-btn { width: 100%; }
.ik-prof__grid, .ik-prof__pins { margin: 0 -14px; }
.ik-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 2px; }
.ik-grid > .ik-tile { aspect-ratio: var(--ratio, 3 / 4); }
.ik-tile__pin { position: absolute; right: 6px; top: 6px; z-index: 2; color: #fff; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); transform: rotate(45deg); }
.ik-tile__n { position: absolute; left: 6px; bottom: 5px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }

/* screens, rows, toggles, stats */
.ik-head { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--ik-line, #DBDBDB); }
.ik-head__t { text-align: center; font-size: 16px; font-weight: 700; }
.ik-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ik-soft, #EFEFEF); }
.ik-row__b { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ik-row__t { font-size: 15px; font-weight: 600; }
.ik-row__s { font-size: 14px; color: var(--ik-mut, #737373); line-height: 1.3; }
.ik-tog { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #DBDBDB; transition: background .35s; }
.ik-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .35s cubic-bezier(.3, .7, .2, 1); }
.ik-tog.is-on { background: #000; }
.ik-tog.is-on::after { transform: translateX(18px); }
.ik-stat { --v: .5; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: baseline; padding: 10px 14px; }
.ik-stat__l { font-size: 15px; }
.ik-stat__v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ik-stat__bar { grid-column: 1 / -1; position: relative; height: 12px; border-radius: 3px; overflow: hidden; background: #F4F4F4; }
.ik-stat__bar i { position: absolute; inset: 0; background: radial-gradient(circle, #9A9A9A 1.4px, transparent 1.8px) 0 0 / 5px 5px; clip-path: inset(0 calc((1 - var(--v)) * 100%) 0 0); transition: clip-path 1.1s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.ik-stat--orange .ik-stat__bar i { background-image: radial-gradient(circle, #FF7F32 1.5px, transparent 1.9px); }
.ik-stat--orange .ik-stat__v { color: #E8620F; }

/* comments and DMs */
.ik-com { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 14px; }
.ik-com__b { display: grid; gap: 5px; }
.ik-com__h { font-size: 14px; font-weight: 600; }
.ik-com__t { font-size: 15px; }
.ik-com__lk { color: var(--ik-mut, #737373); margin-top: 4px; }
.ik-bub { justify-self: start; max-width: 80%; padding: 9px 13px; border-radius: 18px; background: #EFEFEF; font-size: 15px; line-height: 1.35; }
.ik-bub--me { justify-self: end; background: #3797F0; color: #fff; }

/* the scene stage around a phone: keep the phone inside the visual area at every size */
.ik-stage { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
.ik-stage .ik-phone { height: 100%; width: auto; max-width: 100%; }

@media (max-width: 959px), (max-height: 599px) {
  .ik-phone { border-radius: 30px; padding: 6px; grid-template-rows: 24px minmax(0, 1fr); }
  .ik-phone::before { inset: 6px; border-radius: 24px; }
  .ik-screen { border-radius: 0 0 24px 24px; }
  .ik-notch { width: 70px; height: 18px; margin-left: -35px; }
  .ik-status { font-size: 14px; padding: 0 16px 0 20px; }
  .ik-rail { gap: 10px; bottom: 60px; }
  .ik-rail__b { width: 30px; height: 30px; }
}
