:root {
  --tma-bg: #030805;
  --tma-header: #0b1311;
  --tma-plate: #08110e;
  --tma-rim: #333a32;
  --tma-cream: #f4e7cb;
  --tma-muted: #9aa594;
  --tma-green: #25dc71;
  --tma-orange: #ff610b;
  --tma-blue: #4a9eff;
  --tma-violet: #a585ff;
  --tma-amber: #ffa21f;
  --tma-gold: #ffd23f;
  --house-bg: #050403;
  --house-gold: #d8b45e;
  --house-ivory: #efe6d2;
  --tg-safe-top: env(safe-area-inset-top, 0px);
  --tg-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--tma-bg);
  color: var(--tma-cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.45;
}

html[data-tma-skin="house"],
html[data-tma-skin="house"] body {
  background: var(--house-bg);
  color: var(--house-ivory);
}

.tma-root {
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: var(--tg-safe-top);
  padding-bottom: calc(78px + var(--tg-safe-bottom));
  display: flex;
  flex-direction: column;
}

.tma-topbar {
  height: 56px;
  padding: 0 16px;
  background: var(--tma-header);
  border-bottom: 1px solid var(--tma-rim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html[data-tma-skin="house"] .tma-topbar {
  background: var(--house-bg);
  border-bottom: 1px solid var(--house-gold);
}

.tma-app-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tma-green);
}

html[data-tma-skin="house"] .tma-app-name {
  color: var(--house-gold);
  font-family: Georgia, "Times New Roman", serif;
}

.tma-handle-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
}

.tma-level-square {
  padding: 2px 6px;
  border: 1px solid var(--tma-green);
  color: var(--tma-green);
  font-weight: 700;
}

.tma-strip {
  padding: 8px 16px;
  background: #060e0b;
  border-bottom: 1px solid #1d2923;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

html[data-tma-skin="house"] .tma-strip {
  display: none;
}

.tma-q { color: var(--tma-gold); }
.tma-ready { color: var(--tma-green); }
.tma-rounds { color: var(--tma-amber); }

.tma-banner {
  margin: 10px 16px 0;
  padding: 10px 12px;
  background: #121c18;
  border: 1px solid var(--tma-amber);
  color: var(--tma-amber);
  font-size: 13px;
}

.tma-banner[hidden] {
  display: none;
}

.tma-workspace {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tma-panel {
  background: var(--tma-plate);
  border: 1px solid var(--tma-rim);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.tma-lit-green { border: 2px solid var(--tma-green); }
.tma-lit-blue { border: 2px solid var(--tma-blue); }
.tma-lit-amber { border: 2px solid var(--tma-amber); }
.tma-lit-violet { border: 2px solid var(--tma-violet); }

.tma-house-plate {
  background: var(--house-bg);
  border: 1px solid var(--house-gold);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tma-house-open {
  border: 3px double var(--house-gold);
}

.tma-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tma-green);
}

html[data-tma-skin="house"] .tma-kicker {
  color: var(--house-gold);
}

.tma-h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tma-h1 span {
  color: var(--tma-orange);
}

html[data-tma-skin="house"] .tma-h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--house-gold);
}

.tma-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tma-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tma-square-chip {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: middle;
}

.chip-green { background: var(--tma-green); }
.chip-amber { background: var(--tma-amber); }
.chip-blue { background: var(--tma-blue); }
.chip-violet { background: var(--tma-violet); }

.tma-key {
  appearance: none;
  border: 1px solid var(--tma-rim);
  background: #101915;
  color: var(--tma-cream);
  padding: 11px 14px;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
}

.tma-key-small {
  padding: 6px 10px;
  font-size: 12px;
}

.tma-key-orange {
  background: var(--tma-orange);
  border-color: #ff853d;
  color: #080b09;
  width: 100%;
}

.tma-key-outline {
  background: transparent;
  border: 1px solid var(--tma-cream);
  color: var(--tma-cream);
  width: 100%;
}

