/* PadelMate — design tokens. Flat coral, warm neutrals, one accent. */
:root {
  --coral: #EF6555; --coral-strong: #D04538; --coral-deep: #B9433A; --coral-ink: #9E3A2E; --on-coral-muted: #4A1A14; --blush: #FFE7E1; --blush-2: #FFF3F0;
  --ink: #1F2328; --ink-2: #5A616B; --ink-3: #6B7380; --hair: #E9E6E3; --hair-2: #F1EEEB;
  --bg: #FAF8F7; --card: #FFFFFF; --court: #2F6FD6;
  --ok: #17704A; --ok-bg: #E4F5EC; --warn: #8F5C0F; --warn-bg: #FBEFD9; --bad: #B93636; --bad-bg: #FBE4E4;
  --r-card: 20px; --r-ctl: 12px; --r-pill: 999px;
  --sh-card: 0 1px 2px rgba(31,35,40,.04), 0 10px 28px -14px rgba(209,78,63,.22);
  --sh-float: 0 12px 32px -10px rgba(31,35,40,.25);
  --ease-out: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.3,1.35,.5,1);
  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif; --font-body: "Golos Text", system-ui, -apple-system, sans-serif;
  --z-bar: 10; --z-toast: 20;
}
body.dark {
  --coral: #FF7A69; --coral-strong: #E0523F; --coral-deep: #FF9A8C; --coral-ink: #FFB1A5; --on-coral-muted: #4A1A14; --blush: #3B2521; --blush-2: #2C1E1B;
  --ink: #F2F1EF; --ink-2: #B3B8BF; --ink-3: #7E858E; --hair: #2C3036; --hair-2: #262A2F;
  --bg: #15171A; --card: #1E2126;
  --ok: #4CC487; --ok-bg: #1D3328; --warn: #E0A64A; --warn-bg: #3A2E18; --bad: #F06A6A; --bad-bg: #3B2222;
  --sh-card: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); --sh-float: 0 12px 32px -10px rgba(0,0,0,.6);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- hero: flat coral, court-line motif, wave edge ---------- */
.hero { position: relative; background: var(--coral); color: #fff; padding: max(14px, env(safe-area-inset-top)) 16px 30px; overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.court { position: absolute; right: -40px; top: -30px; width: 230px; height: 150px; opacity: .22; fill: none; stroke: #fff; stroke-width: 2; z-index: 0; pointer-events: none; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.ball { width: 16px; height: 16px; border-radius: 50%; background: #fff; position: relative; flex: 0 0 auto; }
.ball::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 2px solid var(--coral); border-left-color: transparent; border-right-color: transparent; transform: rotate(-30deg); }
.hero-sub { font-size: 14px; font-weight: 500; margin-top: 4px; color: var(--on-coral-muted); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 24px; fill: var(--bg); display: block; z-index: 1; }

/* ---------- page ---------- */
.screen { max-width: 640px; margin: 0 auto; padding: 10px 16px calc(92px + env(safe-area-inset-bottom)); min-height: 60vh; }
.loading, .empty { text-align: center; color: var(--ink-3); padding: 44px 8px; }
.empty strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 8px; text-wrap: balance; }
.empty .court-flat { width: 120px; height: 72px; margin: 0 auto 14px; display: block; fill: none; stroke: var(--coral); stroke-width: 2; opacity: .55; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; margin: 8px 0 14px; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: 13px; color: var(--ink-2); margin: 20px 0 10px; }

