:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f4e9;
  background: #0b1215;
  font-synthesis: none;
  --ink: #f4f4e9;
  --ink-soft: #9bb5b2;
  --cream: #121d21;
  --paper: #0b1215;
  --mint: #62d9b3;
  --mint-dark: #38b896;
  --teal: #79e5c2;
  --gold: #f4bd4f;
  --coral: #f48972;
  --lavender: #9d91dc;
  --line: rgba(148, 205, 194, 0.17);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --background-rgb: 11, 18, 21;
  --panel-rgb: 18, 29, 33;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: ease-out;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 1ms; }
}

:root[data-color-mode="light"] {
  color-scheme: light;
  color: #264740;
  background: #f8f2d7;
  --ink: #24473f;
  --ink-soft: #506a62;
  --cream: #fffaf0;
  --paper: #f8f2d7;
  --mint: #4fcda5;
  --mint-dark: #176b5b;
  --teal: #1c756b;
  --gold: #8a620c;
  --coral: #b84c3b;
  --line: rgba(36, 71, 63, 0.14);
  --shadow: 0 22px 60px rgba(51, 92, 80, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  background:
    radial-gradient(circle at 8% 7%, rgba(98, 217, 179, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 5%, rgba(244, 189, 79, 0.25) 0 3px, transparent 4px),
    linear-gradient(180deg, var(--background-2, #102a30) 0, color-mix(in srgb, var(--background-2, #102a30) 62%, var(--paper)) 32rem, var(--paper) 50rem);
}

:root[data-color-mode="light"] body {
  background:
    radial-gradient(circle at 8% 7%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 5%, rgba(255, 255, 255, 0.65) 0 3px, transparent 4px),
    linear-gradient(180deg, #ccebe4 0, #ebf1d3 32rem, var(--paper) 50rem);
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sky-speckles {
  position: absolute;
  z-index: 0;
  inset: 6rem 0 auto;
  height: 34rem;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(circle, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(54, 143, 124, 0.4) 0 1px, transparent 1.5px);
  background-position: 18% 22%, 77% 15%;
  background-size: 15rem 12rem, 12rem 10rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(var(--panel-rgb), 0.97);
  box-shadow: 0 12px 34px rgba(var(--background-rgb), 0.3);
  backdrop-filter: blur(18px);
  view-transition-name: aniilogs-topbar;
}

:root[data-color-mode="light"] .site-header {
  background: rgba(var(--panel-rgb), 0.97);
  box-shadow: 0 12px 34px rgba(var(--background-rgb), 0.15);
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; width: fit-content; text-decoration: none; }
.brand-mark { display: block; width: 43px; height: 43px; flex: none; }
.brand-name { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--coral); }

nav { display: flex; align-items: center; gap: 0.35rem; }
nav a { min-height: 36px; padding: 8px 13px; border: 1px solid transparent; border-radius: 999px; color: var(--ink-soft); font-size: 12px; font-weight: 650; text-decoration: none; }
nav a:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--teal); }
nav .nav-disabled, nav .nav-disabled:hover { background: transparent; color: color-mix(in srgb, var(--ink-soft) 62%, var(--paper)); cursor: not-allowed; }

.account-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.account-settings-shortcut { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 20px; text-decoration: none; }
.account-settings-shortcut:hover, .account-settings-shortcut:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.theme-picker-label { display: inline-flex; min-width: 0; align-items: center; flex-direction: column; gap: 2px; color: var(--ink-soft); font-size: 9px; font-weight: 700; line-height: 1; }
.theme-picker-copy { white-space: nowrap; }
.theme-picker { width: 7rem; min-height: 24px; max-width: 7rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--cream) 88%, var(--mint)); color: var(--ink); padding: 2px 24px 2px 10px; font: inherit; font-size: 10px; font-weight: 650; text-align: center; text-align-last: center; cursor: pointer; }
.theme-picker:hover, .theme-picker:focus-visible { border-color: var(--mint); outline: 2px solid color-mix(in srgb, var(--mint) 35%, transparent); outline-offset: 2px; }
.language-picker { width: 38px; height: 34px; flex: 0 0 38px; appearance: none; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--cream) 88%, var(--mint)); color: var(--ink); padding: 0; font: inherit; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 18px; line-height: 1; text-align: center; text-align-last: center; cursor: pointer; }
.language-picker:hover, .language-picker:focus-visible { border-color: var(--mint); outline: 2px solid color-mix(in srgb, var(--mint) 35%, transparent); outline-offset: 2px; }
.account-menu { position: relative; color: var(--ink); }
.account-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu-trigger {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, #5865f2 62%, var(--line));
  border-radius: 999px;
  background: #5865f2;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(79, 91, 213, 0.26);
  text-decoration: none;
}
.account-menu-trigger:hover,
.account-menu-trigger:focus-visible,
.account-menu[open] .account-menu-trigger { background: #4752c4; outline: 2px solid color-mix(in srgb, #5865f2 42%, transparent); outline-offset: 2px; }
.discord-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.account-menu-chevron { font-size: 0.86rem; transition: transform 140ms ease; }
.account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  width: max-content;
  min-width: 190px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  padding: 7px;
  box-shadow: 0 18px 44px rgba(5, 17, 19, 0.28);
}
.account-menu-popover a,
.account-menu-popover button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0.68rem 0.78rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 780;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-menu-popover a:hover,
.account-menu-popover a:focus-visible,
.account-menu-popover button:hover,
.account-menu-popover button:focus-visible { background: color-mix(in srgb, var(--mint) 20%, var(--cream)); color: var(--ink); outline: none; }
.account-menu-popover .account-menu-danger { color: color-mix(in srgb, var(--coral) 55%, var(--ink)); }
.discord-button, .primary-button, .secondary-button, .quiet-button, .avatar-button, .danger-button {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.discord-button:hover, .primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.discord-button { background: #4f5bd5; color: #fff; box-shadow: 0 7px 18px rgba(79, 91, 213, 0.26); }
.discord-button.is-disabled, .secondary-button.is-disabled { background: rgba(255, 250, 240, 0.58); color: var(--ink-soft); box-shadow: none; cursor: default; }
.avatar-button { background: rgba(98, 217, 179, 0.18); color: var(--ink); }
.quiet-button { background: transparent; color: var(--ink-soft); }
.danger-button { border: 1px solid rgba(244, 137, 114, 0.35); background: rgba(116, 39, 35, 0.35); color: #ffb4a4; }
.danger-button:hover { background: rgba(143, 50, 44, 0.48); }

main { position: relative; z-index: 1; width: min(1180px, 92vw); margin: 0 auto; }

.eyebrow { color: var(--teal); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow span { color: var(--coral); margin-right: 0.3rem; }
h1 { max-width: 720px; margin: 0.8rem 0 1.4rem; color: var(--ink); font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
h1 span { color: var(--coral); white-space: nowrap; }

.primary-button { background: var(--mint); color: var(--on-primary, #0b211c); box-shadow: 0 10px 24px rgba(36, 71, 63, 0.22); }
.primary-button span { display: inline-block; margin-left: 0.35rem; }
.secondary-button { border: 2px solid rgba(36, 71, 63, 0.16); background: rgba(255, 250, 240, 0.58); color: var(--ink); }
.status { min-height: 1.4rem; margin: 1.1rem 0 0; color: var(--ink-soft); font-size: 0.84rem; }

/* Home page "What's new": one collapsible note per site update, newest first. */
/* Home: what AniiLogs is, on a map banner, then a picture card per tool, then the site updates. */
.home-about { max-width: 1080px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.6rem) 0 2.5rem; }
.home-banner { position: relative; display: grid; align-items: end; min-height: clamp(220px, 34vw, 360px); margin-bottom: 1.4rem; overflow: hidden;
  border: 1px solid var(--line); border-radius: 26px; background: var(--cream); box-shadow: var(--shadow); }
.home-banner-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.home-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--cream) 94%, transparent) 0%, color-mix(in srgb, var(--cream) 70%, transparent) 38%, transparent 75%); }
.home-banner-copy { position: relative; z-index: 1; padding: clamp(1.1rem, 3vw, 2rem); }
.home-about h1 { margin: 0 0 0.4rem; color: var(--ink); font-size: clamp(2rem, 4vw, 2.8rem); }
.home-about-intro { max-width: 46rem; margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.home-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.home-tool a { display: grid; grid-template-rows: auto auto 1fr; gap: 0.35rem; height: 100%; padding: 0 0 1rem; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: 20px; background: var(--cream); box-shadow: var(--shadow); transition: transform 140ms ease, border-color 140ms ease; }
.home-tool a:hover, .home-tool a:focus-visible { transform: translateY(-2px); border-color: var(--teal); }
.home-tool-art { display: grid; place-items: center; height: 120px; overflow: hidden; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--teal) 14%, var(--cream)); }
.home-tool-map { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.home-tool-icons { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0 0.7rem; }
.home-tool-icons img { width: clamp(48px, 28%, 84px); aspect-ratio: 1; height: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.25)); }
.home-tool strong, .home-tool a > span:last-child { padding: 0 1rem; }
.home-tool strong { color: var(--ink); font-size: 1.08rem; }
.home-tool a:hover strong, .home-tool a:focus-visible strong { color: var(--teal); }
.home-tool a > span:last-child { color: var(--ink-soft); line-height: 1.5; }
.home-about .status:empty { display: none; }
.patch-note-art { margin: 1rem 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.patch-note-art img { display: block; width: 100%; height: clamp(140px, 24vw, 220px); object-fit: cover; }
.patch-note-art figcaption { padding: 0.45rem 0.9rem; color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
.patch-note-art:not(:has(img)) { display: none; }
@media (max-width: 560px) {
  /* phone: the banner picture above its text, and each tool a row with its picture on the left */
  .home-banner { min-height: 0; }
  .home-banner-art { position: static; height: 150px; }
  .home-banner::after { display: none; }
  .home-banner-copy { padding: 0.9rem 1rem 1.1rem; }
  .home-tools { gap: 0.6rem; }
  .home-tool a { grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0.2rem 0.8rem; padding: 0; }
  .home-tool-art { grid-row: 1 / 3; height: 100%; min-height: 92px; margin: 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .home-tool-icons { padding: 0.4rem; }
  .home-tool-icons img { width: 64px; }
  .home-tool-icons img:not(:first-child) { display: none; }   /* one picture per row on a phone */
  .home-tool strong { padding: 0.75rem 0.9rem 0 0; }
  .home-tool a > span:last-child { padding: 0 0.9rem 0.75rem 0; font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) { .home-tool a { transition: none; } }
.patch-notes { padding: 0 0 6rem; }
.patch-notes .section-heading { margin-bottom: 1.5rem; }
.patch-notes .section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }   /* below the page title (.home-about h1) */
.patch-note { max-width: 860px; margin: 0 auto; padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(1.2rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 26px; background: var(--cream); box-shadow: var(--shadow); }
.patch-note > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1rem; cursor: pointer; list-style: none; }
.patch-note > summary::-webkit-details-marker { display: none; }
.patch-note-title::before { content: "▸"; display: inline-block; margin-right: 0.45rem; color: var(--mint-dark); transition: transform 160ms ease; }
.patch-note[open] .patch-note-title::before { transform: rotate(90deg); }
.patch-note-title { flex: 1 1 18rem; color: var(--ink); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 800; }
.patch-note-date { color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.patch-note ul { display: grid; gap: 0.6rem; margin: 1.1rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); line-height: 1.55; }
.patch-note li::marker { color: var(--mint-dark); }
.patch-note strong { color: var(--ink); }
.patch-note + .patch-note { margin-top: 1rem; }
.patch-note-page { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.patch-note-page:hover { text-decoration-color: var(--mint); }
.patch-note-more { margin: 1rem 0 0; }
.patch-note-more a { color: var(--mint-dark); font-weight: 800; text-decoration: none; }
.patch-note-more a:hover { text-decoration: underline; }
.patch-note-part { margin: 1.3rem 0 0; color: var(--ink); font-size: 1rem; }   /* "In the game" / "On the site" */
@media (prefers-reduced-motion: reduce) { .patch-note-title::before { transition: none; } }
.section-heading { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-heading h2 { margin: 0.55rem 0 0.9rem; color: var(--ink); font-size: clamp(2.15rem, 4vw, 3.6rem); font-weight: 760; line-height: 1.02; letter-spacing: -0.04em; }
.section-heading > p:last-child { color: var(--ink-soft); line-height: 1.6; }

.profile-editor {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--lavender) 45%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--cream) 84%, transparent);
  color: var(--ink);
}
.profile-editor-heading { display: grid; gap: 0.15rem; }
.profile-editor-heading strong { font-size: 0.9rem; }
.profile-editor-heading small { color: var(--ink-soft); font-size: 0.72rem; line-height: 1.35; }
.profile-editor label { display: grid; gap: 0.3rem; color: var(--ink-soft); font-size: 0.7rem; font-weight: 800; }
.profile-editor input,
.profile-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.58rem 0.66rem;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
  resize: vertical;
}
.profile-editor input:focus,
.profile-editor textarea:focus { border-color: var(--lavender); outline: 2px solid color-mix(in srgb, var(--lavender) 35%, transparent); outline-offset: 1px; }
.profile-editor-actions { display: flex; min-height: 32px; align-items: center; gap: 0.65rem; }
.profile-editor-actions button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--on-lavender, #fff);
  padding: 0.48rem 0.72rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}
