/* horoskop.pi design system: night sky, nebulae, gold, glass. */

:root {
  --bg: #050c1a;
  --bg-2: #0a162c;
  --ink: #eaedff;
  --ink-2: #c2cbea;
  --muted: #939fc2;
  --faint: #8793b3;
  --line: rgba(205, 216, 255, 0.10);
  --line-2: rgba(205, 216, 255, 0.18);
  --glass: rgba(18, 30, 58, 0.55);
  --gold: #e8c77d;
  --gold-2: #f6e2a9;
  --gold-3: #b8914a;
  --blue: #7b90ff;
  --rose: #f28fb8;
  --warn: #f3b08e;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --glyph: 'Noto Sans Symbols', 'Segoe UI Symbol', 'DejaVu Sans', sans-serif;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* No zooming, by double tap or by pinch: the app used to stay zoomed in and looked broken. */
html, body { margin: 0; min-height: 100%; touch-action: pan-x pan-y; }
body {
  background: radial-gradient(1200px 800px at 50% -10%, #142550 0%, var(--bg-2) 40%, var(--bg) 75%) fixed, var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-2); }
img { max-width: 100%; display: block; }
.glyph { font-family: var(--glyph); font-variant-emoji: text; line-height: 1; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- sky */
#sky { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.nebula { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.nebula i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45;
  animation: drift 60s ease-in-out infinite alternate;
}
.nebula i:nth-child(1) { width: 70vmax; height: 50vmax; left: -25vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(72, 91, 255, 0.55), transparent); }
.nebula i:nth-child(2) { width: 60vmax; height: 45vmax; right: -25vmax; top: 30vh; background: radial-gradient(closest-side, rgba(242, 110, 180, 0.30), transparent); animation-duration: 80s; }
.nebula i:nth-child(3) { width: 55vmax; height: 40vmax; left: 10vw; bottom: -25vmax; background: radial-gradient(closest-side, rgba(70, 200, 210, 0.22), transparent); animation-duration: 95s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, -3vh, 0) scale(1.12); } }

/* ---------------------------------------------------------------- layout */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top, 0px)) 2px 8px; }
.brand { min-height: 40px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: 0.3px; }
.brand-name b { color: var(--gold); font-weight: 600; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; min-height: 40px; border-radius: 999px; text-decoration: none;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer;
}
.chip-btn .glyph { color: var(--gold); }
.chip-btn.active { border-color: var(--gold); color: var(--gold-2); background: rgba(232, 199, 125, 0.12); }
#view { outline: none; }
.view-enter { animation: rise 0.45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- tab bar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); z-index: 20;
  width: min(496px, calc(100% - 24px)); height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(11, 20, 40, 0.78); border: 1px solid var(--line); border-radius: 24px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: 0.2px; transition: color .2s; }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform .25s; }
.tab.active { color: var(--gold); }
.tab.active svg { transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 0 8px rgba(232, 199, 125, 0.45)); }

/* ---------------------------------------------------------------- Android
   Pi Browser on Android redraws every blurred glass surface on each scroll frame, and with a list of cards over a
   moving sky the scroll stutters (seen on a Samsung, 15.10.2026). There the same look is drawn without blur: the
   glass is a little more opaque, the nebula is still (its gradients are soft on their own), the stars still twinkle.
   The computer and the iPhone keep the glass. */
html.android .card, html.android .chip-btn, html.android .tabbar, html.android .sheet-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.android .card, html.android .chip-btn { background: rgba(14, 24, 48, 0.86); }
html.android .card.soft { background: rgba(14, 24, 48, 0.6); }
html.android .tabbar { background: rgba(11, 20, 40, 0.94); }
html.android .nebula i { filter: none; animation: none; }

/* ---------------------------------------------------------------- cards */
.card {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 14px 0; box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card.soft { background: rgba(18, 30, 58, 0.35); box-shadow: none; }
.card h2, .card h3 { margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.2px; line-height: 1.15; }
h1 { font-size: 34px; margin: 6px 0 4px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.2px; font-size: 11px; font-weight: 700; color: var(--gold); }
.lead { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); margin: 6px 0 10px; }
p { margin: 0 0 10px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 16px 0; border: 0; }

