/* playvs.app – light = the apps' «Salbei», dark = «Nacht» (core/public/styles.css) */
:root { color-scheme: light; --bg: #F4F6F1; --glow: #E7EFE6; --text: #1F2A24; --text-2: #4F5D55; --text-3: #89958E;
  --surface: #ffffff; --line: #E1E7E2; --ring: #C9D8CD; --accent: #2F7A5B; --accent-fg: #fff; --focus: 0 0 0 3px rgba(47,122,91,.35); --shadow: 0 6px 18px -12px rgba(31,42,36,.35);
  --ball-bg: #ffffff; --ball-sh: 0 10px 22px -12px rgba(31,42,36,.55); }
:root[data-theme="dark"] { color-scheme: dark; --bg: #0B1226; --glow: #1A2350; --text: #EEF2FF; --text-2: #9AA6C8; --text-3: #616D96;
  --surface: rgba(255,255,255,.06); --line: rgba(255,255,255,.09); --ring: rgba(255,255,255,.14); --accent: #FF7A66; --accent-fg: #2A0B05; --focus: 0 0 0 3px rgba(255,122,102,.55); --shadow: none;
  --ball-bg: #F3F5FB; --ball-sh: 0 10px 26px -10px rgba(0,0,0,.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0B1226; --glow: #1A2350; --text: #EEF2FF; --text-2: #9AA6C8; --text-3: #616D96;
  --surface: rgba(255,255,255,.06); --line: rgba(255,255,255,.09); --ring: rgba(255,255,255,.14); --accent: #FF7A66; --accent-fg: #2A0B05; --focus: 0 0 0 3px rgba(255,122,102,.55); --shadow: none;
  --ball-bg: #F3F5FB; --ball-sh: 0 10px 26px -10px rgba(0,0,0,.8); } }
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; min-height: 100vh; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); overflow-x: hidden;
  background: radial-gradient(900px 500px at 85% 0%, var(--glow) 0%, transparent 60%), var(--bg); }
main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 40px; padding-top: max(18px, env(safe-area-inset-top)); }
a { color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.brand b { font-size: 22px; letter-spacing: -.01em; }
.tools { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg a { padding: 6px 11px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--text-2); }
.seg a[aria-current] { background: var(--accent); color: var(--accent-fg); }
.iconbtn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lead { color: var(--text-2); margin: 14px 0 6px; max-width: 40rem; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 26px 0 10px; }
a:focus-visible, .iconbtn:focus-visible { outline: none; box-shadow: var(--focus); }
footer { margin-top: 30px; font-size: 13.5px; color: var(--text-3); display: flex; gap: 6px 14px; flex-wrap: wrap; }
footer a { color: var(--text-2); }
footer .credit { flex-basis: 100%; font-size: 12px; }

/* ---------------------------------------------------------------- the tile grid: without JavaScript only */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; } }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); min-width: 0; }
a.tile:hover { border-color: var(--accent); }
.ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.tile b { font-size: 16.5px; line-height: 1.2; overflow-wrap: anywhere; }
.tile small { color: var(--text-2); font-size: 13px; line-height: 1.35; }
.tag { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 700; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.tile.soon { opacity: .66; }
.tag.lan { color: var(--accent); border-color: currentColor; }
.js .tiles { display: none; }
html:not(.js) .orbit { display: none; }

/* ---------------------------------------------------------------- the orbit: the player in the middle, the apps around */
.orbit { --rx: 36.5%; --ry: 37%; --b: clamp(54px, 16.5vw, 70px); --av: clamp(86px, 27vw, 112px); --item: 92px;
  position: relative; width: 100%; aspect-ratio: 1 / 1.24; margin: 8px auto 40px; list-style: none; padding: 0; }
@media (min-width: 700px) { .orbit { --rx: 39%; --ry: 38%; --b: 104px; --av: 148px; --item: 150px; aspect-ratio: 16 / 10.4; max-width: 940px; } }
.orbit-ring { position: absolute; left: calc(50% - var(--rx)); right: calc(50% - var(--rx)); top: calc(50% - var(--ry)); bottom: calc(50% - var(--ry));
  border: 1.5px dashed var(--ring); border-radius: 50%; pointer-events: none; }
.ob { --s: 1; --bc: calc(var(--b) * var(--s)); position: absolute; width: var(--item); left: calc(50% + var(--ox) * var(--rx)); top: calc(50% + var(--oy) * var(--ry));
  transform: translate(-50%, calc(var(--bc) / -2)); text-align: center; z-index: 1; }
.ob > a, .ob > div { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--text); border-radius: 18px; padding-bottom: 2px; }
.ob-ball { width: var(--bc); height: var(--bc); animation: ob-bob var(--dur, 4s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes ob-bob { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .ob-ball { animation: none; } }
.ob-pic { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c) 16%, var(--ball-bg));
  border: 3px solid var(--c); box-shadow: var(--ball-sh); transition: filter .3s, opacity .3s, transform .2s; }