.profile-editor-actions button:disabled { cursor: wait; opacity: 0.65; }
.profile-editor-actions [role="status"] { color: var(--ink-soft); font-size: 0.67rem; line-height: 1.3; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem 4vw; border-top: 1px solid var(--line); background: rgba(255,250,235,0.42); color: #6b827b; font-size: 0.82rem; }
footer a { font-weight: 800; text-decoration: none; }
.footer-brand { color: var(--ink); font-size: 1rem; }
.footer-brand span { color: var(--coral); }
.footer-links { display: flex; gap: 1rem; }

:root:not([data-color-mode="light"]) nav a:hover,
:root:not([data-color-mode="light"]) .secondary-button {
  background: rgba(var(--accent-rgb), 0.13);
  color: color-mix(in srgb, var(--accent) 34%, var(--ink));
}

:root:not([data-color-mode="light"]) .primary-button {
  background: var(--mint);
  color: var(--on-primary, #0b211c);
}

.profile-overview { padding: 0 0 6rem; }
.profile-overview-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.profile-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin: 0.35rem 0 0.4rem; }
.profile-name-row h2 { margin: 0; }
.profile-presence { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--paper) 60%, transparent); color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }
.profile-presence[hidden] { display: none; }
.profile-presence::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18), 0 0 10px 2px rgba(61, 220, 132, 0.75); animation: presence-glow 2.4s ease-in-out infinite; }
.profile-presence[data-state="offline"]::before { background: #f0525a; box-shadow: 0 0 0 3px rgba(240, 82, 90, 0.18), 0 0 8px 1px rgba(240, 82, 90, 0.6); animation: none; }
.profile-presence[data-state="afk"]::before { background: #f5b942; box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18), 0 0 8px 1px rgba(245, 185, 66, 0.6); animation: none; }
@keyframes presence-glow { 50% { box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.1), 0 0 16px 4px rgba(61, 220, 132, 0.9); } }
@media (prefers-reduced-motion: reduce) { .profile-presence::before { animation: none; } }
.profile-overview-header h2 { margin: 0.35rem 0 0.4rem; color: var(--ink); font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 760; line-height: 1.05; letter-spacing: -0.035em; }
.profile-avatar { flex: none; width: 64px; height: 64px; border: 3px solid var(--lavender); border-radius: 50%; object-fit: cover; }
.profile-overview-bio, .profile-overview-characters { margin: 0.2rem 0 0; color: var(--ink-soft); line-height: 1.5; }
.profile-overview-characters { font-size: 0.82rem; }
.profile-exp { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.45rem; vertical-align: middle; white-space: nowrap; font-size: 0.74rem; }
.profile-exp-bar { position: relative; display: inline-block; width: 5.5rem; height: 0.35rem; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--teal) 16%, transparent); }
.profile-exp-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--teal); }
.profile-preview-bar { margin: 0 0 0.8rem; padding: 0.55rem 0.9rem; border: 1px dashed color-mix(in srgb, var(--teal) 55%, transparent); border-radius: 14px; color: var(--ink); font-size: 0.88rem; }
.profile-preview-bar a { margin-left: 0.4rem; color: var(--teal); font-weight: 800; }
a.profile-tool-button { text-decoration: none; }
.profile-overview-status { min-height: 1.2em; margin: 0 0 0.8rem; color: var(--ink-soft); font-size: 0.82rem; }
.profile-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; container-type: inline-size; }
/* the owner's sizes (Arrange cards): a wide card takes 2 or 3 columns where the page has them (300px columns, 1rem gaps) */
@container (min-width: 616px) { .profile-overview-grid > .card-w2, .profile-overview-grid > .card-w3 { grid-column: span 2; } }
@container (min-width: 932px) { .profile-overview-grid > .card-w3 { grid-column: span 3; } }
/* and its height: by default no taller than the Collection card (app.js measures it), scrolling inside past that */
.profile-overview-grid > [data-overview-panel] { max-height: var(--profile-card-max, none); overflow-y: auto; scrollbar-width: thin; }
.profile-overview-grid > .is-height-reference, .profile-overview-grid > .card-h-none { max-height: none; }
.profile-overview-grid > .card-h-short { max-height: 320px; }
.profile-overview-grid > .card-h-medium { max-height: 480px; }
.profile-overview-grid > .card-h-tall { max-height: 720px; }
.profile-panel { min-width: 0; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--cream) 88%, transparent); color: var(--ink); }
.profile-panel h3 { margin: 0 0 0.75rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.profile-panel p { margin: 0; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; }
.profile-panel h4 { margin: 0.9rem 0 0.35rem; color: var(--teal); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.profile-panel h4:first-child { margin-top: 0; }
.profile-photos { grid-column: 1 / -1; }
/* Trophies: a tile per personal best - its title, the figure, where it was set, its place on the ladder and its proof */
.profile-trophies { grid-column: 1 / -1; }
.profile-trophies { container-type: inline-size; }
/* each mode's colour: the group heading's dot, the tile's top edge and its icon */
.trophy-group, .trophy-tile { --trophy-accent: var(--teal); }
.trophy-group.is-sim, .trophy-tile.is-sim { --trophy-accent: var(--lavender, #a99cf0); }
.trophy-group.is-eggheist, .trophy-tile.is-eggheist { --trophy-accent: #f5b942; }
.profile-panel h4.trophy-group { display: flex; align-items: center; gap: 0.45rem; margin: 1.1rem 0 0.55rem; }
.profile-panel h4.trophy-group:first-child, .trophy-toolbar + div h4.trophy-group:first-child { margin-top: 0.2rem; }
.trophy-group::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--trophy-accent); }
.trophy-group > span { color: var(--trophy-accent); }
.trophy-group small { padding: 0 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--ink-soft) 16%, transparent); color: var(--ink-soft);
  font-size: 0.66rem; letter-spacing: 0.02em; }
/* 1 column on a narrow card, 2 from ~440px, 3 from ~660px, 4 on a full-width card */
.trophy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
@container (min-width: 440px) { .trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 660px) { .trophy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 960px) { .trophy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trophy-tile { position: relative; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; padding: 0.85rem 0.9rem 0.75rem; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--trophy-accent) 22%, var(--line)); border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--trophy-accent) 10%, transparent), transparent 55%), color-mix(in srgb, var(--paper) 60%, transparent);
  transition: opacity 120ms ease, border-color 120ms ease; }
