@import url("/assets/fonts.css");
@import url("/pattern.css?v=20260911-pattern-v2");

:root {
  color-scheme: light;
  --bg: #f0f1e9;
  --bg-deep: #e5e8dd;
  --surface: rgba(250, 251, 246, .86);
  --surface-solid: #fafbf6;
  --surface-soft: #e9ece3;
  --text: #1a1e1d;
  --text-soft: #5d6664;
  --text-faint: #87908e;
  --border: rgba(27, 32, 31, .11);
  --border-strong: rgba(27, 32, 31, .2);
  --accent: #9abb2f;
  --accent-strong: #76931a;
  --accent-soft: #eef5d6;
  --teal: #168d6c;
  --shadow: 0 28px 80px rgba(40, 48, 40, .1);
  --font-sans: "Inter Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope Local", Manrope, var(--font-sans);
  --page: min(1280px, calc(100vw - 64px));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11141a;
  --bg-deep: #0c0f14;
  --surface: rgba(26, 30, 38, .88);
  --surface-solid: #1a1e26;
  --surface-soft: #151920;
  --text: #f3f4ee;
  --text-soft: #adb3b2;
  --text-faint: #747c7b;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --accent: #d7f66b;
  --accent-strong: #bfe34a;
  --accent-soft: #26311a;
  --teal: #5bdbb4;
  --shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg) 35rem);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img { max-width: 100%; }