.tma-key-choice {
  text-align: left;
  width: 100%;
}

.tma-key-choice[aria-pressed="true"] {
  border: 2px solid var(--tma-green);
  color: var(--tma-green);
  background: #0b1d15;
}

.tma-key-gold {
  width: 100%;
  border: 1px solid var(--house-gold);
  background: linear-gradient(180deg, #f2d685 0%, #b88b35 100%);
  color: #050403;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.tma-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.tma-progress span {
  height: 10px;
  border: 1px solid var(--tma-green);
  background: #0d1814;
}

.tma-progress span.done {
  background: var(--tma-green);
}

.tma-input {
  width: 100%;
  padding: 10px 12px;
  background: #050b09;
  border: 1px solid var(--tma-rim);
  color: var(--tma-cream);
  font: inherit;
  font-size: 13px;
}

.tma-gate-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}

.tma-gate-grid dt {
  color: var(--tma-muted);
  font-weight: 700;
}

.tma-gate-grid dd {
  margin: 2px 0 0;
  color: var(--tma-green);
  font-weight: 800;
}

.tma-key[aria-pressed="true"] {
  border: 2px solid var(--tma-green);
  color: var(--tma-green);
  background: #0b1d15;
}

.tma-et-stage {
  padding: 14px;
  background: #06120d;
  border: 1px solid var(--tma-amber);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tma-et-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--tma-muted);
}

.tma-et-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tma-et-league-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--tma-gold);
  background: #091712;
  flex-shrink: 0;
}

.tma-et-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tma-et-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.tma-et-stat {
  padding: 8px;
  background: #081812;
  border: 1px solid #1b3329;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: var(--tma-muted);
}

.tma-et-stat strong {
  font-size: 12px;
  color: var(--tma-cream);
}

.tma-et-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tma-et-paused-note {
  padding: 8px 10px;
  background: #09120f;
  border: 1px dashed #24372f;
  font-size: 11px;
  color: var(--tma-muted);
}

.tma-score-big {
  font-size: 26px;
  font-weight: 900;
  color: var(--tma-gold);
}

.tma-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: var(--tg-safe-bottom);
  background: #060c0b;
  border-top: 1px solid var(--tma-rim);
  z-index: 20;
}

html[data-tma-skin="house"] .tma-tabbar {
  background: var(--house-bg);
  border-top: 1px solid var(--house-gold);
}

.tma-tabbar-inner {
  max-width: 420px;
  margin: 0 auto;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px 8px;
}