.trophy-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--trophy-accent); opacity: 0.85; }
.trophy-tile:hover { border-color: color-mix(in srgb, var(--trophy-accent) 50%, var(--line)); }
.trophy-top { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.trophy-icon { display: inline-grid; flex: none; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 10px;
  background: color-mix(in srgb, var(--trophy-accent) 16%, transparent); color: var(--trophy-accent); }
.trophy-icon svg { width: 1.1rem; height: 1.1rem; }
.trophy-title { flex: 1 1 auto; min-width: 0; color: var(--ink-soft); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.07em; line-height: 1.3; text-transform: uppercase; }
.trophy-value { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; margin-top: 0.15rem; color: var(--ink); font-size: 1.6rem; font-weight: 900;
  line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trophy-value .profile-stars { font-size: 0.82rem; font-weight: 700; letter-spacing: 0; }
.trophy-value .profile-rank-icon { width: 30px; height: 30px; }
.trophy-tile.is-eggheist .trophy-value { font-size: 1.25rem; }
.trophy-context { color: var(--ink-soft); font-size: 0.76rem; line-height: 1.4; }
.trophy-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.45rem; font-size: 0.8rem; }
/* the placement: a pill linking to the board; gold, silver and bronze for the top three */
.trophy-place { display: inline-flex; align-items: baseline; gap: 0.1rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--trophy-accent) 15%, transparent); color: var(--ink); font-weight: 900; font-variant-numeric: tabular-nums; text-decoration: none; }
.trophy-place small { color: var(--ink-soft); font-weight: 700; }
.trophy-place:hover, .trophy-place:focus-visible { background: color-mix(in srgb, var(--trophy-accent) 28%, transparent); }
.trophy-place.is-top1 { background: color-mix(in srgb, #f5c542 28%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #f5c542 60%, transparent); }
.trophy-place.is-top2 { background: color-mix(in srgb, #c8d2dc 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #c8d2dc 55%, transparent); }
.trophy-place.is-top3 { background: color-mix(in srgb, #d08a4e 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #d08a4e 55%, transparent); }
.trophy-foot .lb-proof.trophy-proof { display: inline-flex; width: auto; height: auto; align-items: center; gap: 0.3rem; margin: 0 0 0 auto; padding: 0.2rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.trophy-foot .lb-proof.trophy-proof svg { width: 0.85rem; height: 0.85rem; }
.trophy-foot .lb-proof.trophy-proof:hover { border-color: var(--trophy-accent); color: var(--trophy-accent); }
/* the owner's bar: how many visitors see, Choose trophies; while choosing, a switch on every tile */
.trophy-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.8rem; margin: -0.25rem 0 0.8rem; }
.trophy-summary { color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; }
.trophy-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.trophy-actions .profile-tool-button { min-height: 32px; padding: 0.2rem 0.75rem; font-size: 0.8rem; }
.trophy-actions .profile-tool-button.is-quiet { background: transparent; }
.trophy-toggle { display: inline-flex; flex: none; align-items: center; gap: 0.35rem; padding: 0.15rem 0.5rem 0.15rem 0.3rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 0.72rem; font-weight: 800; cursor: pointer; user-select: none; }
.trophy-toggle input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--teal); cursor: pointer; }
.trophy-toggle:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.is-choosing .trophy-tile { cursor: default; }
/* a hidden one while choosing: dimmed and dashed, its switch still bright */
.trophy-tile.is-hidden { border-style: dashed; background: transparent; }
.trophy-tile.is-hidden::before { background: var(--ink-soft); opacity: 0.4; }
.trophy-tile.is-hidden > :not(.trophy-top), .trophy-tile.is-hidden .trophy-icon, .trophy-tile.is-hidden .trophy-title { opacity: 0.4; }
.trophy-tile.is-hidden .trophy-toggle { color: var(--ink-soft); }
.profile-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.profile-photo { display: grid; gap: 0.4rem; margin: 0; }
.profile-photo > a { display: block; overflow: hidden; border-radius: 16px; background: var(--line); }
.profile-photo > a img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.2s ease; }
.profile-photo > a:hover img { transform: scale(1.02); }
.profile-photo figcaption { display: grid; gap: 0.35rem; color: var(--ink-soft); font-size: 0.78rem; }
.profile-photo-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.profile-photo-aniimo, .profile-photo-place { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem 0.15rem 0.2rem; border-radius: 999px; background: color-mix(in srgb, var(--paper) 70%, transparent); color: var(--ink); font-size: 0.76rem; text-decoration: none; }
.profile-photo-place { padding-left: 0.55rem; }
.profile-photo-aniimo img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.profile-photo-aniimo:hover, .profile-photo-place:hover { background: var(--line); }
.profile-rows { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.profile-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.2rem 0.75rem; padding: 0.45rem 0.6rem; border-radius: 12px; background: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 0.86rem; }
.profile-rows li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-rows small { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.74rem; }
.profile-rows strong { font-variant-numeric: tabular-nums; }
.profile-position { color: var(--teal); font-weight: 900; font-variant-numeric: tabular-nums; text-decoration: none; }
.profile-position:hover { text-decoration: underline; }
.profile-rows li > .profile-rank { display: inline-flex; align-items: center; gap: 0.5rem; }
.profile-rank-icon { flex: none; width: 34px; height: 34px; object-fit: contain; }
.profile-meter { height: 6px; margin-top: 0.3rem; grid-column: 1 / -1; overflow: hidden; border-radius: 999px; background: var(--line); }
.profile-meter i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.profile-game-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 0.5rem; margin: 0 0 0.4rem; padding: 0; list-style: none; }
.profile-game-stats[hidden] { display: none; }
.profile-game-stat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; padding: 0.45rem 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 0.84rem; }
.profile-game-stat-icon { width: 28px; height: 28px; object-fit: contain; }
.profile-game-stat-label { color: var(--ink-soft); line-height: 1.25; overflow-wrap: anywhere; }
.profile-game-stat strong { font-variant-numeric: tabular-nums; }
.profile-panel-soon { border-style: dashed; background: transparent; }

:root:not([data-color-mode="light"]) footer { color: var(--ink-soft); }
:root:not([data-color-mode="light"]) footer { background: rgba(10, 18, 21, 0.72); }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .site-header { grid-template-areas: "brand account" "nav nav"; grid-template-columns: minmax(0, 1fr) auto; width: 100%; margin: 0; border-radius: 0; }
  .site-header .brand { grid-area: brand; }
  .site-header nav { grid-area: nav; display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-header .account-actions { grid-area: account; }
  .theme-picker { width: 6.75rem; max-width: 6.75rem; }
  .account-menu-trigger > span:not(.account-menu-chevron) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
  .account-sign-in { width: 36px; min-height: 36px; justify-content: center; padding: 0; font-size: 0; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .discord-button { padding-inline: 0.78rem; }

  h1 { font-size: clamp(2.5rem, 11vw, 3.65rem); }

  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {

  @keyframes float-in { from { opacity: 0; transform: translateY(18px) rotate(1deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
  @keyframes twinkle { 50% { transform: rotate(35deg) scale(1.3); } }
}

/* Profile visibility opt-in and the public link */
.profile-editor label.profile-public-toggle { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; }
.profile-public-toggle input { width: auto; flex: none; }
.profile-public-toggle input { margin-top: 0.2rem; }
.profile-public-toggle small { display: block; opacity: 0.75; font-size: 0.82em; }
/* Who can see my profile: Public / Custom / Private, and for Custom the parts that are public */
.profile-visibility { display: grid; gap: 0.4rem; }
.profile-visibility > label { display: grid; gap: 0.3rem; }
.profile-visibility select { min-height: 38px; padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); font: inherit; }
.profile-visibility > small { opacity: 0.75; font-size: 0.82em; }
.profile-parts { display: grid; gap: 0.35rem; margin: 0.2rem 0 0; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; }
.profile-parts legend { padding: 0 0.3rem; color: var(--teal); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-parts label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; }
.profile-parts input { width: auto; flex: none; }
.profile-public-link { margin: 0; font-size: 0.85em; overflow-wrap: anywhere; }
.profile-stars { display: inline-flex; align-items: center; gap: 0.25rem; vertical-align: middle; }
.profile-star { width: 1em; height: 1em; }

/* Inside the AniiLogs Companion app (theme-shell.js): the app's own tabs replace the site's logo, page links and footer */
html[data-embed="app"] .site-header .brand, html[data-embed="app"] .site-header nav,
html[data-embed="app"] .app-topbar-brand, html[data-embed="app"] .app-topbar nav,
html[data-embed="app"] body > footer { display: none !important; }

/* The profile page (/?view=profile): only the profile, with a player search at the top */
body.profile-page main > section:not(#my-profile) { display: none; }
body.profile-page #my-profile { margin-top: 1.5rem; }
.profile-search { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.profile-search-field { flex: 1 1 18rem; max-width: 34rem; }
.profile-search-field input { width: 100%; min-height: 2.6rem; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-2, rgba(255, 255, 255, 0.06)); color: var(--text, inherit); font: inherit; }
.profile-search-field input:focus-visible { outline: none; border-color: var(--accent, var(--mint)); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 98, 217, 179), 0.22); }
.profile-search-results { position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 30; width: min(34rem, 100%); margin: 0; padding: 0.35rem;
  list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--panel, #121d21); box-shadow: var(--shadow); max-height: 22rem; overflow-y: auto; }
.profile-search-results[hidden] { display: none; }
.profile-search-results a { display: grid; gap: 0.1rem; padding: 0.55rem 0.75rem; border-radius: 10px; color: inherit; text-decoration: none; }
.profile-search-results a:hover, .profile-search-results a:focus-visible { outline: none; background: rgba(var(--accent-rgb, 98, 217, 179), 0.14); }
.profile-search-results small { color: var(--muted, var(--ink-soft)); font-size: 0.78rem; }
.profile-search-empty { padding: 0.6rem 0.75rem; color: var(--muted, var(--ink-soft)); font-size: 0.85rem; }
.profile-search-back { font-size: 0.88rem; }
.profile-search-back[hidden], .profile-signin[hidden], .profile-edit[hidden] { display: none; }
.profile-signin { display: grid; justify-items: start; gap: 0.5rem; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--text); padding: 1.3rem 1.4rem; }
.profile-signin strong { font-size: 1.1rem; }
.profile-signin p { margin: 0; color: var(--muted, var(--ink-soft)); }
/* Owner tools: Edit profile and Arrange cards side by side; the profile link with Copy */
.profile-owner-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem 1rem; }
.profile-owner-tools > .profile-edit { flex: 1 1 20rem; }
.profile-tool-button { min-height: 34px; padding: 0.3rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--cream) 80%, transparent);
  color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.profile-tool-button:hover, .profile-tool-button:focus-visible { border-color: var(--teal); color: var(--teal); }
.profile-tool-button:disabled { opacity: 0.4; cursor: default; border-color: var(--line); color: var(--ink); }
.profile-tool-button.is-primary { border-color: var(--teal); background: var(--teal); color: var(--cream); }
.profile-tool-button.is-primary:hover, .profile-tool-button.is-primary:focus-visible { color: var(--cream); filter: brightness(1.08); }
.profile-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: -0.4rem 0 1rem; }
.profile-share-url { min-width: 0; padding: 0.35rem 0.75rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink); font-size: 0.86rem; overflow-wrap: anywhere; user-select: all; }
.profile-share-url.is-note { border-style: none; padding: 0; color: var(--ink-soft); user-select: text; }
.profile-share-note { color: var(--teal); font-size: 0.82rem; font-weight: 700; }
/* Arrange cards: a bar with Reset / Cancel / Save, each card with its handle, arrows and Show/Hide */
.profile-arrange-bar { position: sticky; top: calc(var(--topbar-height, 64px) + 0.5rem); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem;
  margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1px solid var(--teal); border-radius: 18px; background: var(--cream); box-shadow: var(--shadow); }