button { color: inherit; font: inherit; cursor: pointer; }
.portal-brand, .support-link, .theme-toggle, .portal-nav a,
.primary-action, .secondary-action, .tool-card, .universe-card,
.featured-card, .seo-entry-links a { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.portal-width { width: var(--page); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #111; text-decoration: none; }
.skip-link:focus { transform: none; }
.portal-glow { position: fixed; z-index: -2; pointer-events: none; border-radius: 50%; }
.portal-glow-one { width: 560px; height: 560px; top: 80px; right: -330px; opacity: .18; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); box-shadow: inset 0 0 120px color-mix(in srgb, var(--accent) 4%, transparent); }
.portal-glow-two { width: 320px; height: 320px; left: -150px; bottom: 0; opacity: .55; background: color-mix(in srgb, var(--teal) 8%, transparent); filter: blur(80px); }
main, .portal-footer { position: relative; z-index: 0; }

.portal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(32px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-deep) 84%, transparent);
  backdrop-filter: blur(18px);
}
.portal-brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; font-family: var(--font-display); font-size: 19px; letter-spacing: -.04em; text-decoration: none; }
.portal-brand strong, .portal-brand em { font-weight: 760; }
.portal-brand em { color: var(--accent); font-style: normal; }
.portal-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); }
.portal-mark svg { width: 100%; height: 100%; }
.portal-nav { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); }
.portal-nav a, .portal-nav > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--text-soft); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.portal-nav a:hover, .portal-nav a:focus-visible, .portal-nav a.is-current { color: var(--text); background: var(--surface-solid); }
.portal-nav a.portal-nav-featured { color: var(--accent-strong); }
.portal-nav a.portal-nav-featured::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.portal-nav a.portal-nav-featured:hover,
.portal-nav a.portal-nav-featured:focus-visible,
.portal-nav a.portal-nav-featured.is-current { color: var(--text); background: var(--accent-soft); }
.portal-nav small { color: var(--text-faint); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portal-actions { display: flex; justify-self: end; align-items: center; gap: 8px; }
.support-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--text-soft); font-size: 12px; font-weight: 750; text-decoration: none; transition: .18s ease; }
.support-link:hover { transform: translateY(-1px); border-color: color-mix(in srgb, #ff5e6c 42%, var(--border)); color: var(--text); }
.support-link svg { width: 18px; height: 18px; color: #ff5e6c; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); color: var(--text-soft); font-size: 20px; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.language-picker { position: relative; flex: 0 0 auto; }
.language-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 52px; height: 44px; padding: 0; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface-soft); color: var(--text-soft);
  font: inherit; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.language-toggle:hover, .language-toggle[aria-expanded="true"] { color: var(--text); border-color: var(--border-strong); background: var(--surface-solid); }
.language-toggle > span { font-size: 18px; line-height: 1; filter: saturate(.9); }
.language-toggle small { font-size: 8px; font-weight: 850; letter-spacing: .04em; }
.language-menu {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 120;
  width: 178px; padding: 6px; border: 1px solid var(--border-strong);
  border-radius: 15px; background: var(--surface-solid); box-shadow: var(--shadow);
}
.language-menu[hidden] { display: none; }
.language-menu button {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 15px; align-items: center; gap: 9px;
  width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-soft); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.language-menu button:hover, .language-menu button:focus-visible { background: var(--accent-soft); color: var(--text); }
.language-menu button[aria-checked="true"] { color: var(--accent-strong); }
.language-menu button > span:first-child { font-size: 18px; }
.language-menu b { color: var(--accent); font-size: 11px; }

.portal-hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 80px; padding: 88px 0 70px; }
.portal-kicker, .section-label { color: var(--accent-strong); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.portal-kicker { display: inline-flex; align-items: center; gap: 10px; }
.portal-kicker i, .availability i, .tool-badge i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }
.portal-hero h1, .category-hero h1 { margin: 25px 0 24px; font-family: var(--font-display); font-size: clamp(64px, 7.3vw, 106px); font-weight: 520; letter-spacing: -.075em; line-height: .9; }
.portal-hero h1 span, .category-hero h1 span { color: var(--accent); }
.portal-hero-copy > p, .category-hero > p { max-width: 670px; margin: 0; color: var(--text-soft); font-size: 18px; line-height: 1.7; }
.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 0 18px; border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.primary-action { background: var(--accent); color: #171a12; box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 18%, transparent); }
.primary-action:hover { transform: translateY(-2px); background: var(--accent-strong); }
.secondary-action { border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); }
.secondary-action:hover { border-color: var(--border-strong); color: var(--text); }

.lab-symbol { position: relative; width: 390px; height: 390px; justify-self: end; display: grid; place-items: center; }
.lab-orbit { position: absolute; border: 1px solid var(--border); border-radius: 50%; }
.orbit-one { inset: 0; }
.orbit-two { inset: 48px; border-style: dashed; }
.lab-orbit::after { content: ""; position: absolute; width: 11px; height: 11px; top: 13%; left: 17%; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 8px color-mix(in srgb, var(--teal) 10%, transparent); }
.orbit-two::after { inset: auto 9% 21% auto; background: var(--accent); }
.lab-core { display: grid; place-items: center; width: 178px; height: 178px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 45px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); transform: rotate(7deg); }
.lab-core svg { width: 100px; transform: rotate(-7deg); }
.lab-label { position: absolute; right: 14px; bottom: 45px; color: var(--text-faint); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.portal-hero-art { position: relative; display: block; width: min(430px, 100%); aspect-ratio: 1; justify-self: end; }
.portal-hero-art::before { content: ""; position: absolute; inset: 12% 7% 4% 9%; z-index: -1; border-radius: 50%; background: color-mix(in srgb, var(--teal) 11%, transparent); filter: blur(35px); }
.portal-hero-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 38px rgba(37, 77, 75, .13)); }

.featured-tool, .universes, .tool-directory { padding: 70px 0; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.section-heading h2 { margin: 7px 0 0; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.045em; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.7; }
.availability { display: inline-flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.featured-card { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.3fr) minmax(210px, .7fr) 44px; align-items: center; gap: 30px; min-height: 250px; padding: 38px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 25px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent-soft) 72%, var(--surface-solid)), var(--surface)); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.featured-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 65%, var(--border)); }
.featured-index { align-self: start; color: var(--accent-strong); font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.featured-copy > span, .tool-context { color: var(--accent-strong); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.featured-copy h3 { margin: 14px 0 12px; font-family: var(--font-display); font-size: clamp(31px, 4vw, 52px); font-weight: 540; letter-spacing: -.055em; line-height: 1; }
.featured-copy p { max-width: 650px; margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.featured-card ul { margin: 0; padding: 0; list-style: none; }
.featured-card li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); font-size: 11px; }
.featured-card li::before { content: "+"; margin-right: 9px; color: var(--accent-strong); font-weight: 900; }
.featured-arrow { font-size: 27px; color: var(--accent-strong); }

.seo-entry-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.seo-entry-links a { display: grid; gap: 4px; min-height: 86px; padding: 17px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.seo-entry-links a:hover, .seo-entry-links a:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 56%, var(--border)); }
.seo-entry-links strong { font-family: var(--font-display); font-size: 13px; font-weight: 680; letter-spacing: -.02em; }
.seo-entry-links span { color: var(--text-soft); font-size: 10px; line-height: 1.45; }