.ob-pic img { display: block; }
.pics-openmoji .ob-pic img { width: 78%; height: 78%; }
.pics-photo .ob-pic img { width: 100%; height: 100%; object-fit: cover; }
.ob > a:hover .ob-pic { transform: scale(1.05); }
.ob-name { font-weight: 800; font-size: 12.5px; line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; margin-top: 4px; }
.ob-tag:empty { display: none; }
.ob-tag { display: flex; justify-content: center; max-width: 100%; }
.ob-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; background: var(--surface); }
.ob-pill.new { color: var(--accent); border-color: currentColor; }
@media (min-width: 700px) { .ob-name { font-size: 15px; } .ob-pill { font-size: 11.5px; } }
/* signed out: every app the same size, in colour; signed in: played apps big and in colour, the others small and pale */
.orbit.out .ob { --s: .88; }
.ob.played { --s: 1; z-index: 2; }
.ob.new, .ob.soon { --s: .74; }
.ob.new .ob-pic, .ob.soon .ob-pic { filter: saturate(.25) brightness(1.04); opacity: .72; border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: none; }
.orbit.out .ob.soon .ob-pic { opacity: .62; }
.ob.new .ob-name, .ob.soon .ob-name { color: var(--text-2); }
.tier-badge { --tc: #b9773d; --tc2: #e9a96b; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: linear-gradient(180deg, var(--tc2), var(--tc)); box-shadow: 0 2px 0 rgba(0,0,0,.25); white-space: nowrap; color: #1c1408; text-shadow: 0 1px 0 rgba(255,255,255,.35); max-width: 100%; }
.tier-badge .tier-emb { width: 1.45em; height: 1.45em; flex: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.tier-badge > span { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 700px) { .tier-badge { font-size: 13px; padding: 3px 10px 3px 5px; } }

.ob-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: calc(var(--av) * 1.5); text-align: center; z-index: 3; }
.ob-av { width: var(--av); height: var(--av); border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent), var(--ball-sh); }
.ob-av svg, .ob-av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ob-me-name { font-weight: 800; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
@media (min-width: 700px) { .ob-me-name { font-size: 19px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 8px 18px -10px var(--accent); }
.orbit:not(.out) .ob-signin { display: none; }

/* legal and credit pages */
.legal main { max-width: 42rem; }
.legal h1 { font-size: 1.5rem; margin: 22px 0 6px; }
.legal section + section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 6px; }
mark.todo { background: #ffe08a; color: #3a2c00; padding: 0 .25em; border-radius: 3px; }
.credits li { margin: 8px 0; }

/* ---------------------------------------------------------------- «mehr Pepp und Farbe und Freude» (owner, 28.11.2026)
   Warm page, a rounded heading font, balls as saturated gradients in the app colour with a soft glow, the emoji bigger
   and tilted, a bounce on hover / tap and a small burst of sparks on a tap (orbit.js). Still under reduced motion. */
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-wght.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
:root { --bg: #FFF8F0; --glow: #FFE2C2; --glow2: #FFD3E0; --glow3: #D9F0FF; --text: #2A2320; --text-2: #5E524B; --text-3: #8F8178;
  --surface: #ffffff; --line: #F0E1D3; --ring: #EBC9AE; --accent: #C8442B; --accent-2: #F0A030; --accent-fg: #fff; --focus: 0 0 0 3px rgba(200,68,43,.35);
  --shadow: 0 8px 22px -14px rgba(120,60,30,.45); --halo: rgba(255,255,255,.95); --hello-2: #B85410; } /* the heading's warm end keeps ≥ 4.5:1 on the cream page */
:root[data-theme="dark"] { --bg: #12142C; --glow: #3B2152; --glow2: #4C2236; --glow3: #16365A; --text: #F4F1FF; --text-2: #B3AECF; --text-3: #7D78A0;
  --surface: rgba(255,255,255,.07); --line: rgba(255,255,255,.1); --ring: rgba(255,190,150,.28); --accent: #FF8A6B; --accent-2: #FFC857; --accent-fg: #2A0B05;
  --focus: 0 0 0 3px rgba(255,138,107,.55); --shadow: none; --halo: rgba(255,255,255,.28); --hello-2: #FFC857; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #12142C; --glow: #3B2152; --glow2: #4C2236; --glow3: #16365A; --text: #F4F1FF; --text-2: #B3AECF; --text-3: #7D78A0;
  --surface: rgba(255,255,255,.07); --line: rgba(255,255,255,.1); --ring: rgba(255,190,150,.28); --accent: #FF8A6B; --accent-2: #FFC857; --accent-fg: #2A0B05;
  --focus: 0 0 0 3px rgba(255,138,107,.55); --shadow: none; --halo: rgba(255,255,255,.28); --hello-2: #FFC857; } }
body { background: radial-gradient(700px 480px at 0% -8%, var(--glow) 0%, transparent 62%), radial-gradient(760px 520px at 100% 4%, var(--glow2) 0%, transparent 60%),
  radial-gradient(900px 600px at 50% 110%, var(--glow3) 0%, transparent 60%), var(--bg); background-attachment: fixed; }
.brand b, .hello, .ob-name, .ob-me-name, .btn, .ob-pill, .seg a { font-family: "Nunito", system-ui, sans-serif; }
.brand b { font-weight: 900; font-size: 24px; }
.brand-mark { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-family: "Nunito", system-ui, sans-serif; font-weight: 900; transform: rotate(-6deg);
  box-shadow: 0 6px 16px -6px var(--accent); }
.hello { font-weight: 900; font-size: clamp(26px, 7.4vw, 44px); line-height: 1.08; letter-spacing: -.01em; margin: 18px 0 4px;
  background: linear-gradient(90deg, var(--accent), var(--hello-2, var(--accent-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 4px; }
.orbit-ring { border: 2px dotted var(--ring); }
.ob-name { font-weight: 900; font-size: 13px; }
@media (min-width: 700px) { .ob-name { font-size: 16px; } }

/* the balls */
.ob-pic { position: relative; overflow: visible; border: 3px solid var(--halo);
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--c) 45%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 72%, #000) 100%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent), 0 14px 30px -10px color-mix(in srgb, var(--c) 80%, transparent);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .3s, opacity .3s, box-shadow .3s; }
.ob-pic::after { content: ""; position: absolute; left: 16%; top: 9%; width: 42%; height: 26%; border-radius: 50%; background: rgba(255,255,255,.38); filter: blur(2px); transform: rotate(-24deg); pointer-events: none; }
.pics-openmoji .ob-pic img { width: 88%; height: 88%; transform: rotate(var(--tilt, -8deg)); filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ob:nth-child(even) { --tilt: 8deg; }
.ob > a:hover .ob-pic, .ob > a:focus-visible .ob-pic { transform: scale(1.1) translateY(-3px); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 30%, transparent), 0 18px 36px -10px color-mix(in srgb, var(--c) 90%, transparent); }
.ob > a:hover .ob-pic img, .ob > a:focus-visible .ob-pic img { transform: rotate(calc(var(--tilt, -8deg) * -1.4)) scale(1.06); }
.ob > a:active .ob-pic, .ob.pop .ob-pic { animation: ob-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes ob-pop { 0% { transform: scale(1); } 30% { transform: scale(.88); } 65% { transform: scale(1.16); } 100% { transform: scale(1.04); } }
.ob > a:focus-visible { box-shadow: none; outline: none; }
.ob > a:focus-visible .ob-name { text-decoration: underline; text-decoration-thickness: 2px; }
/* not played yet: smaller and quieter, but still with a bit of colour */
.ob.new .ob-pic, .ob.soon .ob-pic { filter: saturate(.78) brightness(1.08); opacity: .86; border-color: var(--halo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 14%, transparent); }
.ob.played .ob-pic { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent), 0 0 26px 2px color-mix(in srgb, var(--c) 55%, transparent), 0 14px 30px -10px color-mix(in srgb, var(--c) 85%, transparent); }
.ob-pill.new { color: #fff; border: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); box-shadow: 0 3px 8px -4px var(--accent); }
:root[data-theme="dark"] .ob-pill.new { color: #2A0B05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ob-pill.new { color: #2A0B05; } }
.btn { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 900; padding: 9px 20px; box-shadow: 0 10px 22px -10px var(--accent); }
:root[data-theme="dark"] .btn { color: #2A0B05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #2A0B05; } }
/* the player in the middle: a ring in warm colours */
.ob-av { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px transparent, 0 16px 34px -14px rgba(0,0,0,.5);
  background: var(--surface); outline: 4px solid transparent; position: relative; }
.ob-me::before { content: ""; position: absolute; left: 50%; top: 0; width: calc(var(--av) + 16px); height: calc(var(--av) + 16px); transform: translate(-50%, -8px); border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), #7ED957, #4FB7F0, #A879F0, var(--accent)); z-index: -1; animation: ob-spin 18s linear infinite; }
@keyframes ob-spin { to { transform: translate(-50%, -8px) rotate(360deg); } }
/* sparks of a tap (orbit.js) */
.spark { position: absolute; left: 0; top: 0; width: var(--sz, 8px); height: var(--sz, 8px); border-radius: var(--r, 50%); background: var(--sc); pointer-events: none; z-index: 5;
  animation: spark .7s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes spark { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot, 90deg)) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ob-pic, .pics-openmoji .ob-pic img { transition: none; }
  .ob > a:active .ob-pic, .ob.pop .ob-pic, .ob-me::before { animation: none; }
  .ob > a:hover .ob-pic, .ob > a:focus-visible .ob-pic { transform: none; }
  .ob > a:hover .ob-pic img, .ob > a:focus-visible .ob-pic img { transform: rotate(var(--tilt, -8deg)); }
  .spark { display: none; }
}