/* ---------------------------------------------------------------- buttons */
a.btn { text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px 18px; border-radius: 16px; border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: 0.2px; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); color: #241a05; box-shadow: 0 8px 26px rgba(232, 199, 125, 0.25); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--ink); }
.btn-danger { background: rgba(243, 176, 142, 0.12); border-color: var(--warn); color: var(--warn); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn svg, .link-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.chip-btn svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }
.streak svg { width: 16px; height: 16px; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.link-btn { background: none; border: 0; color: var(--gold-2); font-weight: 600; cursor: pointer; padding: 6px 0; min-height: 40px; text-decoration: none; }

/* ---------------------------------------------------------------- hero wheel */
.hero { position: relative; display: grid; place-items: center; margin: 4px 0 2px; }
.wheel { width: var(--wheel, min(330px, 86vw)); height: auto; overflow: visible; }
/* The turning wheel (ui/wheel.js) is three stacked layers that CSS animates: the ring, the symbols
   (each one turning back to stay upright) and the still middle. The phone only moves finished
   pictures, so it is smooth and cheap. One turn takes 12 minutes and the start angle comes from the
   clock through --spin-at. */
/* The turning layers are squares; their corners must not make the page wider than the screen. */
.wheel-spin { position: relative; height: var(--wheel, min(330px, 86vw)); overflow: hidden; }
.wheel-spin > * { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.wheel-turn, .wheel-up { animation: wheel-turn 720s linear infinite; animation-delay: var(--spin-at, 0s); will-change: transform; }
/* One symbol sits in a small square (24 of the wheel's 344 units) centered on its place. */
.wheel-up { position: absolute; width: 6.977%; height: 6.977%; margin: -3.488% 0 0 -3.488%; overflow: visible; animation-name: wheel-upright; }
@keyframes wheel-turn { to { transform: rotate(-360deg); } }
@keyframes wheel-upright { to { transform: rotate(360deg); } }
.wheel .ring { fill: none; stroke: var(--line-2); }
.wheel .ring-gold { fill: none; stroke: rgba(232, 199, 125, 0.55); stroke-width: 1; }
.wheel .tick { stroke: rgba(205, 216, 255, 0.25); }
/* Symbols are placed by their measured ink (ui/wheel.js), from the ordinary baseline. The sizes are repeated there. */
.wheel .sign-glyph { fill: var(--ink-2); font-family: var(--glyph); font-size: 15px; text-anchor: middle; }
.wheel .sign-glyph.me { fill: var(--gold); font-size: 17px; }
.wheel .sector.me { fill: rgba(232, 199, 125, 0.10); }
.wheel .planet { font-family: var(--glyph); font-size: 14px; text-anchor: middle; fill: var(--ink); }
.wheel .planet-dot { fill: var(--gold); }
.wheel .planet-bg { fill: rgba(9, 17, 36, 0.9); stroke: rgba(232, 199, 125, 0.5); stroke-width: 0.8; }
.wheel .center-star { fill: var(--gold); filter: drop-shadow(0 0 12px rgba(232, 199, 125, 0.55)); }
.wheel .center-glyph { font-family: var(--glyph); font-size: 44px; fill: var(--gold); text-anchor: middle; filter: drop-shadow(0 0 12px rgba(232, 199, 125, 0.55)); }
/* Today's wheel leaves room for the horoscope on a low screen (Stefan, 24.10.2026). */
.today-hero { --wheel: min(210px, 54vw, 25vh); }
.hero-caption { text-align: center; margin-top: -2px; }
.hero-caption .date { font-family: var(--serif); font-size: 22px; }
.hero-caption .sub { color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- sign picker */
.sign-strip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.sign-strip::-webkit-scrollbar { display: none; }
/* With a mouse there is no swipe, so the strip shows that it scrolls and can be dragged. */
@media (hover: hover) and (pointer: fine) {
  .sign-strip { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; cursor: grab; }
  .sign-strip::-webkit-scrollbar { display: block; height: 6px; }
  .sign-strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
  .sign-strip.dragging { cursor: grabbing; scroll-snap-type: none; }
  .sign-strip.dragging .sign-chip { pointer-events: none; }
}
.sign-chip {
  flex: 0 0 auto; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 64px; padding-inline: 4px; padding: 10px 0 8px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.sign-chip .glyph { font-size: 22px; }
.sign-chip span:last-child { font-size: 11px; font-weight: 600; }
.sign-chip.active { border-color: rgba(232, 199, 125, 0.7); color: var(--gold-2); background: linear-gradient(180deg, rgba(232, 199, 125, 0.16), rgba(232, 199, 125, 0.04)); box-shadow: 0 0 22px rgba(232, 199, 125, 0.15); }

.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sign-grid .sign-chip { width: auto; padding: 14px 4px 10px; }
.sign-grid .sign-chip .glyph { font-size: 28px; }
.sign-grid .sign-chip small { font-size: 10.5px; color: var(--faint); font-weight: 500; }
/* Until a sign is chosen, a soft gold wave runs over the twelve signs in reading order every five seconds, so it is
   plain they are to be tapped (Stefan, 24.10.2026). Border and tint only: cheap to draw on Android. */
@keyframes chip-wave { 0%, 20%, 100% { border-color: var(--line); background-color: var(--glass); } 9% { border-color: rgba(232, 199, 125, 0.8); background-color: rgba(232, 199, 125, 0.12); } }
.sign-grid.waiting .sign-chip { animation: chip-wave 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.08s + 0.6s); }
@media (prefers-reduced-motion: reduce) { .sign-grid.waiting .sign-chip { animation: none; } }

/* ---------------------------------------------------------------- period tabs */
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(8, 15, 30, 0.6); border: 1px solid var(--line); }
.seg button { position: relative; overflow-wrap: anywhere; border: 0; background: none; padding: 11px 2px; min-height: 42px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.active { background: linear-gradient(180deg, rgba(232, 199, 125, 0.22), rgba(232, 199, 125, 0.08)); color: var(--gold-2); }
.seg .lock { position: absolute; top: 3px; right: 4px; width: 12px; height: 12px; opacity: 1; }
/* Personal or general, the two buttons on the horoscope card. */
.seg.two { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.seg.two button { min-height: 40px; padding: 8px 2px; font-size: 13px; }

/* ---------------------------------------------------------------- horoscope */
.h-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.h-sign { display: flex; align-items: center; gap: 12px; }
.h-sign .glyph { font-size: 38px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(232, 199, 125, 0.35)); }
.h-sign .name { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.h-sign .when { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
/* An empty star stays clearly visible, so "2 of 5" reads as two of five and not as two stars. */
.stars .off { opacity: 0.4; }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.area { min-width: 0; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.area-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
/* On a phone two columns are too narrow for a name and five stars in one line, so each area takes a row. */
@media (max-width: 479px) { .areas:not(.bare) { grid-template-columns: minmax(0, 1fr); } }
/* Week and month show only the ratings: the name in the middle and the stars under it. */
.areas.bare { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.areas.bare .area { padding: 12px 4px; }
.areas.bare .area-head { flex-direction: column; justify-content: center; margin-bottom: 0; }
.areas.bare .area .stars svg { width: 14px; height: 14px; }
/* On the narrowest phones (320 px) three cells leave about 70 px each, less than five stars of 14 px need. */
@media (max-width: 350px) {
  .areas.bare { gap: 6px; }
  .areas.bare .area { padding: 10px 2px; }
  .areas.bare .area .stars svg { width: 11px; height: 11px; }
  .areas.bare .area-name { font-size: 12px; gap: 4px; }
  .areas.bare .area-name svg { width: 14px; height: 14px; }
}
.area .stars svg { width: 12px; height: 12px; }
.area-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.area-name svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.7; }
.area p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink-2); }
@media (max-width: 380px) { .areas { grid-template-columns: 1fr; } }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(123, 144, 255, 0.10); border: 1px solid rgba(123, 144, 255, 0.25); font-size: 14px; margin-top: 10px; }
.note .glyph { color: var(--blue); font-size: 18px; margin-top: 2px; }
.tip { background: rgba(232, 199, 125, 0.08); border-color: rgba(232, 199, 125, 0.25); }
.tip .glyph { color: var(--gold); }
.lucky { display: flex; gap: 10px; margin-top: 12px; }
.lucky > div { flex: 1; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.lucky .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; }
.lucky .v { font-family: var(--serif); font-size: 22px; display: flex; align-items: center; gap: 8px; }
.lucky-note { margin: 8px 2px 0; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); display: inline-block; }
details.why { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.why summary { cursor: pointer; list-style: none; min-height: 40px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; color: var(--gold-2); }
details.why summary::-webkit-details-marker { display: none; }
details.why summary::after { content: '+'; font-size: 20px; color: var(--gold); transition: transform .2s; }
details.why[open] summary::after { transform: rotate(45deg); }
details.why ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
details.why li { margin: 4px 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; background: rgba(232, 199, 125, 0.15); color: var(--gold-2); border: 1px solid rgba(232, 199, 125, 0.35); }
.badge.blue { background: rgba(123, 144, 255, 0.14); color: #bfcbff; border-color: rgba(123, 144, 255, 0.4); }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--gold-2); }

/* locked */
.locked { position: relative; overflow: hidden; }
.locked .blur { filter: blur(7px); opacity: 0.55; user-select: none; pointer-events: none; }
.lock-panel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; gap: 10px; background: linear-gradient(180deg, rgba(5, 12, 26, 0.2), rgba(5, 12, 26, 0.85)); }
.lock-panel .lock-ico { width: 40px; height: 40px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.lock-panel h3 { margin: 0; }
.lock-panel .btn { max-width: 300px; }

/* sections list (week, month) */
.section { padding: 14px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; padding-top: 0; }
.section h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold-2); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.section h4 .when { white-space: nowrap; margin-left: auto; font-family: var(--sans); font-size: 13px; font-weight: 400; }
.section h4 .when.below { flex-basis: 100%; margin-left: 25px; white-space: normal; }
.section h4 .glyph { font-size: 17px; color: var(--gold); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.event-list li:last-child { border-bottom: 0; }
/* "Coming up in the sky": the event is what is read, so it comes first, with its date and time under it. */
.event-list.soon li { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.event-list.soon .d { display: block; min-width: 0; margin-top: 2px; color: var(--muted); font-weight: 500; font-size: 13px; }
.event-list .d { min-width: 74px; color: var(--gold-2); font-weight: 700; font-size: 13px; }
.ico-lg { width: 28px; height: 28px; }
.streak-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.streak-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.streak-dots i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.streak-dots i.on { background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); box-shadow: 0 0 10px rgba(232, 199, 125, 0.35); }
.ledger { margin: 4px 0 12px; padding: 4px 14px; border-radius: 16px; background: rgba(6, 12, 26, 0.35); border: 1px solid var(--line); }
.ledger-left { margin: 10px 0 4px; font-weight: 700; color: var(--gold-2); }
.ledger .kv { padding: 7px 0; font-size: 14px; }
.mini { white-space: nowrap; color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 3px; }
.mini svg { width: 13px; height: 13px; color: var(--gold); margin-left: 6px; }
.event-list li { align-items: center; }
.days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.days span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 13px; }
.days span[data-open] { padding: 11px 10px; }

/* ---------------------------------------------------------------- sky page */
.moon-hero { display: flex; gap: 18px; align-items: center; }
.moon-hero svg { width: 118px; height: 118px; flex: 0 0 auto; filter: drop-shadow(0 0 24px rgba(246, 226, 169, 0.25)); }
.moon-hero .phase { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.planet-list { list-style: none; margin: 0; padding: 0; }
.planet-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.planet-list li:last-child { border-bottom: 0; }
.planet-list .pg { font-size: 20px; color: var(--gold); text-align: center; }
.planet-list .pn { font-weight: 600; }
.planet-list .ps { color: var(--ink-2); font-size: 14px; text-align: right; }
.rx { color: var(--rose); font-weight: 700; margin-left: 4px; }

/* ---------------------------------------------------------------- love */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.pair-slot { text-align: center; padding: 14px 6px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.pair-slot .glyph { font-size: 34px; color: var(--gold); display: block; margin: 4px 0; }
.pair-slot .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; }
.pair-slot .change { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--gold); letter-spacing: 0.4px; }
.pass-inline { text-align: center; }
.pass-inline .btn { margin-top: 10px; }
.lock-panel .link-btn, .pass-inline .link-btn { display: block; margin: 8px auto 0; }
.offer h2 { margin: 6px 0 4px; }
.offer h3 svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--gold); }
.offer .price { font-family: var(--sans); font-weight: 800; color: var(--gold); white-space: nowrap; }
.offer .item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.offer .item:first-of-type { border-top: 0; }
.offer .item h4 { margin: 0 0 4px; font-size: 16px; }
.offer .item p { margin: 0; }
.offer .item .grow { flex: 1; }
.offer .item .side { text-align: right; flex: 0 0 auto; }
.offer .item .side .link-btn { display: block; margin-left: auto; font-size: 14px; }
.nowrap { white-space: nowrap; }
/* 4. the long gift label stays on one line on narrow phones */
.gift-box [data-gift-buy] { font-size: 14px; }
/* 7. the chart wheel never spills over the card padding */
.card .wheel { max-width: 100%; }
/* 9. no reserved space for the tab bar while it is hidden */
.no-tabbar .app { padding-bottom: 16px; }
/* a bare icon inside a sheet never grows to fill it */
.sheet-body > svg, .sheet-body .center > svg { width: 28px; height: 28px; }
.sign-about .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.sign-about h4 { margin: 14px 0 4px; font-family: var(--serif); font-size: 18px; color: var(--gold-2); }
.sign-about p { color: var(--ink-2); font-size: 14.5px; }
.sign-about summary .glyph { color: var(--gold); margin-right: 4px; }
.gift-code { cursor: pointer; }
/* Invite card: on narrow phones the button goes under the text. */
/* The invite cards on Today and under Me: centred, with the gift above the title (Stefan, 22.10.2026). */
.invite-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.invite-ico { display: block; width: fit-content; margin: 0 auto; color: var(--gold); }
.invite-me { text-align: center; }
.invite-me .invite-ico { margin-bottom: 6px; }
.invite-me .invite-code { display: grid; justify-items: center; gap: 4px; margin: 12px 0; }
.card-label { margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.choose-card .card-label { margin-bottom: 12px; }
.steps-card, .choose-card { text-align: center; }
[data-steps] { scroll-margin-top: 14px; }
/* The first screen before Pi asks for the account. */
.intro { display: grid; gap: 12px; justify-items: center; padding-top: 0; --wheel: min(150px, 40vw, 17vh); }
.intro .hero { margin: 0; }
.intro h1 { margin: 2px 0 0; font-size: clamp(26px, 7.5vw, 32px); text-align: center; }
.intro > p { margin: 0; max-width: 340px; font-size: 14.5px; }
.intro > p.intro-free { font-size: 13px; margin-top: 2px; }
/* The line under the title goes on screens lower than 760 px, so the button keeps its room (review 24.10.2026). */
@media (max-height: 760px) { .intro > p.intro-lead { display: none; } }
.intro-lang { display: flex; gap: 6px; }
.intro-lang button { min-height: 38px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); cursor: pointer; font: 700 13px/1.2 var(--sans); }
.intro-lang button.active { border-color: var(--gold); color: var(--gold-2); background: rgba(232, 199, 125, 0.12); }
@media (max-width: 350px) { .intro-lang button { padding: 6px 8px; font-size: 12.5px; } }
.intro > p.intro-lead { white-space: nowrap; }
.intro-safe { list-style: none; display: grid; gap: 12px; margin: 2px 0 0; width: 100%; padding: 16px; text-align: left; }
.intro-safe li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.45; }
.intro-safe svg { display: block; color: var(--gold); margin-top: 1px; }
/* A low screen keeps the promises and the button in view: the wheel is smaller and the line under the title goes. */
@media (max-height: 700px) { .intro { --wheel: min(110px, 30vw); gap: 10px; } .intro > p.intro-lead { display: none; } .intro-safe { gap: 10px; padding: 14px; } .intro-safe li { font-size: 14px; } }
@media (max-height: 640px) { .intro { --wheel: 72px; gap: 8px; } .intro-safe { gap: 8px; padding: 12px 14px; } .intro-safe li { font-size: 13.5px; line-height: 1.4; } }
.intro-go { width: min(320px, 100%); border-radius: 16px; margin-top: 4px; }
.intro-go .btn { position: relative; z-index: 0; }
.intro-go.shine::before { border-radius: 17px; z-index: 2; background: conic-gradient(from var(--shine-a), transparent 0 70%, #fff8e1 85%, transparent 95%); opacity: 1; }
/* A field that has done its job stops its light. */
.shine.done::before { animation: none; opacity: 0; }
/* The birth time on a day when the Sun changes sign, centred under the date like the date itself. */
.calc .time-wrap { width: min(280px, 100%); margin-inline: auto; text-align: center; }
.calc .time-wrap .input { text-align: center; }
.calc [data-cusp] { text-align: center; }
.steps-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.steps-progress .steps-bar { flex: 1 1 auto; margin-top: 0; }
.steps-progress > span { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 340px) { .card-label { font-size: 11px; letter-spacing: 0.7px; } }
.choose-card .seg { margin: 0; }
.personal-list h3 { margin: 0 0 4px; }
/* The name under Me: gold with a crown while premium lasts, white without it (Stefan, 22.10.2026). */
.uname { color: var(--ink); overflow-wrap: anywhere; }
.uname.is-premium { color: var(--gold-2); }
.uname-crown { display: inline-flex; vertical-align: middle; position: relative; top: -3px; margin-left: 8px; color: var(--gold); }
.uname-crown svg { width: 20px; height: 20px; }
.pl-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; background: none; border: 0; border-top: 1px solid rgba(205, 216, 255, 0.1); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pl-row:first-of-type { border-top: 0; }
.pl-check { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(205, 216, 255, 0.35); display: grid; place-items: center; color: var(--gold); font-size: 13px; line-height: 1; }
.pl-row.ok .pl-check { border-color: var(--gold); }
/* Short lines that wrap at 320 px break evenly ("Member since" over the date, not the year alone). */
.profile .small.muted, .personal-list p { text-wrap: balance; }
.pl-k { flex: 1 1 auto; }
.pl-v { flex: 0 1 auto; color: var(--gold-2); font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.pl-row.ok .pl-v { color: inherit; opacity: 0.7; }
.personal-list.done, .personal-list.expired { text-align: center; }
.steps-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.steps-bar i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.steps-bar i.on { background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); box-shadow: 0 0 10px rgba(232, 199, 125, 0.35); }
.steps-card .btn { margin-top: 10px; }
.invite-card .txt { flex: none; }
.invite-card h3 { margin: 0 0 4px; }
[data-body].is-loading { opacity: 0.5; transition: opacity 0.2s; pointer-events: none; }
.gift-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gift-code { font-size: 26px; letter-spacing: 4px; color: var(--gold); margin: 10px 0 6px; font-weight: 800; }
.pair-slot.pulse { animation: slotPulse 1.6s ease-in-out 3; }
@keyframes slotPulse { 0%, 100% { box-shadow: 0 0 0 rgba(232, 199, 125, 0); border-color: var(--line); } 50% { box-shadow: 0 0 24px rgba(232, 199, 125, 0.35); border-color: rgba(232, 199, 125, 0.7); } }
.pair-heart { width: 30px; height: 30px; color: var(--rose); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } }
.ring-score { display: grid; place-items: center; margin: 12px auto 4px; width: 150px; height: 150px; position: relative; }
.ring-score svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: rotate(-90deg); }
.ring-score .val { font-family: var(--serif); font-size: 44px; line-height: 1; }
.ring-score .val .of, .score-of .of { font-size: 17px; color: var(--muted); margin-left: 2px; }
.first-look { margin: 10px auto 0; max-width: 34ch; color: var(--ink-2); }
/* One short promise next to a price: what the reader most wants to know before paying. */
.trust { margin: 12px 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--gold-2); }