.universe-grid, .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.universe-card, .tool-card { min-width: 0; min-height: 245px; padding: 25px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); text-decoration: none; }
.universe-card {
  --universe-accent: #d7f66b;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--universe-accent) 18%, rgba(255, 255, 255, .12));
  background: #171b22;
  color: #f7f8f3;
  box-shadow: 0 18px 46px rgba(5, 8, 12, .18);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.universe-touch { --universe-accent: #60e4cf; }
.universe-dofus { --universe-accent: #f0a55f; }
.universe-retro { --universe-accent: #e8c990; }
.universe-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 14, .08) 0 27%, rgba(11, 14, 19, .42) 50%, rgba(13, 16, 22, .96) 83%, #0d1016 100%);
}
.universe-card.is-ready:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--universe-accent) 66%, rgba(255, 255, 255, .15)); box-shadow: 0 24px 58px rgba(5, 8, 12, .3); }
.universe-art { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
.universe-art img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .3s ease; }
.universe-touch .universe-art img { object-position: 45% center; }
.universe-dofus .universe-art img { object-position: center 46%; }
.universe-retro .universe-art img { object-position: center top; }
.universe-card:not(.is-ready) .universe-art img { filter: saturate(.82) contrast(.95); }
.universe-card.is-ready:hover .universe-art img { transform: scale(1.035); }
.universe-top { position: absolute; inset: 16px 16px auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.universe-number, .universe-status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(10, 13, 18, .58); color: rgba(255, 255, 255, .76); backdrop-filter: blur(10px); }
.universe-number { font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.universe-status, .tool-badge { font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.universe-status { color: var(--universe-accent); }
.universe-copy { display: flex; width: 100%; min-width: 0; margin-top: auto; padding: 104px 25px 25px; flex-direction: column; align-items: flex-start; }
.universe-card h3 { margin: 0 0 7px; font-family: var(--font-display); font-size: 28px; font-weight: 650; letter-spacing: -.045em; text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.universe-card p { margin: 0; color: rgba(238, 241, 238, .78); font-size: 12px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.card-link { margin-top: 20px; color: var(--universe-accent); font-size: 10px; font-weight: 800; }

.breadcrumb { display: flex; align-items: center; gap: 9px; min-height: 46px; color: var(--text-faint); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb strong { color: var(--text-soft); }
.category-hero { padding: 105px 0 92px; }
.category-hero h1 { max-width: 900px; }
.tool-card { display: flex; min-height: 360px; flex-direction: column; justify-content: space-between; gap: 30px; }
.tool-card-featured { border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); background: linear-gradient(150deg, var(--accent-soft), var(--surface)); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.tool-card-featured { position: relative; grid-column: span 2; overflow: hidden; padding-right: 43%; }
.tool-card-featured::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--surface-solid) 96%, transparent) 0 47%, color-mix(in srgb, var(--surface-solid) 70%, transparent) 62%, transparent 85%); }
.tool-card-featured > :not(.tool-card-visual) { position: relative; z-index: 1; }
.tool-card-visual { position: absolute; inset: 0; z-index: 0; display: block; min-width: 0; overflow: hidden; }
.tool-card-visual img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tool-card-featured > div:not(.tool-card-top) { max-width: 520px; }
.tool-card-featured:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 68%, var(--border)); }
.tool-card-top { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.tool-badge { display: inline-flex; align-items: center; gap: 8px; }
.tool-card h3 { margin: 12px 0 12px; font-family: var(--font-display); font-size: 39px; font-weight: 560; letter-spacing: -.055em; }
.tool-card p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.72; }
.tool-card .primary-action { align-self: flex-start; }
.tool-card.is-coming { opacity: .72; }

.portal-footer { display: flex; justify-content: space-between; gap: 30px; margin-top: 75px; padding: 26px 0 40px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 11px; line-height: 1.6; }
.portal-footer p { margin: 0; }
.portal-footer strong { color: var(--text-soft); }

