/* EnigmaPlay website: a clean app-store layout. Light by default, dark when the system asks. */
:root {
  --bg: #ffffff;
  --surface: #f3f5f8;
  --surface-2: #e9edf2;
  --line: #e1e6ec;
  --ink: #141a21;
  --ink-2: #39434f;
  --mute: #5f6b7a;
  --brand: #01875f;
  --brand-ink: #ffffff;
  --brand-soft: #e1f3ec;
  --brand-text: #01714f;
  --star: #e8a200;
  --err: #c62828;
  --radius: 14px;
  --icon-r: 22%;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-head: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101418; --surface: #191e24; --surface-2: #222932; --line: #29313b;
    --ink: #eaeef2; --ink-2: #c3ccd6; --mute: #95a1af;
    --brand: #2fb486; --brand-ink: #04170f; --brand-soft: #173329; --brand-text: #5fd0a6;
    --star: #f5b82e; --err: #ff7a7a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101418; --surface: #191e24; --surface-2: #222932; --line: #29313b;
  --ink: #eaeef2; --ink-2: #c3ccd6; --mute: #95a1af;
  --brand: #2fb486; --brand-ink: #04170f; --brand-soft: #173329; --brand-text: #5fd0a6;
  --star: #f5b82e; --err: #ff7a7a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.3; margin: 0; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px;
  border-radius: 999px; border: 0; font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { box-shadow: 0 2px 10px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn.tonal { background: var(--brand-soft); color: var(--brand-text); }
.btn.tonal:hover { background: color-mix(in srgb, var(--brand-soft) 80%, var(--brand) 20%); }
.btn.icon { width: 48px; padding: 0; background: var(--surface); color: var(--ink-2); }
.btn.icon:hover { background: var(--surface-2); }
.btn.sm { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn.lg { min-height: 48px; padding: 0 28px; font-size: 16px; }
.btn.icon.lg { width: 48px; padding: 0; }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--f-head); flex: none; }
.brand img { border-radius: 10px; }
.search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.search svg, .filter svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.search input, .filter input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid transparent; background: var(--surface);
  color: var(--ink); font: 400 15px var(--f-body); padding-block: 0; padding-inline: 48px 18px; outline: none; transition: border-color .15s, background-color .15s; }
.search input:focus, .filter input:focus { background: var(--bg); border-color: var(--brand); }
.nav { display: flex; align-items: center; gap: 6px; flex: none; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current] { background: var(--surface); color: var(--ink); }
@media (max-width: 860px) {
  .hide-s { display: none; }
  .top .wrap { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px 12px; }
  .brand { order: 1; }
  .nav { order: 2; margin-inline-start: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 42px; }
}

/* ---------- icons */
.ico { --s: 64px; width: var(--s); height: var(--s); border-radius: var(--icon-r); overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.letter { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, var(--bg)), color-mix(in srgb, var(--c) 20%, var(--bg)));
  color: color-mix(in srgb, var(--c) 80%, var(--ink)); font: 600 calc(var(--s) * .34)/1 var(--f-head);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.ico.xl { --s: 120px; }
@media (max-width: 640px) { .ico.xl { --s: 88px; } }