/* ---------------------------------------------------------------- tarot */
.tarot-stage { display: grid; place-items: center; perspective: 1200px; margin: 10px 0; }
.tcard { width: 190px; aspect-ratio: 300 / 520; position: relative; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(.3, .7, .2, 1); cursor: pointer; }
.tcard.flipped { transform: rotateY(180deg); }
.tcard .face { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
.tcard .back { background: radial-gradient(circle at 50% 50%, #1f346e, #0c1838 70%); border: 1px solid rgba(232, 199, 125, 0.55); display: grid; place-items: center; }
.tcard .back svg { width: 78%; height: 78%; }
.tcard .front { transform: rotateY(180deg); background: #f3ead2; border: 1px solid rgba(232, 199, 125, 0.7); }
/* A face that is turned away is also not drawn at all. The phone's preview of open tabs is a flat
   picture that ignores the 3D turn, so it showed the face of a card that was still face down. */
.tcard .front { visibility: hidden; }
.tcard.flipped .front { visibility: visible; }
.tcard .back { transition: visibility 0s linear 0.45s; }
.tcard.flipped .back { visibility: hidden; }
.tcard .front img { width: 100%; height: 100%; object-fit: cover; }
.tcard .front.rev img { transform: rotate(180deg); }
.tcard.small { width: 100px; }
/* Before Chrome 88 and Safari 15 there is no aspect-ratio, and a card would have no height at all: the old way, a
   spacer as tall as the card is wide times 520/300, keeps it visible there (the faces are positioned over it). */
@supports not (aspect-ratio: 1 / 1) {
  .tcard::before { content: ''; display: block; padding-top: 173.333%; }
}
/* The extra card of the day is smaller than the card of the day, so the two are not read as the same thing twice. */
.tarot-stage[data-stage="extra"] .tcard { width: 150px; }
.spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; justify-items: center; }
.spread .pos { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 8px; }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.keywords span { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid rgba(232, 199, 125, 0.35); color: var(--gold-2); }

/* ---------------------------------------------------------------- forms */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 12px 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.input {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(6, 12, 26, 0.6);
  color: var(--ink); outline: none; transition: border-color .2s;
}
/* The example inside a code field keeps normal letters (the field itself shows capitals). */
.input::placeholder { text-transform: none; letter-spacing: normal; }
.input:focus { border-color: rgba(232, 199, 125, 0.7); }
/* A field whose value is chosen from a selector (date, time): a button that looks like the other fields. */
.input.pick { display: block; height: 54px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input.pick.empty { color: var(--muted); }
/* The selector: columns that scroll, side by side. The row in the middle, under the band, is the chosen one. */
/* The names of the columns (day, month, year), over the columns and as wide as they are. */
.pick-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; text-align: center; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pick-head.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(240px, 100%); margin-left: auto; margin-right: auto; }
.pick-cols { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; margin: 8px 0 18px; }
.pick-cols.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(240px, 100%); margin-left: auto; margin-right: auto; }
.pick-cols::before { content: ''; position: absolute; left: 0; right: 0; top: 80px; height: 40px; border-radius: 12px; background: rgba(232, 199, 125, 0.1); border: 1px solid rgba(232, 199, 125, 0.35); pointer-events: none; }
.pick-col { min-width: 0; height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; border-radius: 12px; }
.pick-col::-webkit-scrollbar { display: none; }
.pick-col:focus-visible { box-shadow: inset 0 0 0 1px rgba(232, 199, 125, 0.6); }
.pick-pad { height: 80px; }
.pick-row { height: 40px; display: grid; place-items: center; scroll-snap-align: center; color: var(--muted); font-size: 17px; cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap; }
.pick-row.on { color: var(--ink); font-weight: 700; }
.city-list { list-style: none; margin: 4px 0 0; padding: 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; max-height: 220px; overflow-y: auto; }
.city-list li { padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.city-list li:hover, .city-list li:focus { background: rgba(232, 199, 125, 0.10); }

/* ---------------------------------------------------------------- me */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2c468f, #0f1b3d); border: 1px solid rgba(232, 199, 125, 0.5); font-size: 26px; color: var(--gold); }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv > a { display: block; padding: 7px 0; }
.kv:last-child { border-bottom: 0; }
.big-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 10px 0; }
.big-three > div, .big-three > button { padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
/* No birth time yet: the Ascendant cell is a button that leads to adding it. */
.big-three > button { width: 100%; cursor: pointer; border: 1px dashed rgba(232, 199, 125, 0.6); }
.big-three > button .k, .big-three > button .v { display: block; }
.big-three > button .v { color: var(--gold-2); }
.big-three .glyph { font-size: 26px; color: var(--gold); display: block; margin: 4px 0; }
.big-three .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; }
.big-three .v { font-weight: 700; font-size: 14px; }
.code { font-family: var(--sans); font-weight: 800; letter-spacing: 3px; font-size: 22px; color: var(--gold-2); }
.premium-card { background: linear-gradient(145deg, rgba(232, 199, 125, 0.16), rgba(123, 144, 255, 0.12) 60%, rgba(18, 30, 58, 0.6)); border-color: rgba(232, 199, 125, 0.35); overflow: hidden; }
.premium-card .muted { color: #b0bada; } /* the card is lighter than the page, so muted text needs to be lighter too */
.premium-card::before { content: ''; position: absolute; top: -40%; right: -60%; bottom: auto; left: auto; width: 70%; height: 140%; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.10) 50%, transparent 70%); transform: rotate(18deg); animation: sheen 6s ease-in-out 3 both; pointer-events: none; }
@keyframes sheen { 0% { transform: translateX(-120%) rotate(18deg); } 60%, 100% { transform: translateX(220%) rotate(18deg); } }
.benefits { list-style: none; padding: 0; margin: 10px 0 14px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); }
.benefits li::before { content: '✦'; color: var(--gold); }
.report-section { padding: 16px 0; border-top: 1px solid var(--line); }
.report-section:first-child { border-top: 0; }
.report-section h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.report-section h3 .glyph { color: var(--gold); font-size: 22px; }
.report-section .meta { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }

