/* =====================================================================
   U-OS: deksler rundt telefonen (ui/cases.js tegner, server/cases.lua eier kjoep)
   Dekselet ligger bak telefonrammen (#ucase) og ting som henger foran (#ucasef).
   Alt er CSS/SVG: ingen bilder, ingen blur. Animasjoner stopper med «reduser bevegelse».
   ===================================================================== */
#stage { position: relative; }
.ucase, .ucasef {
  --rim: 14px; --dr: 62px;
  position: absolute; inset: calc(var(--rim) * -1);
  border-radius: calc(var(--dr) + var(--rim));
  pointer-events: none;
  transition: border-radius .45s cubic-bezier(.3,.8,.3,1);
}
.ucase { z-index: -1; background: #1d1e21;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.10), inset 0 -2px 0 rgba(0,0,0,.28), 0 18px 40px rgba(0,0,0,.35); }
.ucasef { z-index: 5; }
.ucase.none, .ucasef.none { display: none; }
/* Lett struktur i materialet (statisk, tegnes en gang) */
.ucase::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ucase.nograin::before { display: none; }

/* Hjoernene foelger telefonen (ogsaa naar U-Flip og U-Fold brettes) */
.uphone ~ .ucase, .uphone ~ .ucasef { --dr: 62px; }
.usung ~ .ucase, .usung ~ .ucasef { --dr: 44px; }
.uflip ~ .ucase, .uflip ~ .ucasef { --dr: 46px; }
.ufold ~ .ucase, .ufold ~ .ucasef { --dr: 34px; }
.ufold.folded ~ .ucase, .ufold.folded ~ .ucasef { --dr: 36px; }
.vib ~ .ucase, .vib ~ .ucasef { animation: uosVib .5s linear; }
.rm.vib ~ .ucase, .rm.vib ~ .ucasef { animation: none; }

/* Hull for knapper og kamera */
.uc-hole { position: absolute; border-radius: 3px; background: rgba(0,0,0,.22); }
.uc-hole.top { left: 50%; top: 4px; width: 110px; height: 5px; margin-left: -55px; }
/* Gravering nederst */
.uc-eng { position: absolute; left: 0; right: 0; bottom: 0; height: var(--rim); display: flex; align-items: center; justify-content: center;
  font: 700 8.5px/1 'Manrope', 'Segoe UI', sans-serif; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.34); text-shadow: 0 -1px 0 rgba(0,0,0,.35); }
.lite .uc-eng { color: rgba(0,0,0,.30); text-shadow: 0 1px 0 rgba(255,255,255,.45); }

