/* Delt kamp (/s). Bygger på app.css (farger, kort, knapper) og tavle.css (tavla). */
.merke { color: var(--tekst); text-decoration: none; }
.fot { margin: 22px 0 8px; font-size: 14px; }
.fot a { color: var(--tekst); }
.del-hero h1 { font-size: 30px; }
.del-hero p { color: var(--dempet); }
.tidvalg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tidvalg .mal-chip { display: block; position: relative; color: var(--tekst); font-weight: 700; }
.kode-skjema input[name=kode] { letter-spacing: .25em; }

/* status under tavla */
.status-rad { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 4px; font-size: 14px; font-weight: 700; }
.status { color: var(--dempet); }
.status.direkte { color: var(--tekst); }
.status.direkte::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rod); box-shadow: 0 0 8px var(--rod); margin-right: 7px; vertical-align: 1px; animation: blunk 1.6s infinite; }
.status.brudd { color: #ffb4a8; }
.publikum { color: var(--dempet); white-space: nowrap; }

/* føring */
.ny-del { border: 1px solid var(--rod-mork); }
.ko-merke { background: #3a2a10; color: #ffd98a; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; margin: 8px 0; }
.heia-kort { display: flex; align-items: center; gap: 14px; }
.heia-tall { font-size: 30px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* tilskuer */
.folg-kort { display: grid; gap: 12px; }
.heia-navn input { font-size: 16px; }
.knapp.heia-knapp { min-height: 80px; font-size: 26px; font-weight: 900; background: #fff; border-color: #fff; color: #0b0d12; border-radius: 20px; gap: 12px; }
.knapp.heia-knapp:active { background: #e6e8ec; }
.heia-hjerte { color: var(--rod); }
.heia-knapp.dunk { animation: dunk .35s ease; }
@keyframes dunk { 30% { transform: scale(1.06); } 60% { transform: scale(.97); } }
.heia-under { text-align: center; color: var(--dempet); font-size: 14px; }
.lyd-knapp { justify-self: center; }

/* deling */
.del-kort { text-align: center; }
.del-qr { display: block; width: 60%; max-width: 220px; height: auto; margin: 12px auto; border-radius: 12px; }
.sluttbilde { display: block; width: 100%; height: auto; border-radius: 14px; margin: 6px 0; }

/* heia-bobler og hjerter */
.heia-strom { position: fixed; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 6px; pointer-events: none; z-index: 40; }
.heia-boble { background: rgba(21, 25, 34, .96); color: #fff; border: 1px solid #fff; border-radius: 99px; padding: 10px 18px; font-weight: 800; font-size: 17px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: boble 4.2s ease forwards; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes boble { 0% { opacity: 0; transform: translateY(16px) scale(.9); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.hjerte { position: fixed; bottom: 80px; font-size: 28px; pointer-events: none; z-index: 41; animation: fly 2.4s ease-out forwards; }
@keyframes fly { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60vh) scale(1.3); } }

/* målfeiring hos tilskuerne */
.feiring { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; z-index: 60; pointer-events: none; opacity: 0; visibility: hidden; background: var(--lagfarge, #d7261e); color: #fff; }
.feiring.lys-farge { color: #000; }
.feiring.vis { visibility: visible; animation: feiring 3.2s ease forwards; }
.feiring-tekst { font-size: min(32vw, 200px); font-weight: 900; line-height: .9; letter-spacing: -.02em; }
.feiring-lag { font-size: min(9vw, 52px); font-weight: 900; text-transform: uppercase; padding: 0 16px; }
@keyframes feiring { 0% { opacity: 0; transform: scale(1.15); } 8% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hjerte { display: none; }
  .feiring.vis, .heia-boble, .heia-knapp.dunk { animation-duration: .01s; }
}
