:root {
  --blue: #1a73e8;
  --blue-dark: #1558b0;
  --red: #c5221f;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --bg: #f4f6fa;
  --card: #ffffff;
  --soft: #f6f8fb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; line-height: 1.45; }
a { color: var(--blue); }
h1 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 10px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.err-text { color: var(--red); }
.center { text-align: center; }
.pad { padding: 14px; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.logo { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #d2e3fc; }

/* ---- Buttons & form controls ---- */
.btn {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.small { padding: 6px 10px; font-size: 0.85rem; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: #fce8e6; }

input, select, textarea {
  font: inherit; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
label input, label select, label textarea { font-weight: 400; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; }
.inline .btn { flex: 0 0 auto; }
.actions { display: flex; gap: 10px; }

.notice { padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; font-size: 0.92rem; }
.notice.ok { background: #e6f4ea; color: #137333; }
.notice.err { background: #fce8e6; color: #a50e0e; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; }

/* ---- Sign-in / setup ---- */
body.auth { display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07); }
.auth-card.wide { width: min(560px, 100%); }
.auth-card h1 { margin-top: 18px; }
.auth-card label .hint { display: inline; font-weight: 400; }
.steps { padding-left: 20px; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.steps strong { display: block; }
.req h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.req > .req-head p { margin: 2px 0 0; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fef7e0; color: #8a5a00; }
.tag.ok { background: #e6f4ea; color: #137333; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 14px 0; font-size: 0.92rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.auth-card .stack { margin: 14px 0; }

/* ---- Workspace frame ---- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tabs a:hover { background: var(--soft); }
.tabs a.active { background: #e8f0fe; color: var(--blue-dark); }
.user { display: flex; align-items: center; gap: 12px; }
.user form { margin: 0; }
.user .link { font-size: 0.9rem; }
.who em { font-style: normal; font-size: 0.78rem; color: var(--muted); margin-left: 4px; }
.content { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { display: flex; flex-direction: column; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.stat:hover { border-color: var(--blue); }
.stat strong { font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.88rem; }
ul.plain { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.plain li { display: block; }
ul.plain .muted { margin-left: 6px; font-size: 0.85rem; }

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--soft); }
.table tr:last-child td { border-bottom: 0; }
.table tr.off td { opacity: 0.55; }
td.row-actions { white-space: nowrap; }
.row-actions form { display: inline-block; margin: 0 4px 0 0; }
.row-actions .btn { vertical-align: middle; }
.inline-sel { margin: 0; }
.inline-sel select { padding: 5px 8px; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }

/* ---- Event form ---- */
.event-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.picker { position: sticky; top: 12px; }
#pickmap { height: 380px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.picker .hint { margin-top: 6px; }

/* ---- Messages ---- */
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.contacts { border-right: 1px solid var(--line); overflow-y: auto; max-height: 70vh; }
.contact { display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.contact:hover { background: var(--soft); }
.contact.active { background: #e8f0fe; }
.avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #d2e3fc; color: var(--blue-dark); display: grid; place-items: center; font-weight: 700; }
.cname { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-direction: column; overflow: hidden; text-overflow: ellipsis; }
.cname small { font-weight: 400; color: var(--muted); }
.thread-pane { display: flex; flex-direction: column; min-width: 0; max-height: 70vh; }
.thread-pane .empty { display: grid; place-items: center; flex: 1; padding: 20px; text-align: center; }
.thread-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); min-height: 300px; }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg time { display: block; margin-top: 3px; font-size: 0.72rem; color: var(--muted); }
.msg.mine { align-self: flex-end; background: var(--blue); border-color: var(--blue); color: #fff; }
.msg.mine time { color: #d2e3fc; }
.msg.theirs { align-self: flex-start; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; }
.thread-pane .hint { padding: 0 14px 10px; }

@media (max-width: 800px) {
  .event-form { grid-template-columns: 1fr; }
  .picker { position: static; }
  .chat { grid-template-columns: 1fr; }
  .contacts { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---- Fans: find artists & following ---- */
.search { margin: 14px 0; max-width: 520px; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.artist-grid .card { margin: 0; }
.artist { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.artist:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26, 115, 232, 0.14); border-color: #c4d7f7; }
.artist-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #12305c, #1a73e8); }
.artist-photo img:not(.artist-flag) { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.artist:hover .artist-photo img:not(.artist-flag) { transform: scale(1.05); }
.artist-photo.none { display: grid; place-items: center; }
.artist-initial { font-size: 3.4rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.artist-form { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--blue-dark); font-size: 0.74rem; font-weight: 700; text-transform: capitalize; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.artist-flag { position: absolute; right: 10px; top: 10px; width: 30px; height: 20px; object-fit: cover; border-radius: 3px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.artist-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.artist-text { display: flex; flex-direction: column; min-width: 0; }
.artist-text strong a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.artist-text strong a:hover { color: var(--blue-dark); }
.artist-events { font-size: 0.82rem; color: var(--muted); }
.artist-events.has { color: #145a2a; font-weight: 600; }
.follow-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feed-item { display: flex; gap: 16px; margin: 0; }
.feed-item h2 { margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feed-item p { margin: 4px 0 0; }
.feed-item .date { flex: 0 0 54px; text-align: center; padding: 6px 0; border-radius: 10px; background: #eef4fe; color: var(--blue-dark); line-height: 1.1; align-self: flex-start; }
.feed-item .date strong { display: block; font-size: 1.5rem; }
.feed-item .date span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
@media (max-width: 800px) { .follow-layout { grid-template-columns: 1fr; } }

/* event moderation status */
.tag.st-pending { background: #fef3c7; color: #7a4b00; }
.tag.st-rejected { background: #fde2e0; color: #8c1d18; }
.tag.st-approved { background: #e1f4e6; color: #145a2a; }
.notice:not(.ok):not(.err) { background: #e8f0fe; color: #174ea6; }

/* Nationality flag picker */
.flag-picker { display: flex; flex-wrap: wrap; gap: 12px; }
.flag-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px; border: 2px solid transparent; border-radius: 10px; background: rgba(127,127,127,.08); cursor: pointer; font-size: .9rem; text-align: center; min-width: 110px; }
.flag-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.flag-opt img { width: 60px; height: 40px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.flag-opt .no-flag { display: grid; place-items: center; width: 60px; height: 40px; border-radius: 4px; border: 1px dashed currentColor; opacity: .6; }
.flag-opt:hover { background: rgba(127,127,127,.16); }
.flag-opt:has(input:checked) { border-color: #1a73e8; background: rgba(26,115,232,.12); }
.flag-opt:has(input:focus-visible) { outline: 3px solid #8ab4f8; outline-offset: 2px; }

/* Photo preview with the nationality flag half on, half off the picture */
.photo-prev { position: relative; width: 120px; }
.photo-prev .nflag { position: absolute; right: 0; bottom: 10px; width: 36px; height: 24px; object-fit: cover; border-radius: 3px; transform: translateX(50%); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.35); }

/* ---- Find artists: hero, filter chips, entrance ---- */
.fa-hero { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 26px 28px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(210, 227, 252, 0.35), transparent 45%), linear-gradient(135deg, #0a1a33, #12305c 55%, #1a73e8); box-shadow: 0 10px 30px rgba(18, 48, 92, 0.25); }
.fa-hero h1 { margin: 0 0 6px; font-size: 2rem; }
.fa-hero p { margin: 0 0 16px; max-width: 520px; color: #d2e3fc; }
.fa-hero a { color: #fff; }
.fa-search { display: flex; gap: 8px; max-width: 520px; }
.fa-search input { border: 0; border-radius: 999px; padding: 11px 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.fa-search .btn { border-radius: 999px; background: #fff; color: var(--blue-dark); border-color: #fff; }
.fa-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.fa-stats li { min-width: 92px; padding: 12px 14px; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); }
.fa-stats strong { display: block; font-size: 1.7rem; line-height: 1.1; }
.fa-stats span { font-size: 0.75rem; color: #d2e3fc; }
.fa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.fa-chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.fa-chip small { margin-left: 4px; color: var(--muted); font-weight: 700; }
.fa-chip:hover { border-color: var(--blue); }
.fa-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.fa-chip.on small { color: #d2e3fc; }
.artist[hidden], .fa-none[hidden] { display: none; }
.artist { animation: fa-rise 0.5s ease backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes fa-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .artist { animation: none; } }

/* ---- Following: hero, dragon, nicer feed ---- */
.fw-hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding: 26px 28px 0; border-radius: 18px; color: #fff; overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(210, 227, 252, 0.35), transparent 45%), linear-gradient(135deg, #0a1a33, #12305c 55%, #1a73e8); box-shadow: 0 10px 30px rgba(18, 48, 92, 0.25); }
.fw-text { padding-bottom: 26px; }
.fw-hero h1 { margin: 0 0 6px; font-size: 2rem; }
.fw-hero p { margin: 0 0 16px; color: #d2e3fc; }

.follow-layout .search { margin-top: 0; }
.follow-layout select { border-radius: 999px; padding: 10px 16px; font-weight: 600; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.feed-item { border-left: 4px solid var(--blue); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.feed-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26, 115, 232, 0.13); }
.feed-item .date { background: linear-gradient(160deg, #1a73e8, #12305c); color: #fff; padding: 8px 0; box-shadow: 0 3px 8px rgba(26, 115, 232, 0.25); }
.feed-item .date span { color: #d2e3fc; }
.fw-side { position: sticky; top: 14px; }
.fw-artist { display: flex; align-items: center; gap: 10px; }
.fw-artist .avatar { flex: 0 0 36px; height: 36px; width: 36px; background: linear-gradient(135deg, #d2e3fc, #aecbfa); }
.fw-artist .avatar { overflow: hidden; border-radius: 50%; text-decoration: none; color: var(--blue-dark); }
.fw-artist .avatar.has-photo { background: #e8eaed; }
.fw-artist .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.fw-aname { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fw-aname a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.fw-aname a:hover { color: var(--blue-dark); }
.fw-aname .muted { margin: 0; font-size: 0.82rem; }
@media (max-width: 800px) { .fw-side { position: static; } }

/* ---- Dragon: pick him up, he flaps ---- */
.fw-hero { overflow: visible; }

/* ---- Dragon (image layers): pick him up and he flaps ---- */
.fw-hero { overflow: visible; }
.fw-dragon { position: relative; z-index: 50; flex: 0 0 auto; width: 210px; margin: 0 8px 0 0; line-height: 0; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.fw-dragon::after { content: ""; position: absolute; left: 12%; right: 8%; bottom: -3px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38), transparent 70%); }
.fw-art { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 909 / 819; transform-origin: 50% 100%; animation: fw-breathe 3.6s ease-in-out infinite; }
.fw-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.fw-wl { transform-origin: 21.7% 46.3%; }
.fw-wr { transform-origin: 62.9% 44.4%; }
.fw-dragon.drop { transition: transform 0.7s cubic-bezier(0.3, 1.6, 0.5, 1); }
.fw-dragon.flap .fw-wl { animation: fw-flap-l 0.2s ease-in-out infinite alternate; }
.fw-dragon.flap .fw-wr { animation: fw-flap-r 0.2s ease-in-out infinite alternate; }
.fw-dragon.flap .fw-art { animation: fw-hop 0.2s ease-in-out infinite alternate; }
.fw-dragon.held { cursor: grabbing; z-index: 999; }
.fw-dragon.held .fw-art { transform-origin: 50% 0; animation: fw-sway 0.45s ease-in-out infinite alternate; }
@keyframes fw-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.025); } }
@keyframes fw-flap-l { from { transform: rotate(-8deg); } to { transform: rotate(16deg); } }
@keyframes fw-flap-r { from { transform: rotate(8deg); } to { transform: rotate(-16deg); } }
@keyframes fw-hop { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes fw-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .fw-art { animation: none; } }
@media (max-width: 520px) { .fw-dragon { width: 150px; } }

/* ---- Artist overview ---- */
.ov-hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 28px; align-items: center;
  padding: clamp(22px, 4vw, 36px); margin-bottom: 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(900px 300px at 85% -20%, rgba(138, 180, 248, 0.45), transparent 60%), linear-gradient(135deg, #0a1a33 0%, #123a78 100%);
}
.ov-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; margin: 4px 0 8px; color: #fff; }
.ov-hero p { margin: 0; color: #d2e3fc; }
.ov-hero .ov-eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8ab4f8; font-weight: 700; }
.ov-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.ov-act {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); transition: background 0.15s, transform 0.15s;
}
.ov-act span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1558b0; font-size: 0.95rem; flex: 0 0 auto; }
.ov-act:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.ov-act:focus-visible { outline: 2px solid #fff; }
.ov-progress { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.ov-progress .ring {
  --p: 0; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#8ab4f8 calc(var(--p) * 1%), rgba(255, 255, 255, 0.18) 0);
  -webkit-mask: radial-gradient(circle 33px at center, transparent 98%, #000 100%); mask: radial-gradient(circle 33px at center, transparent 98%, #000 100%);
}
.ov-progress .ring strong { color: #fff; font-size: 1.05rem; }
.ov-progress { position: relative; }
.ov-progress ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.ov-progress li { color: #d2e3fc; }
.ov-progress li.done { color: #8ab4f8; text-decoration: line-through; text-decoration-color: rgba(138, 180, 248, 0.5); }
.ov-progress a { color: #fff; font-weight: 600; }
@media (max-width: 760px) { .ov-hero { grid-template-columns: 1fr; } }

/* ---- Works: composer, filter, grid ---- */
.composer { padding: 0; overflow: hidden; }
.kind-tabs { display: flex; flex-wrap: wrap; background: var(--soft); border-bottom: 1px solid var(--line); }
.kind-tab { flex: 1 1 150px; padding: 14px 12px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.kind-tab:hover { color: var(--ink); background: #eef2f9; }
.kind-tab.on { color: var(--blue-dark); background: var(--card); border-bottom-color: var(--blue); }
.kind-pane { padding: 20px; max-width: 640px; }
.kind-pane[hidden] { display: none; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; border: 2px dashed #b6c7e6; border-radius: 14px; background: #f7f9fe; cursor: pointer; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.drop.small { padding: 14px; }
.drop:hover, .drop.over { border-color: var(--blue); background: #eaf1fe; }
.drop-t { font-weight: 600; color: var(--blue-dark); }
.drop input[type=file] { border: 0; background: transparent; padding: 4px 0; width: auto; max-width: 100%; }
.drop-prev { max-width: 100%; max-height: 220px; border-radius: 10px; object-fit: cover; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.chip b { font-weight: 700; color: var(--muted); font-size: 0.8rem; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.on b { color: #d2e3fc; }
.empty-state { display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 34px 18px; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.works-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.work { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.work:hover { box-shadow: 0 8px 24px rgba(10, 26, 51, 0.1); transform: translateY(-2px); }
.work-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); }
.work-yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.work-yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.work-yt .play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(197, 34, 31, 0.92); color: #fff; font-size: 1.2rem; padding-left: 3px; }
.work-song { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px; background: linear-gradient(135deg, #e8f0fe, #d2e3fc); }
.work-song .note { font-size: 2rem; color: var(--blue-dark); line-height: 1; }
.work-song audio { width: 100%; }
.work-poem { margin: 0; padding: 16px; min-height: 120px; max-height: 190px; overflow: hidden; font: italic 0.95rem/1.5 Georgia, "Times New Roman", serif; white-space: pre-wrap; background: #fffaf0; color: #3c3a33; border-bottom: 1px solid #f0e6cc; }
.work-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.work-foot form { margin: 0; }
.work-foot strong { overflow-wrap: anywhere; }
.kind-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e8f0fe; color: var(--blue-dark); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; }
.small { font-size: 0.8rem; }

/* ---- Overview lower cards ---- */
.ov-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.ov-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 1px 2px rgba(10, 26, 51, 0.04); }
.ov-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ov-card-head h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.ov-more { font-size: 0.85rem; font-weight: 600; text-decoration: none; padding: 4px 10px; border-radius: 999px; }
.ov-more:hover { background: #e8f0fe; }
.ov-count { display: inline-block; min-width: 22px; padding: 1px 8px; border-radius: 999px; background: #e8f0fe; color: var(--blue-dark); font-size: 0.78rem; text-align: center; }
.ov-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ov-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background 0.12s; }
.ov-row:hover { background: var(--soft); }
.ov-row.unread { background: #f1f6ff; }
.ov-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ov-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-main .muted, .ov-snippet { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-snippet { color: var(--muted); }
.ov-time { font-size: 0.75rem; white-space: nowrap; align-self: flex-start; }
.ov-date { flex: 0 0 auto; width: 48px; padding: 6px 0; text-align: center; border-radius: 12px; background: #0a1a33; color: #fff; line-height: 1; }
.ov-date b { display: block; font-size: 1.3rem; }
.ov-date i { display: block; margin-top: 3px; font-style: normal; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8ab4f8; }
.ov-pill { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.ov-pill.hot { background: #e6f4ea; border-color: #b7dfc3; color: #137333; }
.ov-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: hsl(var(--h) 55% 28%); background: hsl(var(--h) 70% 90%); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.ov-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 12px 10px; color: var(--muted); font-size: 0.9rem; }
.ov-empty strong { color: var(--ink); }
.ov-empty .btn { margin-top: 10px; }
.ov-empty-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: #e8f0fe; font-size: 1.4rem; color: var(--blue-dark); }

/* Event actions: attend + map */
.feed-body { flex: 1 1 auto; min-width: 0; }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ev-going { font-size: 0.85rem; }
.attend-btn.on { background: #e6f4ea; border-color: #137333; color: #137333; }
.attend-btn:disabled { opacity: .6; cursor: progress; }
.ev-map { height: 220px; margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.ev-map[hidden] { display: none; }

/* Events you might like: carousel */
.rec { margin: 16px 0; }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rec-head h2 { margin: 0; }
.rec-nav { display: flex; gap: 6px; }
.rec-track { list-style: none; margin: 12px 0 0; padding: 0 0 8px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.rec-card { flex: 0 0 min(260px, 80%); scroll-snap-align: start; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; position: relative; }
.rec-card h3 { margin: 6px 0 2px; font-size: 1.02rem; }
.rec-card p { margin: 0; font-size: 0.88rem; }
.rec-card .ev-actions { margin-top: auto; padding-top: 10px; }
.rec-date { align-self: flex-start; text-align: center; padding: 4px 10px; border-radius: 10px; background: #eef4fe; color: var(--blue-dark); line-height: 1.1; }
.rec-date strong { display: block; font-size: 1.3rem; }
.rec-date span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
/* Profile: taste picker */
.taste-set { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.taste-set legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.taste-set .taste-opt { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; width: auto; margin: 0; font-weight: 400; }
.taste-set .taste-opt input { width: auto; margin: 0; flex: 0 0 auto; }

/* Carousel placeholders */
.rec-card.ph { background: #f8f9fb; border-style: dashed; pointer-events: none; min-height: 180px; gap: 10px; }
.ph-bar, .ph-btn { display: block; background: #e3e7ee; border-radius: 6px; height: 12px; }
.ph-bar.w70 { width: 70%; height: 16px; } .ph-bar.w60 { width: 60%; } .ph-bar.w50 { width: 50%; } .ph-bar.w40 { width: 40%; }
.ph-btn { width: 64px; height: 28px; border-radius: 8px; }
.rec-card.ph .rec-date { background: #e3e7ee; color: transparent; width: 46px; }
.rec-track { scrollbar-width: thin; }

/* Fan profile */
.fp-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 22px; margin-bottom: 16px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #0b2a5b 0%, #1a56c4 100%); }
.fp-avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.55); }
.fp-who { flex: 1 1 200px; min-width: 0; }
.fp-who h1 { margin: 0; font-size: 1.5rem; color: #fff; overflow-wrap: anywhere; }
.fp-who p { margin: 4px 0 0; color: rgba(255,255,255,.85); overflow-wrap: anywhere; }
.fp-who .tag { background: rgba(255,255,255,.2); color: #fff; }
.fp-stats { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fp-stats li { min-width: 78px; text-align: center; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.14); }
.fp-stats strong { display: block; font-size: 1.35rem; line-height: 1.1; color: #fff; }
.fp-stats span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.85); }
.fp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.fp-main, .fp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fp-card { margin: 0; padding: 20px 22px; border-radius: 16px; }
.fp-title { margin-bottom: 14px; }
.fp-title h2 { margin: 0 0 2px; font-size: 1.12rem; }
.fp-title .muted { font-size: 0.88rem; }
.fp-group h3 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pill-set { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--ink); gap: 0; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.18); background: #fff; transition: background .15s, border-color .15s, color .15s; }
.pill:hover span { background: #eef4fe; border-color: #aecbfa; }
.pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.area-now { padding: 12px 14px; border-radius: 12px; background: #f1f5fb; border: 1px dashed #aecbfa; font-size: 0.92rem; color: var(--muted); }
.area-now strong { color: var(--ink); }
@media (max-width: 860px) { .fp-grid { grid-template-columns: 1fr; } .fp-stats { width: 100%; } .fp-stats li { flex: 1; } }

/* ---- Find my friends ---- */
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fr-grid .card { margin: 0; }
.fr-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; animation: fa-rise 0.5s ease backwards; animation-delay: calc(var(--i, 0) * 35ms); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.fr-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26, 115, 232, 0.12); border-color: #c4d7f7; }
.fr-card.linked { border-color: #a8d5b5; background: #f6fbf7; }
.fr-card[hidden] { display: none; }
.fr-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fr-name strong { overflow-wrap: anywhere; }
.fr-name .muted { font-size: 0.82rem; }
.fr-pair { display: flex; gap: 6px; }
.fr-requests { border-left: 4px solid var(--blue); }
.fr-requests h2 { margin-top: 0; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.fr-row + .fr-row { border-top: 1px solid var(--line); }
/* The circle: a friend's initial on a colour picked from their id. */
.fr-dot { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; color: hsl(var(--h, 215) 55% 26%); background: hsl(var(--h, 215) 70% 88%); border: 2px solid #fff; box-shadow: 0 0 0 1px hsl(var(--h, 215) 45% 70%); }
.fr-dot.more { --h: 215; font-size: 0.78rem; }
/* Friends going, under an event */
.fr-going { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; }
.fr-stack { display: inline-flex; }
.fr-stack .fr-dot { width: 28px; height: 28px; font-size: 0.8rem; }
.fr-stack .fr-dot + .fr-dot { margin-left: -8px; }
.fr-label { font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); }
@media (prefers-reduced-motion: reduce) { .fr-card { animation: none; } }
/* You: the main circle, with friends branching off it */
.fr-dot.me { width: 38px; height: 38px; font-size: 1rem; color: #fff; background: linear-gradient(135deg, #1a73e8, #1558b0); border-color: #fff; box-shadow: 0 0 0 2px var(--blue), 0 2px 6px rgba(26, 115, 232, 0.35); }
.fr-dot.me.out { color: var(--blue-dark); background: #fff; box-shadow: 0 0 0 2px var(--blue); border-style: dashed; border-color: var(--blue); }
.fr-branch { flex: 0 0 16px; height: 2px; margin: 0 -2px; background: var(--blue); opacity: 0.55; }
.fr-going { gap: 0; }
.fr-going .fr-label { margin-left: 10px; }
/* One joined cluster: your circle on top, friends' circles tucked behind it and sticking out to the right */
.fr-going .fr-dot.me { position: relative; z-index: 3; }
.fr-going .fr-dot.me + .fr-stack { margin-left: -6px; }
.fr-going .fr-stack .fr-dot { width: 30px; height: 30px; }
.fr-going .fr-stack .fr-dot { position: relative; z-index: 2; }
.fr-going .fr-stack .fr-dot + .fr-dot { z-index: 1; }

/* Dragon blink: skin-coloured lids drop over the eyes (positions are % of the dragon image). */
.fw-lid { position: absolute; z-index: 2; display: block; border-radius: 50%; background: linear-gradient(to top, rgba(95, 16, 16, 0.5) 0, rgba(95, 16, 16, 0.5) 2px, transparent 3px), radial-gradient(ellipse at 50% 35%, #e0504a 0%, #d63f3a 70%); filter: drop-shadow(0 0 2px #d94540); transform: scaleY(0); transform-origin: 50% 0; pointer-events: none; }
.fw-lid-l { left: 20.6%; top: 20.4%; width: 8.3%; height: 10.6%; transform: scaleY(0) rotate(-4deg); }
.fw-lid-r { left: 41.9%; top: 16.8%; width: 8.8%; height: 10.6%; transform: scaleY(0) rotate(-6deg); }
.fw-art.blink .fw-lid-l { animation: fw-blink-l 0.45s ease-in-out; }
.fw-art.blink .fw-lid-r { animation: fw-blink-r 0.45s ease-in-out; }
@keyframes fw-blink-l { 0%, 100% { transform: scaleY(0) rotate(-4deg); } 45%, 55% { transform: scaleY(1) rotate(-4deg); } }
@keyframes fw-blink-r { 0%, 100% { transform: scaleY(0) rotate(-6deg); } 45%, 55% { transform: scaleY(1) rotate(-6deg); } }

/* "N days to go": a rubber stamp on the right of the soonest event. */
.feed-item .feed-body { position: relative; flex: 1 1 auto; min-width: 0; }
.feed-item:has(.countdown) .feed-body { padding-right: 132px; }
.feed-item .countdown { position: absolute; top: 0; right: 8px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; padding: 6px 12px 7px; border: 3px double #c62828; border-radius: 10px; color: #c62828; background: rgba(198, 40, 40, 0.05); transform: rotate(-8deg); font-family: "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; line-height: 1; opacity: 0.9; pointer-events: none; mix-blend-mode: multiply; }
.feed-item .countdown b { font-size: 2.3rem; font-weight: 800; letter-spacing: 0.02em; }
.feed-item .countdown span { margin-top: 3px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; }
@media (max-width: 520px) { .feed-item .countdown { position: static; align-self: flex-start; margin-bottom: 8px; transform: rotate(-4deg); } .feed-item:has(.countdown) .feed-body { padding-right: 0; } }

/* Find my friends: artists have their own look and show their photo on the right, in a smaller panel. */
.fr-card.fr-artist { padding: 8px 12px; gap: 10px; border-color: #f0c36d; background: linear-gradient(135deg, #fffaf0, #fff3dc); }
.fr-card.fr-artist:hover { border-color: #e8a317; }
.fr-card.fr-artist.linked { border-color: #a8d5b5; background: linear-gradient(135deg, #f6fbf7, #e9f6ee); }
.fr-photo { order: 3; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: #7a4b00; background: #fde7b0; border: 2px solid #fff; box-shadow: 0 0 0 1px #e8a317; text-decoration: none; }
.fr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-card.fr-artist .fr-name a { color: var(--ink); text-decoration: none; }
.fr-card.fr-artist .fr-name a:hover { text-decoration: underline; }
.fr-badge { font-size: 0.78rem; font-weight: 700; color: #a56a00; }
.fr-card.fr-artist .btn.small { padding: 5px 9px; }

/* Little "likes" sack that sits beside the dragon */
.fw-sack { position: absolute; z-index: 51; right: 226px; bottom: 4px; width: 96px; height: auto; pointer-events: none; transform-origin: 50% 100%; }
@media (max-width: 520px) { .fw-sack { right: 166px; width: 60px; } }
.fw-grandad { position: absolute; z-index: 51; right: 330px; bottom: 4px; width: 200px; height: auto; pointer-events: none; }
@media (max-width: 900px) { .fw-grandad { display: none; } }
.fw-spill { position: absolute; z-index: 52; right: 226px; bottom: 4px; width: 96px; aspect-ratio: 1 / 1; pointer-events: none; }
.fw-coin { position: absolute; left: 0; top: 0; z-index: 52; border-radius: 50%; border: 1px solid #9a6b00; background: radial-gradient(circle at 35% 30%, #fff3a0 0%, #f4c522 45%, #b8860b 100%); box-shadow: 0 0 4px rgba(255, 205, 50, 0.85); opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .fw-spill { right: 166px; width: 60px; } }
.fw-dragon.fw-away { visibility: hidden; pointer-events: none; }
