/* Voryli theme — mobile first, minimal UI built on Bulma 1.0 CSS variables */
:root,
[data-theme="dark"] {
  --v-bg: #0B0D13;
  --v-surface: #141824;
  --v-surface-2: #1D2232;
  --v-line: rgba(255, 255, 255, .07);
  --v-panel: var(--v-surface);
  --v-panel-2: var(--v-surface-2);
  --v-border: #262c3d;
  --v-brand: #7C5CFC;
  --v-brand-soft: rgba(124, 92, 252, .16);
  --v-accent: #27D9C4;
  --v-text: #F2F3F7;
  --v-text-2: #8F98AE;
  --v-danger: #F0616D;
  --v-warning: #F5A623;
  --v-radius: 20px;
  --v-header-h: 56px;
  --v-dock-h: 64px;

  --bulma-scheme-h: 224;
  --bulma-scheme-s: 27%;
  --bulma-primary-h: 252deg;
  --bulma-primary-s: 96%;
  --bulma-primary-l: 67%;
  --bulma-link-h: 252deg;
  --bulma-link-s: 96%;
  --bulma-link-l: 74%;
  --bulma-success-h: 173deg;
  --bulma-success-s: 70%;
  --bulma-success-l: 50%;
  --bulma-danger-h: 355deg;
  --bulma-danger-s: 83%;
  --bulma-danger-l: 66%;
  --bulma-info-h: 214deg;
  --bulma-warning-h: 37deg;
  --bulma-radius: 12px;
  --bulma-radius-large: 18px;
  --bulma-body-background-color: var(--v-bg);
  --bulma-body-color: var(--v-text);
  --bulma-text: var(--v-text);
  --bulma-text-strong: #ffffff;
  --bulma-text-weak: var(--v-text-2);
  --bulma-family-primary: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bulma-card-background-color: var(--v-panel);
  --bulma-box-background-color: var(--v-panel);
  --bulma-input-background-color: var(--v-surface-2);
  --bulma-input-border-color: transparent;
  --bulma-input-color: var(--v-text);
  --bulma-border: var(--v-border);
  --bulma-table-background-color: transparent;
  --bulma-table-color: var(--v-text);
  --bulma-table-cell-border-color: var(--v-line);
  --bulma-table-row-hover-background-color: var(--v-surface-2);
  --bulma-footer-background-color: transparent;
}