/* city row */
.cityrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 8px; }
.cityrow select { padding: 9px 34px 9px 14px; border-radius: var(--r-pill); border: 0; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E96A1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; font-weight: 600; -webkit-appearance: none; appearance: none; max-width: 60vw; box-shadow: var(--sh-card); }
.locbtn { font-weight: 600; font-size: 13px; color: var(--coral-deep); display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; }
.locbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 14px; background: var(--card); font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; text-align: center; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--ink); color: var(--bg); }
.chip small { display: block; font-family: var(--font-display); font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.2; margin-top: 2px; }
.chip.day { min-width: 62px; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 14px 16px; margin-bottom: 12px; display: block; }
a.card { transition: transform 160ms var(--ease-out); }
a.card:active { transform: scale(.985); }
.card.game { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.time { text-align: left; }
.time b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.time span { font-size: 12px; color: var(--ink-3); }
.g-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.g-meta { color: var(--ink-2); font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.slots { text-align: right; }
.slots .pips { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 5px; }
.pip { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); }
.pip.on { background: var(--coral); }
.slots small { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: var(--blush); color: var(--coral-ink); line-height: 1.3; }
.tag.grey { background: var(--hair-2); color: var(--ink-2); }
.tag.host { background: var(--ink); color: var(--bg); }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.bad { background: var(--bad-bg); color: var(--bad); }
.avatars { display: flex; margin-top: 8px; }
.ava { width: 26px; height: 26px; border-radius: 9px; background: var(--blush); color: var(--coral-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--card); margin-left: -7px; overflow: hidden; flex: 0 0 auto; }
.ava:first-child { margin-left: 0; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.lg { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; margin: 0; border: 0; }
.ava.ghost { background: var(--hair-2); color: var(--ink-3); }
.ava.guest { background: var(--hair-2); color: var(--ink-2); border-style: dashed; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; border-radius: var(--r-pill); background: var(--coral-strong); color: #fff; font-weight: 700; font-size: 16px; transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out); }
.btn:hover { background: var(--coral-deep); }
body.dark .btn:hover { background: var(--coral); }
.btn:active { transform: scale(.97); }
.btn.secondary { background: var(--blush); color: var(--coral-ink); } .btn.secondary:hover { background: var(--blush); }
.btn.danger { background: transparent; color: var(--bad); font-weight: 600; } .btn.danger:hover { background: var(--bad-bg); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.sm { width: auto; padding: 10px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.link { color: var(--coral-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- game detail ---------- */
.detail-head { padding: 18px 18px 16px; }
.detail-head .when { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.detail-head .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.detail-head .where { font-size: 16px; font-weight: 600; }
.detail-head .addr { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.detail-head .links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 14px; }
.detail-head .note { margin-top: 14px; padding: 10px 12px; background: var(--blush-2); border-radius: var(--r-ctl); font-size: 14px; color: var(--ink); }
.plist { padding: 4px 16px; }
.plist .p { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair-2); }
.plist .p:last-child { border-bottom: 0; }
.p .name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p .sub { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.p .tg { font-size: 13px; margin-top: 4px; }
.free { color: var(--ink-3); font-size: 14px; }
.pact { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.rm { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out); }
.rm:hover { background: var(--bad-bg); color: var(--bad); }
.rm svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.manage-box { margin-top: 14px; padding: 14px 16px 6px; }
.manage-box h3 { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.mini-form { margin-bottom: 8px; align-items: stretch; }
.mini-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: var(--r-ctl); border: 1.5px solid var(--hair); background: var(--card); outline: none; }
.mini-form input:focus { border-color: var(--coral); }
.mini-form .btn.sm { flex: 0 0 auto; }
.manage-box .btn.danger { margin-top: 6px; }
.banner.announce { background: var(--blush); }
.banner.manage { background: var(--ink); color: var(--bg); }
.banner.manage b { color: var(--coral); } .banner.manage svg { stroke: var(--coral); } .banner.manage svg:last-child { margin-left: auto; width: 18px; height: 18px; stroke: var(--bg); opacity: .6; }
.manage-head .stat b { font-size: 18px; }
.toggle small { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.result { padding: 14px 16px; }
.result h3, .result .r-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result svg { width: 18px; height: 18px; stroke: #E0A526; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.result .score { font-variant-numeric: tabular-nums; color: var(--coral-deep); }
.result .prefs .chip.on { background: var(--ok); color: #fff; }
.h2-note { font-family: var(--font-body); font-weight: 500; color: var(--ink-3); font-size: 12px; }
.stars { display: flex; gap: 2px; }
.stars button { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.stars svg { width: 20px; height: 20px; fill: var(--hair); stroke: none; transition: fill 120ms var(--ease-out), transform 320ms var(--spring); }
.stars button.on svg { fill: #E0A526; }
.stars button:active svg { transform: scale(.85); }
.stars button.pop svg { animation: pop 360ms var(--spring); }

/* segmented status */
.seg { display: flex; background: var(--hair-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 44px; padding: 8px 6px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(31,35,40,.08); }
.seg button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: none; }
.seg button.on svg { display: inline; }
.seg.status .on.going { color: var(--ok); } .seg.status .on.late { color: var(--warn); } .seg.status .on.declined { color: var(--bad); }
.seg button.on .draw { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 320ms var(--ease-out) forwards; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-ctl); border: 1.5px solid var(--hair); background: var(--card); outline: none; -webkit-appearance: none; appearance: none; transition: border-color 140ms var(--ease-out); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E96A1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; padding-right: 36px; }
.field textarea { min-height: 76px; resize: vertical; }
.hint { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.banner { display: flex; align-items: center; gap: 12px; background: var(--blush-2); border-radius: var(--r-ctl); padding: 12px 14px; font-size: 14px; margin-bottom: 12px; color: var(--ink); }
.banner svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--coral-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.banner b { color: var(--coral-deep); font-weight: 600; }
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.levels button { padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--sh-card); font-weight: 600; text-align: left; position: relative; transition: transform 140ms var(--ease-out); isolation: isolate; }
.levels button::after { content: ""; position: absolute; inset: 0; border-radius: 14px; border: 2px solid var(--coral); opacity: 0; transition: opacity 160ms var(--ease-out); pointer-events: none; }
.levels button.on::after { opacity: 1; }
.levels button:active { transform: scale(.97); }
.levels button small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 0; font-weight: 600; }
.sw { width: 48px; height: 28px; border-radius: var(--r-pill); background: var(--hair); position: relative; transition: background-color 180ms var(--ease-out); flex: 0 0 auto; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 220ms var(--spring); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw.on { background: var(--coral-strong); } .sw.on::after { transform: translateX(20px); }
.prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.prefs .chip { padding: 9px 13px; } .prefs .chip.on { background: var(--coral-strong); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border-radius: 16px; padding: 12px 10px; text-align: center; box-shadow: var(--sh-card); }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--coral-deep); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.me-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.me-head .name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.me-head .sub { color: var(--ink-2); font-size: 14px; }

/* ---------- map & halls ---------- */
.map { height: 260px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); margin-bottom: 12px; background: var(--hair-2); isolation: isolate; }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--sh-float); }
.leaflet-popup-content { margin: 10px 12px; font-size: 13px; line-height: 1.4; }
.leaflet-popup-content b { display: block; font-size: 14px; }
.leaflet-popup-content a { color: var(--coral-deep); font-weight: 600; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.7); } .leaflet-control-attribution a { display: none; }
body.dark .leaflet-tile { filter: brightness(.7) saturate(.6); }
.pin { width: 14px; height: 14px; border-radius: 50%; background: var(--coral); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); } .pin.me { background: var(--court); }
.card.hall { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.hall .dist { text-align: right; font-family: var(--font-display); font-weight: 600; color: var(--coral-deep); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hall .dist small { display: block; font-family: var(--font-body); color: var(--ink-3); font-weight: 500; font-size: 11px; }
.hall .dist svg { width: 18px; height: 18px; stroke: var(--ink-3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tab bar with animated icons ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); box-shadow: 0 -1px 0 var(--hair-2); display: flex; justify-content: space-around; align-items: flex-end; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); z-index: var(--z-bar); isolation: isolate; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 10px; min-width: 60px; min-height: 48px; justify-content: flex-end; transition: color 160ms var(--ease-out); }
.tabbar a .ico { width: 26px; height: 26px; display: block; }
.tabbar svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tabbar a.on { color: var(--coral-deep); }
.tabbar a.on .ico { animation: pop 380ms var(--spring); }
.tabbar a.on .fill { fill: var(--coral); fill-opacity: .18; stroke: var(--coral); }
.tabbar a.on .draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 380ms 80ms var(--ease-out) forwards; }
.tabbar a.on .drop { animation: drop 420ms var(--spring); transform-origin: center; transform-box: fill-box; }
.tabbar a.on .nod { animation: nod 480ms var(--ease-out); transform-origin: 50% 90%; transform-box: fill-box; }
.tabbar .fab { background: var(--coral-strong); color: #fff; border-radius: 50%; width: 56px; height: 56px; min-width: 0; min-height: 0; padding: 0; justify-content: center; margin-top: -26px; box-shadow: 0 10px 24px -8px rgba(209,78,63,.55); transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.tabbar .fab .ico { width: 26px; height: 26px; }
.tabbar .fab svg { stroke-width: 2.2; }
.tabbar .fab:active { transform: scale(.94); }
.tabbar .fab.on { color: #fff; background: var(--coral-strong); }
.tabbar .fab.on .ico { animation: spin-in 380ms var(--spring); }

@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drop { 0% { transform: translateY(-6px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 70% { transform: rotate(6deg); } }
@keyframes spin-in { 0% { transform: rotate(-90deg) scale(.8); } 100% { transform: none; } }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(16px); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); z-index: var(--z-toast); max-width: 90vw; text-align: center; box-shadow: var(--sh-float); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gate { text-align: center; padding: 40px 10px; } .gate .btn { margin-top: 16px; }

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

.demo-ribbon { position: fixed; top: 0; right: 0; z-index: 30; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; padding: 4px 10px; border-bottom-left-radius: 10px; opacity: .9; }
.demo-ribbon a { color: var(--coral); }
