@font-face { font-family: 'Fredoka'; src: url('/shared/fonts/Fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/shared/fonts/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
:root { --bg:#0b0b14; --card:#161626; --line:#2a2a45; --txt:#f4f4ff; --mut:#9a9ab8; --acc:#7c5cff; --acc2:#ff4d8d; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  min-height: 100vh; min-height: 100dvh; color: var(--txt);
  font: 600 16px 'Nunito', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(124,92,255,.28), transparent 60%),
    radial-gradient(90% 50% at 100% 10%, rgba(255,77,141,.18), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(60,240,168,.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.wrap {
  max-width: 980px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 22px) calc(env(safe-area-inset-right) + 18px)
           calc(env(safe-area-inset-bottom) + 22px) calc(env(safe-area-inset-left) + 18px);
}
.hero { display: flex; align-items: center; gap: 14px; margin: 6px 2px 22px; }
.logo { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 8px 24px rgba(124,92,255,.35); flex: none; }
h1 { font: 600 30px/1.1 'Fredoka', system-ui, sans-serif; letter-spacing: .2px;
  background: linear-gradient(90deg, #fff, #d9ccff 60%, #ffb3cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--mut); font-weight: 700; margin-top: 4px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
/* iPhone på tvären: låg höjd -> kompaktare */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { margin: 0 2px 14px; } h1 { font-size: 24px; } .logo { width: 44px; height: 44px; border-radius: 12px; }
  .grid { gap: 12px; } .tile { min-height: 92px; padding: 12px 14px; } .tile-ico { width: 60px; height: 60px; border-radius: 15px; }
}

.tile {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 108px; padding: 16px 16px 16px 16px;
  border-radius: 24px; text-decoration: none; color: inherit; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, #1a1a2e), #141424 70%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .12s ease, box-shadow .12s ease;
  animation: pop .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 55ms);
}
.tile::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%); opacity: .45; z-index: -1; }
.tile:active { transform: scale(.97); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); } }
.tile-ico { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); background: #0b0b14; }
.tile-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tile-name { font: 600 22px/1.15 'Fredoka', system-ui, sans-serif; color: #fff; }
.tile-desc { color: #c3c3dc; font-size: 14.5px; line-height: 1.3; font-weight: 700; }
.tile-go { font: 500 34px/1 'Fredoka', sans-serif; color: color-mix(in srgb, var(--c) 70%, #fff); opacity: .8; flex: none; margin-left: 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }

.tip { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 44px 14px 14px;
  border-radius: 18px; background: rgba(124,92,255,.12); border: 1px dashed rgba(124,92,255,.45); color: #dcd6ff; font-size: 14.5px; line-height: 1.4; }
.tip[hidden] { display: none; }
.tip b { color: #fff; }
.tip-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(124,92,255,.25); color: #fff; flex: none; }
.tip-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 12px; background: none; color: var(--mut); font-size: 16px; cursor: pointer; }
.foot { text-align: center; color: #5d5d7a; font-size: 12.5px; margin-top: 22px; font-weight: 700; }
