/* Public pages opt in explicitly. Cabinet/admin and standalone games keep their
   own styles; artwork and uploaded images are never recoloured by a filter. */
html.media-public-themed {
  --site-header-gold: var(--mt-heading);
  --site-header-pink: var(--mt-accent);
  --site-header-violet: var(--mt-accent);
  --site-header-text: var(--mt-text);
  --site-header-muted: var(--mt-muted);
}
html.media-public-themed[data-media-theme="31"] {
  --mh-glow:#ff9d46; --mh-secondary:#d5a379;
  --mh-header-bg:radial-gradient(ellipse at 15% 0,#ed651b20,transparent 48%),linear-gradient(110deg,#20140ffa,#090c13fc);
  --mh-header-border:#9a633f; --mh-header-shadow:inset 0 1px #e4aa6d30,0 8px 28px #0008;
  --mh-radius:5px 14px; --mh-stars:.12; --mh-font:Georgia,serif;
  --mh-scene-position:60% center;
}
html.media-public-themed[data-media-theme="32"] {
  --mh-glow:#c397ff; --mh-secondary:#e3c27c;
  --mh-header-bg:radial-gradient(ellipse at 85% 0,#8d36cf28,transparent 46%),linear-gradient(110deg,#1d122dfa,#090a12fc);
  --mh-header-border:#79528e; --mh-header-shadow:inset 0 1px #d8afea30,0 8px 28px #0008;
  --mh-radius:4px 16px; --mh-stars:.12; --mh-font:Georgia,serif;
  --mh-scene-position:63% center;
}
html.media-public-themed[data-media-theme="33"] {
  --mh-glow:#ffd080; --mh-secondary:#e9a96b;
  --mh-header-bg:radial-gradient(ellipse at 15% 0,#b67a271c,transparent 45%),linear-gradient(110deg,#171c27fa,#080e19fc);
  --mh-header-border:#9c8050; --mh-header-shadow:inset 0 1px #ffe0a540,0 8px 28px #0008;
  --mh-radius:5px; --mh-stars:.08; --mh-font:Georgia,serif;
  --mh-scene-position:67% center;
}
html.media-public-themed body {
  --home-heading-ink: var(--mt-heading);
  --about-gold: var(--mt-heading); --about-pink: var(--mt-accent);
  --about-cyan: var(--mt-accent); --about-green: var(--mt-success);
  --about-panel: var(--mt-surface); --about-line: var(--mt-border);
  --team-pink: var(--mt-accent); --team-cyan: var(--mt-accent);
  --team-gold: var(--mt-heading); --team-green: var(--mt-success);
  --team-panel: var(--mt-surface);
  color: var(--mt-text);
  background-color: var(--mt-bg);
  font-family: var(--mh-font, "Outfit", Inter, Arial, sans-serif);
}
html.media-public-themed body:not(.home-page)::after {
  background: linear-gradient(color-mix(in srgb, var(--mt-bg) 92%, transparent), var(--mt-bg)), var(--mt-backdrop) center top / cover no-repeat;
  opacity: 1;
}
html.media-public-themed body::before { opacity: .05; }
html.media-public-themed :is(.section-head h2, .section-feed-toggle, .footer h3) { color: var(--mt-heading); }
html.media-public-themed :is(.section-head > span, .projects-section-head::after) {
  background: linear-gradient(90deg, transparent, var(--mt-border), transparent);
}
html.media-public-themed :is(.section-intro, .characters-status, .project-detail-status, .game-public-analytics) { color: var(--mt-muted); }
html.media-public-themed :is(.eyebrow, .home-games-all, .project-back-link, .rail-arrow, .section-toggle-icon) { color: var(--mt-accent); }
html.media-public-themed :is(.rail-arrow, .section-feed-toggle) { text-shadow: none; }

/* Explicit grid slots prevent the additional theme action from displacing the
   account link or overlapping menu/chat on narrow phones. */
html.media-public-themed .header.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: clamp(6px, .8vw, 13px);
  background: var(--mh-header-bg, var(--mt-surface));
  border-color: var(--mh-header-border, var(--mt-border));
  box-shadow: var(--mh-header-shadow, var(--mt-shadow));
  color: var(--mt-text);
  font-family: var(--mh-font, "Outfit", Inter, Arial, sans-serif);
}
html.media-public-themed .header.site-header.site-header--app {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
}
html.media-public-themed .header.site-header::after {
  background: linear-gradient(90deg, transparent, var(--mt-accent), var(--mt-heading), transparent);
  opacity: .65;
}
html.media-public-themed .header.site-header > .brand { grid-column: 1; grid-row: 1; color: var(--mt-heading); text-shadow: none; }
html.media-public-themed .header.site-header > .nav { grid-column: 2; grid-row: 1; }
html.media-public-themed .header.site-header > .media-theme-public-trigger { grid-column: 3; grid-row: 1; }
html.media-public-themed .header.site-header > .chat-launch { grid-column: 4; grid-row: 1; }
html.media-public-themed .header.site-header > .site-games-link { grid-column: 5; grid-row: 1; }
html.media-public-themed .header.site-header > .site-app-launch { grid-column: 6; grid-row: 1; }
html.media-public-themed .site-header .nav {
  border-color: var(--mt-border);
  border-radius: var(--mh-radius, var(--mt-radius));
  background: color-mix(in srgb, var(--mt-surface-2) 80%, transparent);
  box-shadow: none;
  scrollbar-color: var(--mt-border) transparent;
}
html.media-public-themed .site-header .nav :is(a, .site-nav-logout) {
  color: var(--mt-text);
  border-radius: min(10px, var(--mh-radius, var(--mt-radius)));
  text-shadow: none;
}
html.media-public-themed .site-header .nav :is(a:hover, a.active, a[aria-current="page"], .site-nav-logout:hover) {
  color: var(--mt-text);
  border-color: var(--mt-accent);
  background: var(--mt-selection);
  box-shadow: none;
}
html.media-public-themed .site-header .nav :is(a, .site-nav-logout)::after { background: var(--mt-accent); box-shadow: none; }
html.media-public-themed .site-header .nav [data-account-link] { color: var(--mt-heading); }
html.media-public-themed .site-header .nav .btn-register,
html.media-public-themed .header.site-header > .chat-launch {
  background: var(--mt-accent);
  color: var(--mt-accent-ink);
  border-color: var(--mt-accent);
  box-shadow: none;
}
html.media-public-themed .header.site-header > .chat-launch { min-height: 44px; height: 44px; }
html.media-public-themed .site-header :is(.menu-button, .site-games-link, .site-app-launch, .media-theme-public-trigger) {
  position: relative;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  gap: 7px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--mt-border);
  border-radius: min(12px, var(--mh-radius, var(--mt-radius)));
  background: var(--mt-surface-2);
  color: var(--mt-text);
  font: 700 12px/1 var(--mh-font, "Outfit", Inter, Arial, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
html.media-public-themed .site-header .menu-button { display: none; font-size: 20px; padding: 0; }
html.media-public-themed .site-header :is(.site-games-link, .media-theme-public-trigger) svg { width: 20px; height: 20px; flex: none; }
html.media-public-themed .site-header :is(.menu-button, .site-games-link, .site-app-launch, .media-theme-public-trigger):hover {
  color: var(--mt-accent); border-color: var(--mt-accent); background: var(--mt-selection);
}
html.media-public-themed .site-header :is(a, button):focus-visible { outline: 2px solid var(--mt-accent); outline-offset: 2px; }

/* Surfaces and text are separate: captions printed over artwork retain their
   existing dark scrims and white ink in both light and dark themes. */
html.media-public-themed :is(.card, .game-showcase, .project-sidebar-panel, .project-showcase,
  .game-rating-panel, .game-comments-panel,
  .project-chapter-feed, .project-community-panel, .project-reviews, .community-activity,
  .community-work-feed-card, .work-composer, .works-feed-panel, .works-empty,
  .characters-featured, .character-detail-dossier, .character-detail-summary,
  .character-featured-card, .character-detail-view, .characters-catalog-card,
  .character-catalog-card, .leaderboard-panel, .community-leaderboard,
  .leaderboard-hero, .leaderboard-board, .auth-card, .auth-box) {
  color: var(--mt-text);
  background: var(--mt-surface);
  border-color: var(--mt-border);
  border-radius: var(--mh-radius, var(--mt-radius));
  box-shadow: var(--mt-shadow);
}
html.media-public-themed :is(.card:hover, .community-work-feed-card:hover) { border-color: var(--mt-accent); box-shadow: var(--mt-shadow); }
html.media-public-themed :is(.card-body h3, .game-showcase-copy h1, .project-slide-copy-heading h1,
  .project-sidebar-heading strong, .project-feed-heading h2, .project-community-panel h2,
  .project-reviews h2, .community-activity__head h2, .works-hero h1, .works-empty h3,
  .work-composer h2, .community-work-feed-card-content h3, .community-work-comments h3,
  .community-work-dialog-title, .characters-catalog-hero h1, .character-detail-copy h1,
  .character-catalog-card-copy h2, .character-featured-copy h2, .character-detail-dossier h2,
  .community-leaderboard__head h2, .leaderboard-hero h1, .leaderboard-board-head h2,
  .auth-card h1, .auth-box h2) { color: var(--mt-heading); text-shadow: none; }
html.media-public-themed :is(.card .type, .project-sidebar-heading span, .project-slide-copy-heading > span,
  .project-card-action, .project-card-reactions, .community-work-card-type, .community-activity__source,
  .community-work-read-more, .character-detail-back) { color: var(--mt-accent); }
html.media-public-themed :is(.game-showcase-excerpt, .game-showcase-description, .project-slide-body,
  .project-feed-heading > p, .project-story-copy p, .community-work-feed-card-excerpt,
  .community-work-dialog-text, .community-work-comment-body, .community-work-comment > p,
  .project-review p, .game-comment p, .community-activity__body, .character-detail-summary p,
  .character-featured-lead) { color: var(--mt-text); }
html.media-public-themed :is(.project-switcher small, .project-slide-copy-heading small, .project-arc-nav > p,
  .project-inline-status, .game-comment-status, .game-reaction-status, .game-comments-empty,
  .community-work-feed-card-head time, .community-work-comment time, .community-work-dialog-meta time,
  .community-work-author-names small, .community-work-comments-empty, .community-activity__meta time,
  .community-activity__status, .work-composer-copy, .works-status, .works-hero p:last-child,
  .character-catalog-meta, .characters-catalog-status, .character-detail-byline,
  .auth-box .back-link, .auth-card .back-link) { color: var(--mt-muted); }
html.media-public-themed :is(.card .managed-content-link, .managed-content-link, .project-arc-card,
  .project-switcher a, .project-chapter-arrow, .project-chapter-empty, .game-comments,
  .project-review, .game-comment, .community-work-comment, .community-work-feed-card-footer,
  .community-work-placeholder, .character-media, .character-media-placeholder,
  .work-type-picker span, .work-upload, .work-deletion-status-card,
  .character-catalog-tags span, .character-detail-facts > div) {
  color: var(--mt-text); background: var(--mt-surface-2); border-color: var(--mt-border);
}
html.media-public-themed :is(.project-switcher a.active, .project-arc-card.active, .project-review.is-own) {
  color: var(--mt-text); background: var(--mt-selection); border-color: var(--mt-accent);
}
html.media-public-themed :is(.project-slide-copy, .project-slide-copy-heading, .project-sidebar-heading,
  .project-feed-heading, .community-activity__head, .community-activity__item,
  .community-work-feed-card-footer, .community-work-comments) { border-color: var(--mt-border); }
html.media-public-themed :is(.project-review strong, .game-comment b, .community-work-author-names strong,
  .community-work-comment-author strong, .community-activity__meta strong) { color: var(--mt-text); }
html.media-public-themed .community-activity__head { background: var(--mt-surface-2); }
html.media-public-themed .community-activity__item:hover { background: var(--mt-selection); }
html.media-public-themed :is(.community-leaderboard__head, .community-leaderboard__status,
  .leaderboard-row, .community-leaderboard .leaderboard-row) {
  color: var(--mt-text); background: var(--mt-surface-2); border-color: var(--mt-border);
}
html.media-public-themed .leaderboard-identity strong { color: var(--mt-text); }
html.media-public-themed :is(.leaderboard-username, .community-leaderboard .leaderboard-username,
  .leaderboard-title, .community-leaderboard .leaderboard-identity .leaderboard-title) { color: var(--mt-muted); }
html.media-public-themed :is(.community-leaderboard__head a, .community-leaderboard .leaderboard-row .leaderboard-xp) {
  color: var(--mt-accent); background: var(--mt-selection); border-color: var(--mt-border);
}
html.media-public-themed .community-leaderboard::before { opacity: .08; }
html.media-public-themed :is(.community-activity__kind, .community-activity__scope) {
  color: var(--mt-accent); background: var(--mt-surface-2); border-color: var(--mt-border);
}
html.media-public-themed .home-game-card > img { border-color: var(--mt-border); background: var(--mt-surface); box-shadow: var(--mt-shadow); }
html.media-public-themed .game-showcase-feature { background: var(--mt-border); }
html.media-public-themed :is(.game-showcase-cover, .game-showcase-launch:not(.game-showcase-launch-image)) { background: var(--mt-surface-2); }
html.media-public-themed .game-showcase-launch:not(.game-showcase-launch-image) :is(strong, span, em) { color: var(--mt-heading); text-shadow: none; }
html.media-public-themed :is(.news-card-overlay h3, .news-card-overlay em, .news-card-overlay small,
  .project-chapter-card-copy strong, .project-chapter-card-copy > span) { color: var(--mt-on-image, #fff); }

/* Only named action components receive fills, never every button. */
html.media-public-themed :is(a.button, button.button, .work-submit, .works-create-button, .auth-box button[type="submit"]) {
  color: var(--mt-accent-ink); background: var(--mt-accent); border-color: var(--mt-accent);
  border-radius: min(12px, var(--mh-radius, var(--mt-radius))); box-shadow: none; text-shadow: none;
}
html.media-public-themed :is(.button.secondary, .project-reaction-button, .works-filters button,
  .game-reactions button,
  .works-mine-filter, .community-work-feed-card-footer button, .community-work-dialog-actions button,
  .comment-like-button) { color: var(--mt-text); background: var(--mt-surface-2); border-color: var(--mt-border); }
html.media-public-themed :is(.project-reaction-button.active, .game-reactions button.active, .works-filters button.active,
  .works-mine-filter.active, .work-type-picker input:checked + span,
  .comment-like-button[aria-pressed="true"], .community-work-feed-card-footer button.active) {
  color: var(--mt-accent-ink); background: var(--mt-accent); border-color: var(--mt-accent); box-shadow: none;
}
html.media-public-themed :is(input[type="text"], input[type="email"], input[type="password"],
  input[type="search"], input[type="number"], input[type="url"], input:not([type]), textarea, select) {
  color: var(--mt-text); background: var(--mt-input); border-color: var(--mt-border); color-scheme: inherit;
}
html.media-public-themed :is(input, textarea)::placeholder { color: var(--mt-muted); opacity: 1; }
html.media-public-themed :is(.project-review-form label, .work-form-field > span, .work-type-picker legend, .auth-card label) { color: var(--mt-text); }
html.media-public-themed :is(input, textarea, select):focus { outline-color: var(--mt-accent); border-color: var(--mt-accent); box-shadow: 0 0 0 3px var(--mt-selection); }
html.media-public-themed .auth-message.is-success { color: var(--mt-success); background: var(--mt-success-bg); border-color: var(--mt-success); }
html.media-public-themed .auth-message.is-error { color: var(--mt-error); background: var(--mt-error-bg); border-color: var(--mt-error); }
html.media-public-themed .guest-entry .guest-error { color: var(--mt-error); }

/* Reading and comment dialogs use opaque surfaces so light themes stay legible. */
html.media-public-themed :is(.news-dialog, .project-dialog, .community-work-dialog,
  .community-work-dialog-card, .community-work-dialog-body, .project-dialog-head,
  .project-dialog-content, .project-dialog-community, .news-dialog-card, .news-dialog-body,
  .project-chapter-dialog, .project-chapter-dialog-head, .project-chapter-dialog-content) {
  color: var(--mt-text); background: var(--mt-surface); border-color: var(--mt-border);
}
html.media-public-themed :is(.news-dialog, .project-dialog, .community-work-dialog, .project-chapter-dialog) { border-radius: var(--mh-radius, var(--mt-radius)); box-shadow: var(--mt-shadow); }
html.media-public-themed :is(.news-dialog h2, .project-dialog h2, .community-work-dialog h2,
  .project-chapter-dialog h2, .project-dialog-comments h3) { color: var(--mt-heading); }
html.media-public-themed :is(.news-dialog-content, .news-dialog-excerpt, .project-dialog-text,
  .project-dialog-comment p) { color: var(--mt-text); }
html.media-public-themed :is(.news-dialog-close, .project-dialog-close, .community-work-dialog-close,
  .work-composer-close, .news-dialog-meta span) { color: var(--mt-text); background: var(--mt-surface-2); border-color: var(--mt-border); }
html.media-public-themed :is(.project-dialog-pages, .project-dialog-pages figure, .project-dialog-comment,
  .project-chapter-dialog-head button, .project-page-bookmark) {
  color: var(--mt-text); background: var(--mt-surface-2); border-color: var(--mt-border);
}
html.media-public-themed .project-dialog-comments { border-color: var(--mt-border); }
html.media-public-themed :is(.project-dialog-comments, .project-dialog-pages) { scrollbar-color: var(--mt-accent) var(--mt-bg); }
html.media-public-themed :is(.project-dialog-pages figcaption, .project-dialog-comment-status,
  .project-chapter-community-summary span, .project-dialog-empty) { color: var(--mt-muted); }
html.media-public-themed .project-dialog-comment header { color: var(--mt-accent); }
html.media-public-themed :is(.project-chapter-community-summary button.active, .project-page-bookmark.active) {
  color: var(--mt-accent-ink); background: var(--mt-accent); border-color: var(--mt-accent);
}

/* Public team/about pages keep their illustrations; ordinary copy follows the palette. */
html.media-public-themed :is(.about-kicker, .about-section-label, .team-kicker) { color: var(--mt-accent); text-shadow: none; }
html.media-public-themed :is(.about-hero__lead, .about-mission__text, .about-mission__quote,
  .about-timeline__item p, .team-hero__lead, .team-member__body > p:not(.team-member__index), .team-section-intro,
  .team-group-description, .team-group-copy > p:not(.team-kicker), .team-roster-card__summary,
  .character-detail-facts dd) { color: var(--mt-text); }
html.media-public-themed :is(.about-heading h2, .about-stat b, .about-timeline__item h3,
  .team-heading h2, .team-process__list strong, .team-member h3, .team-hero h1,
  .team-group-copy h1, .team-roster-card h2, .character-detail-facts dt) { color: var(--mt-heading); text-shadow: none; }
html.media-public-themed :is(.about-stat, .about-mission, .about-mission__quote, .team-member,
  .team-process__list li, .team-group-card, .team-group-hero, .team-roster-card) {
  color: var(--mt-text); background: var(--mt-surface); border-color: var(--mt-border);
}
html.media-public-themed :is(.team-roster-status, .team-roster-card__tags span) { color: var(--mt-muted); }
html.media-public-themed .team-roster-card__tags span { background: var(--mt-surface-2); border-color: var(--mt-border); }
html.media-public-themed :is(.team-group-copy .team-kicker, .team-group-count, .team-roster-card__owner,
  .team-roster-card__link) { color: var(--mt-accent); border-color: var(--mt-border); }
html.media-public-themed .team-hero h1 span { color: var(--mt-accent); background: none; filter: none; }
html.media-public-themed :is(.team-hero__signature, .team-member__cta) { color: var(--mt-muted); }
html.media-public-themed .team-member__links a { color: var(--mt-text); background: var(--mt-surface-2); border-color: var(--mt-border); }
html.media-public-themed .home-about {
  background: linear-gradient(90deg, var(--mt-surface) 0%, color-mix(in srgb, var(--mt-surface) 94%, transparent) 100%);
  border-color: var(--mt-border); box-shadow: var(--mt-shadow);
}
html.media-public-themed .home-about::after { border-color: var(--mt-border); }
html.media-public-themed .home-about :is(h2, h3) { color: var(--mt-heading); text-shadow: none; }
html.media-public-themed .home-about__description { color: var(--mt-text); }
html.media-public-themed :is(.home-about__kicker, .home-about__tags) { color: var(--mt-accent); }

html.media-public-themed .footer { background: var(--mt-surface); border-color: var(--mt-border); color: var(--mt-text); }
html.media-public-themed .footer-grid :is(p, small, a:not(.brand)) { color: var(--mt-muted); }
html.media-public-themed .footer-grid a:hover { color: var(--mt-accent); }
html.media-public-themed .footer .brand { color: var(--mt-heading); text-shadow: none; }

/* Chat remains a separate interactive panel. No changes to its layout/state. */
html.media-public-themed :is(.community-chat, .community-chat--v2) { background: var(--mt-surface); color: var(--mt-text); border-color: var(--mt-border); box-shadow: var(--mt-shadow); }
html.media-public-themed .community-chat::before { opacity: .06; }
html.media-public-themed .community-chat :is(.community-chat__head, .community-chat__threads, .community-chat__form, .community-chat__locked) { background: var(--mt-surface-2); border-color: var(--mt-border); }
html.media-public-themed .community-chat :is(.community-chat__head h3, .community-chat__meta strong, .community-chat__message p) { color: var(--mt-text); }
html.media-public-themed .community-chat :is(.community-chat__empty, .community-chat__meta time, .community-chat__send > span, .community-chat__locked p) { color: var(--mt-muted); }
html.media-public-themed .community-chat :is(.community-chat__thread, .community-chat__thread-shell, .community-chat__close) { color: var(--mt-text); background: var(--mt-surface-2); border-color: var(--mt-border); }
html.media-public-themed .community-chat .community-chat__threads > .community-chat__thread:first-child { color: var(--mt-accent); background: var(--mt-surface-2); border-color: var(--mt-border); }
html.media-public-themed .community-chat .community-chat__thread-shell[data-active="true"] { color: var(--mt-accent-ink); background: var(--mt-accent); border-color: var(--mt-accent); box-shadow: none; }
html.media-public-themed .community-chat .community-chat__thread-shell[data-active="true"] .community-chat__thread { color: inherit; background: transparent; }
html.media-public-themed .community-chat__connection[data-state="online"] { color: var(--mt-success); }
html.media-public-themed .community-chat__connection[data-state="reconnecting"] { color: var(--mt-error); }
html.media-public-themed .community-chat__connection[data-state="locked"] { color: var(--mt-warning); }

/* The scenic worlds carry their metal/crystal finish into real controls.
   Only surfaces are decorated; uploaded artwork and feed geometry stay intact. */
html.media-public-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .site-header > .brand {
  font-weight:900;
  letter-spacing:.055em;
}
html.media-public-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .site-header .brand-logo {
  filter:drop-shadow(0 2px 2px #0008);
}
html.media-public-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) :is(.card,.community-work-feed-card,.character-catalog-card,.character-featured-card,.character-detail-dossier,.auth-card) {
  box-shadow:0 12px 26px #0005,inset 0 1px color-mix(in srgb,var(--mt-heading) 8%,transparent);
}
html.media-public-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .site-header :is(.site-games-link,.site-app-launch,.media-theme-public-trigger,.menu-button) {
  background:linear-gradient(150deg,color-mix(in srgb,var(--mt-heading) 6%,var(--mt-surface-2)),var(--mt-surface-2));
  box-shadow:inset 0 1px color-mix(in srgb,var(--mt-heading) 16%,transparent);
}
html.media-public-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .header.site-header > .chat-launch {
  box-shadow:inset 0 1px #ffffff38,0 4px 12px #0003;
}

@media (max-width: 1280px) {
  html.media-public-themed .header.site-header {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    gap: 7px;
    padding-inline: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html.media-public-themed .header.site-header > .brand { grid-column: 1; }
  html.media-public-themed .header.site-header > .site-games-link { grid-column: 2; }
  html.media-public-themed .header.site-header > .media-theme-public-trigger { grid-column: 3; }
  html.media-public-themed .header.site-header > .chat-launch { grid-column: 4; }
  html.media-public-themed .header.site-header > .menu-button { grid-column: 5; grid-row: 1; display: grid; place-items: center; width: 44px; }
  html.media-public-themed .header.site-header.site-header--app { grid-template-columns: minmax(0, 1fr) repeat(5, auto); }
  html.media-public-themed .header.site-header.site-header--app > .site-app-launch { grid-column: 5; }
  html.media-public-themed .header.site-header.site-header--app > .menu-button { grid-column: 6; }
  html.media-public-themed .header.site-header:not(:has(> .site-games-link)) { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  html.media-public-themed .header.site-header:not(:has(> .site-games-link)) > .media-theme-public-trigger { grid-column: 2; }
  html.media-public-themed .header.site-header:not(:has(> .site-games-link)) > .chat-launch { grid-column: 3; }
  html.media-public-themed .header.site-header:not(:has(> .site-games-link)) > .menu-button { grid-column: 4; }
  html.media-public-themed .header.site-header > .nav { background: var(--mt-bg); border: 0; border-radius: 0; }
  html.media-public-themed .site-header .nav::before { color: var(--mt-muted); }
}
html.media-public-themed:is([data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) body:not(.home-page)::after {
  background-image:linear-gradient(color-mix(in srgb,var(--mt-bg) 78%,transparent),color-mix(in srgb,var(--mt-bg) 94%,transparent)),var(--mt-backdrop);
}
@media (max-width: 900px) {
  html.media-public-themed:is([data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) body:not(.home-page)::after {
    background-image:linear-gradient(color-mix(in srgb,var(--mt-bg) 64%,transparent),var(--mt-bg) min(165vw,1600px)),var(--mt-backdrop);
    background-size:100% 100%,100% auto;background-position:center top;background-repeat:no-repeat;
  }
}
@media (max-width: 600px) {
  html.media-public-themed .site-header :is(.media-theme-public-trigger, .site-games-link, .site-app-launch) { width: 44px; min-width: 44px; padding: 0; }
  html.media-public-themed .site-header .site-app-launch { font-size: 10px; letter-spacing: 0; }
  html.media-public-themed .site-header .media-theme-public-trigger > span { display: none; }
  html.media-public-themed .site-header .site-games-link > span {
    display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  html.media-public-themed .site-header .brand { font-size: 1.1rem; }
}
@media (max-width: 400px) {
  html.media-public-themed .header.site-header,
  html.media-public-themed .header.site-header.site-header--app { gap: 4px; padding-inline: 8px; }
  html.media-public-themed .site-header .brand { gap: 5px; font-size: 1rem; letter-spacing: .02em; }
  html.media-public-themed .site-header .brand-logo { width: 26px; height: 24px; }
  html.media-public-themed .header.site-header > .chat-launch { min-width: 44px; padding-inline: 6px; font-size: .65rem; letter-spacing: .02em; }
}
@media (max-width: 360px) {
  html.media-public-themed .header.site-header.site-header--app { gap: 3px; padding-inline: 6px; }
  html.media-public-themed .header.site-header.site-header--app > .brand { gap: 4px; font-size: .85rem; letter-spacing: 0; }
  html.media-public-themed .header.site-header.site-header--app .brand-logo { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html.media-public-themed .header.site-header::after,
  html.media-public-themed .header.site-header .chat-launch::before { animation: none; }
}



