@font-face{font-family:"Comic Code";src:url("/assets/fonts/ComicCode-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Comic Code";src:url("/assets/fonts/ComicCode-Italic.otf") format("opentype");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Comic Code";src:url("/assets/fonts/ComicCode-Medium.otf") format("opentype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Comic Code";src:url("/assets/fonts/ComicCode-MediumItalic.otf") format("opentype");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Comic Code";src:url("/assets/fonts/ComicCode-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Comic Code";src:url("/assets/fonts/ComicCode-BoldItalic.otf") format("opentype");font-weight:700;font-style:italic;font-display:swap}
@font-face{font-family:"Comic Code Ligatures";src:url("/assets/fonts/ComicCodeLigatures-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Comic Code Ligatures";src:url("/assets/fonts/ComicCodeLigatures-Italic.otf") format("opentype");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Comic Code Ligatures";src:url("/assets/fonts/ComicCodeLigatures-Medium.otf") format("opentype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Comic Code Ligatures";src:url("/assets/fonts/ComicCodeLigatures-MediumItalic.otf") format("opentype");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Comic Code Ligatures";src:url("/assets/fonts/ComicCodeLigatures-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Comic Code Ligatures";src:url("/assets/fonts/ComicCodeLigatures-BoldItalic.otf") format("opentype");font-weight:700;font-style:italic;font-display:swap}
gitea-theme-meta-info {
  --theme-display-name: "Darkbox Retro";
  --theme-color-scheme: "dark";
}

:root {
  --is-dark-theme: true;
  --color-primary: #458588;
  --color-primary-contrast: #ebdbb2;
  --color-primary-dark-1: #4d9599;
  --color-primary-dark-2: #56a5a9;
  --color-primary-dark-3: #66aeb2;
  --color-primary-dark-4: #77b7ba;
  --color-primary-dark-5: #98c8ca;
  --color-primary-dark-6: #b9dadb;
  --color-primary-dark-7: #ebdbb2;
  --color-primary-light-1: #3c7477;
  --color-primary-light-2: #336365;
  --color-primary-light-3: #2a5254;
  --color-primary-light-4: #224142;
  --color-primary-light-5: #102021;
  --color-primary-light-6: #000000;
  --color-primary-light-7: #000000;
  --color-primary-alpha-10: #45858819;
  --color-primary-alpha-20: #45858833;
  --color-primary-alpha-30: #4585884b;
  --color-primary-alpha-40: #45858866;
  --color-primary-alpha-50: #45858880;
  --color-primary-alpha-60: #45858899;
  --color-primary-alpha-70: #458588b3;
  --color-primary-alpha-80: #458588cc;
  --color-primary-alpha-90: #458588e1;
  --color-primary-hover: var(--color-primary-light-1);
  --color-primary-active: var(--color-primary-light-2);
  --color-secondary: #504945;
  --color-secondary-dark-1: #504945;
  --color-secondary-dark-2: #665c54;
  --color-secondary-dark-3: #665c54;
  --color-secondary-dark-4: #7c6f64;
  --color-secondary-dark-5: #928374;
  --color-secondary-dark-6: #a89984;
  --color-secondary-dark-7: #a89984;
  --color-secondary-dark-8: #bdae93;
  --color-secondary-dark-9: #d5c4a1;
  --color-secondary-dark-10: #d5c4a1;
  --color-secondary-dark-11: #ebdbb2;
  --color-secondary-dark-12: #ebdbb2;
  --color-secondary-dark-13: #ebdbb2;
  --color-secondary-light-1: #3c3836;
  --color-secondary-light-2: #3c3836;
  --color-secondary-light-3: #3c3836;
  --color-secondary-light-4: #000000;
  --color-secondary-alpha-10: #50494519;
  --color-secondary-alpha-20: #50494533;
  --color-secondary-alpha-30: #5049454b;
  --color-secondary-alpha-40: #50494566;
  --color-secondary-alpha-50: #50494580;
  --color-secondary-alpha-60: #50494599;
  --color-secondary-alpha-70: #504945b3;
  --color-secondary-alpha-80: #504945cc;
  --color-secondary-alpha-90: #504945e1;
  --color-secondary-button: var(--color-secondary-dark-4);
  --color-secondary-hover: var(--color-secondary-dark-3);
  --color-secondary-active: var(--color-secondary-dark-2);
  /* console colors - used for actions console and console files */
  --color-console-fg: #ebdbb2;
  --color-console-fg-subtle: #d5c4a1;
  --color-console-bg: #000000;
  --color-console-border: #3c3836;
  --color-console-hover-bg: #3c3836;
  --color-console-active-bg: #3c3836;
  --color-console-menu-bg: #3c3836;
  --color-console-menu-border: #504945;
  --color-console-link: #a89984;
  /* named colors */
  --color-red: #cc241d;
  --color-orange: #d65d0e;
  --color-yellow: #d79921;
  --color-olive: #d79921;
  --color-green: #98971a;
  --color-teal: #689d6a;
  --color-blue: #458588;
  --color-violet: #b16286;
  --color-purple: #b16286;
  --color-pink: #b16286;
  --color-brown: #d65d0e;
  --color-black: #3c3836;
  /* light variants - produced via Sass scale-color(color, $lightness: +10%) */
  --color-red-light: #df2821;
  --color-orange-light: #f6a672;
  --color-yellow-light: #e0a636;
  --color-olive-light: #e0a738;
  --color-green-light: #acab1e;
  --color-teal-light: #7eac80;
  --color-blue-light: #4e9699;
  --color-violet-light: #b76e8f;
  --color-purple-light: #b87191;
  --color-pink-light: #ba7393;
  --color-brown-light: #ef6810;
  --color-black-light: #504945;
  /* dark 1 variants - produced via Sass scale-color(color, $lightness: -10%) */
  --color-red-dark-1: #b3201a;
  --color-orange-dark-1: #f38842;
  --color-yellow-dark-1: #c68d1e;
  --color-olive-dark-1: #c78e1f;
  --color-green-dark-1: #818016;
  --color-teal-dark-1: #619663;
  --color-blue-dark-1: #3d7577;
  --color-violet-dark-1: #a15075;
  --color-purple-dark-1: #a45177;
  --color-pink-dark-1: #a75379;
  --color-brown-dark-1: #bf530d;
  --color-black-dark-1: #3c3836;
  /* dark 2 variants - produced via Sass scale-color(color, $lightness: -20%) */
  --color-red-dark-2: #9c1c16;
  --color-orange-dark-2: #f17423;
  --color-yellow-dark-2: #b37f1b;
  --color-olive-dark-2: #b7821c;
  --color-green-dark-2: #6a6912;
  --color-teal-dark-2: #5b8d5d;
  --color-blue-dark-2: #346466;
  --color-violet-dark-2: #8c4565;
  --color-purple-dark-2: #904768;
  --color-pink-dark-2: #964a6d;
  --color-brown-dark-2: #a8490b;
  --color-black-dark-2: #3c3836;
  /* ansi colors used for actions console and console files */
  --color-ansi-black: #3c3836;
  --color-ansi-red: #928374;
  --color-ansi-green: #928374;
  --color-ansi-yellow: #7c6f64;
  --color-ansi-blue: #928374;
  --color-ansi-magenta: #928374;
  --color-ansi-cyan: #504945;
  --color-ansi-white: var(--color-console-fg-subtle);
  --color-ansi-bright-black: #504945;
  --color-ansi-bright-red: #a89984;
  --color-ansi-bright-green: #a89984;
  --color-ansi-bright-yellow: #7c6f64;
  --color-ansi-bright-blue: #a89984;
  --color-ansi-bright-magenta: #a89984;
  --color-ansi-bright-cyan: #665c54;
  --color-ansi-bright-white: var(--color-console-fg);
  /* other colors */
  --color-grey: #3c3836;
  --color-grey-light: #a89984;
  --color-gold: #d79921;
  --color-white: #ebdbb2;
  --color-diff-added-fg: #928374;
  --color-diff-added-linenum-bg: #3c3836;
  --color-diff-added-row-bg: #040401;
  --color-diff-added-row-border: #272707;
  --color-diff-added-word-bg: #48470c;
  --color-diff-moved-row-bg: #665c54;
  --color-diff-moved-row-border: #a89984;
  --color-diff-removed-fg: #928374;
  --color-diff-removed-linenum-bg: #3c3836;
  --color-diff-removed-row-bg: #310907;
  --color-diff-removed-row-border: #7e1612;
  --color-diff-removed-word-bg: #7b1611;
  --color-diff-inactive: #3c3836;
  --color-error-border: #801712;
  --color-error-bg: #360a08;
  --color-error-bg-active: #4e0e0b;
  --color-error-bg-hover: #410b09;
  --color-error-text: var(--color-text);
  --color-success-border: #252406;
  --color-success-bg: #020200;
  --color-success-text: var(--color-text);
  --color-warning-border: #63460f;
  --color-warning-bg: #422f0a;
  --color-warning-text: var(--color-text);
  --color-info-border: #26494b;
  --color-info-bg: #0c1717;
  --color-info-text: var(--color-text);
  --color-red-badge: #bd211b;
  --color-red-badge-bg: #bd211b1a;
  --color-red-badge-hover-bg: #bd211b4d;
  --color-green-badge: #6c6c13;
  --color-green-badge-bg: #6c6c131a;
  --color-green-badge-hover-bg: #6c6c134d;
  --color-yellow-badge: #e3af49;
  --color-yellow-badge-bg: #e3af491a;
  --color-yellow-badge-hover-bg: #e3af494d;
  --color-orange-badge: #f17829;
  --color-orange-badge-bg: #f178291a;
  --color-orange-badge-hover-bg: #f178294d;
  --color-git: #a89984;
  --color-logo: #665c54;
  /* target-based colors */
  --color-body: #3c3836;
  --color-box-header: #000000;
  --color-box-body: #000000;
  --color-box-body-highlight: #3c3836;
  --color-text-dark: #ebdbb2;
  --color-text: #ebdbb2;
  --color-text-light: #d5c4a1;
  --color-text-light-1: #bdae93;
  --color-text-light-2: #a89984;
  --color-text-light-3: #928374;
  --color-footer: var(--color-nav-bg);
  --color-timeline: #3c3836;
  --color-input-text: var(--color-text-dark);
  --color-input-background: #000000;
  --color-input-toggle-background: #3c3836;
  --color-input-border: var(--color-secondary-dark-1);
  --color-light: #00000028;
  --color-light-border: #ebdbb228;
  --color-hover: #ebdbb219;
  --color-hover-opaque: #232528; /* TODO: color-mix(in srgb, var(--color-body), var(--color-hover)); */
  --color-active: #ebdbb224;
  --color-menu: #000000;
  --color-card: #000000;
  --color-markup-table-row: #ebdbb20f;
  --color-markup-code-block: #ebdbb212;
  --color-markup-code-inline: #ebdbb228;
  --color-button: #000000;
  --color-code-bg: #000000;
  --color-shadow: #00000058;
  --color-shadow-opaque: #000000;
  --color-secondary-bg: #3c3836;
  --color-expand-button: #3c3836;
  --color-placeholder-text: var(--color-text-light-3);
  --color-editor-line-highlight: var(--color-secondary-alpha-40);
  --color-editor-selection: var(--color-primary-alpha-50);
  --color-project-column-bg: var(--color-secondary-light-2);
  --color-caret: var(--color-text); /* should ideally be --color-text-dark, see #15651 */
  --color-reaction-bg: #ebdbb212;
  --color-reaction-hover-bg: var(--color-primary-light-4);
  --color-reaction-active-bg: var(--color-primary-light-5);
  --color-tooltip-text: #ebdbb2;
  --color-tooltip-bg: #000000f0;
  --color-nav-bg: #000000;
  --color-nav-hover-bg: var(--color-secondary-light-1);
  --color-nav-text: var(--color-text);
  --color-secondary-nav-bg: #000000;
  --color-label-text: var(--color-text);
  --color-label-bg: #9283744b;
  --color-label-hover-bg: #928374a0;
  --color-label-active-bg: #928374ff;
  --color-accent: var(--color-primary-light-1);
  --color-small-accent: var(--color-primary-light-5);
  --color-highlight-fg: #504945;
  --color-highlight-bg: #3c3836;
  --color-overlay-backdrop: #000000c0;
  --color-danger: var(--color-red);
  --color-transparency-grid-light: #3c3836;
  --color-transparency-grid-dark: #000000;
  --color-workflow-edge-hover: #7c6f64;
  --color-syntax-keyword: #bdae93;
  --color-syntax-bool: #7c6f64;
  --color-syntax-control: #928374;
  --color-syntax-name: #7c6f64;
  --color-syntax-type: #d5c4a1;
  --color-syntax-number: #bdae93;
  --color-syntax-operator: #bdae93;
  --color-syntax-regexp: #d5c4a1;
  --color-syntax-string: #7c6f64;
  --color-syntax-comment: #a89984;
  --color-syntax-invalid: #d5c4a1;
  --color-syntax-link: var(--color-primary);
  --color-syntax-tag: #bdae93;
  --color-syntax-attribute: #ebdbb2;
  --color-syntax-property: #bdae93;
  --color-syntax-variable: #928374;
  --color-syntax-string-special: #928374;
  --color-syntax-escape: #7c6f64;
  --color-syntax-entity: #ebdbb2;
  --color-syntax-preproc: #928374;
  --color-syntax-preproc-file: #bdae93;
  --color-syntax-decorator: #928374;
  --color-syntax-namespace: #ebdbb2;
  --color-syntax-name-pseudo: #ebdbb2;
  --color-syntax-comment-special: #d5c4a1;
  --color-syntax-text: #ebdbb2;
  --color-syntax-text-alt: #d5c4a1;
  --color-syntax-punctuation: #ebdbb2;
  --color-syntax-whitespace: #928374;
  --color-syntax-diff-fg: #ebdbb2;
  --color-syntax-deleted-bg: #504945;
  --color-syntax-inserted-bg: #504945;
  --color-syntax-emph: #928374;
  --color-syntax-strong: #928374;
  --color-syntax-heading: #928374;
  --color-syntax-subheading: #7c6f64;
  --color-syntax-output: #a89984;
  --color-syntax-prompt: #928374;
  --color-syntax-traceback: #d5c4a1;
  --color-syntax-matching-bracket-bg: #50494548;
  --color-syntax-nonmatching-bracket-bg: #92837448;
  accent-color: var(--color-accent);
  color-scheme: dark;
}

/* invert emojis that are hard to read otherwise */
.emoji[aria-label="check mark"],
.emoji[aria-label="currency exchange"],
.emoji[aria-label="TOP arrow"],
.emoji[aria-label="END arrow"],
.emoji[aria-label="ON! arrow"],
.emoji[aria-label="SOON arrow"],
.emoji[aria-label="heavy dollar sign"],
.emoji[aria-label="copyright"],
.emoji[aria-label="registered"],
.emoji[aria-label="trade mark"],
.emoji[aria-label="multiply"],
.emoji[aria-label="plus"],
.emoji[aria-label="minus"],
.emoji[aria-label="divide"],
.emoji[aria-label="curly loop"],
.emoji[aria-label="double curly loop"],
.emoji[aria-label="wavy dash"],
.emoji[aria-label="paw prints"],
.emoji[aria-label="musical note"],
.emoji[aria-label="musical notes"] {
  filter: invert(100%) hue-rotate(180deg);
}

:root {
  --fonts-regular: "Comic Code", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --fonts-monospace: "Comic Code Ligatures", "Comic Code", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* backgrounds: pure black for pages, cards, code blocks */
  --color-body: #000000;
  --color-menu: #000000;
  --color-nav-bg: #000000;
  --color-navbar: #000000;
  --color-header-wrapper: #000000;
  --color-footer: #000000;
  --color-box-body: #000000;
  --color-box-body-highlight: #3c3836;
  --color-code-bg: #000000;
  --color-markup-code-block: #000000;
  --color-markup-code-inline: #3c3836;
  --color-markup-table-row: #3c3836;
  --color-secondary-bg: #3c3836;

  /* foregrounds */
  --color-text: #ebdbb2;
  --color-text-dark: #ebdbb2;
  --color-text-light: #d5c4a1;
  --color-text-light-1: #bdae93;
  --color-text-light-2: #a89984;
  --color-text-light-3: #928374;

  /* syntax / chroma — mapped to darkbox roles (roughly gruvbox semantics) */
  --color-syntax-text: #ebdbb2;
  --color-syntax-text-alt: #d5c4a1;
  --color-syntax-comment: #928374;
  --color-syntax-comment-special: #d79921;
  --color-syntax-preproc: #689d6a;
  --color-syntax-preproc-file: #98971a;
  --color-syntax-string: #98971a;
  --color-syntax-string-special: #d65d0e;
  --color-syntax-escape: #d65d0e;
  --color-syntax-regexp: #689d6a;
  --color-syntax-keyword: #cc241d;
  --color-syntax-bool: #b16286;
  --color-syntax-control: #689d6a;
  --color-syntax-type: #d79921;
  --color-syntax-number: #b16286;
  --color-syntax-name: #458588;
  --color-syntax-name-pseudo: #d65d0e;
  --color-syntax-namespace: #689d6a;
  --color-syntax-decorator: #689d6a;
  --color-syntax-attribute: #689d6a;
  --color-syntax-entity: #b16286;
  --color-syntax-variable: #ebdbb2;
  --color-syntax-tag: #458588;
  --color-syntax-operator: #d65d0e;
  --color-syntax-punctuation: #bdae93;
  --color-syntax-property: #458588;
  --color-syntax-link: #458588;
  --color-syntax-heading: #458588;
  --color-syntax-subheading: #689d6a;
  --color-syntax-strong: #d65d0e;
  --color-syntax-emph: #d65d0e;
  --color-syntax-output: #ebdbb2;
  --color-syntax-prompt: #458588;
  --color-syntax-invalid: #cc241d;
  --color-syntax-traceback: #cc241d;
  --color-syntax-whitespace: #3c3836;
  --color-syntax-diff-fg: #ebdbb2;
  --color-syntax-inserted-bg: #98971a33;
  --color-syntax-deleted-bg: #cc241d33;
  --color-syntax-matching-bracket-bg: #504945;
  --color-syntax-nonmatching-bracket-bg: #504945;
}

/* Specificity hack: :not(#_) never matches (no element has id="_") but
   contributes ID-level specificity, so the rule goes from (0,0,3) to
   (1,0,x) and wins over every Gitea class-stacked rule. Font stack is
   hardcoded (no var indirection) so nothing downstream can redefine it. */
html body:not(#_),
html body :not(#_),
html body :not(#_)::before,
html body :not(#_)::after {
  font-family: "Comic Code", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}
html body code:not(#_),
html body kbd:not(#_),
html body pre:not(#_),
html body samp:not(#_),
html body tt:not(#_),
html body .monospace:not(#_),
html body .monospace :not(#_),
html body .code-view:not(#_),
html body .code-view :not(#_),
html body .chroma:not(#_),
html body .chroma :not(#_),
html body [class*="font-mono"]:not(#_) {
  font-family: "Comic Code Ligatures", "Comic Code", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace !important;
}