.tma-tab {
  appearance: none;
  background: #0a1310;
  border: 1px solid #24332c;
  color: var(--tma-cream);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tma-tab[aria-selected="true"] {
  border: 2px solid var(--tma-green);
  color: var(--tma-green);
  background: #0e2018;
}

html[data-tma-skin="house"] .tma-tab {
  background: var(--house-bg);
  border: 1px solid #594722;
  color: var(--house-gold);
  font-family: Georgia, "Times New Roman", serif;
}

html[data-tma-skin="house"] .tma-tab[aria-selected="true"] {
  border: 2px solid #f6e3a0;
  background: #171208;
  color: #f6e3a0;
}


@font-face {
  font-family: "TMA Display";
  src: url("/runtime/fonts/jersey-1.woff2") format("woff2");
  font-display: swap;
}

body { background: #010302; }
.tma-root {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #030805;
  box-shadow: 0 0 32px rgba(0,0,0,0.85);
  padding-bottom: calc(94px + var(--tg-safe-bottom));
}
[hidden] { display: none !important; }
.tma-topbar {
  height: 52px;
  padding: 6px 8px;
  gap: 7px;
  background: linear-gradient(180deg,#111a15,#030805);
  border: 0;
  flex: 0 0 auto;
  font-family: "TMA Display", monospace;
}
.tma-topbar .tma-key { padding: 4px 8px; font-size: 23px; line-height: 1; letter-spacing: 0; }
.tma-logo { position: relative; overflow: hidden; width: 74px; height: 32px; flex: 0 0 auto; text-align: center; line-height: .8; }
.tma-logo > img { position: static; display: block; width: 100%; height: 100%; object-fit: contain; }
.tma-logo strong { color: #ff5c0b; font-size: 30px; font-weight: 400; text-shadow: 2px 2px #492409; }
.tma-logo small { display: block; margin-top: 4px; color: #f4e7cb; font-size: 7px; letter-spacing: .03em; }
.tma-app-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 23px; font-weight: 400; letter-spacing: 0; text-align: center; }
.tma-handle-box { min-width: 0; gap: 5px; font-size: 21px; line-height: 1; }
#tma-handle { display: block; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tma-avatar { position: relative; display: block; flex: 0 0 37px; width: 37px; height: 39px; overflow: hidden; border-radius: 50%; border: 1px solid #25dc71; box-shadow: 0 0 6px #25dc7166; }
.tma-avatar img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
.tma-level-square { padding: 4px; margin-left: -5px; background-color: #08110e; color: #f4e7cb; font-size: 22px; }
.tma-riveted {
  position: relative;
  border: 3px ridge #8d9482;
  border-radius: 7px;
  background-color: #07110d;
  background-image: radial-gradient(circle at 4px 4px,#020604 1px,#e8e0cb 1.5px,#6a756a 2.5px,#020604 3px,transparent 4px),radial-gradient(circle at calc(100% - 4px) 4px,#020604 1px,#e8e0cb 1.5px,#6a756a 2.5px,#020604 3px,transparent 4px),radial-gradient(circle at 4px calc(100% - 4px),#020604 1px,#e8e0cb 1.5px,#6a756a 2.5px,#020604 3px,transparent 4px),radial-gradient(circle at calc(100% - 4px) calc(100% - 4px),#020604 1px,#e8e0cb 1.5px,#6a756a 2.5px,#020604 3px,transparent 4px),linear-gradient(115deg,#0c1b14,#020b07 70%,#0b1711);
  box-shadow: inset 0 0 0 1px #1b2b22,0 2px 0 #000;
}
.tma-strip { margin: 2px 6px 10px; padding: 5px 12px; min-height: 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; font: 25px/1 "TMA Display",monospace; white-space: normal; min-width: 0; }
.tma-q-group { display: inline-flex; align-items: center; gap: 6px; }
.tma-q { color: var(--tma-cream); }
.tma-pyramid { width: 26px; height: 27px; object-fit: contain; vertical-align: middle; flex: 0 0 auto; }
.tma-workspace { padding: 0; display: block; }
#tma-screen-stack { min-width: 0; }
.tma-home { display: grid; gap: 9px; }
.tma-human-guard { margin: 0 7px; padding: 5px 11px; border: 2px solid #25dc71; border-radius: 8px; color: #25dc71; background: #081a12; font: 25px/1.05 "TMA Display",monospace; }
.tma-human-guard strong { display: block; font-weight: 400; }
.tma-human-guard span { display: block; font-size: 23px; }
.tma-reception-scene { position: relative; width: 100%; aspect-ratio: 832/400; overflow: hidden; }
.tma-reception-scene img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
.tma-growth-plate { margin: 0 6px; padding: 9px 14px 14px; min-width: 0; }
.tma-growth-plate .tma-kicker { color: #20b9e2; font: 25px/1.05 "TMA Display",monospace; white-space: normal; overflow-wrap: anywhere; letter-spacing: 0; }
.tma-home-title { margin: 4px 0; font: 46px/.95 "TMA Display",monospace; color: #fff0cf; white-space: normal; overflow-wrap: anywhere; }
.tma-growth-reward { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font: 27px/1 "TMA Display",monospace; white-space: normal; }
.tma-growth-plate p { margin: 11px 0 13px; font-size: 17px; line-height: 1.18; letter-spacing: .03em; }
.tma-key-orange { background: linear-gradient(110deg,#ff800d,#ff5c00 50%,#ff7600); border: 3px ridge #ffb157; border-radius: 8px; box-shadow: inset 0 0 0 1px #ffe7a2,inset 0 -4px 0 #cc3b00,0 4px 0 #321101; font: 33px/1 "TMA Display",monospace; letter-spacing: .04em; min-height: 51px; padding: 7px 8px 10px; }
.tma-key:hover,.tma-tab:hover,.tma-job-row:hover,.tma-quick-card:hover { filter: brightness(1.12); }
button:focus-visible,input:focus-visible,summary:focus-visible { outline: 2px solid #fff0cf; outline-offset: 3px; }
.tma-quick-cards { margin: 0 6px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tma-quick-card { appearance: none; padding: 10px 13px 13px; color: var(--tma-cream); text-align: left; font: 20px/1 "TMA Display",monospace; cursor: pointer; min-width: 0; }
.tma-quick-card strong { display: block; margin-top: 6px; font-size: 26px; font-weight: 400; }
.tma-quick-card > span:last-child { display: block; margin-top: 3px; white-space: normal; overflow-wrap: anywhere; }
.tma-quick-card b { color: var(--tma-amber); font-weight: 400; }
.tma-icon-bay { display: block; position: relative; width: 96px; max-width: 100%; height: 59px; margin: 0 auto; overflow: hidden; border: 3px solid; border-radius: 10px; background: #020b07; }
.tma-icon-bay img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.tma-icon-bay.tma-joystick-art img { position: absolute; width: 105px; height: auto; max-width: none; left: -8px; top: -8px; transform: none; }
.tma-icon-purple { border-color: #c36be8; }
.tma-icon-amber { border-color: #ffba08; }
.tma-icon-blue { border-color: #20b9e2; }
.tma-member-tools,.tma-more-jobs { margin: 2px 8px 12px; color: #a6b3a5; font-size: 11px; }
.tma-member-tools summary,.tma-more-jobs summary,.tma-proof-options summary { cursor: pointer; padding: 5px 0; }
.tma-member-tools[open] { display: grid; gap: 8px; }
.tma-jobs { padding: 0 6px; min-width: 0; }
.tma-jobs-title { margin: 0 2px 5px; font: 51px/1 "TMA Display",monospace; white-space: normal; overflow-wrap: anywhere; letter-spacing: .01em; }
.tma-jobs-title span { color: #ff6500; }
.tma-categories { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 6px; margin: 8px 4px 12px; }
.tma-categories .tma-key { font: 22px/1 "TMA Display",monospace; padding: 7px 3px; border: 3px ridge #919780; border-radius: 6px; white-space: normal; min-width: 0; overflow-wrap: anywhere; letter-spacing: 0; }
.tma-categories .tma-key[aria-pressed="true"] { border: 3px solid #25dc71; box-shadow: inset 0 0 9px #25dc7133; color: #25dc71; }
.tma-featured-job { border: 3px solid #25dc71; border-radius: 8px; padding: 4px; }
.tma-editor-hero { display: block; width: 100%; height: auto; }
.tma-featured-body { padding: 5px 8px 7px; }
.tma-featured-body .tma-kicker { font: 23px/1.05 "TMA Display",monospace; letter-spacing: 0; color: #25dc71; }
.tma-featured-body h2 { margin: 3px 0; font: 36px/.97 "TMA Display",monospace; letter-spacing: .02em; color: #fff0cf; }
.tma-job-reward { display: flex; align-items: center; gap: 7px; font: 32px/1.1 "TMA Display",monospace; margin-bottom: 5px; }
.tma-reel-plate { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 7px; padding: 3px 5px; }
.tma-reel-plate strong { font: 23px/.95 "TMA Display",monospace; overflow-wrap: anywhere; }
.tma-reel-icon { display: block; width: 76px; height: 46px; flex: 0 0 auto; overflow: hidden; }
.tma-reel-icon img { width: 100%; height: 100%; object-fit: cover; }
.tma-input { font-size: 17px; padding: 5px 9px; border: 2px ridge #899380; border-radius: 5px; min-height: 31px; }
.tma-proof-options { font-size: 10px; color: #a6b3a5; margin-bottom: 3px; }
.tma-proof-options[open] { margin: 5px 0 10px; }
.tma-proof-options p { font-size: 12px; }
.tma-featured-job:not([data-selected-job="post-official-reel"]) .tma-editor-hero,
.tma-featured-job:not([data-selected-job="post-official-reel"]) .tma-reel-plate { display: none; }
.tma-job-list { display: grid; gap: 6px; margin-top: 8px; }
.tma-job-row { appearance: none; width: 100%; display: flex; gap: 12px; align-items: center; padding: 6px 12px; text-align: left; color: #fff0cf; font: 25px/.94 "TMA Display",monospace; cursor: pointer; }
.tma-job-row .tma-icon-bay { margin: 0; width: 70px; height: 55px; flex: 0 0 auto; border-radius: 8px; }
.tma-job-row strong,.tma-job-row b { display: block; font-weight: 400; }
.tma-job-row b { margin-top: 3px; font-size: 24px; }
.tma-job-row .tma-pyramid { width: 22px; height: 22px; margin-right: 5px; }
.tma-tabbar { width: 100%; max-width: 420px; left: 50%; right: auto; transform: translateX(-50%); padding-bottom: var(--tg-safe-bottom); border-top: 3px ridge #929583; background: #030805; box-shadow: 0 -4px 8px #0009; }
.tma-tabbar-inner { height: 88px; gap: 6px; padding: 7px 6px 8px; }
.tma-tab { flex-direction: column; gap: 0; border: 3px ridge #879080; border-radius: 9px; font: 26px/.9 "TMA Display",monospace; min-width: 0; padding: 2px; background: #030d07; }
.tma-tab[data-tab-name="home"] { --tab-color: #00e868; }
.tma-tab[data-tab-name="jobs"] { --tab-color: #19bff0; }
.tma-tab[data-tab-name="play"] { --tab-color: #ff8b00; }
.tma-tab[data-tab-name="desk"] { --tab-color: #20c9e9; }
.tma-tab[data-tab-name="crew"] { --tab-color: #c56ae8; }
.tma-tabbar .tma-tab { border: 3px solid var(--tab-color); }
.tma-tab[aria-selected="true"] { border: 3px solid var(--tab-color); color: var(--tab-color); box-shadow: inset 0 0 7px color-mix(in srgb,var(--tab-color) 35%,transparent); background: #05170c; }
.tma-nav-icon { position: relative; width: 48px; height: 44px; display: block; overflow: hidden; }
.tma-nav-icon img { position: absolute; display: block; width: 90px; height: auto; max-width: none; left: -18px; top: -9px; }
.tma-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 601px) {
  .tma-root {
    position: relative;
    padding-bottom: 0;
  }
  .tma-tabbar {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    margin-top: auto;
  }
}
@media (max-width: 600px) {
  .tma-root,.tma-tabbar,.tma-tabbar-inner { max-width: none; width: 100%; }
}
@media (max-width: 410px) {
  .tma-topbar { gap: 4px; padding-inline: 5px; }
  .tma-topbar .tma-key { font-size: 20px; padding-inline: 6px; }
  .tma-logo strong { font-size: 27px; }
  .tma-logo { width: 65px; height: 28px; }
  .tma-app-name { font-size: 21px; }
  .tma-handle-box { font-size: 18px; gap: 3px; }
  #tma-handle { max-width: 50px; }
  .tma-avatar { flex-basis: 32px; width: 32px; height: 34px; }
  .tma-strip { font-size: 22px; padding-inline: 9px; }
  .tma-human-guard { font-size: 22px; }
  .tma-human-guard span { font-size: 21px; }
  .tma-home-title { font-size: 40px; }
  .tma-growth-plate .tma-kicker { font-size: 22px; }
  .tma-growth-reward { font-size: 23px; gap: 5px; }
  .tma-growth-plate p { font-size: 15px; }
  .tma-quick-card { padding-inline: 9px; font-size: 17px; }
  .tma-quick-card strong { font-size: 23px; }
  .tma-jobs-title { font-size: 45px; }
  .tma-categories .tma-key { font-size: 19px; }
  .tma-featured-body .tma-kicker { font-size: 21px; }
  .tma-featured-body h2 { font-size: 33px; }
  .tma-reel-plate strong { font-size: 21px; }
  .tma-job-row { font-size: 23px; gap: 8px; padding-inline: 8px; }
}

.tma-utility-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 8px; }
.tma-utility-actions .tma-key { flex: 1; font-size: 10px; padding: 6px; }
.tma-home { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 340px) {
  .tma-topbar { gap: 3px; }
  .tma-logo { width: 60px; height: 26px; }
  .tma-app-name { font-size: 19px; }
  #tma-handle { max-width: 46px; flex-shrink: 0; }
  .tma-strip { font-size: 20px; gap: 3px; padding-inline: 8px; }
  .tma-strip .tma-pyramid { width: 22px; }
  .tma-human-guard { font-size: 19px; }
  .tma-human-guard span { font-size: 19px; }
  .tma-growth-plate .tma-kicker { font-size: 18px; }
  .tma-home-title { font-size: 35px; }
  .tma-growth-reward { font-size: 21px; }
  .tma-growth-plate p { font-size: 14px; }
  .tma-key-orange { font-size: 27px; letter-spacing: .02em; }
  .tma-quick-card strong { font-size: 22px; }
  .tma-quick-card > span:last-child { font-size: 16px; white-space: normal; }
  .tma-jobs-title { font-size: 41px; }
  .tma-categories { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr); gap: 4px; }
  .tma-categories .tma-key { min-width: 0; font-size: 17px; }
  .tma-featured-body .tma-kicker { font-size: 18px; }
  .tma-featured-body h2 { font-size: 30px; }
  .tma-reel-plate { gap: 5px; }
  .tma-reel-plate strong { font-size: 18px; }
  .tma-reel-icon { width: 56px; }
}

.tma-quick-card > span:last-child { font-size: 17px; }
@media (max-width: 410px) { .tma-quick-card > span:last-child { font-size: 16px; } }

/* Q Nation Unified Portal Strip, Beginner Start, TG11 Own Q & TG12 Quit Club */
.tma-portal-strip {
  margin: 0 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.tma-portal-pill {
  min-width: 0;
  min-height: 36px;
  padding: 6px 6px;
  font: 19px/1.05 "TMA Display", monospace;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tma-beginner-start,
.tma-two-coin-box {
  margin: 0 6px;
  min-width: 0;
}
.tma-two-coin-box p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tma-own-panel,
.tma-club-panel {
  margin: 0 6px;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.tma-own-disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #b5a689;
  overflow-wrap: anywhere;
}
.tma-club-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.tma-club-card {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.tma-club-card strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.tma-club-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#tma-own-presets .tma-key[aria-pressed="true"],
#tma-own-quit-boost-btn[aria-pressed="true"] {
  border-color: #25dc71;
  color: #25dc71;
}
@media (max-width: 340px) {
  .tma-portal-pill { font-size: 16px; padding: 5px 4px; }
}

/* Hide web support chat floating widget inside Telegram Mini App shell */
.q-support-bubble,
.q-support-chat,
[data-support-chat] {
  display: none !important;
}