.not-found { min-height: calc(100vh - 155px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: center; gap: 70px; padding-block: 72px; }
.not-found h1 { margin: 20px 0 18px; font-family: var(--font-display); font-size: clamp(54px, 7vw, 96px); font-weight: 540; letter-spacing: -.07em; line-height: .92; }
.not-found h1 span { color: var(--accent); }
.not-found p { max-width: 590px; margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.not-found .portal-hero-actions { margin-top: 30px; }
.not-found-art { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--border); border-radius: 32px; box-shadow: var(--shadow); }

@media (max-width: 1040px) {
  :root { --page: min(100% - 40px, 920px); }
  .portal-header { grid-template-columns: 1fr auto; padding: 12px 20px; }
  .portal-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .portal-actions { grid-column: 2; grid-row: 1; }
  .portal-hero { grid-template-columns: minmax(0, 1fr) 310px; min-height: 560px; gap: 35px; }
  .portal-hero-art { width: 320px; }
  .lab-symbol { width: 300px; height: 300px; }
  .lab-core { width: 145px; height: 145px; }
  .featured-card { grid-template-columns: 54px minmax(0, 1fr) 36px; }
  .featured-card ul { grid-column: 2; }
  .featured-arrow { grid-column: 3; grid-row: 1 / 3; }
  .seo-entry-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 28px); }
  .portal-header { gap: 10px; padding-inline: 14px; }
  .portal-nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .portal-nav > span { display: none; }
  .portal-hero { min-height: auto; grid-template-columns: 1fr; padding: 68px 0; }
  .portal-hero h1, .category-hero h1 { font-size: clamp(52px, 15vw, 78px); }
  .portal-hero-copy > p, .category-hero > p { font-size: 16px; }
  .lab-symbol { display: none; }
  .portal-hero-art { width: min(330px, 80vw); justify-self: center; margin-top: -12px; }
  .section-heading { display: block; }
  .section-heading > p, .availability { margin-top: 13px; }
  .featured-card { grid-template-columns: 1fr; padding: 26px; }
  .featured-index { font-size: 17px; }
  .featured-card ul { grid-column: auto; }
  .featured-arrow { position: absolute; top: 25px; right: 25px; }
  .universe-grid, .tool-grid { grid-template-columns: 1fr; }
  .universe-card { min-height: 290px; }
  .seo-entry-links { grid-template-columns: 1fr; }
  .category-hero { padding: 70px 0 62px; }
  .tool-card { min-height: 280px; }
  .tool-card-featured { position: relative; grid-column: auto; min-width: 0; min-height: 500px; overflow: hidden; padding: 230px 25px 25px; }
  .tool-card-featured::after { background: linear-gradient(180deg, transparent 0 30%, color-mix(in srgb, var(--surface-solid) 94%, transparent) 49% 100%); }
  .tool-card-visual { width: 100%; height: 260px; }
  .not-found { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-block: 58px; }
  .not-found-art { width: min(390px, 100%); justify-self: center; grid-row: 1; }
  .portal-footer { display: block; font-size: 11px; }
  .portal-footer p + p { margin-top: 6px; }
  .portal-glow-one { display: none; }
}

@media (max-width: 480px) {
  .portal-header { min-height: 68px; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 44px; padding-block: 11px; }
  .portal-brand { grid-column: 1; grid-row: 1; }
  .portal-nav { grid-column: 2; grid-row: 1; justify-self: center; width: auto; overflow: visible; border: 0; background: transparent; }
  .portal-nav a:not(.portal-nav-featured) { display: none; }
  .portal-nav a { min-height: 40px; padding-inline: 11px; background: var(--surface-soft); }
  .portal-actions { grid-column: 3; grid-row: 1; }
  .portal-brand > span:last-child { display: none; }
  .support-link span { display: none; }
  .support-link { width: 44px; padding: 0; justify-content: center; }
  .theme-toggle { width: 44px; height: 44px; }
  .portal-hero-actions { display: grid; }
  .featured-tool, .universes, .tool-directory { padding-block: 52px; }
}

@media (max-width: 360px) {
  .portal-actions .support-link { display: none; }
  .language-toggle { width: 48px; }
}

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