.profile-arrange-bar p { flex: 1 1 18rem; margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.45; }
.profile-arrange-bar strong { color: var(--ink); }
.profile-arrange-actions { display: flex; gap: 0.5rem; }
.profile-arrange-status { flex-basis: 100%; color: var(--ink-soft); font-size: 0.82rem; }
.profile-arrange-status:empty { display: none; }
.profile-overview-grid > .is-arranged-off { display: none; }
.profile-overview-grid.is-arranging > [data-overview-panel] { display: block; outline: 2px dashed color-mix(in srgb, var(--teal) 45%, transparent); outline-offset: 3px; cursor: grab; }
.profile-overview-grid.is-arranging > .is-arranged-off { opacity: 0.5; }
/* a card with nothing to show yet (no photos, boards closed) can still be placed while arranging */
.profile-overview-grid.is-arranging > [data-overview-panel][hidden] { display: block !important; opacity: 0.6; }
.profile-overview-grid.is-arranging > [data-overview-panel][hidden]::after { content: "Nothing to show yet"; color: var(--ink-soft); font-size: 0.86rem; }
.profile-overview-grid.is-arranging > [data-overview-panel][hidden] [data-overview-body] { display: none; }
.profile-overview-grid.is-arranging > .is-dragging { opacity: 0.35; }
.profile-card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: -0.3rem 0 0.8rem; }
.profile-card-size { min-height: 32px; padding: 0.15rem 0.45rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); font: inherit; font-size: 0.8rem; }
.profile-card-tools .profile-tool-button { min-width: 34px; padding: 0.2rem 0.6rem; }
.profile-card-handle { padding: 0 0.3rem; color: var(--ink-soft); font-size: 1.2rem; cursor: grab; user-select: none; }
.profile-card-hidden-label { margin-left: auto; color: var(--ink-soft); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
/* Battle History: the card's 5 newest and the full view (?history=1). Rows open to the party and the pictures. */
.profile-history-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.history-run details { border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper, var(--cream)) 55%, transparent); }
.history-run details[open] { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
/* the chevron, the fight and when, the numbers on the right; the chips under them */
.history-run summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 0.6rem; padding: 0.55rem 0.8rem 0.55rem 0.6rem;
  border-radius: 13px; cursor: pointer; list-style: none; }