/* ---------------- Ensfarget silikon (dempet) ---------------- */
.k-svart { background: #1d1e21; }
.k-grafitt { background: #3a3c41; }
.k-krem { background: #e3ddd1; }
.k-salvie { background: #8c9f8e; }
.k-lavendel { background: #a49dbb; }
.k-pudder { background: #d2b4b0; }
.k-havbla { background: #4a5f72; }
.k-vinrod { background: #642c33; }
.k-oliven { background: #5f6449; }
.k-sand { background: #c4b08f; }
.k-natt { background: #232838; }
.k-sennep { background: #b98f3a; }
.k-skifer { background: #56606a; }
/* Silikon: myk glans oeverst, litt moerkere nederst */
.sil { background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.10)); }

/* ---------------- Materialer ---------------- */
.k-laer { background: linear-gradient(165deg, #8a5b3c, #6b4129 60%, #5c3824); }
.k-laersvart { background: linear-gradient(165deg, #2b2a29, #1c1b1a); }
.k-laer::after, .k-laersvart::after, .k-bok::after { content: ''; position: absolute; inset: 5px; border-radius: calc(var(--dr) + var(--rim) - 5px);
  border: 1.5px dashed rgba(232, 205, 170, .45); pointer-events: none; }
.k-laersvart::after { border-color: rgba(214, 170, 72, .55); }
.k-karbon { background:
  linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12)),
  linear-gradient(45deg, #2a2b2f 25%, transparent 25%, transparent 75%, #2a2b2f 75%),
  linear-gradient(45deg, #2a2b2f 25%, #1b1c1f 25%, #1b1c1f 75%, #2a2b2f 75%);
  background-size: auto, 8px 8px, 8px 8px; background-position: 0 0, 0 0, 4px 4px; }
.k-krystall { background: linear-gradient(140deg, rgba(255,255,255,.20), rgba(255,255,255,.05) 45%, rgba(255,255,255,.14));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28), inset 0 1.5px 0 rgba(255,255,255,.35), 0 18px 40px rgba(0,0,0,.30); }
.k-aluminium { background: linear-gradient(115deg, #8d9096, #c9ccd1 28%, #9a9da3 52%, #c2c5ca 78%, #8d9096); }
.k-aluminium::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: .25;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 1px, transparent 1px 3px); }
.k-valnott { background:
  repeating-linear-gradient(97deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px, rgba(255,255,255,.04) 9px 11px, transparent 11px 17px),
  linear-gradient(170deg, #7b5435, #5f3f27); }
.k-perlemor { background: linear-gradient(135deg, #e7e2dc, #d9d4e0 35%, #e6dcd3 60%, #d5dbe0 85%, #e7e2dc); }
.k-iris { background: linear-gradient(120deg, #b9a7c4, #9fb3c6 35%, #a9c2b2 65%, #c9bc9e); }
/* Fargene glir: bare opasitet paa et lag over (billig, ingen ny tegning per bilde) */
.k-iris::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(300deg, #c4a7a9, #a9c2b2 40%, #9fb3c6 70%, #b9a7c4); animation: ucIris 7s ease-in-out infinite alternate; }
@keyframes ucIris { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Moenstre (dempet) ---------------- */
.k-kamo { background:
  radial-gradient(30px 20px at 20% 15%, #424a35 98%, transparent), radial-gradient(34px 24px at 70% 30%, #2a3025 98%, transparent),
  radial-gradient(28px 22px at 35% 55%, #6b6a50 98%, transparent), radial-gradient(36px 22px at 80% 75%, #424a35 98%, transparent),
  radial-gradient(30px 20px at 15% 85%, #2a3025 98%, transparent), #57603f; background-size: 120px 170px; }
.k-sebra { background: repeating-linear-gradient(115deg, #e6e3dc 0 13px, #2a2a2a 13px 21px, #e6e3dc 21px 31px, #2a2a2a 31px 36px); }
.k-leopard { background:
  radial-gradient(circle at 30% 30%, #3b2a1c 3px, transparent 3.6px) 0 0 / 24px 24px,
  radial-gradient(7px 5.5px at 30% 30%, #7d5a37 70%, transparent 72%) 0 0 / 24px 24px,
  radial-gradient(circle at 75% 70%, #3b2a1c 3px, transparent 3.6px) 0 0 / 30px 30px,
  radial-gradient(7px 5.5px at 75% 70%, #7d5a37 70%, transparent 72%) 0 0 / 30px 30px, #c59a64; }
.k-tartan { background:
  repeating-linear-gradient(0deg, rgba(20,30,40,.35) 0 10px, transparent 10px 20px),
  repeating-linear-gradient(90deg, rgba(20,30,40,.35) 0 10px, transparent 10px 20px),
  repeating-linear-gradient(90deg, transparent 0 9px, rgba(200,170,90,.35) 9px 10px, transparent 10px 20px), #3f5b4c; }
.k-marmor { background:
  linear-gradient(125deg, transparent 40%, rgba(120,120,128,.35) 41%, transparent 42.5%),
  linear-gradient(60deg, transparent 60%, rgba(150,150,158,.30) 61%, transparent 62%),
  linear-gradient(160deg, transparent 25%, rgba(140,140,148,.25) 26%, transparent 27%), #e6e5e2; }
.k-marmornero { background:
  linear-gradient(125deg, transparent 40%, rgba(200,200,205,.30) 41%, transparent 42.5%),
  linear-gradient(55deg, transparent 58%, rgba(214,180,110,.35) 59%, transparent 60%),
  linear-gradient(160deg, transparent 25%, rgba(200,200,205,.20) 26%, transparent 27%), #1c1c1e; }
.k-varsel { background: repeating-linear-gradient(135deg, #c29b45 0 14px, #1e1e1f 14px 28px); }
.k-blomster { background:
  radial-gradient(circle at 50% 50%, #d9c58a 2.5px, transparent 3px) 0 0 / 30px 30px,
  radial-gradient(circle at 50% 30%, #c7a1a3 4.5px, transparent 5px) 0 0 / 30px 30px,
  radial-gradient(circle at 50% 70%, #c7a1a3 4.5px, transparent 5px) 0 0 / 30px 30px,
  radial-gradient(circle at 30% 50%, #c7a1a3 4.5px, transparent 5px) 0 0 / 30px 30px,
  radial-gradient(circle at 70% 50%, #c7a1a3 4.5px, transparent 5px) 0 0 / 30px 30px, #aebfb1; }
.k-prikker { background: radial-gradient(circle, #d8d4cc 3.5px, transparent 4px) 0 0 / 20px 20px, #26272a; }
.k-champagne { background: linear-gradient(115deg, #a8916a, #dcc9a2 30%, #b39c74 55%, #d6c299 80%, #a8916a); }
.k-obsidian { background: linear-gradient(160deg, #2a2c31, #0f1012 55%, #1d1f23); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.35); }

/* ---------------- Ting som stikker ut ---------------- */
.uc-ear { position: absolute; top: -66px; width: 104px; height: 104px; }
.uc-ear.l { left: 7%; transform: rotate(-14deg); } .uc-ear.r { right: 7%; transform: scaleX(-1) rotate(-14deg); }
.uc-bun { position: absolute; top: -150px; width: 62px; height: 180px; border-radius: 50% 50% 42% 42%; background: inherit; }
.uc-bun::after { content: ''; position: absolute; left: 16px; right: 16px; top: 22px; bottom: 26px; border-radius: 50%; background: #dcb8b8; }
.uc-bun.l { left: calc(50% - 82px); transform: rotate(-9deg); } .uc-bun.r { right: calc(50% - 82px); transform: rotate(11deg) translateY(8px); }
.uc-bear { position: absolute; top: -42px; width: 82px; height: 82px; border-radius: 50%; background: inherit; }
.uc-bear::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: #caa684; }
.uc-bear.l { left: 6%; } .uc-bear.r { right: 6%; }
.uc-horn { position: absolute; top: -92px; width: 84px; height: 120px; }
.uc-horn.l { left: 9%; } .uc-horn.r { right: 9%; transform: scaleX(-1); }
.uc-corner { position: absolute; width: 104px; height: 104px; background: repeating-linear-gradient(135deg, #c29b45 0 11px, #1e1e1f 11px 22px); }
.uc-corner.tl { left: -7px; top: -7px; border-radius: calc(var(--dr) + var(--rim) + 7px) 0 22px 0; }
.uc-corner.tr { right: -7px; top: -7px; border-radius: 0 calc(var(--dr) + var(--rim) + 7px) 0 22px; }
.uc-corner.bl { left: -7px; bottom: -7px; border-radius: 0 22px 0 calc(var(--dr) + var(--rim) + 7px); }
.uc-corner.br { right: -7px; bottom: -7px; border-radius: 22px 0 calc(var(--dr) + var(--rim) + 7px) 0; }
.k-pigger { background: radial-gradient(circle at 42% 38%, #f2f2f2 0 1.5px, #b9b9bf 2.5px, #6a6a72 6px, transparent 6.6px) 0 0 / 20px 20px, #18181a; }
.k-pels { background: #e9e2d6; }
.k-pels { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35) 0 1px, transparent 2px) 0 0 / 6px 6px, radial-gradient(circle at 70% 60%, rgba(150,135,110,.25) 0 1px, transparent 2px) 0 0 / 7px 7px, #e9e2d6; }
.k-pels > .uc-fur { position: absolute; inset: -8px; border-radius: calc(var(--dr) + var(--rim) + 8px); z-index: -1;
  background: radial-gradient(circle, #e4ddd0 50%, transparent 66%) 0 0 / 11px 11px, radial-gradient(circle, #ece6db 48%, transparent 64%) 5px 6px / 13px 13px; }
.uc-reel { position: absolute; bottom: -22px; width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, #2c2d31 9px, #cfcfd3 10px 15px, #2c2d31 16px 20px, #45464b 21px); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.uc-reel.a { left: 17%; } .uc-reel.b { right: 17%; }
.uc-klbl { position: absolute; left: 36%; right: 36%; bottom: 4px; height: 5px; border-radius: 3px; background: #b98f3a; opacity: .85; }
.k-glod { background: #1b1c1f; box-shadow: 0 0 0 2px rgba(150, 215, 185, .55), 0 0 18px 2px rgba(150, 215, 185, .22), 0 18px 40px rgba(0,0,0,.35); }
.uc-pop { position: absolute; right: -50px; bottom: 26%; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d9cdb7, #b9a88c 60%, #96866b); box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.uc-pop::after { content: ''; position: absolute; inset: 24px; border-radius: 50%; background: #2a2a2c; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
  background-image: radial-gradient(circle at 26% 26%, #2a2a2a 5.5px, transparent 6.2px), radial-gradient(circle at 50% 50%, #9b3a3a 6px, transparent 6.8px), radial-gradient(circle at 74% 74%, #2a2a2a 5.5px, transparent 6.2px); }
.uc-hat { position: absolute; right: -42px; top: -104px; width: 160px; height: 160px; transform: rotate(28deg); }
.uc-hat .cone { position: absolute; left: 22px; right: 22px; top: 0; bottom: 28px; clip-path: polygon(60% 0, 100% 100%, 0 100%); background: #9c2f2f; }
.uc-hat .brim { position: absolute; left: 0; right: 0; bottom: 7px; height: 38px; border-radius: 20px; background: #eeebe5; }
.uc-hat .pom { position: absolute; left: 78px; top: -20px; width: 38px; height: 38px; border-radius: 50%; background: #eeebe5; }

@keyframes ucSwing { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-6deg); } }

/* ---------------- Anheng: hull nederst i venstre hjoerne, snor gjennom, henger ned ---------------- */
.uc-lan { position: absolute; left: 49px; bottom: calc(var(--rim) / 2 - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: #0b0b0c; box-shadow: inset 0 1px 2px rgba(0,0,0,.9), 0 0 0 1.6px #8d8f95, 0 0 0 2.4px rgba(0,0,0,.35); }
.uc-ch { position: absolute; left: 42px; top: calc(100% - var(--rim) / 2 - 1.5px); width: 24px; height: 160px; transform-origin: 12px 1.5px;
  transform: rotate(3deg); }   /* henger stille (svinging gjorde telefonen uskarp i FiveM) */
@keyframes ucDangle { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
.uc-ch .ch-strap { position: absolute; left: 0; top: 0; width: 24px; height: 64px; overflow: visible; }
.uc-ch .ch-hang { position: absolute; width: 84px; height: 84px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.uc-ch .ch-o { position: absolute; left: 0; top: 0; width: 84px; height: 84px; }
/* Lite oeye paa toppen av tingen som griper inn i splittringen */
.uc-ch .ch-bail { position: absolute; width: 9px; height: 11px; border-radius: 50%; border: 2px solid #9a9ca2; box-sizing: border-box;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.35); z-index: 1; }

/* PocketGO: skapningen staar paa toppen av dekselet, og bilde-anheng */
.uc-perch { position: absolute; left: 50%; bottom: calc(100% - var(--rim) - 2px); transform: translateX(-50%); height: auto; pointer-events: none; }
.uc-ch .ch-img { object-fit: contain; }

/* ---------------- Klistremerker over kanten ---------------- */
.uc-stk { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,.28);
  font-family: 'Manrope', 'Segoe UI', sans-serif; background: #efece6; color: #2a2a2c; }
.uc-stk b { font-weight: 800; font-size: 17px; letter-spacing: .06em; line-height: 1.05; }
.uc-stk span { font-weight: 700; font-size: 11.5px; opacity: .8; }
.uc-stk.b1 { left: 78px; bottom: -46px; transform: rotate(-5deg); }
.uc-stk.b2 { right: 24px; bottom: -48px; transform: rotate(6deg); }
.uc-stk.b3 { left: 40%; bottom: -34px; transform: rotate(-2deg); }
.uc-stk.t1 { right: 30px; top: -44px; transform: rotate(-6deg); }
.uc-stk.b4 { right: -34px; bottom: -34px; transform: rotate(-7deg); }
.uc-stk.t2 { left: 40px; top: -40px; transform: rotate(5deg); }
.s-gold { background: linear-gradient(135deg, #d8c28a, #b9a067); color: #3e331a; }
.s-pix { background: #262833; color: #b9d4a8; font-family: 'IBM Plex Mono', monospace; border-radius: 3px; }
.s-sjokk { background: #2f4a37; color: #d9e6b8; } .s-sjokk2 { background: #d9e6b8; color: #2f4a37; }
.s-burger { background: #e9dfc9; color: #8a3a2a; }
.s-lotto { background: #4c3e63; color: #e7d9a6; }
.s-w { background: #efece6; } .s-y { background: #d6b55e; } .s-r { background: #a34a44; color: #f3ece3; } .s-g { background: #8fa38f; color: #1f2a22; }
.s-neon { background: #1a1a1d; color: #e5a9c0; box-shadow: 0 0 0 1.5px rgba(229,169,192,.55), 0 0 12px rgba(229,169,192,.25); }
.s-grav { background: #24252a; color: #c9c5bc; }
.s-lov { background: #e8e3d6; color: #24304a; }

/* ---------------- Nye deksler ---------------- */
.k-pocket { background: #557d79; }
.uc-pk { position: absolute; left: 50%; top: -52px; width: 120px; height: 80px; margin-left: -60px; border-radius: 60px 60px 18px 18px; background: #8da2c4; }
.uc-pk .e { position: absolute; top: -10px; width: 34px; height: 34px; border-radius: 50%; background: #8da2c4; }
.uc-pk .e::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #c9b6cf; }
.uc-pk .e.l { left: 6px; } .uc-pk .e.r { right: 6px; }
.uc-pk .leaf { position: absolute; left: 56px; top: -20px; width: 22px; height: 22px; border-radius: 0 100% 0 100%; background: #7d9a6a; transform: rotate(-10deg); }
.uc-pk .eye { position: absolute; top: 28px; width: 11px; height: 13px; border-radius: 50%; background: #24262b; }
.uc-pk .eye.l { left: 36px; } .uc-pk .eye.r { right: 36px; }
.uc-pk .eye::after { content: ''; position: absolute; left: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.uc-paw { position: absolute; top: -8px; width: 30px; height: 20px; border-radius: 12px 12px 8px 8px; background: #8da2c4; box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.uc-paw.l { left: calc(50% - 64px); } .uc-paw.r { right: calc(50% - 64px); }
.k-gullhar { background: radial-gradient(circle, rgba(216,194,138,.9) 1.2px, transparent 1.8px) 0 0 / 9px 9px, linear-gradient(135deg, #a9abb0, #cfd1d5 50%, #a2a4a9); }
.k-ug { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.10), 0 10px 22px -4px rgba(140, 110, 200, .45), 0 18px 40px rgba(0,0,0,.35); }
.k-checker { background: conic-gradient(#e3e0da 25%, #2a2a2c 0 50%, #e3e0da 0 75%, #2a2a2c 0) 0 0 / 14px 14px; }
.k-bane { background: repeating-linear-gradient(90deg, #d7b98a 0 9px, #cfae7c 9px 10px, #dcc195 10px 19px, #c9a675 19px 20px); }
.uc-pins { position: absolute; left: 34px; top: -46px; width: 70px; height: 56px; }
.uc-pins i { position: absolute; bottom: 0; width: 18px; height: 50px; border-radius: 9px 9px 7px 7px; background: #efebe4;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.uc-pins i::after { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 4px; background: #9a3c3c; box-shadow: 0 6px 0 #9a3c3c; }
.uc-pins i:nth-child(1) { left: 0; height: 44px; } .uc-pins i:nth-child(2) { left: 24px; } .uc-pins i:nth-child(3) { left: 48px; height: 44px; }
.k-pixel { background: conic-gradient(#3b3f52 25%, #343849 0 50%, #3b3f52 0 75%, #343849 0) 0 0 / 8px 8px; }
.k-taxi { background: #c9a446; }
.k-taxi::after { content: ''; position: absolute; inset: 4px; border-radius: calc(var(--dr) + var(--rim) - 4px); border: 5px solid transparent;
  background: conic-gradient(#1e1e1f 25%, #c9a446 0 50%, #1e1e1f 0 75%, #c9a446 0) 0 0 / 10px 10px border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; }
.k-boarding { background: #e7e1d3; }
.k-boarding::after { content: ''; position: absolute; inset: 5px; border-radius: calc(var(--dr) + var(--rim) - 5px); border: 1.5px dashed rgba(60,55,45,.35); }
.uc-stub { position: absolute; right: 40px; top: -34px; padding: 6px 12px 8px; border-radius: 6px 6px 0 0; background: #e7e1d3; transform: rotate(3deg);
  display: flex; flex-direction: column; font-family: 'Manrope', sans-serif; color: #3b3a36; box-shadow: 0 -1px 3px rgba(0,0,0,.2);
  border-bottom: 1.5px dashed rgba(60,55,45,.45); }
.uc-stub b { font-size: 12px; font-weight: 800; letter-spacing: .1em; } .uc-stub span { font-size: 10px; font-weight: 700; opacity: .75; }
.k-sjokk { background: linear-gradient(160deg, #35513d, #23362a); }
.k-diner { background: repeating-linear-gradient(90deg, #e9dfc9 0 10px, #9a4434 10px 20px); }
.k-lotto { background: #4c3e63; }
.k-graf { background: #2b2c30; }
.k-mug { background: repeating-linear-gradient(180deg, #d9d6cf 0 9px, #8f8c86 9px 10px), #d9d6cf; }
.uc-plac { position: absolute; left: 50%; bottom: -54px; width: 170px; margin-left: -85px; padding: 8px 0 9px; border-radius: 4px;
  background: #1f2024; color: #e6e3dc; text-align: center; font-family: 'IBM Plex Mono', monospace; box-shadow: 0 3px 6px rgba(0,0,0,.35); }
.uc-plac b { display: block; font-size: 15px; letter-spacing: .25em; } .uc-plac span { font-size: 11px; letter-spacing: .1em; opacity: .85; }
.k-filt { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.05), transparent 60%), #2f5443; }
.uc-chips { position: absolute; right: -22px; bottom: 40px; width: 46px; height: 70px; }
.uc-chips i { position: absolute; left: 0; width: 46px; height: 12px; border-radius: 50%; background: #a8433d; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 2px #e8e2d6 inset; }
.uc-chips i:nth-child(1) { bottom: 0; } .uc-chips i:nth-child(2) { bottom: 9px; background: #2b4f6e; } .uc-chips i:nth-child(3) { bottom: 18px; } .uc-chips i:nth-child(4) { bottom: 27px; background: #1f1f21; }
.uc-card2 { position: absolute; right: 46px; top: -36px; width: 46px; height: 64px; border-radius: 5px; background: #f0ede6; transform: rotate(12deg); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.uc-card2::after { content: 'A♠'; position: absolute; left: 6px; top: 4px; font: 800 14px 'Manrope', sans-serif; color: #2a2a2c; }
.k-cash { background: repeating-linear-gradient(115deg, #8fa38a 0 6px, #849a80 6px 7px), #8fa38a; }
.uc-cash { position: absolute; left: 50%; bottom: -18px; width: 130px; margin-left: -65px; padding: 5px 0; border-radius: 3px; background: #c8b98d; color: #3c3522;
  text-align: center; font: 800 12px 'Manrope', sans-serif; letter-spacing: .12em; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.k-neonnatt { background: #17171a; box-shadow: 0 0 0 1.5px rgba(229,169,192,.45), 0 0 16px 1px rgba(229,169,192,.18), 0 18px 40px rgba(0,0,0,.35); }

/* Bare for én modell */
.uc-card { position: absolute; right: 30px; top: -48px; width: 138px; height: 87px; border-radius: 10px; transform: rotate(-7deg);
  background: linear-gradient(135deg, #c9a24f, #a9843a); box-shadow: 0 6px 12px rgba(0,0,0,.30); }
.uc-card::before { content: ''; position: absolute; left: 13px; top: 21px; width: 26px; height: 19px; border-radius: 4px; background: #e4d7ae; }
.uc-card::after { content: 'U-PAY'; position: absolute; right: 12px; bottom: 8px; font: 800 13px 'Manrope', sans-serif; letter-spacing: .06em; color: rgba(20,20,20,.75); }
.uc-loop { position: absolute; left: -26px; bottom: 44px; width: 44px; height: 64px; border-radius: 22px; border: 8px solid #b0884a; }
.k-robust { --rim: 18px; background: #4c5040; }
.k-robust > .uc-bump { position: absolute; width: 60px; height: 60px; background: #3a3d31; }
.uc-bump.tl { left: -3px; top: -3px; border-radius: calc(var(--dr) + var(--rim) + 3px) 0 18px 0; }
.uc-bump.tr { right: -3px; top: -3px; border-radius: 0 calc(var(--dr) + var(--rim) + 3px) 0 18px; }
.uc-bump.bl { left: -3px; bottom: -3px; border-radius: 0 18px 0 calc(var(--dr) + var(--rim) + 3px); }
.uc-bump.br { right: -3px; bottom: -3px; border-radius: 18px 0 calc(var(--dr) + var(--rim) + 3px) 0; }
.uc-pen { position: absolute; right: 42px; bottom: -88px; width: 22px; height: 120px; border-radius: 0 0 11px 11px;
  background: linear-gradient(90deg, #2c3346, #46506a 50%, #232a3b); box-shadow: 0 4px 8px rgba(0,0,0,.3); }
.uc-pen::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: -14px; height: 16px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: #1a1d26; }
.uc-flap { position: absolute; left: -26px; top: 6%; bottom: 6%; width: 30px; border-radius: 16px 0 0 16px; background: linear-gradient(90deg, #4a3020, #6b4129); }
.uc-flap::after { content: ''; position: absolute; left: 6px; top: 30%; width: 16px; height: 46px; border-radius: 4px; background: rgba(0,0,0,.22); }
.uc-antenna { position: absolute; right: 34px; top: -132px; width: 14px; height: 154px; border-radius: 7px; background: linear-gradient(90deg, #85878d, #cfd1d5, #7f8187); }
.uc-antenna::before { content: ''; position: absolute; left: -6px; top: -12px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2f2f2, #b2b3b8 60%, #77787d); }
.uc-gem { position: absolute; left: 50%; top: -24px; margin-left: -28px; width: 56px; height: 56px; transform: rotate(45deg); border-radius: 9px;
  background: linear-gradient(135deg, #f3ece8, #e2c9cc 45%, #c79ea4); box-shadow: 0 4px 10px rgba(0,0,0,.28); }
.uc-chain { position: absolute; right: -28px; top: 46%; width: 60px; height: 190px; transform-origin: 8px 0; transform: rotate(4deg); }   /* henger stille */
.uc-chain i { position: absolute; left: 3px; width: 15px; height: 21px; border-radius: 8px; border: 3.5px solid #c2a466; }
.uc-chain svg { position: absolute; left: -10px; top: 150px; width: 42px; height: 40px; }
.k-bok { background: linear-gradient(165deg, #3d3348, #2a2333); }
.uc-spine { position: absolute; top: -12px; bottom: -12px; left: -8px; width: 42px; border-radius: 10px; background: linear-gradient(90deg, #2a2333, #4a3d58 50%, #2a2333); }
.ufold:not(.folded) ~ .ucase .uc-spine { left: calc(50% - 21px); }
.uc-ribbon { position: absolute; left: calc(50% - 11px); bottom: -84px; width: 22px; height: 110px; background: #7e3434; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); }
.uc-band { position: absolute; top: -10px; bottom: -10px; right: 34%; width: 18px; border-radius: 5px; background: #b98f3a; box-shadow: 0 3px 6px rgba(0,0,0,.3); }
.ufold:not(.folded) ~ .ucase .uc-band { right: 40px; }
.uc-stand { position: absolute; bottom: -28px; left: calc(50% - 56px); width: 112px; height: 42px; border-radius: 0 0 14px 14px; background: linear-gradient(#5a5c62, #2c2d31); }

/* Ingen animasjon naar telefonen er nede */
#stage.hidden .ucase, #stage.hidden .ucasef, #stage.hidden .ucase *, #stage.hidden .ucasef *, #stage.hidden .ucase::after { animation-play-state: paused; }
/* Reduser bevegelse */
.rm ~ .ucase, .rm ~ .ucasef, .rm ~ .ucase *, .rm ~ .ucasef *, .rm ~ .ucase::after { animation: none !important; }

/* ---------------- Forhaandsvisning (U-Store, Innstillinger) ---------------- */
.cprev { position: relative; overflow: hidden; }
.cprev .cp-stage { position: absolute; left: 50%; transform-origin: top left; }
.cp-dev { position: relative; background: #26262b; box-shadow: inset 0 0 0 1.5px #55555d, inset 0 0 0 4px #1b1b1f; }
.cp-dev .cp-scr { position: absolute; overflow: hidden; background: linear-gradient(165deg, #2b2416 0%, #17171a 45%, #111113 100%); }
.cp-dev .cp-t { position: absolute; left: 0; right: 0; top: 16%; text-align: center; color: #fff; font: 300 92px/1 'Sora', 'Segoe UI', sans-serif; }
.cp-dev .cp-cov { position: absolute; left: 14px; right: 14px; top: 14px; height: 286px; border-radius: 34px; background: #151518; }
.cp-dev .cp-cov b { position: absolute; left: 0; right: 0; top: 80px; text-align: center; color: #fff; font: 600 64px/1 'Sora', sans-serif; }

/* ---------------- U-Store: fanen Deksler ---------------- */
.dks-wrap .ws-grid.dks-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dks-h { margin: 6px 16px 8px; font: 800 12px var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.dks-card { position: relative; gap: 6px; }
.dks-card .cprev { width: 100%; }
.dks-card.trying { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 999px rgba(255,255,255,.02); }
.dks-info { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.dks-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.dks-tag { font: 700 10.5px var(--fb); padding: 2px 7px; border-radius: 9px; background: var(--surf3); color: var(--tx2); white-space: nowrap; }
.dks-tag.out { color: var(--tx3); text-decoration: line-through; }
.dks-price { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--tx); }
.dks-old { color: var(--tx3); font-size: 11.5px; }
.dks-own { color: var(--tx3); font-weight: 700; }
.dks-btns { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.dks-btns .rs-buy { min-width: 0; padding: 0 12px; }
.dks-try { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--tx2); }
.dks-try.on { box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc-ink); }
.rs-buy:disabled { opacity: .45; cursor: default; }
.dks-hero { margin: 2px 16px 12px; padding: 12px; border-radius: 22px; background: linear-gradient(160deg, var(--surf2), var(--surf)); box-shadow: inset 0 0 0 1px var(--line); }
.dks-hero-top { display: flex; align-items: center; gap: 8px; margin: 2px 4px 6px; color: var(--tx2); }
.dks-off { font: 800 11px var(--fb); padding: 2px 7px; border-radius: 10px; background: var(--acc-a); color: var(--acc-ink); }
.dks-hero .dks-card { background: transparent; }

/* ---------------- Innstillinger: Deksel ---------------- */
.dks-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.dks-row::-webkit-scrollbar { display: none; }
.dks-pick { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; border: 0; border-radius: 16px; background: var(--surf2); cursor: pointer; }
.dks-pick.on { box-shadow: inset 0 0 0 2px var(--acc); }
.dks-pick .cprev { width: 100%; }
.dks-pl { font: 700 11px var(--fb); color: var(--tx2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dks-engrow { display: flex; gap: 8px; align-items: center; }
.dks-inp { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf2); color: var(--tx); padding: 0 12px;
  font: 700 14px var(--fb); letter-spacing: .12em; text-transform: uppercase; outline: none; }
.dks-inp:focus { border-color: var(--acc); }
.dks-wait { font-size: 13px; padding: 6px 0; }
.dks-set { min-width: 0; max-width: 100%; overflow: hidden; }
.dks-set .rowi { min-width: 0; gap: 10px; }
.dks-set .rowi > .v { min-width: 0; }
.dks-btns { flex-wrap: nowrap; }
.dks-btns .rs-buy { height: 30px; padding: 0 10px; font-size: 12px; }

.ch-icon { display: flex; align-items: center; justify-content: center; flex: none; }
.ch-icon img, .ch-icon svg { width: 100%; height: 100%; object-fit: contain; }
.dks-chbox { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.05), transparent 70%); }
.dks-sub { font-size: 12px; margin: 2px 0 2px; padding: 0 2px; }
.dks-pickch { height: 92px; justify-content: center; }
.dks-none { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font: 700 20px var(--fb); color: var(--tx3); }
