/* "Live now" on the front page (public/js/live-now.js): a strip of games being played right now,
   each drawn by the game's own /games/<slug>/preview.js, and "Se med" (watch along, big). */

.live-now { width: 100%; max-width: var(--maxWidth); margin: 34px auto 6px; padding: 0; box-sizing: border-box; container-type: inline-size; }
.live-now[hidden] { display: none; }
.ln-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.ln-head h4 { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ln-count { margin-left: auto; font: 600 12.5px Poppins, sans-serif; color: #4b5d6b; white-space: nowrap; flex: none; }
@container (max-width: 520px) { .ln-head { gap: 8px; } .ln-head h4 { font-size: 1.05rem; } .ln-count { font-size: 11px; } }
.ln-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: #ef233c; color: #fff; font: 800 11px Poppins, sans-serif; letter-spacing: .12em; }
.ln-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ln-pulse 1.4s ease-in-out infinite; }
@keyframes ln-pulse { 50% { opacity: .25; } }

.ln-strip-wrap { position: relative; }
.ln-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; }
.ln-strip::-webkit-scrollbar { display: none; }
/* The arrows (here and on the front page's profile images) look like the intermission's button (public/css/intermission.css
   .cta-button): its pink gradient and pink glow, with a white ring and a dark shadow so they stand out on any picture. */
.ln-arrow { position: absolute; top: calc(50% - 24px); z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; padding: 0; cursor: pointer;
  font-size: 0; color: #fff; background: linear-gradient(135deg, #ff2d78 0%, #ff5a9d 100%);
  box-shadow: 0 8px 25px rgba(255, 45, 120, .5), 0 2px 6px rgba(0, 0, 0, .3); transition: opacity .2s ease, transform .2s, box-shadow .2s; }
/* The chevron: two sides of a turned square in the middle (on its own, not beside the hidden ‹ › text), nudged against its point. */
.ln-arrow::before { content: ''; position: absolute; inset: 0; margin: auto; box-sizing: border-box; width: 12px; height: 12px; border: solid currentColor; border-width: 3px 3px 0 0; border-radius: 1px; }
.ln-arrow.next::before { rotate: 45deg; translate: -3px 0; } .ln-arrow.prev::before { rotate: -135deg; translate: 3px 0; }
.ln-arrow:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(255, 45, 120, .5), 0 3px 8px rgba(0, 0, 0, .3); }
.ln-arrow:active { transform: translateY(0); }
/* The lifted arrow keeps the strip it left under it, or a mouse at its bottom edge would make it bounce (as the cards). */
.ln-arrow:hover::after { content: ''; position: absolute; left: -2px; right: -2px; top: 100%; height: 4px; }
.ln-arrow.prev { left: 6px; } .ln-arrow.next { right: 6px; } /* inside the strip's edges, like everything else on the page */
/* Only there when there is something to see that way. */
.ln-arrow.nothing { opacity: 0; visibility: hidden; pointer-events: none; }
@container (max-width: 520px) { .ln-arrow { display: none; } }