.history-run summary::-webkit-details-marker { display: none; }
.history-run summary > .disclosure-chevron { grid-row: 1; grid-column: 1; }
.history-run summary > .history-title { grid-column: 2; }
.history-run summary > .history-numbers { grid-column: 3; }
.history-run summary > .history-chips { grid-column: 2 / -1; }

/* Every row on the profile that opens: a chevron that turns (right when closed, down when open), the open row with an
   accent bar down its left edge and a tint (app.js disclosure()) */
.disclosure > summary { position: relative; }
.disclosure-chevron { display: inline-grid; flex: none; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 7px; color: var(--ink-soft);
  transition: transform 140ms ease, color 120ms ease, background-color 120ms ease; }
.disclosure-chevron svg { width: 0.95rem; height: 0.95rem; }
.disclosure > summary:hover .disclosure-chevron { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.disclosure[open] > summary .disclosure-chevron { transform: rotate(90deg); color: var(--teal); }
.disclosure[open] > summary { background: color-mix(in srgb, var(--teal) 9%, transparent); box-shadow: inset 3px 0 0 var(--teal); }
.disclosure > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.history-run details.disclosure[open] > summary { border-radius: 13px 13px 0 0; }
@media (prefers-reduced-motion: reduce) { .disclosure-chevron { transition: none; } }
/* an Aniimo's name, itself the link to its Aniilog page: the text's own colour, underlined on hover and focus */
a.aniimo-name { color: inherit; font-weight: inherit; text-decoration: none; text-underline-offset: 2px; }
a.aniimo-name:hover, a.aniimo-name:focus-visible { color: var(--teal); text-decoration: underline; }
a.aniimo-name:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-radius: 3px; }
.history-title { display: grid; min-width: 0; }
.history-title strong { overflow: hidden; color: var(--ink); font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; }
.history-title small { color: var(--ink-soft); font-size: 0.76rem; }
.history-numbers { color: var(--ink); font-size: 0.84rem; font-weight: 700; text-align: right; white-space: nowrap; }
.history-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; grid-column: 1 / -1; }
.history-chips:empty { display: none; }
.history-chip { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--ink-soft) 16%, transparent);
  color: var(--ink-soft); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; }