/* ---------- category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg); }
.chips a i { width: 8px; height: 8px; border-radius: 50%; }
.chips a:hover { background: var(--surface); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- home intro */
.intro { padding: 40px 0 8px; }
.intro .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 28px; }
.intro h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
.intro .itext p { color: var(--ink-2); font-size: 18px; max-width: 60ch; margin-top: 12px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.nums { display: flex; border: 1px solid var(--line); border-radius: var(--radius); }
.nums li { padding: 14px 24px; text-align: center; }
.nums li + li { border-inline-start: 1px solid var(--line); }
.nums b { display: block; font: 700 26px/1.2 var(--f-head); font-variant-numeric: tabular-nums; }
.nums span { font-size: 13px; color: var(--mute); }
@media (max-width: 860px) {
  .intro { padding-top: 24px; }
  .intro .wrap:first-child { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .intro .itext p { font-size: 16px; }
  .nums li { flex: 1; padding: 12px 8px; }
  .nums b { font-size: 21px; }
}

/* ---------- shelves */
.shelf { padding: 28px 0 8px; }
.shead { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.shead h2 { font-size: 22px; font-weight: 600; }
.shead p { color: var(--mute); font-size: 14px; margin-top: 2px; }
.sctl { display: flex; align-items: center; gap: 6px; flex: none; }
.more { color: var(--brand-text); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.more:hover { background: var(--brand-soft); }
.arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.arrow:hover { background: var(--surface); }
.arrow:disabled { opacity: .35; cursor: default; }
@media (pointer: coarse) { .arrow { display: none; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px; padding: 4px 24px 14px; margin-inline: -24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; min-width: 0; }
@media (max-width: 640px) { .rail { grid-auto-columns: 108px; gap: 12px; padding-inline: 16px; margin-inline: -16px; scroll-padding-inline: 16px; } }
.app { display: flex; flex-direction: column; gap: 2px; text-decoration: none; border-radius: 12px; }
.app .ico { --s: 132px; margin-bottom: 8px; transition: transform .2s; }
.app:hover .ico { transform: translateY(-2px); }
@media (max-width: 640px) { .app .ico { --s: 108px; } }
.app .nm { font-weight: 500; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.app .by { color: var(--mute); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt { display: flex; gap: 8px; color: var(--mute); font-size: 13px; line-height: 1.4; }
.mt .rt { color: var(--ink-2); font-weight: 500; }
.mt .rt i { font-style: normal; color: var(--star); }

/* featured: wide cards */
.featured { padding-top: 18px; }
.rail.feats { grid-auto-columns: calc((100% - 48px - 28px) / 3); }
@media (max-width: 1000px) { .rail.feats { grid-auto-columns: calc((100% - 48px - 14px) / 2); } }
@media (max-width: 640px) { .rail.feats { grid-auto-columns: 84%; } }
.feat { display: block; text-decoration: none; border-radius: 18px; overflow: hidden; background: var(--surface); }
.fart { display: grid; place-items: center; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--c) 20%, var(--surface)); overflow: hidden; }
.fart > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fart .ico { box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 35%, transparent); }
.feat:hover .fart > img { transform: scale(1.03); }
.fbody { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.fbody .ico { --s: 48px; }
.ftxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ftxt .nm { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftxt .by { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- start + dev */
.start { margin-top: 40px; padding: 48px 0; background: var(--surface); }
.lhead h1, .lhead h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; }
.lhead p { color: var(--mute); margin-top: 6px; }
.ways { display: grid; gap: 4px; }
.ways > li { display: flex; gap: 16px; padding: 16px 0; min-width: 0; }
.ways > li + li { border-top: 1px solid var(--line); }
.ways > li > div { min-width: 0; flex: 1; }
.wi { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.ways h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ways p { color: var(--ink-2); font-size: 15px; }
.ways p a { color: var(--brand-text); font-weight: 500; }
.ways .btn { margin-top: 12px; }
.ways.big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.ways.big > li { flex-direction: column; background: var(--bg); border-radius: 18px; padding: 22px; border: 0; }
@media (max-width: 900px) { .ways.big { grid-template-columns: minmax(0, 1fr); } }
.code { display: flex; align-items: center; gap: 8px; margin-top: 12px; background: #0f1419; color: #d9f2e6; border-radius: 12px; padding: 6px; min-width: 0; }
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; padding: 8px 10px; scrollbar-width: thin; }
.code button { flex: none; height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: #23302a; color: #bff0d9; font: 600 14px var(--f-body); cursor: pointer; }
.code button:hover { background: #2c3d35; }
.code button.ok { background: var(--brand); color: #fff; }
.devcta { padding: 40px 0 56px; }
.devcta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.devcta h2 { font-size: 24px; font-weight: 700; }
.devcta p { color: var(--mute); margin-top: 4px; }

/* ---------- list pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--mute); padding: 18px 0 8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
main > .wrap > .lhead { margin: 18px 0; }
.filter { position: relative; max-width: 560px; margin-bottom: 14px; }
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 20px; margin: 18px 0 56px; }
@media (max-width: 1000px) { .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rows { grid-template-columns: minmax(0, 1fr); } }
.rows > li { min-width: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px; margin-inline: -10px; border-radius: 14px; text-decoration: none; min-width: 0; }
.row:hover { background: var(--surface); }
.row .ico { --s: 68px; }
.txt { display: flex; flex-direction: column; min-width: 0; }
.txt .nm { font-weight: 500; font-size: 16px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.txt .by { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); flex: none; }
.vf svg { width: 11px; height: 11px; }
.none { color: var(--mute); padding: 20px 0 60px; }

/* ---------- plugin page */
.phead { display: flex; gap: 28px; align-items: flex-start; padding: 18px 0 22px; }
.ptitle { min-width: 0; flex: 1; }
.phead h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; word-break: break-word; }
.dev { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.dev:empty { display: none; }
.dev a { color: var(--brand-text); font-weight: 600; text-decoration: none; font-size: 17px; }
.dev a:hover { text-decoration: underline; }
.vf-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--brand-text); background: var(--brand-soft); padding: 3px 12px; border-radius: 999px; }
.sub { color: var(--mute); font-size: 14px; margin-top: 2px; }
.sub a { color: inherit; }
.pacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pacts .btn.primary { min-width: 160px; }
@media (max-width: 640px) {
  .phead { gap: 16px; padding-top: 10px; flex-wrap: wrap; }
  .pacts { margin-top: 16px; }
  .ptitle { flex-basis: calc(100% - 104px); }
  .pacts .btn.primary { flex: 1; min-width: 0; }
}
@media (max-width: 420px) { .pacts .btn.tonal { flex: 1; padding: 0 14px; } }
.stats { display: flex; overflow-x: auto; scrollbar-width: none; border-block: 1px solid var(--line); padding: 14px 0; }
.stats::-webkit-scrollbar { display: none; }
.stats li { flex: 1 0 auto; min-width: 110px; padding: 0 18px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats b { font: 600 17px/1.4 var(--f-head); white-space: nowrap; }
.stats b i { font-style: normal; color: var(--star); font-size: 15px; }
.stats span { color: var(--mute); font-size: 13px; white-space: nowrap; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 22px 0 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots li { flex: none; scroll-snap-align: start; }
.shots img { height: 240px; width: auto; max-width: none; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 640px) { .shots img { height: 180px; } }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-bottom: 12px; }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.sec { padding: 26px 0 6px; min-width: 0; }
.sec h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.desc { color: var(--ink-2); max-width: 72ch; margin-bottom: 12px; white-space: pre-line; }
.desc.en { text-align: left; color: var(--mute); font-size: 15px; }
.log li { padding: 2px 0 10px; }
.log time { display: block; font-size: 13px; color: var(--mute); }
.log p { color: var(--ink-2); }
.older summary { cursor: pointer; color: var(--brand-text); font-weight: 600; font-size: 15px; padding: 4px 0 10px; list-style: none; }
.older summary::-webkit-details-marker { display: none; }
.info div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info dt { color: var(--mute); }
.info dd { margin: 0; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.info dd a { color: var(--brand-text); }
.share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.share a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--surface);
  text-decoration: none; font-size: 13px; color: var(--ink-2); }
.share a:hover { background: var(--surface-2); }
.share svg { width: 22px; height: 22px; }
.share .wa svg { color: #1fa855; } .share .tg svg { color: #229ed9; } .share .fb svg { color: #1877f2; }

/* reviews */
.rbox { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; padding: 4px 0 18px; }
.avg { display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.avg b { font: 700 52px/1 var(--f-head); }
.stars-ro.off { color: var(--line); }
.stars-ro { color: var(--star); letter-spacing: 2px; font-size: 15px; margin-top: 6px; }
.avg small { color: var(--mute); font-size: 13px; }
.mine p { color: var(--mute); font-size: 14px; }
.stars { display: flex; gap: 2px; }
.stars button { border: 0; background: none; cursor: pointer; font-size: 34px; line-height: 1; color: var(--line); padding: 2px 4px; transition: color .12s, transform .12s; }
.stars button.on { color: var(--star); }
@media (hover: hover) {
  .stars:hover button { color: var(--star); }
  .stars button:hover ~ button { color: var(--line); }
  .stars button:hover { transform: scale(1.12); }
}
.msg { font-size: 14px; margin-top: 4px; color: var(--mute); }
.msg:empty { display: none; }
.msg.ok { color: var(--brand-text); }
.msg.err { color: var(--err); }
.cform textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); padding: 14px 16px;
  font: 400 15px/1.6 var(--f-body); resize: vertical; min-height: 92px; outline: none; }
.cform textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.hint { color: var(--mute); font-size: 13px; }
.clist { margin-top: 18px; }
.clist > li { padding: 16px 0; border-top: 1px solid var(--line); }
.clist > li.empty { color: var(--mute); }
.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.who b { color: var(--ink); font-size: 15px; font-weight: 600; }
.who .st { color: var(--star); letter-spacing: 1px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font: 600 13px var(--f-head); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.clist p { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); }
.clist .btn { margin-top: 8px; }
#ccount { color: var(--mute); font-weight: 400; font-size: 16px; }
#more-comments { margin-top: 8px; }

/* login dialog */
dialog { border: 0; border-radius: 22px; padding: 26px; width: min(420px, calc(100% - 32px)); background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(10, 14, 18, .5); }
dialog h2 { font-size: 22px; margin-bottom: 6px; }
dialog label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
dialog input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; font: 15px var(--f-body); outline: none; }
dialog input:focus { border-color: var(--brand); background: var(--bg); }
dialog .crow { justify-content: flex-start; margin-top: 18px; }
dialog .hint a { color: var(--brand-text); }

/* ---------- footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 20px; font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot p { color: var(--mute); margin-top: 10px; max-width: 34ch; }
.foot h2 { font: 600 14px var(--f-head); margin-bottom: 10px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot nav a { color: var(--mute); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fbrand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* account button in the top bar */
.acct-wrap { position: relative; }
.acct { gap: 6px; max-width: 170px; }
.acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); padding: 6px; display: flex; flex-direction: column; z-index: 30; }
.acct-menu[hidden] { display: none; }
.acct-menu a, .acct-menu button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible, .acct-menu button:focus-visible { background: var(--surface); }
.linkish { all: unset; cursor: pointer; color: var(--brand-text); font-weight: 600; }
.linkish:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
dialog .swap { margin-top: 14px; }
dialog .legal { font-size: 12px; margin-top: 8px; }
@media (max-width: 560px) { .acct:not(.in) span { display: none; } .acct { padding: 0 10px; } .acct.in { max-width: 120px; } }
.clist li.new { animation: cnew 1.6s ease-out; }
@keyframes cnew { from { background: color-mix(in srgb, var(--brand) 18%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .clist li.new { animation: none; } }
