@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300..700&family=Space+Grotesk:wght@300..700&display=swap");

:root[data-palette] {
  --greed-color: #fff;
  --greed-theme-logo: url("./icons/greed%20assets/logo.png");
  --greed-theme-background: url("./icons/greed%20assets/bacground.gif");
  --font-sans: "Geo", "Iceland", system-ui, sans-serif;
  --font-display: "Geo", "Iceland", system-ui, sans-serif;
  --bg-base: #050505;
  --bg-deep: #000;
  --bg-veil: rgb(0 0 0 / 78%);
  --surface: #101010;
  --surface-raised: #191919;
  --surface-sunken: #080808;
  --surface-hover: #242424;
  --border: #303030;
  --border-strong: #777;
  --text: var(--greed-color, #fff) !important;
  --text-muted: #c4c4c4;
  --text-faint: #888;
  --greed-theme-accent: #fff;
  --accent-h: 0;
  --accent-s: 0%;
  --accent-l: 100%;
  --accent: color-mix(in srgb, var(--greed-color, #fff) 20%, var(--greed-theme-accent) 80%) !important;
  --accent-soft: color-mix(in srgb, var(--greed-theme-accent) 22%, #303030) !important;
  --accent-text: #050505 !important;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 35%);
  --shadow-md: 0 4px 14px rgb(0 0 0 / 45%);
  --shadow-lg: 0 18px 48px rgb(0 0 0 / 55%);
  --snow: rgb(255 255 255 / 28%);
  --snow-edge: rgb(255 255 255 / 18%);
  --danger: #dedede;
  --warn: #bdbdbd;
  --ok: var(--greed-color, #fff);
  color-scheme: dark;
}

:root[data-palette][data-greed-theme="singularity"] {
  --greed-theme-logo: url("./icons/greed%20assets/slogo.png");
  --greed-theme-background: none;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --greed-theme-accent: #8bdcff;
  --bg-base: #06101a;
  --bg-deep: #02080d;
  --surface: #0c1924;
  --surface-raised: #142635;
  --surface-sunken: #050d14;
  --surface-hover: #1a3447;
  --border: #24455a;
  --border-strong: #5783a1;
  --text-muted: #c1e0f0;
}

:root[data-palette][data-greed-theme="wrath"] {
  --greed-theme-logo: url("./icons/greed%20assets/wlogo.png");
  --greed-theme-background: none;
  --font-sans: "Ghastly Panic", fantasy;
  --font-display: "Ghastly Panic", fantasy;
  --greed-theme-accent: #ff4654;
  --bg-base: #100707;
  --bg-deep: #080303;
  --surface: #1b0d0e;
  --surface-raised: #2a1214;
  --surface-sunken: #0c0506;
  --surface-hover: #391719;
  --border: #512226;
  --border-strong: #9a454d;
  --text-muted: #d3b9bb;
}

:root[data-palette][data-greed-theme="honour"] {
  --greed-theme-logo: url("./icons/greed%20assets/honour.png");
  --greed-theme-background: none;
  --font-sans: "Roboto Condensed", sans-serif;
  --font-display: "Roboto Condensed", sans-serif;
  --greed-theme-accent: #806b50;
  --bg-base: #b7a688;
  --bg-deep: #88765d;
  --bg-veil: rgb(67 54 39 / 75%);
  --surface: #d2c2a8;
  --surface-raised: #ded0b8;
  --surface-sunken: #c2b090;
  --surface-hover: #cbbc9f;
  --border: #a18b6e;
  --border-strong: #806a50;
  --text: #352b20 !important;
  --text-muted: #5d4e3b;
  --text-faint: #74634c;
  --accent-text: #fff !important;
  --danger: #7c483f;
  color-scheme: light;
}

.greed-greed-brand {
  width: 60px;
  height: 60px;
  background-image: var(--greed-theme-logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.greed-greed-brand svg,
.greed-greed-item > svg {
  display: none;
}

.greed-greed-item::before {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  mix-blend-mode: screen;
}

.greed-greed-list > li:nth-child(1) > .greed-greed-item::before {
  background-image: url("./icons/greed%20assets/home.jpg");
}

.greed-greed-list > li:nth-child(2) > .greed-greed-item::before {
  background-image: url("./icons/greed%20assets/browser.jpg");
}

.greed-greed-list > li:nth-child(3) > .greed-greed-item::before {
  background-image: url("./icons/greed%20assets/apps.jpg");
}

.greed-greed-list > li:nth-child(7) > .greed-greed-item::before {
  background-image: url("./icons/greed%20assets/settings.jpg");
}

.greed-greed-list > li[hidden] {
  display: none !important;
}

.greed-greed-list::after {
  display: block;
  align-self: center;
  width: 48px;
  height: 84px;
  margin-top: var(--space-2);
  background: center / auto 100% no-repeat
    url("./icons/greed%20assets/border.png");
  content: "";
  opacity: 0.9;
}

.ax-address__menu-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ax-address__icon-btn[aria-label="Go back"] svg,
.ax-address__icon-btn[aria-label="Go forward"] svg,
.ax-address__icon-btn[aria-label="Reload"] svg,
.ax-address__icon-btn[aria-label="Stop loading"] svg,
.ax-address__icon-btn[aria-label="Home"] svg {
  display: none;
}

.ax-address__icon-btn[aria-label="Go back"]::before,
.ax-address__icon-btn[aria-label="Go forward"]::before,
.ax-address__icon-btn[aria-label="Reload"]::before,
.ax-address__icon-btn[aria-label="Stop loading"]::before,
.ax-address__icon-btn[aria-label="Home"]::before {
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  mix-blend-mode: screen;
}

.ax-address__icon-btn[aria-label="Go back"]::before {
  background-image: url("./icons/greed%20assets/return-button.jpg");
  background-size: 1200% 650%;
}

.ax-address__icon-btn[aria-label="Go forward"]::before {
  background-image: url("./icons/greed%20assets/back-button.jpg");
  background-size: 1200% 650%;
}

.ax-address__icon-btn[aria-label="Reload"]::before,
.ax-address__icon-btn[aria-label="Stop loading"]::before {
  background-image: url("./icons/greed%20assets/refresh.png");
  width: 28px;
  height: 28px;
  background-size: 600% 600%;
}

.ax-address__icon-btn[aria-label="Home"]::before {
  background-image: url("./icons/greed%20assets/home-browser-button.png");
}

.ax-workspace__empty {
  background-color: var(--bg-base);
  background-image:
    linear-gradient(rgb(0 0 0 / 48%), rgb(0 0 0 / 58%)),
    var(--greed-theme-background),
    url("./icons/greed%20assets/bacground.gif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--greed-color, #fff);
}

:root[data-palette][data-greed-theme="honour"] .ax-workspace__empty {
  background-color: var(--bg-base);
  background-image: radial-gradient(circle at 50% 30%, #dbcdb5, #a99474);
  color: var(--text);
}

.ax-workspace__empty::before,
.ax-frame:has(> .ax-frame__view[title="Browser tab"]:not([src]))::after {
  color: var(--greed-color, #fff);
  content: "Greed Unblocker";
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 4px 28px rgb(0 0 0 / 75%);
}

:root[data-palette][data-greed-theme="honour"] .ax-workspace__empty::before {
  color: var(--text);
  text-shadow: 0 2px 8px rgb(57 44 29 / 24%);
}

.ax-workspace__empty p {
  display: none;
}

.ax-frame:has(> .ax-frame__view[title="Browser tab"]:not([src])) > .ax-frame__view {
  opacity: 0;
  pointer-events: none;
}

.ax-frame:has(> .ax-frame__view[title="Browser tab"]:not([src]))::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background-color: var(--bg-base);
  background-image:
    linear-gradient(rgb(0 0 0 / 48%), rgb(0 0 0 / 58%)),
    var(--greed-theme-background),
    url("./icons/greed%20assets/bacground.gif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

:root[data-palette][data-greed-theme]
  .ax-frame:has(> .ax-frame__view[title="Browser tab"]:not([src])) {
  isolation: isolate;
}

:root[data-palette][data-greed-theme]
  .ax-frame:has(> .ax-frame__view[title="Browser tab"]:not([src]))::after {
  background-color: transparent;
  background-image: none;
}

:root[data-palette][data-greed-theme="honour"]
  .ax-frame:has(> .ax-frame__view[title="Browser tab"]:not([src]))::after {
  color: var(--text);
  background-color: transparent;
  background-image: linear-gradient(rgb(67 54 39 / 20%), rgb(67 54 39 / 30%));
  text-shadow: 0 2px 8px rgb(57 44 29 / 24%);
}

.chat-surface {
  display: none !important;
}

.app-card-icon {
  width: 96px;
  height: 96px;
}

.app-card-img {
  box-sizing: border-box;
  padding: 5px;
  object-fit: contain;
}

a[href*="discord."],
a[href*="tiktok.com"],
.omni-discord {
  display: none !important;
}

.home {
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bento {
  width: min(760px, calc(100vw - 40px), calc(100vh - 40px));
  max-width: none;
  aspect-ratio: 1;
  display: block;
}

.bento-links,
.bento-arcade,
.bento-cloak,
.bento-omni > .recent {
  display: none !important;
}

.bento-omni {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border-color: rgb(255 255 255 / 28%);
  border-radius: 24px;
  padding: clamp(22px, 6vw, 52px);
  background-color: var(--bg-base);
  background-image:
    linear-gradient(rgb(0 0 0 / 58%), rgb(0 0 0 / 64%)),
    var(--greed-theme-background),
    url("./icons/greed%20assets/bacground.gif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 24px 80px rgb(0 0 0 / 58%);
}

:root[data-palette][data-greed-theme] .bento-omni {
  background-image: none;
}

:root[data-palette][data-greed-theme="honour"] .bento-omni {
  background-image: none;
  box-shadow: 0 24px 80px rgb(57 44 29 / 30%);
}

.omni-main {
  width: 100%;
  align-items: center;
  gap: clamp(16px, 3.2vh, 30px);
}

.omni-top {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.wordmark {
  align-items: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.wordmark-mark {
  display: none;
}

.wordmark::before {
  display: block;
  order: 0;
  width: clamp(136px, 24vw, 208px);
  height: clamp(88px, 15.5vw, 132px);
  background-image: var(--greed-theme-logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  filter: drop-shadow(0 4px 18px rgb(255 255 255 / 30%));
}

.wordmark-text {
  order: 1;
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: 0.14em;
  text-transform: none;
  text-align: center;
}

@media (max-width: 767px) {
  .greed-greed-item {
    gap: 2px;
    padding: 4px 0;
  }

  .greed-greed-item::before {
    width: 30px;
    height: 30px;
  }
}

.omni-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: clamp(26px, 5vw, 38px);
}

.omni-clock::after {
  color: rgb(255 255 255 / 76%);
  content: attr(data-greed-date);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:root[data-palette][data-greed-theme="honour"] .omni-clock::after {
  color: var(--text-muted);
}

.search {
  width: min(100%, 520px);
}

.search-field {
  min-height: 52px;
  border-color: rgb(255 255 255 / 32%);
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  backdrop-filter: blur(16px);
}

:root[data-palette][data-greed-theme="honour"] .search-field {
  border-color: var(--border-strong);
  background: rgb(244 234 216 / 90%);
}

.search-input {
  color: var(--greed-color, #fff);
}

:root[data-palette][data-greed-theme="honour"] .search-input {
  color: var(--text);
}

.search-input::placeholder {
  color: color-mix(in srgb, var(--greed-color, #fff) 68%, transparent);
}

:root[data-palette][data-greed-theme="honour"] .search-input::placeholder {
  color: var(--text-muted);
}

.search-hint {
  display: none;
}

.omni-motd {
  min-height: 1.5em;
  margin: 0;
  color: color-mix(in srgb, var(--greed-color, #fff) 82%, transparent);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

:root[data-palette][data-greed-theme="honour"] .omni-motd {
  color: var(--text-muted);
}

.omni-motd.is-changing {
  opacity: 0;
}

.settings-content__inner[data-greed-appearance]
  > :not(.settings-panel-head):not(.greed-theme-panel):not(.greed-color-panel) {
  display: none !important;
}

.greed-theme-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-5);
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgb(255 255 255 / 6%), transparent 48%),
    var(--surface);
}

.greed-theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.greed-theme-option {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--surface-sunken);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color var(--fx-fast) var(--fx-ease),
    background var(--fx-fast) var(--fx-ease);
}

.greed-theme-option[aria-pressed="true"] {
  border-color: var(--greed-color, #fff);
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--greed-color, #fff);
}

.greed-theme-option:hover,
.greed-theme-option:focus-visible {
  border-color: var(--border-strong);
}

.greed-theme-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.greed-theme-option__preview {
  position: relative;
  display: block;
  width: 100%;
  min-height: 92px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.greed-theme-option__background,
.greed-theme-option__logo {
  position: absolute;
  inset: 0;
  display: block;
}

.greed-theme-option__background {
  background-image:
    linear-gradient(rgb(0 0 0 / 42%), rgb(0 0 0 / 42%)),
    var(--greed-theme-option-background, none),
    url("./icons/greed%20assets/bacground.gif");
  background-position: center;
  background-size: cover;
}

:root[data-palette][data-greed-theme="honour"]
  .greed-theme-option[data-greed-theme-choice="honour"]
  .greed-theme-option__background {
  background-image: linear-gradient(145deg, #e1d3bb, #ab9473);
}

.greed-theme-option__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greed-theme-option__logo {
  inset: 12px;
  background-image: var(--greed-theme-option-logo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 65%));
}

.greed-theme-option__name {
  font-weight: 700;
}

.greed-theme-option__description {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.greed-theme-video {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

:root[data-palette][data-greed-theme="honour"] .greed-theme-video,
:root[data-palette][data-greed-theme="honour"]
  .greed-theme-option[data-greed-theme-choice="honour"]
  .greed-theme-option__background video {
  filter: sepia(0.35) saturate(0.82) brightness(1.05);
}

.ax-workspace__empty {
  position: relative;
  isolation: isolate;
}

:root[data-palette][data-greed-theme] .ax-workspace__empty {
  background-image: none;
}

.greed-color-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: var(--space-5);
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgb(255 255 255 / 6%), transparent 48%),
    var(--surface);
}

.greed-color-panel__heading {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.greed-color-panel__description {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.greed-color-panel__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}

.greed-color-panel__swatch {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: var(--greed-color, #fff);
  box-shadow: 0 0 24px color-mix(in srgb, var(--greed-color, #fff) 35%, transparent);
}

.greed-color-panel__value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.greed-color-channel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

.greed-color-channel__slider {
  width: 100%;
  accent-color: var(--greed-color, #fff);
}

.greed-color-channel__value {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-align: right;
}

.greed-color-panel__reset {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: background var(--fx-fast) var(--fx-ease);
}

.greed-color-panel__reset:hover {
  background: var(--surface-hover);
}

.greed-color-panel__error {
  margin: 0;
  color: var(--danger);
  font-size: var(--text-sm);
}

@media (max-width: 860px) {
  .home {
    align-items: center;
  }

  .bento {
    width: min(calc(100vw - 32px), calc(100vh - 32px));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .greed-theme-options {
    grid-template-columns: 1fr;
  }

  .greed-theme-option {
    grid-template-columns: minmax(88px, 0.6fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }

  .greed-theme-option__preview {
    grid-row: span 2;
  }

  .greed-greed-list > li {
    min-width: 0;
    flex: 1;
  }

  .greed-greed-item {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .greed-greed-label {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(7px, 2.2vw, 10px);
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .home {
    padding: 16px;
  }

  .bento {
    width: min(calc(100vw - 32px), calc(100vh - 32px));
  }

  .bento-omni {
    border-radius: 18px;
    padding: 20px;
  }
}

.greed-devtools {
  position: fixed;
  inset: 12px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: clamp(10px, 2vw, 18px);
  background:
    radial-gradient(circle at 100% 0, rgb(255 255 255 / 8%), transparent 48%),
    var(--bg-deep);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-family: var(--font-sans);
}

.greed-devtools[hidden] {
  display: none;
}

.greed-devtools__header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.greed-devtools__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.greed-devtools__header h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.greed-devtools__close,
.greed-devtools__retry,
.greed-devtools__action {
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0 12px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.greed-devtools__close {
  width: 36px;
  padding: 0;
  font-size: 1.3rem;
}

.greed-devtools__action {
  white-space: nowrap;
}

.greed-devtools__status {
  flex: none;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.greed-devtools__status:empty,
.greed-devtools__retry[hidden] {
  display: none;
}

.greed-devtools__eruda {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

#eruda .eruda-container.eruda-inline {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
}

#eruda .eruda-dev-tools {
  border: 0 !important;
  padding-top: 40px !important;
}

#eruda .eruda-tab {
  border-bottom: 1px solid var(--border) !important;
}

#eruda .eruda-tab .eruda-tab-item-active {
  color: var(--greed-color, #fff) !important;
}

#eruda .eruda-entry-btn {
  display: none !important;
}

.greed-devtools__close:focus-visible,
.greed-devtools__retry:focus-visible,
.greed-devtools__action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.greed-devtools__toggle {
  width: 38px;
  background-image: url("./icons/greed%20assets/dev-tools.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
  font-size: 0;
  mix-blend-mode: screen;
}

@media (max-width: 600px) {
  .greed-devtools {
    inset: 6px;
    gap: 8px;
    border-radius: 12px;
    padding: 9px;
  }

  .greed-devtools__header {
    align-items: flex-start;
  }

  .greed-devtools__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .greed-devtools__action {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

.wrath-context-menu {
  position: fixed;
  z-index: 10001;
  display: grid;
  width: min(240px, calc(100vw - 16px));
  max-height: min(70vh, 480px);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-family: var(--font-sans);
}

.wrath-context-menu[hidden] {
  display: none;
}

.wrath-context-menu__item {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.wrath-context-menu__item:hover,
.wrath-context-menu__item:focus-visible {
  outline: none;
  background: var(--surface-hover);
}

.wrath-context-menu__status {
  margin: 4px 8px;
  color: var(--danger);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.greed-games-panel {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(16px, 4vw, 36px);
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-sans);
}

.greed-games-panel[hidden] {
  display: none;
}

.greed-games-panel__content {
  display: flex;
  width: min(1200px, 100%);
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
}

.greed-games-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.greed-games-panel__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0.06em;
}

.greed-games-panel__back {
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.greed-games-panel__search {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.greed-games-panel__search:focus-visible,
.greed-games-panel__back:focus-visible,
.greed-games-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.greed-games-catalog {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 18px;
}

.greed-games-panel__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--text-muted);
}

.greed-games-panel__retry {
  align-self: flex-start;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.greed-games-panel__grid {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 2px;
}

.greed-games-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color var(--fx-fast) var(--fx-ease),
    background var(--fx-fast) var(--fx-ease);
}

.greed-games-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.greed-games-card__cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  object-fit: cover;
}

.greed-games-card__name {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.greed-games-panel__credit {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}