/* ---------------------------------------------------------------- sheet, toast */
.sheet-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(2, 6, 14, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 40; animation: fade .25s both; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 41; width: min(520px, 100%);
  max-height: 90vh; overflow-y: auto; padding: 10px 20px calc(24px + var(--safe-b));
  background: linear-gradient(180deg, #142650, #0a152c); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5); animation: up .35s cubic-bezier(.2, .7, .2, 1) both;
}
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 14px; }
/* A sheet hung from the top of the screen (the place window), out of the keyboard's way. */
.sheet.top { top: 0; bottom: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 18px; border-radius: 0 0 26px 26px; border-top: 0; border-bottom: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); animation: down .3s cubic-bezier(.2, .7, .2, 1) both; }
.sheet.top .grab { display: none; }
@keyframes down { from { transform: translate(-50%, -40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); transform: translateX(-50%); z-index: 60; pointer-events: none; width: max-content; max-width: calc(100% - 32px); text-align: center; }
#toast.top { bottom: auto; } /* the keyboard covers the bottom, see toast() */
#toast .t { padding: 11px 18px; border-radius: 14px; background: rgba(16, 26, 52, 0.95); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: rise .3s both; }

/* spinner */
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: rot 0.9s linear infinite; margin: 20px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

/* mock (local dev) */
.mock-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, 0.82); }
.mock-box { text-align: center; padding: 30px; border-radius: 20px; background: #12203f; border: 1px dashed var(--gold); min-width: 240px; }
.mock-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--gold); color: #1c1403; font-weight: 800; font-size: 11px; letter-spacing: 1px; }
.mock-count { font-size: 44px; font-family: var(--serif); color: var(--gold); }

