/* Demoz Games – public site styles. Mobile first, chunky rounded "cartoon" look. */
:root {
  --bg: #140A2A;
  --bg2: #1A0D36;
  --card: #22113F;
  --card2: #2C1752;
  --line: #2A0F4A;
  --ink: #0E0620;
  --purple: #6D28D9;
  --purple2: #8B5CF6;
  --yellow: #FFD23F;
  --orange: #FF9F1C;
  --text: #F1E8FF;
  --muted: #B9A8DA;
  --cyan: #2EE6F0;
  --pink: #FF5FA2;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 4px 0 var(--ink);
  --head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(109, 40, 217, .35), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(255, 159, 28, .10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { background: #FFDD66; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- Header ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 10, 42, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.logo:hover { text-decoration: none; }
.logo img { height: 48px; width: auto; filter: drop-shadow(0 3px 0 var(--ink)); transition: transform .2s; }
.logo:hover img { transform: rotate(-2deg) scale(1.04); }
.logo span {
  font-family: var(--head); font-weight: 700; font-size: 1.45rem; letter-spacing: .3px;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo.small img { height: 36px; }
.logo.small span { font-size: 1.15rem; }

form.search { flex: 1; display: flex; max-width: 460px; margin-left: auto; position: relative; }
form.search input {
  width: 100%; min-width: 0;
  padding: 10px 48px 10px 16px;
  background: var(--card); color: var(--text);
  border: 3px solid var(--line); border-radius: 999px;
  font: 600 .95rem var(--body);
  transition: border-color .15s, background .15s;
}
form.search input::placeholder { color: #8E7BB5; }
form.search input:focus { outline: none; border-color: var(--purple2); background: var(--card2); }
form.search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: grid; place-items: center;
}
form.search button:hover { background: var(--purple2); }

nav.cats { border-top: 2px solid rgba(255, 255, 255, .04); }
.cats-in {
  display: flex; gap: 8px; overflow-x: auto; padding-block: 8px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cats-in::-webkit-scrollbar { display: none; }
.cats-in a {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--card); color: var(--text);
  border: 2px solid var(--line); border-radius: 999px;
  font: 700 .9rem var(--body); white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.cats-in a:hover { text-decoration: none; border-color: var(--purple2); transform: translateY(-1px); }
.cats-in a.on { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }

/* ---------- Ads ---------- */
.ad { display: flex; justify-content: center; align-items: center; overflow: hidden; margin: 14px auto; max-width: 100%; }
.ad-top, .ad-bottom { min-height: 50px; padding-inline: 16px; }
.ad-side { margin: 0; }
.ad iframe, .ad img { max-width: 100%; }

/* ---------- Main ---------- */
main#main { flex: 1; padding-block: 18px 40px; }

.hero {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--purple) 0%, #4C1D95 100%);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .35), transparent 70%);
  pointer-events: none;
}
.hero img { height: 84px; width: auto; max-width: 45%; object-fit: contain; flex: none; filter: drop-shadow(0 4px 0 var(--ink)); }
.hero h1 { margin-bottom: .2em; color: #fff; }
.hero p { margin: 0; color: #E4D8FF; font-weight: 600; }
.hero.err { flex-direction: column; text-align: center; padding: 40px 22px; }
.hero.err img { height: 110px; width: auto; }
.hero.err .btn { margin-top: 14px; }

/* Rows on the home page */
section.row { margin-bottom: 28px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.row-head h2 span { font-size: 1.2em; }
a.more {
  flex: none; padding: 5px 14px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--line);
  color: var(--yellow); font-weight: 800; font-size: .88rem;
}
a.more:hover { text-decoration: none; border-color: var(--yellow); }

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 200px);
  gap: 14px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--purple) transparent;
}
.strip > .card { scroll-snap-align: start; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
a.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); color: var(--text);
  border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.card:hover { text-decoration: none; transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 8px 0 var(--ink); border-color: var(--yellow); }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--card2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.card:hover .card-img img { transform: scale(1.07); }
.card-title {
  display: block; padding: 8px 10px 10px;
  font: 600 .95rem/1.25 var(--head);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--pink); color: #fff; border: 2px solid var(--ink);
  font: 700 .72rem var(--head); letter-spacing: .6px;
}

.empty {
  padding: 40px 20px; text-align: center; color: var(--muted); font-weight: 700;
  background: var(--card); border: 3px dashed var(--line); border-radius: var(--r);
}

nav.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.pg {
  min-width: 42px; padding: 8px 14px; text-align: center;
  background: var(--card); color: var(--text);
  border: 2px solid var(--line); border-radius: 12px; font-weight: 800;
}
a.pg:hover { text-decoration: none; border-color: var(--yellow); color: var(--yellow); }
.pg.cur { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

/* ---------- List pages ---------- */
.page-head { margin-bottom: 18px; }
.page-head h1 { margin-bottom: .2em; }
.page-head p.muted { margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
a.tab {
  padding: 6px 16px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--line);
  color: var(--text); font-weight: 800; font-size: .9rem;
}
a.tab:hover { text-decoration: none; border-color: var(--purple2); }
a.tab.on { background: var(--purple); border-color: var(--ink); color: #fff; box-shadow: 0 3px 0 var(--ink); }

.with-side { display: grid; gap: 22px; }
aside.side { display: none; }
@media (min-width: 1100px) {
  .with-side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  aside.side { display: block; position: sticky; top: 130px; }
  aside.side:empty { display: none; }
}

/* ---------- Game page ---------- */
nav.crumbs { font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
nav.crumbs a { color: var(--muted); }
nav.crumbs a:hover { color: var(--yellow); }

section.player {
  background: var(--ink);
  border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 0 6px 0 #05020C, 0 0 0 3px var(--purple);
  overflow: hidden; margin-bottom: 22px;
}
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player.portrait .stage { aspect-ratio: 9 / 16; max-height: min(78vh, 820px); margin-inline: auto; width: auto; max-width: 100%; }
@supports not (aspect-ratio: 1) {
  .stage { height: 56vw; max-height: 80vh; }
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }

.cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; z-index: 2; }
.cover-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.3); }
.cover-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; gap: 12px; }
.cover-thumb {
  width: min(240px, 50vw); aspect-ratio: 4 / 3; object-fit: cover;
  border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink);
}
.player.portrait .cover-thumb { width: min(200px, 50vw); }
.cover-in h1 { margin: 0; color: #fff; text-shadow: 0 3px 0 var(--ink); font-size: clamp(1.3rem, 3.5vw, 2.1rem); }
.btn-play { font-size: 1.3rem; padding: 12px 34px; animation: pulse 1.8s ease-in-out infinite; }
.btn-play::before { content: "▶"; font-size: .9em; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .btn-play { animation: none; }
  a.card, a.card:hover, .card-img img { transition: none; transform: none; }
}

.bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--card);
  border-top: 3px solid var(--ink);
}
.bar-title { flex: 1; min-width: 0; font: 700 1rem var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-plays { color: var(--muted); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--card2); color: var(--text);
  border: 2px solid var(--line); border-radius: 12px;
}
.icon-btn:hover { background: var(--purple); border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* Fullscreen player */
#player:fullscreen { border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; width: 100vw; height: 100vh; margin: 0; }
#player:fullscreen .stage { flex: 1; aspect-ratio: auto; max-height: none; width: 100%; }
#player:-webkit-full-screen { width: 100vw; height: 100vh; display: flex; flex-direction: column; }
#player:-webkit-full-screen .stage { flex: 1; aspect-ratio: auto; max-height: none; width: 100%; }

section.info {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 26px;
}
section.info p { color: #E2D6F7; }
p.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
a.chip {
  padding: 4px 12px; border-radius: 999px;
  background: var(--card2); border: 2px solid var(--line);
  color: var(--cyan); font-weight: 800; font-size: .85rem;
}
a.chip:hover { text-decoration: none; border-color: var(--cyan); }

body.game-page main#main { padding-top: 12px; }

/* ---------- Legal / text pages ---------- */
article.prose {
  max-width: 820px; margin: 0 auto;
  background: var(--card); border: 3px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 4vw, 40px);
}
article.prose h1 { color: var(--yellow); }
article.prose h2 { margin-top: 1.4em; color: #fff; }
article.prose p, article.prose li { color: #E2D6F7; }
article.prose ul { padding-left: 1.3em; }
article.prose a { text-decoration: underline; }
.big-mail {
  display: inline-block; margin: 8px 0 16px; padding: 12px 20px;
  background: var(--bg); border: 3px dashed var(--purple2); border-radius: 14px;
  font: 700 1.15rem var(--head); color: var(--yellow); word-break: break-all;
}

/* ---------- Footer ---------- */
footer.foot {
  margin-top: auto;
  background: var(--bg2); border-top: 3px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 26px; text-align: center; }
.foot-in nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot-in nav a { color: var(--muted); font-weight: 700; font-size: .92rem; }
.foot-in nav a:hover { color: var(--yellow); }
.foot-in .note { color: var(--muted); font-size: .88rem; margin: 0; max-width: 640px; }
.foot-in .copy { color: #7E6CA3; font-size: .8rem; margin: 0; }

/* ---------- Consent bar ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; z-index: 80;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px;
  background: var(--card2); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink), 0 10px 30px rgba(0, 0, 0, .4);
  font-size: .9rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; }
.consent a { text-decoration: underline; }
.consent .btn { flex: none; padding: 8px 18px; }

/* ---------- Welcome banner ---------- */
.welcome {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px;
  margin-bottom: 26px; padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(circle at 85% 20%, rgba(46, 230, 240, .22), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(255, 95, 162, .25), transparent 50%),
    linear-gradient(135deg, var(--purple) 0%, #4C1D95 55%, #2A0F4A 100%);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
}
.w-in { position: relative; z-index: 1; }
.w-kicker {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  background: rgba(255, 255, 255, .12); color: var(--cyan);
  border: 2px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font: 800 .8rem var(--body); letter-spacing: .5px;
}
.welcome h1 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); color: #fff; margin-bottom: .35em; }
.welcome h1 b { color: var(--yellow); }
.welcome p { margin: 0 0 18px; max-width: 540px; color: #E9DEFF; font-weight: 600; font-size: 1.05rem; }
.w-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-chips li {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(14, 6, 32, .35); border: 2px solid rgba(255, 255, 255, .12);
  font-weight: 700; font-size: .88rem; color: #F3ECFF;
}
.w-art { position: relative; display: grid; place-items: center; min-height: 200px; }
.w-art img { position: relative; z-index: 1; width: min(100%, 360px); height: auto; filter: drop-shadow(0 6px 0 var(--ink)); animation: bob 4s ease-in-out infinite; }
.w-art i { position: absolute; display: block; border: 3px solid var(--ink); }
.w-art .s1 { width: 70px; height: 70px; border-radius: 50%; background: var(--yellow); top: 4%; left: 8%; }
.w-art .s2 { width: 46px; height: 46px; border-radius: 12px; background: var(--cyan); bottom: 8%; right: 10%; transform: rotate(18deg); }
.w-art .s3 { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); bottom: 14%; left: 14%; }
.w-art .s4 { width: 26px; height: 26px; border-radius: 6px; background: var(--orange); top: 12%; right: 16%; transform: rotate(-14deg); }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .w-art img { animation: none; } }

/* ---------- Language button & legal note ---------- */
.lang-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 40px; padding: 0 14px;
  background: var(--card); color: var(--text);
  border: 3px solid var(--line); border-radius: 999px;
  font: 800 .92rem var(--body); white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.lang-btn:hover { text-decoration: none; border-color: var(--yellow); background: var(--card2); }
.legal-note {
  padding: 10px 14px; background: var(--bg); border: 2px dashed var(--purple2); border-radius: 12px;
  color: var(--muted) !important; font-weight: 700;
}

/* ---------- Arabic / RTL ---------- */
[dir="rtl"] {
  --head: "Cairo", "Fredoka", "Segoe UI", Tahoma, sans-serif;
  --body: "Cairo", "Nunito", "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .skip { left: auto; right: 8px; }
[dir="rtl"] form.search { margin-left: 0; margin-right: auto; }
[dir="rtl"] form.search input { padding: 10px 16px 10px 48px; }
[dir="rtl"] form.search button { right: auto; left: 4px; }
[dir="rtl"] .badge { left: auto; right: 8px; }
[dir="rtl"] article.prose ul { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] article.prose [dir="ltr"] ul { padding-left: 1.3em; padding-right: 0; }
[dir="rtl"] a.card:hover { transform: translateY(-4px) rotate(.6deg); }
[dir="rtl"] .consent { padding: 12px 18px 12px 14px; }
[dir="rtl"] .btn-play::before { content: "◀"; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; gap: 6px; }
  .w-art { order: -1; min-height: 120px; }
  .w-art img { width: min(70%, 240px); }
  .w-art .s1 { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  .lang-btn { height: 38px; padding: 0 10px; }
  .w-btns .btn { flex: 1 1 auto; }
  .top-in { gap: 10px; }
  .logo span { display: none; }
  .logo.small span { display: inline; }
  .hero { padding: 16px; gap: 12px; }
  .hero img { height: 56px; width: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .strip { grid-auto-columns: 150px; gap: 10px; }
  .card-title { font-size: .88rem; padding: 7px 9px 9px; }
  section.player { border-radius: 14px; margin-inline: -8px; }
  .bar-plays { display: none; }
  .consent { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
}
[hidden] { display: none !important; }

/* ---------- Player accounts ---------- */
.acct-btn { padding: 0 10px; font-size: 1.1rem; }
.acct-wrap { display: grid; gap: 18px; max-width: 760px; margin: 24px auto; }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.acct-head h1 { margin: 0 0 4px; }
.acct-head p { margin: 0; }
.acct-card {
  max-width: 460px; margin: 28px auto; padding: 22px 20px;
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.acct-wrap .acct-card { margin: 0; }
.acct-card.wide { max-width: 760px; width: 100%; }
.acct-card.danger { border-color: var(--pink); }
.acct-card h1 { margin: 0 0 6px; font-family: var(--head); }
.acct-card h2 { margin: 0 0 12px; font-family: var(--head); font-size: 1.2rem; }
.acct-form { display: grid; gap: 14px; margin-top: 14px; }
.acct-form label { display: grid; gap: 6px; font-weight: 800; }
.acct-form input {
  width: 100%; padding: 11px 14px;
  background: var(--bg); color: var(--text);
  border: 3px solid var(--line); border-radius: 12px;
  font: 700 1rem var(--body);
}
.acct-form input:focus { outline: none; border-color: var(--yellow); }
.acct-form small { font-weight: 600; }
.acct-msg { margin: 0; font-weight: 800; }
.acct-msg:empty { display: none; }
.acct-msg.bad { color: var(--pink); }
.acct-msg.ok { color: var(--cyan); }
.acct-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-weight: 800; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.btn-g { width: 100%; background: #fff; color: #1f1f1f; }
.btn-g:hover { background: #f1f1f1; }
.btn.sm { padding: 6px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--purple2); box-shadow: none; }
.btn.ghost:hover { background: var(--card2); }
.btn.danger { background: var(--pink); }
.btn.danger:hover { background: #ff7db4; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.acct-switch { margin: 16px 0 0; text-align: center; font-weight: 700; }
.acct-saves { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acct-saves li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 12px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px;
}
.acct-saves .t { font-weight: 800; color: var(--text); }
.acct-saves .muted { font-size: .85rem; }
.acct-saves .acts { display: flex; gap: 8px; margin-inline-start: auto; }