.history-chip.is-verified { background: color-mix(in srgb, #3ddc84 20%, transparent); color: color-mix(in srgb, #3ddc84 70%, var(--ink)); }
.history-chip.is-best { background: color-mix(in srgb, #f5b942 22%, transparent); color: color-mix(in srgb, #f5b942 55%, var(--ink)); }
.history-chip.is-early { background: color-mix(in srgb, #3ddc84 16%, transparent); color: color-mix(in srgb, #3ddc84 65%, var(--ink)); }
.history-chip.is-invalid { background: color-mix(in srgb, #f0525a 18%, transparent); color: color-mix(in srgb, #f0525a 70%, var(--ink)); }
.history-chip.is-credited { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.history-player .history-chip { margin-left: 0.4rem; }
.history-body { display: grid; gap: 0.8rem; padding: 0.7rem 0.8rem 0.8rem; container-type: inline-size; }
.history-section-label { margin: 0 0 0.3rem; color: var(--teal); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-panel .history-section-label { margin: 0 0 0.3rem; color: var(--teal); font-size: 0.68rem; }
.history-party-wrap { overflow-x: auto; }
.history-party { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.history-party th { padding: 0.3rem 0.5rem; color: var(--teal); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.history-party td { padding: 0.35rem 0.5rem; border-top: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.history-party .history-number { text-align: right; font-variant-numeric: tabular-nums; }
.history-party th:nth-child(n+3) { text-align: right; }
.history-slot { color: var(--ink-soft); font-weight: 800; }
.history-player a { color: var(--ink); font-weight: 800; }
.history-proof { display: flex; flex-wrap: wrap; gap: 0.6rem; }
/* the Party screen at the start: the picture first, what was read from it beside it */
.history-evidence { display: grid; gap: 0.8rem; }
/* the picture on top in a narrow card, beside the players on a wide one */
.history-lineup { display: grid; gap: 0.75rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--cream) 60%, transparent); }
.history-shot.is-party { width: 100%; max-width: 440px; }
@container (min-width: 640px) { .history-lineup { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; } }
.history-lineup-facts { display: grid; gap: 0.6rem; min-width: 0; align-content: start; font-size: 0.86rem; }
.history-lineup-facts .history-empty { color: var(--ink-soft); }
/* one block per player: the name and the lead Aniimo on a line, the rest of the team as chips under it */
.lineup-players { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.lineup-player { display: grid; gap: 0.35rem; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--paper, var(--cream)) 45%, transparent); }
.lineup-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.15rem 0.7rem; min-width: 0; }
.lineup-name { color: var(--ink); font-size: 0.86rem; font-weight: 900; overflow-wrap: anywhere; }
.lineup-lead { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem; color: var(--ink); font-weight: 800; }
.lineup-meta { color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lineup-team { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.lineup-chip { display: inline-flex; align-items: baseline; gap: 0.3rem; padding: 0.1rem 0.55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-soft) 13%, transparent); color: var(--ink); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.lineup-chip small { color: var(--ink-soft); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.lineup-chip.is-buff { background: color-mix(in srgb, var(--teal) 13%, transparent); }
.lineup-buffs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.lineup-label { margin-right: 0.2rem; color: var(--teal); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
/* Battle Data in a narrow card: each player a row of labelled figures instead of a table that scrolls sideways */
@container (max-width: 459px) {
  .history-party, .history-party tbody, .history-party tr { display: block; }
  .history-party thead { display: none; }
  .history-party tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.15rem 0.4rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
  .history-party td { display: block; padding: 0; border: 0; white-space: normal; }
  .history-party td.history-slot { display: none; }
  .history-party td.history-player { grid-column: 1 / -1; font-weight: 800; }
  .history-party .history-number { display: grid; text-align: left; font-size: 0.84rem; }
  .history-party .history-number::before { content: attr(data-label); color: var(--ink-soft); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
}
.history-shot { display: grid; gap: 0.25rem; width: min(100%, 260px); color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; text-decoration: none; }
.history-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--ink-soft) 10%, transparent); }
.history-shot:hover img, .history-shot:focus-visible img { border-color: var(--teal); }
.history-empty { margin: 0; color: var(--ink-soft); font-size: 0.82rem; }
.history-see-all { display: inline-block; margin-top: 0.7rem; color: var(--teal); font-weight: 800; }
.profile-history-list.is-compact .history-run summary { grid-template-columns: auto minmax(0, 1fr); padding: 0.45rem 0.7rem 0.45rem 0.5rem; }
.profile-history-list.is-compact .history-run summary > .history-numbers { grid-column: 2; text-align: left; }
.profile-history-list.is-compact .history-body { padding: 0 0.6rem 0.7rem; }
.profile-history-full { margin-top: 0.5rem; }
.profile-history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.profile-history-head h3 { margin: 0; color: var(--ink); font-size: 1.4rem; }
.profile-history-intro { margin: 0.4rem 0 0.9rem; color: var(--ink-soft); font-size: 0.88rem; }
.profile-history-filters { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 0.9rem; }
.profile-history-filters label { display: grid; gap: 0.2rem; color: var(--ink-soft); font-size: 0.75rem; font-weight: 800; }
.profile-history-filters select, .profile-history-filters .aniimo-picker-input { min-width: 12rem; min-height: 36px; padding: 0.3rem 0.6rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); font: inherit; font-size: 0.86rem; }
.profile-history-filters .aniimo-picker-input::placeholder { color: var(--ink); opacity: 1; }
.profile-history-filters .aniimo-picker-input:focus::placeholder { color: var(--ink-soft); }
.profile-history-status { color: var(--ink-soft); font-size: 0.86rem; }
.profile-history-status:empty { display: none; }
body.profile-history-view .profile-overview-grid, body.profile-history-view .profile-owner-tools,
body.profile-history-view .profile-arrange-bar { display: none !important; }
@media (max-width: 560px) {
  .history-run summary { grid-template-columns: auto minmax(0, 1fr); }
  .history-run summary > .history-numbers { grid-column: 2; text-align: left; }
  .profile-history-filters select, .profile-history-filters .aniimo-picker-input { min-width: 0; width: 100%; }
  .profile-history-filters label { flex: 1 1 100%; }
}
/* My runs: your own runs in a table (cards on a phone), search, pages */
.myruns-search { flex: 1 1 16rem; }
.myruns-search input { width: 100%; min-height: 36px; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink); font: inherit; font-size: 0.9rem; }
.myruns-search input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.profile-history-filters [data-history-page-size] { min-width: 5rem; }
.myruns-summary { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.myruns-summary:empty { display: none; }
.myruns-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; transition: opacity 120ms ease; }
.profile-history-full.is-loading .myruns-wrap { opacity: 0.6; }
.myruns-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.myruns-table th { position: sticky; top: 0; padding: 0.5rem 0.7rem; background: rgb(var(--panel-rgb)); color: var(--teal); font-size: 0.68rem;
  font-weight: 900; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
/* a sortable column's header (/table-sort.js): click to sort, again to flip */
.table-sort { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; padding: 0; text-transform: inherit; }
.table-sort:hover, .table-sort:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.table-sort.is-active { color: var(--ink); }
.myruns-table td { padding: 0.55rem 0.7rem; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.myruns-table tbody tr:hover { background: color-mix(in srgb, var(--teal) 5%, transparent); }
.myruns-table tr:target { background: color-mix(in srgb, var(--teal) 12%, transparent); }
.myruns-mode { color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.myruns-fight { display: grid; gap: 0.1rem; min-width: 9rem; }
.myruns-fight strong { color: var(--ink); }
.myruns-fight small { color: var(--ink-soft); font-size: 0.76rem; }
.myruns-played { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.myruns-result { display: grid; gap: 0.3rem; min-width: 8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.myruns-party { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; min-width: 17rem; }
.myruns-party li { display: grid; gap: 0.05rem; }
.myruns-who { font-weight: 800; }
.myruns-who a { color: var(--ink); }
.myruns-who .history-chip { margin-left: 0.35rem; }
.myruns-stats { display: flex; flex-wrap: wrap; gap: 0.1rem 0.7rem; color: var(--ink); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.myruns-stats > span { white-space: nowrap; }
.myruns-stats small { color: var(--ink-soft); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.myruns-table .lb-proof.myruns-proof { display: inline-flex; width: auto; height: auto; gap: 0.35rem; margin: 0; padding: 0.3rem 0.65rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.myruns-table .lb-proof.myruns-proof { justify-self: start; }
.myruns-table .lb-proof.myruns-proof:hover { border-color: var(--teal); color: var(--teal); }
.myruns-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 0.9rem; }
.myruns-pager button { min-width: 2.4rem; min-height: 36px; padding: 0.25rem 0.7rem; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.myruns-pager button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.myruns-pager button:disabled { opacity: 0.45; cursor: default; }
.myruns-pager button.is-current { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--ink); opacity: 1; }
.myruns-gap { color: var(--ink-soft); padding: 0 0.15rem; }
/* a phone: each run is a card, each cell a labelled line */
@media (max-width: 900px) {
  .myruns-wrap { border: 0; overflow: visible; }
  .myruns-table, .myruns-table tbody, .myruns-table tr, .myruns-table td { display: block; }
  .myruns-table thead { display: none; }
  .myruns-table tr { margin-bottom: 0.6rem; padding: 0.4rem 0.75rem 0.6rem; border: 1px solid var(--line); border-radius: 14px; }
  .myruns-table tr[hidden] { display: none; }
  .myruns-table td { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.6rem; padding: 0.3rem 0; border-top: 0; }
  .myruns-table td::before { content: attr(data-label); color: var(--teal); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.08em;
    text-transform: uppercase; padding-top: 0.2rem; }
  .myruns-fight, .myruns-result, .myruns-party { min-width: 0; }
  .myruns-pager button { min-width: 2.75rem; min-height: 44px; }
}
@media (max-width: 560px) {
  .profile-history-full.is-my-runs .profile-history-filters { gap: 0.5rem 0.6rem; }
  .profile-history-full.is-my-runs .profile-history-filters label:not(.myruns-search) { flex: 1 1 calc(50% - 0.6rem); min-width: 0; }
}
/* The Interlink card: the season part's total, its weeks as a thread-style tree (week > boss > runs), earlier parts */
.interlink-part { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.interlink-part.is-current { margin-bottom: 0.7rem; padding: 0.6rem 0.75rem; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line));
  border-radius: 12px; background: color-mix(in srgb, var(--teal) 7%, transparent); }
.interlink-part.is-current .interlink-part-name { flex: 1 1 100%; color: var(--teal); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.interlink-part.is-current .interlink-part-figures strong { font-size: 1.15rem; }
.interlink-part-name { color: var(--ink); font-weight: 800; }
.interlink-part-figures { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.interlink-part-figures small, .interlink-part-rank small { color: var(--ink-soft); }
.interlink-part-rank { margin-left: auto; white-space: nowrap; }
.interlink-part-runs { color: var(--teal); font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.interlink-parts { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.interlink-parts .interlink-part { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.interlink-weeks, .interlink-bosses, .interlink-runs { margin: 0; padding: 0; list-style: none; }
.interlink-weeks { display: grid; gap: 0.35rem; }
.interlink-week summary, .interlink-boss summary { display: flex; align-items: center; gap: 0.45rem; cursor: pointer; list-style: none; }
.interlink-week summary::-webkit-details-marker, .interlink-boss summary::-webkit-details-marker { display: none; }
/* the open/closed marker is the shared chevron (.disclosure-chevron); an open week or boss gets the accent bar */
.interlink-week summary { min-height: 42px; padding: 0.3rem 0.5rem 0.3rem 0.3rem; border-radius: 10px; }
.interlink-week summary:hover, .interlink-boss summary:hover { background: color-mix(in srgb, var(--teal) 7%, transparent); }
.interlink-week > details[open] > summary:hover, .interlink-boss details[open] > summary:hover { background: color-mix(in srgb, var(--teal) 13%, transparent); }
.interlink-week-name { flex: 1 1 auto; min-width: 0; color: var(--ink); font-weight: 800; font-size: 0.9rem; }
.interlink-week-name .history-chip { margin-left: 0.4rem; }
.history-chip.is-current { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.interlink-week-figures, .interlink-boss-figures { display: inline-flex; flex: none; align-items: center; gap: 0.3rem; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
/* the thread line down the left of an open week and an open boss */
.interlink-bosses, .interlink-boss-runs { margin-left: 0.9rem; padding-left: 0.6rem; border-left: 2px solid color-mix(in srgb, var(--teal) 28%, var(--line)); }
.interlink-bosses { display: grid; gap: 0.15rem; padding-top: 0.2rem; padding-bottom: 0.3rem; }
.interlink-boss summary, .interlink-boss-plain { display: flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.25rem 0.5rem 0.25rem 0.3rem; border-radius: 10px; }
.interlink-boss-plain { padding-left: 0.6rem; }
.interlink-boss-line { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.1rem 0.6rem; min-width: 0; }
.interlink-boss-name { display: grid; min-width: 0; }
.interlink-boss-name strong { color: var(--ink); font-size: 0.88rem; }
.interlink-boss-name small { color: var(--ink-soft); font-size: 0.76rem; }
.interlink-boss .lb-proof { flex: none; }
.interlink-boss-runs { display: grid; gap: 0.3rem; padding-top: 0.25rem; padding-bottom: 0.4rem; }
.interlink-runs { display: grid; gap: 0.3rem; }
.interlink-runs li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 10px; font-size: 0.82rem; }
.interlink-runs li.is-best { border-color: color-mix(in srgb, #f5b942 55%, var(--line)); }
.interlink-run-text { display: grid; flex: 1 1 12rem; min-width: 0; }
.interlink-run-text small { color: var(--ink-soft); font-size: 0.74rem; }
.interlink-runs .history-chips { grid-column: auto; }
.interlink-runs .lb-proof.myruns-proof { display: inline-flex; width: auto; height: auto; gap: 0.35rem; margin: 0; padding: 0.25rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: 0.78rem; font-weight: 700; }
.history-visibility { margin: -0.2rem 0 0.6rem; color: var(--ink-soft); font-size: 0.8rem; }
.myruns-scope { margin: 0 0 0.6rem; padding: 0.45rem 0.7rem; border-radius: 10px; background: color-mix(in srgb, var(--teal) 9%, transparent); color: var(--ink); font-size: 0.85rem; }
.myruns-scope a { color: var(--teal); font-weight: 800; }
.profile-runs-visibility { display: grid; gap: 0.25rem; margin-top: 0.7rem; }
@media (max-width: 560px) {
  .interlink-part-rank { margin-left: 0; }
  .interlink-bosses, .interlink-boss-runs { margin-left: 0.85rem; padding-left: 0.45rem; }
}
.profile-edit { margin: 0 0 1.25rem; }
.profile-edit > summary { cursor: pointer; font-weight: 700; color: var(--accent, var(--mint)); }
.profile-edit > form { margin-top: 0.75rem; max-width: 34rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phones: the logo alone and the theme menu without its caption, so the theme menu no longer covers the name. */
@media (max-width: 560px) {
  .site-header .brand-name,
  .theme-picker-copy { display: none; }
}

/* ---- Type-to-filter pickers (/explorer/aniimo-picker.js) for the pages outside /explorer/: a copy of the rules in
   /explorer/styles.css, keep the two in step. The text box takes the select's own classes. */
.aniimo-picker {
  position: relative;
  width: 100%;
  min-width: 0;
}

.aniimo-picker-native {
  display: none;
}

.aniimo-picker-input {
  box-sizing: border-box;
  width: 100%;
  padding-right: 30px !important;
  text-overflow: ellipsis;
}

.aniimo-picker-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transform: translateY(-50%);
}

.aniimo-picker-clear:hover {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text);
}

.aniimo-picker-clear[hidden] {
  display: none;
}

.aniimo-picker-option mark {
  padding: 0;
  border-radius: 2px;
  background: rgba(var(--accent-rgb), 0.3);
  color: inherit;
}

.aniimo-picker-list {
  /* Placed by aniimo-picker.js (left, top or bottom, width, max-height) so scrolling panels don't clip it. */
  position: fixed;
  z-index: 1000;
  max-height: 320px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  list-style: none;
}

.aniimo-picker-list[hidden] {
  display: none;
}

.aniimo-picker-group {
  padding: 8px 10px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aniimo-picker-option {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
}

.aniimo-picker-option:hover,
.aniimo-picker-option.is-active {
  background: rgba(var(--accent-rgb), 0.18);
}

.aniimo-picker-option.is-disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.aniimo-picker-option[aria-selected="true"] {
  color: var(--accent);
  font-weight: 800;
}

.aniimo-picker-empty {
  padding: 8px 10px;
  color: var(--muted);
}

/* Touch screens: 16px text so phones don't zoom in on focus, and bigger rows to tap. */
@media (pointer: coarse) {
  .aniimo-picker-input {
    font-size: 16px;
  }

  .aniimo-picker-option {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