html { background: var(--v-bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* iOS Safari zooms into any focused field under 16px */
@media (pointer: coarse) { .input, .textarea, .select select { font-size: 16px; } }
body { background: var(--v-bg); color: var(--v-text); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
main { flex: 1 0 auto; padding-bottom: 2.5rem; }
a { color: #b3a1ff; }
a:hover { color: #d4c9ff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--v-accent); outline-offset: 2px;
}
.title, .subtitle { color: var(--v-text); }
.subtitle, .has-text-weak, .help { color: var(--v-text-2) !important; }
.help.is-danger { color: #ffb3b9 !important; font-weight: 600; }
.field:has(.help.is-danger) :is(.input, .textarea, .select select) { border-color: var(--v-danger); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--v-brand); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.h-100 { height: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--v-text-2); }
.icon-svg { width: 1.15em; height: 1.15em; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header: brand + a few icon actions, nothing else */
.app-header { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); background: rgba(11, 13, 19, .82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--v-line); }
.app-header-inner { max-width: 1080px; height: var(--v-header-h); margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; color: #fff !important; }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: "Nunito", "Varela Round", "Trebuchet MS", system-ui, sans-serif; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--v-text-2); cursor: pointer; }
.icon-btn:hover, .icon-btn.is-active { color: #fff; background: var(--v-surface-2); }
.icon-btn .icon-svg { width: 22px; height: 22px; }
.notif-dot { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; border: 2px solid var(--v-bg); background: var(--v-brand); color: #fff; font-size: .66rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Single navigation: bottom tab bar on phones, floating pill on larger screens */
.dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); background: rgba(16, 19, 28, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--v-line); }
.dock a { flex: 1; max-width: 96px; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border-radius: 14px; color: var(--v-text-2); font-size: .68rem; font-weight: 600; }
.dock a:hover { color: #fff; }
.dock a.is-active { color: #fff; }
.dock a.is-active .icon-svg { color: #a48dff; }
.dock .icon-svg { width: 23px; height: 23px; }
@media (min-width: 769px) {
  .dock { left: 50%; right: auto; bottom: 1rem; transform: translateX(-50%); gap: .15rem; padding: .35rem; border: 1px solid var(--v-line); border-radius: 999px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
  .dock a { flex: none; max-width: none; min-height: 44px; flex-direction: row; gap: .45rem; padding: 0 1.05rem; border-radius: 999px; font-size: .85rem; }
  .dock a.is-active { background: var(--v-brand-soft); }
  .dock .icon-svg { width: 19px; height: 19px; }
}
body:has(> .dock) { padding-bottom: calc(var(--v-dock-h) + env(safe-area-inset-bottom)); }
@media (min-width: 769px) { body:has(> .dock) { padding-bottom: 5.5rem; } }

/* Page scaffolding */
.page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem 0; }
@media (min-width: 769px) { .page { padding: 2rem 1.5rem 0; } }
.page-mid { max-width: 760px; }
.page-narrow { max-width: 620px; }
.page-flash { padding-bottom: 0; }
.page-flash .notification { margin-bottom: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head .page-title { margin-bottom: 0; }
.page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #fff; margin-bottom: 1rem; }
@media (min-width: 769px) { .page-title { font-size: 1.9rem; } }
.section-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.section-head .section-title { margin-bottom: 0; }
.section-head > a { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.block-section { margin-top: 2rem; }
.block-section:first-child { margin-top: 0; }
.hint { color: var(--v-text-2); font-size: .85rem; margin-bottom: .75rem; }
.lead-text { color: var(--v-text-2); margin-bottom: 1.25rem; }
.empty-state { color: var(--v-text-2); text-align: center; padding: 2.25rem 1rem; border: 1px dashed var(--v-border); border-radius: var(--v-radius); }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--v-surface-2); color: var(--v-text-2); font-size: .78rem; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: 1rem; color: var(--v-text-2); font-size: .9rem; font-weight: 600; }
.back-link:hover { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack > .field { margin-bottom: 0; }
.label-row { display: flex; align-items: center; gap: .4rem; margin-bottom: .5em; }
.label-row .label { margin-bottom: 0; }
.inline-field { display: flex; align-items: flex-start; gap: .5rem; }
.inline-field > :first-child { flex: 1; }
.inline-field > .tip { margin-top: .45rem; }
.checks { display: flex; flex-direction: column; gap: .65rem; margin: 1.25rem 0 .5rem; }
.checks .field { margin-bottom: 0; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: start; }
  .split > :first-child { position: sticky; top: calc(var(--v-header-h) + 1.5rem); }
}
.auth-page { max-width: 440px; }
.auth-switch { text-align: center; margin-top: 1.25rem; color: var(--v-text-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .35rem .85rem; border-radius: 999px; background: var(--v-surface-2); color: var(--v-text); font-size: .85rem; font-weight: 600; }
.chip:hover { color: #fff; background: #262c40; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }

/* (i) info tips */
.tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: .15rem; font-size: 1rem; }
.tip-btn { position: relative; width: 20px; height: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: var(--v-text-2); font: italic 700 12px/1 Georgia, "Times New Roman", serif; cursor: pointer; }
.tip-btn::after { content: ""; position: absolute; inset: -10px; }
.tip-btn:hover, .tip.is-open .tip-btn { color: #fff; background: var(--v-brand); border-color: var(--v-brand); }
.tip-body { display: none; position: absolute; z-index: 50; top: calc(100% + 10px); left: 50%; transform: translateX(calc(-50% + var(--tip-shift, 0px))); width: max-content; max-width: min(300px, calc(100vw - 24px)); padding: .7rem .85rem; border-radius: 12px; background: #262C3F; color: var(--v-text); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); font-size: .85rem; font-weight: 400; font-style: normal; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; }
.tip.is-open .tip-body { display: block; animation: tip-in .15s ease-out; }

/* Surfaces */
.surface, .card, .box { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-radius); box-shadow: none; color: var(--v-text); }
.surface { padding: 1.25rem; margin-bottom: 1rem; }
.surface > :last-child { margin-bottom: 0; }
.card-image img { border-radius: var(--v-radius) var(--v-radius) 0 0; }
.card .card-content { padding: 1rem 1.1rem; }
.panel-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; color: #fff; }
.section { padding: 1.5rem 1rem; }
@media (min-width: 769px) { .section { padding: 2.5rem 1.5rem; } }
.disclosure { margin-bottom: 1rem; }
.disclosure > summary { cursor: pointer; font-weight: 600; color: var(--v-text-2); list-style: none; display: flex; align-items: center; gap: .4rem; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: ""; width: .5rem; height: .5rem; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.disclosure[open] > summary::after { transform: rotate(-135deg); }
.disclosure > summary:hover { color: #fff; }
.disclosure[open] > summary { margin-bottom: .75rem; }
.disclosure.is-danger > summary { color: #ff8a93; }
details.disclosure:not(.surface) { padding: .25rem 0; }

/* Buttons & inputs */
.button { min-height: 44px; border-radius: 12px; font-weight: 600; border: 0; }
.button.is-small { min-height: 34px; border-radius: 10px; }
.button.is-large-touch { min-height: 54px; font-size: 1.05rem; padding-inline: 1.5rem; border-radius: 16px; }
.button.is-primary { background: var(--v-brand); color: #fff; }
.button.is-primary:hover { background: #6b49f5; }
.button.is-accent { background: var(--v-accent); color: #062521; }
.button.is-accent:hover { background: #1fc4b0; color: #062521; }
.button.is-refuse { background: rgba(240, 97, 109, .12); color: #ff8a93; }
.button.is-refuse:hover { background: rgba(240, 97, 109, .2); color: #ffa3aa; }
.button.is-ghost-light { background: var(--v-surface-2); color: var(--v-text); }
.button.is-ghost-light:hover { background: #262c40; color: #fff; }
.button.is-text-danger { background: transparent; color: #ff8a93; }
.button.is-text-danger:hover { background: rgba(240, 97, 109, .1); }
.button.is-danger { background: var(--v-danger); color: #fff; }
.button.is-danger:hover { background: #e14c59; color: #fff; }
.buttons { gap: .5rem; }
.buttons .button { margin: 0; }

.input, .textarea, .select select { background: var(--v-surface-2); color: var(--v-text); border: 1px solid transparent; border-radius: 12px; box-shadow: none; min-height: 46px; }
.input:focus, .textarea:focus, .select select:focus { border-color: var(--v-brand); box-shadow: 0 0 0 3px var(--v-brand-soft); }
.input.is-small, .textarea.is-small, .select.is-small select { min-height: 38px; border-radius: 10px; }
.input::placeholder, .textarea::placeholder { color: #6c7590; }
.label { color: var(--v-text); font-weight: 600; font-size: .9rem; }
.checkbox, .radio { line-height: 1.45; }
.checkbox:hover, .radio:hover { color: #fff; }
.checkbox input, .radio input { width: 1.1rem; height: 1.1rem; vertical-align: -0.15rem; margin-right: .4rem; accent-color: var(--v-brand); }
.search-bar { position: relative; margin-bottom: 1.25rem; }
.search-bar .icon-svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--v-text-2); pointer-events: none; }
.search-bar .input { padding-left: 2.75rem; border-radius: 999px; min-height: 48px; }

/* Guest hero */
.hero-min { padding: 1.5rem 0 .5rem; text-align: center; }
.hero-min .pill { color: var(--v-accent); background: rgba(39, 217, 196, .1); margin-bottom: 1rem; }
.hero-title { font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #fff; max-width: 14ch; margin: 0 auto 1.5rem; }
@media (min-width: 769px) { .hero-title { font-size: 3.4rem; } .hero-min { padding: 3rem 0 1rem; } }
.hero-actions { display: flex; flex-direction: column; gap: .6rem; max-width: 340px; margin: 0 auto; }
@media (min-width: 480px) { .hero-actions { flex-direction: row; justify-content: center; max-width: none; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 2rem 0 0; }
.stat-row > div { display: flex; flex-direction: column-reverse; align-items: center; gap: .1rem; text-align: center; }
.stat-row dd { font-size: 1.45rem; font-weight: 800; color: #fff; margin: 0; }
.stat-row dt { font-size: .75rem; color: var(--v-text-2); }
.stat-row.is-boxed { grid-template-columns: repeat(2, 1fr); margin: 0 0 1rem; }
@media (min-width: 769px) { .stat-row.is-boxed { grid-template-columns: repeat(4, 1fr); } }
.stat-row.is-boxed > div { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: 16px; padding: .8rem .5rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 1rem .5rem; text-align: center; background: var(--v-surface); border: 1px solid var(--v-line); border-radius: 18px; }
.steps strong { color: #fff; font-size: .9rem; }
.step-icon, .cta-icon, .stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: var(--v-brand-soft); color: #b3a1ff; flex: none; }
.step-icon .icon-svg, .cta-icon .icon-svg, .stat-icon .icon-svg { width: 22px; height: 22px; }
.stat-icon.is-accent { background: rgba(39, 217, 196, .12); color: var(--v-accent); }
.guest-card { display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; margin-top: 2rem; padding: 1.5rem; }

/* Call to action card (Discover) */
.cta-card { display: flex; align-items: center; gap: .85rem; margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--v-radius); color: #fff; background: linear-gradient(120deg, rgba(39, 217, 196, .18), rgba(124, 92, 252, .18)); border: 1px solid rgba(39, 217, 196, .25); }
.cta-card:hover { color: #fff; border-color: rgba(39, 217, 196, .5); }
.cta-card .cta-icon { background: rgba(39, 217, 196, .18); color: var(--v-accent); }
.cta-card > .icon-svg { color: var(--v-text-2); }

/* Dashboard stat cards */
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 2rem; }
@media (min-width: 769px) { .stat-cards { grid-template-columns: 2fr 1fr 1fr; gap: 1rem; } }
.stat-card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-radius: var(--v-radius); background: var(--v-surface); border: 1px solid var(--v-line); color: var(--v-text); }
.stat-card:hover { color: var(--v-text); background: #181d2b; }
.stat-card.is-wide { grid-column: 1 / -1; }
@media (min-width: 769px) { .stat-card.is-wide { grid-column: auto; } }
.stat-card > strong { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--v-text-2); }
.notification.is-compact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; }

/* Rarity badges: colour + text label (colour is never the only cue) */
.rarity { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: 1px solid currentColor; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rarity::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.rarity-epic, .rarity-legendary { box-shadow: 0 0 12px -2px currentColor; }
.vory-card.rarity-glow-epic,
.vory-card.rarity-glow-legendary { border: 1.5px solid transparent; background: linear-gradient(var(--v-surface), var(--v-surface)) padding-box, var(--glow-border) border-box; box-shadow: 0 8px 22px -10px var(--glow); }
.vory-card.rarity-glow-epic { --glow: rgba(155, 107, 255, .7); --glow-border: linear-gradient(135deg, #9B6BFF, #5b3fd1 50%, #c3a6ff); }
.vory-card.rarity-glow-legendary { --glow: rgba(245, 166, 35, .75); --glow-border: linear-gradient(135deg, #FFD27A, #F5A623 40%, #a86a0c 70%, #FFD27A); }

/* Vory cards: swipeable row on phones, grid on larger screens */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; margin: -.5rem -1rem 0; padding: .5rem 1rem 1rem; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (min-width: 769px) { .carousel { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 1rem; } }
.vory-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .15s ease; }
.vory-card:hover { transform: translateY(-2px); }
.vory-visual { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--rc, #7C5CFC) 0%, #141824 85%); }
.vory-visual img { width: 100%; height: 100%; object-fit: cover; }
.vory-visual .icon-svg { width: 34%; height: 34%; color: rgba(255,255,255,.85); stroke-width: 1.5; }
.vory-visual .rarity { position: absolute; top: .65rem; left: .65rem; }
.vory-visual .points { position: absolute; bottom: .65rem; right: .65rem; background: rgba(0,0,0,.55); color: #fff; padding: .2rem .6rem; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.vory-card .card-content { flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.vory-card .card-content .button { margin-top: .6rem !important; }
.vory-card .abandon-form .button { margin-top: .2rem !important; }
.vory-title { font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.3; }
.vory-meta { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--v-text-2); margin-bottom: .25rem; }
.vory-desc { font-size: .85rem; color: var(--v-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; width: fit-content; }
.status-never { background: var(--v-surface-2); color: var(--v-text-2); }
.status-pending { background: rgba(245,166,35,.15); color: #ffc46b; }
.status-success { background: rgba(39,217,196,.15); color: var(--v-accent); }
.status-failed { background: rgba(240,97,109,.15); color: #ff8a93; }

/* Capture grid */
.capture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 769px) { .capture-grid { grid-template-columns: repeat(4, 1fr); gap: .85rem; } }
@media (min-width: 1216px) { .capture-grid { grid-template-columns: repeat(5, 1fr); } }
.capture-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--v-surface); aspect-ratio: 1; }
.capture-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.capture-tile:hover img { transform: scale(1.03); }
.capture-tile .overlay { position: absolute; inset: auto 0 0 0; padding: 1.5rem .65rem .55rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: .78rem; }
.capture-tile .overlay strong { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capture-tile .rarity { position: absolute; top: .45rem; left: .45rem; font-size: .6rem; }

/* Capture detail */
.media-card { padding: 0; }
.media-frame { background: #000; display: flex; justify-content: center; overflow: hidden; border-radius: var(--v-radius) var(--v-radius) 0 0; }
.media-frame img { display: block; max-height: 72vh; width: auto; max-width: 100%; height: auto; }
.media-body { padding: 1.1rem 1.25rem 1.25rem; }
.media-body > p { margin-bottom: .5rem; }
.author { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .85rem; color: var(--v-text); }
.author strong { color: #fff; }
.author .muted { font-size: .78rem; }

/* Profile */
.profile-cover { height: 140px; background: linear-gradient(120deg, #2a1f63, #0B0D13 60%, #0f3d3a); background-size: cover; background-position: center; }
@media (min-width: 769px) { .profile-cover { height: 220px; max-width: 1080px; margin: 1rem auto 0; border-radius: 24px; } }
.profile-cover + .page { padding-top: 0; }
.profile-head { margin-top: -48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; margin-bottom: 1rem; }
@media (min-width: 769px) { .profile-head { flex-direction: row; align-items: flex-end; text-align: left; gap: 1.25rem; margin-top: -56px; } }
.profile-id { flex: 1; min-width: 0; }
.profile-score { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
@media (min-width: 769px) { .profile-score { align-items: flex-end; } }
.profile-bio { color: var(--v-text-2); margin-bottom: 1rem; text-align: center; }
@media (min-width: 769px) { .profile-bio { text-align: left; } }
@media (max-width: 768px) { .profile-head ~ .chip-row { justify-content: center; } }
.avatar { border-radius: 50%; object-fit: cover; background: var(--v-surface-2); border: 3px solid var(--v-bg); flex: none; }
.avatar-xl { width: 104px; height: 104px; border-width: 4px; }
.avatar-md { width: 44px; height: 44px; border-width: 0; }
.avatar-sm { width: 36px; height: 36px; border-width: 0; }
.avatar-xs { width: 24px; height: 24px; border-width: 0; }
.score-big { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.score-big small { font-size: .9rem; color: var(--v-text-2); font-weight: 600; letter-spacing: 0; }
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 769px) { .showcase { grid-template-columns: repeat(5, 1fr); gap: .85rem; } }
.showcase .capture-tile { aspect-ratio: 3 / 4; }
.showcase .capture-tile:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (min-width: 769px) { .showcase .capture-tile:first-child { grid-column: auto; aspect-ratio: 3 / 4; } }
.breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: .75rem; }
@media (min-width: 769px) { .breakdown { grid-template-columns: repeat(5, 1fr); } }
.breakdown div { background: var(--v-surface-2); border-radius: 14px; padding: .65rem .75rem; }
.breakdown strong { display: block; font-size: 1.1rem; color: #fff; }
.breakdown span { font-size: .75rem; color: var(--v-text-2); }

/* Lists (leaderboard, friends, notifications) */
.list { list-style: none; margin: 0; padding: 0; background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-radius); }
.list-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; color: var(--v-text); border-bottom: 1px solid var(--v-line); }
.list > .list-item:last-child, .list > li:last-child > .list-item { border-bottom: 0; }
.list > :first-child, .list > :first-child > .list-item { border-top-left-radius: var(--v-radius); border-top-right-radius: var(--v-radius); }
.list > :last-child, .list > :last-child > .list-item { border-bottom-left-radius: var(--v-radius); border-bottom-right-radius: var(--v-radius); }
a.list-item:hover { background: var(--v-surface-2); color: var(--v-text); }
.list-item strong { color: #fff; font-weight: 600; }
.list-item.is-me { background: var(--v-brand-soft); }
.list-item.is-unread { background: rgba(124, 92, 252, .07); }
.list-item .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--v-brand); flex: none; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; color: var(--v-text); }
.list-main > strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-main .muted { font-size: .8rem; }
.list-value { margin-left: auto; font-weight: 700; color: #fff; white-space: nowrap; }
.list-value small { color: var(--v-text-2); font-weight: 600; font-size: .75rem; }
.list-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.list-actions > .muted { font-size: .8rem; margin-right: .25rem; }
.rank { width: 2rem; height: 2rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--v-surface-2); font-weight: 800; font-size: .85rem; color: var(--v-text-2); }
.rank-1 { background: #F5A623; color: #1b1300; }
.rank-2 { background: #C9D1E0; color: #111; }
.rank-3 { background: #C27A43; color: #1b0f00; }
.is-me { background: var(--v-brand-soft) !important; }

/* Discover */
.discover-card { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-radius); }
.discover-photo { position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 40vh; max-height: 60vh; overflow: hidden; border-radius: var(--v-radius) var(--v-radius) 0 0; }
.discover-photo img { max-height: 60vh; width: 100%; object-fit: contain; }
.discover-photo .rarity { position: absolute; top: .75rem; left: .75rem; }
.discover-body { padding: 1rem 1.1rem 1.1rem; }
.discover-title { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: .2rem; }
.discover-body .muted { font-size: .88rem; }
.discover-body .caption { font-size: .85rem; color: var(--v-text); font-style: italic; margin-top: .35rem; }
.discover-body .caption:empty { display: none; }
.discover-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.art-panel { display: none; margin-top: 1rem; animation: rise .2s ease-out; }
.art-panel.is-open { display: block; }
.art-label { text-align: center; font-weight: 600; font-size: .9rem; }
.art-value { font-size: 2.6rem; font-weight: 800; color: var(--v-accent); text-align: center; line-height: 1.1; margin: .35rem 0; }
.art-value small { font-size: 1rem; color: var(--v-text-2); font-weight: 600; }
input[type="range"].art-range { width: 100%; height: 44px; accent-color: var(--v-accent); }
.art-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--v-text-2); }
.art-buttons { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin-top: 1rem; }
.art-buttons > :only-child { grid-column: 1 / -1; }
.vote-feedback { text-align: center; margin-top: .75rem; font-weight: 600; animation: pop .35s ease-out; }
.vote-feedback:empty { display: none; }
.is-entering { animation: pop .35s ease-out; }
.report-details { margin-top: 1rem; }
.report-details > summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font-size: .8rem; color: var(--v-text-2); list-style: none; }
.report-details > summary::-webkit-details-marker { display: none; }
.report-details > summary:hover { color: #ff8a93; }
.report-details .stack { margin-top: .75rem; gap: .6rem; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.95); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Upload */
.upload-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (hover: hover) and (pointer: fine) { .upload-picker { grid-template-columns: 1fr; } .upload-take { display: none; } }
.upload-name { font-size: .85rem; word-break: break-all; }
.upload-name:empty { display: none; }
.upload-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 140px; padding: 1.25rem; border: 2px dashed var(--v-border); border-radius: 18px; text-align: center; cursor: pointer; color: var(--v-text); font-weight: 600; word-break: break-all; }
.upload-drop .icon-svg { width: 32px; height: 32px; color: #b3a1ff; }
.upload-drop:hover, .upload-drop:focus-within { border-color: var(--v-brand); background: var(--v-brand-soft); }
.upload-preview { max-height: 360px; margin: 0 auto; border-radius: 16px; display: none; }
.upload-preview.is-visible { display: block; }
.progress.is-brand::-webkit-progress-value { background: var(--v-brand); }
.progress.is-brand::-moz-progress-bar { background: var(--v-brand); }
.notice-final { padding: .7rem .9rem; border-radius: 12px; background: rgba(245,166,35,.1); color: #ffd79a; font-size: .85rem; }
[data-upload-status]:empty { display: none; }

/* Tabs → segmented pills */
.tabs { margin-bottom: 1.25rem !important; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs ul { border: 0; gap: .35rem; }
.tabs li a { border: 0; margin: 0; padding: .45rem .95rem; border-radius: 999px; background: var(--v-surface); color: var(--v-text-2); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.tabs li a:hover { color: #fff; background: var(--v-surface-2); }
.tabs li.is-active a { background: #fff; color: #0B0D13; }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: calc(var(--v-dock-h) + .75rem + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; background: var(--v-surface-2); border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 1rem 1.1rem; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
@media (min-width: 769px) { .cookie-banner { bottom: 6rem; } }

/* Confirmation dialog (app.js, form[data-confirm]) */
.confirm-dialog { width: min(420px, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-surface-2); color: var(--v-text); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.confirm-dialog::backdrop { background: rgba(5, 6, 10, .72); backdrop-filter: blur(3px); }
.confirm-dialog[open] { animation: confirm-in .16s ease-out; }
.confirm-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.confirm-text { color: var(--v-text-2); margin-bottom: 1.1rem; }
.confirm-dialog .buttons { flex-wrap: nowrap; }
.confirm-dialog .buttons .button { flex: 1 1 0; }
.confirm-dialog .button.is-ghost-light { background: rgba(255, 255, 255, .07); }
@keyframes confirm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .confirm-dialog[open] { animation: none; } }
.cookie-banner .buttons { flex-wrap: nowrap; }
.cookie-banner .buttons .button { flex: 1 1 0; min-height: 40px; font-size: .85rem; }
.cookie-banner[hidden] { display: none; }

/* Flash notifications */
.notification { border-radius: 14px; }
.notification.is-success { background: rgba(39,217,196,.14); color: #8ff3e6; }
.notification.is-danger { background: rgba(240,97,109,.14); color: #ffb3b9; }
.notification.is-warning { background: rgba(245,166,35,.14); color: #ffd79a; }
.notification.is-info { background: rgba(61,139,253,.14); color: #b8d4ff; }

/* Footer: discreet legal links + language */
.app-footer { margin-top: 3rem; padding: 1.5rem 1rem; border-top: 1px solid var(--v-line); color: var(--v-text-2); font-size: .78rem; }
.app-footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.app-footer a { color: var(--v-text-2); }
.app-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: center; }
.footer-langs { display: flex; gap: .25rem; }
.footer-langs a { padding: .2rem .5rem; border-radius: 8px; font-weight: 600; }
.footer-langs a.is-current { background: var(--v-surface-2); color: #fff; }
.link-button { background: none; border: none; color: var(--v-text-2); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* Legal content */
.legal-content h2 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; color: #fff; font-weight: 700; }
.legal-content h3 { font-size: 1.1rem; margin: 1.1rem 0 .4rem; color: #fff; font-weight: 700; }
.legal-content p, .legal-content li { color: var(--v-text); line-height: 1.65; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }

/* Admin */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #0c0f16; border-right: 1px solid var(--v-border); padding: 1rem .75rem; display: none; }
@media (min-width: 1024px) { .admin-sidebar { display: block; } }
.admin-sidebar .menu-list a { color: var(--v-text-2); border-radius: 10px; }
.admin-sidebar .menu-list a.is-active, .admin-sidebar .menu-list a:hover { background: var(--v-brand-soft); color: #fff; }
.admin-sidebar .menu-label { color: #7883a0; }
.admin-main { flex: 1; min-width: 0; padding: 1rem; }
@media (min-width: 1024px) { .admin-main { padding: 2rem; } }
.admin-mobile-nav { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1rem; }
.admin-mobile-nav a { white-space: nowrap; }
@media (min-width: 1024px) { .admin-mobile-nav { display: none; } }
.kpi { background: var(--v-panel); border-radius: 14px; padding: 1rem; }
.kpi strong { display: block; font-size: 1.6rem; color: #fff; }
.kpi span { color: var(--v-text-2); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.table { font-size: .9rem; }
.table th { color: var(--v-text-2) !important; }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.tag.is-status { font-weight: 600; }
pre.details { white-space: pre-wrap; word-break: break-word; background: transparent; color: var(--v-text-2); padding: 0; font-size: .8rem; }