/* One live game */
.ln-tile { position: relative; flex: 0 0 168px; aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: 18px; overflow: hidden; cursor: pointer; isolation: isolate;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22), 0 2px 5px rgba(0, 0, 0, .15); transition: transform .18s ease, box-shadow .18s ease, opacity .4s ease; }
.ln-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0, 0, 0, .28); }
.ln-tile.ln-new { animation: ln-in .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes ln-in { from { transform: scale(.85); opacity: 0; } }
.ln-note { position: absolute; left: 50%; top: 46%; z-index: 7; translate: -50% -50%; width: max-content; max-width: 84%; padding: 8px 14px; border-radius: 14px; text-align: center;
  background: rgba(15, 23, 42, .78); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none;
  animation: ln-note-in .35s cubic-bezier(.2, .9, .3, 1.3); }
.ln-note[hidden] { display: none; }
.ln-note b { display: block; font: 800 13px/1.25 Poppins, sans-serif; }
.ln-note span { display: block; margin-top: 2px; font: 600 10.5px/1.3 Poppins, sans-serif; opacity: .8; }
.ln-watch .ln-note b { font-size: 17px; } .ln-watch .ln-note span { font-size: 13px; }
@keyframes ln-note-in { from { opacity: 0; scale: .85; } }
/* Between rounds: a small card in the intermission's colours (public/css/intermission.css), the board still in view */
.ln-board { transition: filter .5s ease; }
.ln-paused .ln-board { filter: brightness(.82); }
.ln-pause { position: absolute; left: 10px; right: 10px; bottom: 50px; z-index: 7; display: flex; flex-direction: column; align-items: center; padding: 8px 8px 9px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(61, 26, 69, .94), rgba(26, 10, 31, .94)); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-align: center; pointer-events: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 18px rgba(255, 45, 120, .22); animation: ln-pause-in .5s cubic-bezier(.22, 1, .36, 1); }
.ln-pause[hidden] { display: none; }
@keyframes ln-pause-in { from { opacity: 0; transform: translateY(30%) scale(.94); } }
.ln-pause-title { font: 800 10px/1.2 Poppins, sans-serif; text-transform: uppercase; letter-spacing: 1.2px; color: #00ff88; animation: ln-pause-bounce .6s cubic-bezier(.68, -.55, .265, 1.55) .15s backwards; }
.ln-pause-title.gold { color: #ffd700; } .ln-pause-title.soft { color: #ff8fbd; }
@keyframes ln-pause-bounce { from { transform: scale(.4); opacity: 0; } }
.ln-pause-score { margin-top: 2px; font: 800 24px/1.05 Poppins, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255, 45, 120, .6); }
.ln-pause-label { font: 700 8px/1.2 Poppins, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, .7); }
.ln-pause-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 5px; font: 700 10px/1.3 Poppins, sans-serif; }
.ln-pause-row:empty { display: none; }
.ln-pause-rank { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #ff2d78; }
.ln-pause-next { color: rgba(255, 255, 255, .75); white-space: nowrap; }
.ln-pause-next b { color: #ffd700; font-variant-numeric: tabular-nums; }
.ln-pause-next { display: inline-flex; align-items: center; gap: 3px; }
.ln-clock { display: none; width: 1.15em; height: 1.15em; fill: none; stroke: #ffd700; stroke-width: 2.4; stroke-linecap: round; }
.ln-strip .ln-clock { display: block; } .ln-strip .ln-long { display: none; }
.ln-strip .ln-pause-row { flex-wrap: nowrap; gap: 6px; }
.ln-strip .ln-pause { left: 12%; right: 12%; padding: 6px 6px 7px; }
.ln-strip .ln-pause-label { display: none; }
.ln-spark { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; pointer-events: none; animation: ln-spark .85s ease-out forwards; }
@keyframes ln-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.2); } }
.ln-watch .ln-pause { left: 18%; right: 18%; bottom: 70px; padding: 14px 14px 16px; border-radius: 18px; }
.ln-watch .ln-pause-title { font-size: 13px; letter-spacing: 2px; }
.ln-watch .ln-pause-score { font-size: 44px; margin-top: 4px; }
.ln-watch .ln-pause-label { font-size: 10.5px; }
.ln-watch .ln-pause-row { font-size: 13px; margin-top: 10px; }
.ln-watch .ln-spark { width: 7px; height: 7px; }
@container (max-width: 520px) { .ln-strip .ln-pause { left: 8%; right: 8%; bottom: 46px; } .ln-strip .ln-pause-title { font-size: 9px; letter-spacing: .8px; } .ln-strip .ln-pause-score { font-size: 19px; } .ln-strip .ln-pause-row { font-size: 9px; } }
@container (max-width: 520px) { .ln-strip .ln-note { padding: 5px 9px; border-radius: 10px; } .ln-strip .ln-note b { font-size: 11px; } .ln-strip .ln-note span { font-size: 9px; } }
@container (max-width: 520px) { .ln-tile { flex-basis: 142px; } }
.ln-block-champ { background: radial-gradient(circle at 50% 40%, #4a1838, #1c0a17); }
.ln-lollipop { background: radial-gradient(circle at 50% 40%, #f79af0, #d846c9); }
.ln-word-blast { background: #3b82c4; }
.ln-board { position: absolute; z-index: 0; inset: 34px 8px 44px; container-type: size; display: grid; place-items: center; } /* its own layer: the hand, effects and floating points stay inside it */
.ln-word-blast .ln-board { inset: 0; padding: 34px 8px 44px; }
.ln-deco { display: none; } /* the big logo and the game's title, for the looks that use them */
.ln-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; z-index: 6; pointer-events: none; }
.ln-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff;
  font: 700 10.5px Poppins, sans-serif; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-chip img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.ln-chip.ln-mode { padding: 3px 8px; flex: none; }
.ln-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 7px; padding: 18px 10px 9px;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); color: #fff; }
.ln-bottom img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; flex: none; background: #fff; }
.ln-name { font: 700 12px Poppins, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ln-score { margin-left: auto; font: 800 15px Poppins, sans-serif; font-variant-numeric: tabular-nums; }
.ln-score.bump { animation: ln-bump .45s ease; }
@keyframes ln-bump { 30% { transform: scale(1.18); color: #ffd700; } }
.ln-cta { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 7; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #1d3040; font: 800 13px Poppins, sans-serif; opacity: 0; transition: opacity .18s ease; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.ln-tile:hover .ln-cta { opacity: 1; }
.ln-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
@media (hover: none) { .ln-cta { display: none; } }

/* The empty cards the page starts with when someone is playing (index.ejs), until the boards come in. */
.live-now .ln-tile.ln-skeleton { cursor: default; pointer-events: none; background: linear-gradient(110deg, rgba(255, 255, 255, .28) 30%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .28) 70%) 0 0 / 300% 100%;
  box-shadow: none; animation: ln-skeleton 1.4s ease-in-out infinite; }
@keyframes ln-skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* "Se med": the same game, big */
.ln-watch { border: 0; padding: 16px; background: none; max-width: 100vw; max-height: 100dvh; overflow: visible;
  opacity: 0; transition: opacity .2s ease, display .2s allow-discrete, overlay .2s allow-discrete; }
.ln-watch[open] { opacity: 1; }
.ln-watch::backdrop { background-color: transparent; transition: background-color .2s ease, display .2s allow-discrete, overlay .2s allow-discrete; }
.ln-watch[open]::backdrop { background-color: rgba(0, 0, 0, .5); }
.ln-watch-card { position: relative; box-sizing: border-box; width: min(440px, calc(100vw - 32px)); padding: 16px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); scale: .92; transition: scale .2s cubic-bezier(.2, .9, .3, 1.2); }
.ln-watch[open] .ln-watch-card { scale: 1; }
@starting-style { .ln-watch[open] { opacity: 0; } .ln-watch[open] .ln-watch-card { scale: .92; } .ln-watch[open]::backdrop { background-color: transparent; } }
/* Opened and closed by a view transition (live-now.js, class "ln-vt"): the dialog has no fade, scale or backdrop fade of
   its own, the transition is all the movement. The small card morphs into the big one ("ln-game"), the big one coming
   in over the small one, which stays whole under it (Safari does not add two half-faded pictures up to a whole: the
   page would show through and blink); the page under the dialog does the same. A small card partly out of sight is cut
   alike (--ln-cut). */
.ln-watch.ln-vt, .ln-watch.ln-vt .ln-watch-card, .ln-watch.ln-vt::backdrop { transition: none; }
.ln-watch.ln-vt[open] { opacity: 1; } .ln-watch.ln-vt[open] .ln-watch-card { scale: 1; } .ln-watch.ln-vt[open]::backdrop { background-color: rgba(0, 0, 0, .5); }
@starting-style { .ln-watch.ln-vt[open] { opacity: 1; } .ln-watch.ln-vt[open] .ln-watch-card { scale: 1; } .ln-watch.ln-vt[open]::backdrop { background-color: rgba(0, 0, 0, .5); } }
::view-transition-group(ln-game) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .85, .25, 1); }
:root[data-ln-vt="close"]::view-transition-group(ln-game) { animation-duration: .38s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
::view-transition-old(ln-game), ::view-transition-new(ln-game), :root[data-ln-vt]::view-transition-old(root), :root[data-ln-vt]::view-transition-new(root) { mix-blend-mode: normal; }
/* Every fade lasts exactly as long as the move (0.45 s opening, 0.38 s closing), with its start and its end written out:
   Safari does not keep a fade's end once it is over while the transition still runs, and the value it falls back to
   (the base opacity below) is the fade's start, so the first frame does not show what is to come in. */
:root[data-ln-vt="open"]::view-transition-old(ln-game) { clip-path: var(--ln-cut); animation: ln-gone-at-2-3 .45s linear both; }
:root[data-ln-vt="open"]::view-transition-new(ln-game) { opacity: 0; animation: ln-in-2-3 .45s linear both; }
:root[data-ln-vt="close"]::view-transition-new(ln-game) { clip-path: var(--ln-cut); animation: none; }
:root[data-ln-vt="close"]::view-transition-old(ln-game) { z-index: 1; animation: ln-out-late .38s linear both; }
:root[data-ln-vt="open"]::view-transition-old(root) { animation: none; }
:root[data-ln-vt="open"]::view-transition-new(root) { opacity: 0; animation: ln-in-2-3 .45s linear both; }
:root[data-ln-vt="close"]::view-transition-old(root) { z-index: 1; animation: ln-out-all .38s linear both; }
:root[data-ln-vt="close"]::view-transition-new(root) { animation: none; }
/* The game's figure glides with the card from its place on the small card to its place on the big one, the two
   figures crossfading on the way (the browser's own move). Its shadow is not in its pictures (scaled with them it would
   grow and slide): the figure moves without one, and the shadow fades in softly once it stands in its place. */
::view-transition-group(ln-logo) { z-index: 2; animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .85, .25, 1); }
:root[data-ln-vt="close"]::view-transition-group(ln-logo) { animation-duration: .38s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
::view-transition-old(ln-logo), ::view-transition-new(ln-logo) { animation-duration: inherit; animation-timing-function: inherit; }
:root[data-ln-vt] .ln-logo { filter: none; transition: none; }
@keyframes ln-in-2-3 { 0% { opacity: 0; } 66%, 100% { opacity: 1; } }        /* comes in over the first two thirds */
@keyframes ln-gone-at-2-3 { 0%, 66% { opacity: 1; } 67%, 100% { opacity: 0; } } /* stays whole under it, then goes */
@keyframes ln-out-late { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ln-out-all { 0% { opacity: 1; } 79%, 100% { opacity: 0; } }
.ln-watch-head { display: flex; align-items: center; gap: 10px; margin: 0 44px 12px 0; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ln-watch-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; background: #fff; }
.ln-watch-head b, .ln-watch-head .ln-watch-name { display: block; font: 800 15px Poppins, sans-serif; color: inherit; text-decoration: none; }
.ln-watch-head a.ln-watch-name:hover { text-decoration: underline; }
.ln-watch-head > a { display: contents; }
a.ln-name { color: inherit; text-decoration: none; pointer-events: auto; }
a.ln-name:hover { text-decoration: underline; }
.ln-watch-head span { font: 600 12px Poppins, sans-serif; }
.ln-watch-head .ln-live { margin-left: auto; text-shadow: none; }
.ln-watch .ln-tile { width: 100%; flex: none; aspect-ratio: 4 / 5; max-height: 68vh; cursor: default; }
.ln-watch .ln-tile:hover { transform: none; }
.ln-watch .ln-score { font-size: 20px; }
.ln-watch-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
/* "Spil selv" and "Følg turneringen": the intermission's button (public/css/intermission.css .cta-button). */
.ln-play, .ln-follow { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 16px; background: linear-gradient(135deg, #ff2d78 0%, #ff5a9d 100%);
  color: #fff; font: 700 15px/1.2 Poppins, sans-serif; text-decoration: none; box-shadow: 0 8px 25px rgba(255, 45, 120, .5); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.ln-play:hover, .ln-follow:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(255, 45, 120, .5); }
.ln-play:active, .ln-follow:active { transform: translateY(0); }
.ln-play::after, .ln-follow::after { content: ''; width: 9px; height: 11px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ln-watch-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .3); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ln-watch-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

/* "Godt at vide" (the questions under the FAQPage structured data) */
.gtk { width: 100%; max-width: var(--maxWidth); margin: 34px auto 10px; padding: 0 20px; box-sizing: border-box; container-type: inline-size; }
.gtk h4 { text-align: center; margin: 0 0 14px; }
.gtk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gtk-q { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.gtk-q:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gtk-q svg { flex: none; width: 22px; height: 22px; padding: 8px; border-radius: 12px; background: #fde4f4; fill: none; stroke: #b0145f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gtk-q h5 { margin: 2px 0 4px; font: 700 14.5px Poppins, sans-serif; color: #1d3040; }
.gtk-q p { margin: 0; font: 400 13px/1.5 Poppins, sans-serif; color: #4b5d6b; }
@container (max-width: 520px) { .gtk-grid { grid-template-columns: 1fr; } }

/* ===============================================================================================
   The card look (class "lv lv-card" on the strip; "Se med" gets it too): each live game as a
   trading card in the game's colours. The title in the game's own lettering in the bar on top,
   the game's figure on the top corner, the board in a framed window, the player at the bottom and
   the score as a gold coin on the bottom corner. (Proposals: /proposals/live-cards, look J.)
   =============================================================================================== */
.lv-card .ln-block-champ, .ln-watch.lv-card .ln-block-champ { --gc1: #d9b443; --gc2: #7a4a12; }
.lv-card .ln-lollipop, .ln-watch.lv-card .ln-lollipop { --gc1: #f58ae9; --gc2: #a8239c; }
.lv-card .ln-word-blast, .ln-watch.lv-card .ln-word-blast { --gc1: #b4c555; --gc2: #5f8f00; } /* the game bar's green (style.css .wordblast-card / -gamelogo) */
/* Room for what sticks out (the strip scrolls sideways, so it clips at its padding). The cards keep to the page's
   margins (the game bars), so the first card lines up with them and a phone shows a bit of the third; only their
   shadows and, at the very end, the last card's logo go beyond:
   - the shadow is one drop-shadow on the wrapper, cast by what the strip shows, so it is not clipped with the cards;
   - the strip reaches --bleed (16 px, or the 8 px body margin when the page is that narrow) past the right margin, so
     the last card ends on the margin with its logo sticking out; a mask hides that bit until the strip is at its end. */
.lv-card .ln-strip { padding: 40px 0 50px; margin-bottom: -28px; gap: 24px; scroll-padding: 0; }
.live-now.lv-card .ln-strip-wrap { filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .25)); }
.live-now.lv-card .ln-strip { --bleed: clamp(8px, (100vw - 100cqw) / 2 - 8px, 16px); margin-right: calc(-1 * var(--bleed)); padding-right: var(--bleed);
  mask: linear-gradient(#000 0 0) 0 0 / calc(100% - var(--bleed)) 100% no-repeat; transition: mask-size .25s ease; }
.live-now.lv-card .ln-strip-wrap:has(> .ln-arrow.next.nothing) > .ln-strip:not(:has(.ln-skeleton)) { mask-size: 100% 100%; }
.live-now.lv-card .ln-tile:not(.ln-skeleton), .live-now.lv-card .ln-tile:not(.ln-skeleton):hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 0 0 6px rgba(0, 0, 0, .08); }
/* The logo sticks out no further than the bleed (turned up to 9deg it reaches up to 4 px further), or the strip would
   scroll past the margin. */
.live-now.lv-card .ln-logo { right: max(-12px, 4px - var(--bleed)); }
.lv-card .ln-arrow { top: calc(50% - 20px); }
.lv-card .ln-tile { flex-basis: 184px; aspect-ratio: 184 / 266; overflow: visible; border-radius: 18px; background: linear-gradient(160deg, var(--gc1), var(--gc2));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 0 0 6px rgba(0, 0, 0, .08), 0 12px 24px rgba(0, 0, 0, .25); }
.lv-card .ln-tile:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 0 0 6px rgba(0, 0, 0, .08), 0 18px 30px rgba(0, 0, 0, .3); }
/* The lifted card keeps the strip it left under it, or a mouse at its bottom edge would lose it and it would bounce. */
.lv-card .ln-strip .ln-tile:hover::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 6px; }
.lv-card .ln-board, .lv-card .ln-word-blast .ln-board { inset: 30px 7px 36px; padding: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(0, 0, 0, .25), inset 0 0 14px rgba(0, 0, 0, .35); }
.lv-card .ln-block-champ .ln-board { background: radial-gradient(circle at 50% 40%, #4a1838, #1c0a17); }
.lv-card .ln-lollipop .ln-board { background: radial-gradient(circle at 50% 40%, #f79af0, #c43fb8); }
.lv-card .ln-deco { display: block; position: absolute; inset: 0 0 auto; height: 30px; z-index: 8; pointer-events: none; }
.lv-card .ln-title { position: absolute; left: 11px; top: 16px; translate: 0 -50%; white-space: nowrap; }
.lv-card .ln-word-blast .ln-title { font: 400 12px/1 Bungee, sans-serif; color: #fff; text-shadow: 0 1px 0 #000, 0 2px 0 #645817; }
/* Block Champ as on its game bar: brown pixel letters in a white glow (style.css .blockchamp-title). */
.lv-card .ln-block-champ .ln-title { font: 400 10px/1 'Press Start 2P', monospace; text-transform: uppercase; color: #6d3c1b;
  text-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.lv-card .ln-lollipop .ln-title { font: 400 17px/1 Bangers, sans-serif; letter-spacing: 1px; color: #ffdb7e; text-shadow: 1px 2px 0 #000; }
.lv-card .ln-logo { position: absolute; right: -12px; top: -22px; width: 50px; height: 50px; object-fit: contain; rotate: var(--logo-turn, 6deg); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)); transition: filter .3s ease-out; }
.lv-card .ln-word-blast, .ln-watch.lv-card .ln-word-blast { --logo-turn: 0deg; }
.lv-card .ln-block-champ, .ln-watch.lv-card .ln-block-champ { --logo-turn: 6deg; }
.lv-card .ln-lollipop, .ln-watch.lv-card .ln-lollipop { --logo-turn: 9deg; }
.lv-card .ln-top { top: 23px; left: auto; right: 12px; } /* on the window's top edge: the title has the whole bar */
.lv-card .ln-top .ln-chip:first-child { display: none; }
.live-now.lv-card .ln-top { display: none; } /* the spilform only in "Se med" */
.lv-card .ln-mode { gap: 5px; padding: 3px 9px 3px 7px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(30, 15, 35, .88); color: rgba(255, 255, 255, .88);
  font: 700 8.5px/1.3 Poppins, sans-serif; text-transform: uppercase; letter-spacing: 1.2px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
/* The intermission's activity dot: green in a hall, gold in a tournament, pink solo. */
.lv-card .ln-mode::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--dot, #00ff88); box-shadow: 0 0 6px var(--dot, #00ff88); animation: ln-pulse 2s ease-in-out infinite; }
.lv-card .ln-mode[data-mode="tournament"] { --dot: #ffd700; }
.lv-card .ln-mode[data-mode="solo"] { --dot: #ff5a9d; }
/* The bottom: a dark stat panel like the intermission's, the player and the score in the
   intermission's pink pill; on new points it pops and glows gold. */
.lv-card .ln-bottom { inset: auto 7px 5px; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 3px 0 4px; box-sizing: border-box; pointer-events: none;
  border-radius: 9px; background: rgba(30, 15, 35, .8); border: 1px solid rgba(255, 255, 255, .1); }
.lv-card .ln-bottom img { width: 18px; height: 18px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.lv-card .ln-name { flex: 1; font-size: 10.5px; }
/* The score and, while a clock runs, the time left on a tab growing out of its top: one piece in the
   game's colour (Lollipop pink, Block Champ gold, Word Blast green), sticking out of the panel to the
   right and below, with the game's glow around both. */
.ln-timer { display: none; }
.lv-card .ln-scorebox { position: relative; margin-left: auto; translate: 9px 8px; --pc: #ff3d84; --pt: #fff; --glow: rgba(255, 45, 120, .6);
  filter: drop-shadow(0 3px 7px var(--glow)); }
.lv-card .ln-block-champ .ln-scorebox { --pc: #ffc21a; --pt: #5a3300; --glow: rgba(255, 190, 0, .7); }
.lv-card .ln-word-blast .ln-scorebox { --pc: #7cb518; --pt: #fff; --glow: rgba(150, 220, 0, .7); }
.lv-card .ln-score { position: relative; display: block; overflow: hidden; min-width: 64px; box-sizing: border-box; text-align: center; padding: 4px 12px; border-radius: 10px;
  color: var(--pt); font: 800 14px/1.2 Poppins, sans-serif; font-variant-numeric: tabular-nums; }
.lv-card .ln-score, .lv-card .ln-timer { background-color: var(--pc); }
/* Between rounds the intermission card shows the points and the time to the next round: no score box then. */
.lv-card .ln-scorebox { transition: opacity .3s ease, visibility .3s; }
/* On the small cards the score lies over the panel's right end, out of the row, so the name has the panel's whole
   width and runs on under the score instead of being cut short in front of it. */
.live-now.lv-card .ln-scorebox { position: absolute; right: 3px; top: 50%; margin: 0; translate: 9px calc(-50% + 8px); }
.lv-card .ln-tile:has(.ln-pause:not([hidden])) .ln-scorebox { opacity: 0; visibility: hidden; }
.lv-card .ln-timer { display: block; position: absolute; left: 50%; bottom: calc(100% - 1px); translate: -50% 0; padding: 2px 7px 0; border-radius: 7px 7px 0 0;
  color: var(--pt); font: 700 9.5px/1.25 Poppins, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-card .ln-timer[hidden] { display: none; }
/* The tab's foot curves into the score's top edge on both sides. */
.lv-card .ln-timer::before, .lv-card .ln-timer::after { content: ''; position: absolute; bottom: 0; width: 6px; height: 6px; }
.lv-card .ln-timer::before { right: 100%; background: radial-gradient(circle at 0 0, transparent 5.5px, var(--pc) 6px); }
.lv-card .ln-timer::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent 5.5px, var(--pc) 6px); }
.lv-card .ln-timer.low { animation: lv-low .8s ease-in-out infinite; }
@keyframes lv-low { 50% { color: transparent; } }
.lv-card .ln-scorebox:has(.ln-score.bump) { animation: lv-score .55s cubic-bezier(.3, 1.6, .5, 1); }
.lv-card .ln-score.bump { animation: none; }
@keyframes lv-score { 35% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(255, 215, 0, .95)); } }
.lv-card .ln-pause { bottom: 44px; left: 14px; right: 14px; }
/* Hover: "Se med" like the game's intermission: the board fades into the intermission's dark plum
   and its pink button slides in (public/css/intermission.css .cta-button): "Se med" with a play arrow
   and a small "LIVE" under it. */
.lv-card .ln-board::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(circle at 50% 50%, rgba(45, 18, 51, .35), rgba(26, 10, 31, .78)); }
.lv-card .ln-tile:is(:hover, :focus-visible) .ln-board::after { opacity: 1; }
.lv-card .ln-cta { z-index: 20; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 36px 8px 18px; border-radius: 14px; white-space: nowrap;
  background: linear-gradient(135deg, #ff2d78, #ff5a9d); color: #fff; font: 700 15px/1.1 Poppins, sans-serif; opacity: 0; transition: none;
  box-shadow: 0 8px 25px rgba(255, 45, 120, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
.lv-card .ln-cta svg { display: none; }
.lv-card .ln-cta::before { content: ''; position: absolute; right: 14px; top: 50%; width: 9px; height: 11px; margin-top: -5.5px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.lv-card .ln-cta::after { content: 'LIVE'; padding-left: 11px; font: italic 600 10px/1 Poppins, sans-serif; letter-spacing: 1px; opacity: .9;
  background: radial-gradient(circle, #fff 0 2.5px, transparent 3px) 0 50% / 7px 7px no-repeat; }
.lv-card .ln-tile:is(:hover, :focus-visible) .ln-cta { animation: lv-cta-in .35s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes lv-cta-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lv-card .ln-board { transition: filter .25s ease; }
.lv-card .ln-paused .ln-board { filter: brightness(.82); }

/* "Se med": the same card, big; the player is already named above it. */
.ln-watch.lv-card .ln-watch-card { overflow: visible; }
.ln-watch.lv-card .ln-watch-head { margin-bottom: 34px; }
.ln-watch.lv-card .ln-tile { flex-basis: auto; aspect-ratio: 4 / 5; }
.ln-watch.lv-card .ln-tile:hover { transform: none; }
.ln-watch.lv-card .ln-board { inset: 40px 12px 52px; }
.ln-watch.lv-card .ln-deco { height: 40px; }
.ln-watch.lv-card .ln-title { left: 16px; top: 21px; scale: 1.5; transform-origin: left center; }
.ln-watch.lv-card .ln-logo { width: 76px; height: 76px; top: -34px; right: -20px; }
.ln-watch.lv-card .ln-top { top: 30px; right: 62px; } /* clear of the big figure in the corner */ .ln-watch.lv-card .ln-mode { font-size: 11px; padding: 4px 12px 4px 9px; }
.ln-watch.lv-card .ln-bottom img, .ln-watch.lv-card .ln-name { display: none; }
.ln-watch.lv-card .ln-bottom { left: 12px; right: 12px; bottom: 9px; height: 36px; border-radius: 12px; justify-content: center; }
.ln-watch.lv-card .ln-scorebox { margin: 0; translate: none; }
.ln-watch.lv-card .ln-score { min-width: 104px; padding: 5px 20px; font-size: 20px; border-radius: 12px; }
.ln-watch.lv-card .ln-timer { padding: 3px 11px 0; font-size: 12.5px; border-radius: 9px 9px 0 0; }
.ln-watch.lv-card .ln-pause { bottom: 64px; }
.ln-watch.lv-card .ln-watch-foot { margin-top: 18px; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ln-watch.lv-card .ln-board::after { display: none; } /* the hover fade is for the small cards */
@container (max-width: 520px) {
  .lv-card .ln-strip { gap: 18px; }
  .lv-card .ln-tile { flex-basis: 152px; }
  .lv-card .ln-title { scale: .85; transform-origin: left center; }
  .lv-card .ln-name { font-size: 10px; }
  .lv-card .ln-scorebox { translate: 7px 7px; }
  .live-now.lv-card .ln-scorebox { translate: 7px calc(-50% + 7px); }
  .lv-card .ln-score { font-size: 12px; padding: 3px 9px; min-width: 56px; border-radius: 9px; }
  .lv-card .ln-timer { font-size: 8.5px; padding: 1px 6px 0; }
}
/* An ended game holding its place for the next one (live-now.js). */
.ln-tile.ln-held { cursor: default; }
.ln-tile.ln-held .ln-cta { display: none; }

/* Out of sight (live-now.js sets .ln-quiet): no animations at all in the strip. */
.ln-quiet .ln-strip *, .ln-quiet .ln-strip *::before, .ln-quiet .ln-strip *::after { animation-play-state: paused !important; }