/* onboarding */
/* The welcome fits on one screen without scrolling: the page under the top bar, measured by the part of
   the screen that is really visible (svh), and a wheel that takes what the text and the buttons leave. */
.onboard { min-height: calc(100vh - 86px); display: flex; flex-direction: column; justify-content: center; padding: 0 0 2px; }
.onboard .lang-pick { margin: 12px 0; }
.onboard h1 { margin: 6px 0; }
.onboard .eyebrow { margin: 0; }
@supports (height: 100svh) {
  .onboard { min-height: calc(100svh - 86px - env(safe-area-inset-top, 0px)); --wheel: min(330px, 86vw, max(150px, calc(100svh - 428px - env(safe-area-inset-top, 0px)))); }
  /* The sign buttons grow with the height of the screen. */
  .onboard.tight .sign-grid .sign-chip { padding-block: clamp(5px, calc((100svh - 640px) / 8 + 5px), 14px); }
}
/* Second step: twelve signs, the birth date for whoever is not sure, and the buttons, all in view. */
.onboard.tight h2 { margin: 0 0 8px; }
.onboard.tight .sign-grid { gap: 5px; }
.onboard.tight .sign-grid .sign-chip { padding: 5px 4px; gap: 1px; border-radius: 14px; }
/* After the fixed padding above, so the chips grow with the height of the screen again (review 24.10.2026). */
@supports (height: 100svh) { .onboard.tight .sign-grid .sign-chip { padding-block: clamp(5px, calc((100svh - 640px) / 8 + 5px), 14px); } }
.onboard.tight .sign-chip .glyph { font-size: 22px; }
.onboard.tight .sign-chip span:nth-child(2) { font-size: 14.5px; line-height: 1.2; }
.onboard.tight .sign-chip small { line-height: 1.3; }
.calc { margin: 10px 0 8px; }
.calc > label { display: block; text-align: center; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.calc-row { display: flex; justify-content: center; }
.calc-row .shine { width: min(280px, 100%); border-radius: 14px; }
.calc-row .input { height: 50px; padding: 10px 12px; text-align: center; }
/* A gold light circling the frame of a field that waits for a tap (from the Paul Mitchell buttons, Stefan's choice
   22.10.2026). It is masked to the frame alone, and still for whoever asked the phone for less motion. */
@property --shine-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes shine-a { to { --shine-a: 360deg; } }
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .shine { position: relative; }
  .shine::before {
    content: ''; position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; padding: 1.5px; border-radius: 15px; pointer-events: none; z-index: 1;
    background: conic-gradient(from var(--shine-a), transparent 0 70%, var(--gold) 85%, transparent 95%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
    --shine-a: 0deg; animation: shine-a 4s linear infinite; opacity: 0.8;
  }
}
@media (prefers-reduced-motion: reduce) { .shine::before { animation: none; opacity: 0; } }
.calc-result { margin: 6px 0 0; font-weight: 600; line-height: 1.3; }
.calc-result:empty { display: none; }
.onboard .hero { margin-bottom: 10px; }
.lang-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.lang-pick button { padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; font-weight: 700; }
.lang-pick button.active { border-color: var(--gold); color: var(--gold-2); background: rgba(232, 199, 125, 0.12); }

.footer-note { text-align: center; color: var(--faint); font-size: 12px; margin: 22px 8px 6px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* reports already paid for, as a list of buttons */
.owned-list { display: grid; gap: 8px; }
.btn.owned { font-size: 14px; padding: 12px 14px; }
/* the crown at the top lands on the start of the premium card */
#premium { scroll-margin-top: 10px; }
/* daily streak inside the profile card */
.streak-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* a symbol with its ink in the middle of a square of one letter height (ui/wheel.js signInBox) */
svg.ink { width: 1em; height: 1em; display: block; overflow: visible; fill: currentColor; }

/* a code is copied by a tap on it, and a long press selects all of it */
.code { user-select: all; -webkit-user-select: all; }
[data-copy-code] { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }

/* the sentence under a button that charges */
.pay-note { margin: 8px 0 0; text-align: center; }
.pi-invite { margin: 12px 0 0; text-align: center; }
.pi-invite a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* The wait at start while the account is read (app.js): the wheel in the middle and a bar that fills under it. */
.boot-wait { display: grid; place-items: center; align-content: center; min-height: 72vh; gap: 22px; }
.boot-bar { width: 150px; height: 3px; border-radius: 3px; background: rgba(205, 216, 255, 0.14); overflow: hidden; }
.boot-late { display: grid; gap: 10px; justify-items: center; max-width: 320px; }
.boot-late[hidden], .boot-late [hidden] { display: none; }
.boot-late .btn { width: auto; padding: 10px 18px; }
.boot-bar::before { content: ''; display: block; width: 45%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: boot-slide 1.3s ease-in-out infinite; }
@keyframes boot-slide { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) { .boot-bar::before { animation-duration: 2.6s; } }

/* A person who asked the phone for less transparency (iOS "Reduce transparency", Android too) gets the same
   opaque look as Android, on any phone or computer. Last in the file, so it wins over the glass above. */
@media (prefers-reduced-transparency: reduce) {
  .card, .chip-btn, .tabbar, .sheet-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card, .chip-btn { background: rgba(14, 24, 48, 0.86); }
  .card.soft { background: rgba(14, 24, 48, 0.6); }
  .tabbar { background: rgba(11, 20, 40, 0.94); }
  .nebula i { filter: none; animation: none; }
}

/* The guest card's buttons: open Pi Browser, or copy the link; side by side where they fit. */
.guest-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.guest-actions.center { justify-content: center; }
.guest-actions .btn { margin: 0; }

/* The guest card above every screen for a visitor who is not in Pi Browser: the one thing that matters for them to see. */
#guest-bar { padding: 0 0 4px; }
.guest-card.guest-bar { margin: 0 0 10px; border: 1px solid rgba(232, 199, 125, 0.45); background: rgba(232, 199, 125, 0.08); }
.guest-card.guest-bar.compact { padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guest-card.guest-bar.compact > b { flex: 1 1 100%; }
.guest-card.guest-bar.compact .guest-actions { flex: 1 1 100%; }
/* Under the card the welcome gives up the full-screen height and shows a smaller wheel, so "Dalje" stays in sight. */
#guest-bar:not(.hidden) + #view .onboard { min-height: 0; --wheel: min(200px, 56vw, 22vh); }
#guest-bar:not(.hidden) + #view .onboard .hero { margin-bottom: 4px; }
.guest-card.guest-bar.compact .guest-actions { flex-wrap: nowrap; }
.guest-card.guest-bar.compact .guest-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; }

