#grs-stage {
  --era: #34D399;
  position: absolute; inset: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 640px; width: 100%; margin: 0 auto; padding: 14px 16px 26px;
  background: radial-gradient(130% 70% at 50% -10%, color-mix(in srgb, var(--era) 12%, var(--bg)) 0%, var(--bg) 55%);
  font-family: var(--fn); user-select: none; -webkit-user-select: none;
}

.grs-top { flex: none; }
.grs-net-label { font-family: var(--fm); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--su); text-align: center; }
.grs-net {
  font-family: var(--fc); font-weight: 700; font-size: 44px; line-height: 1.05; text-align: center;
  color: var(--era); text-shadow: 0 0 26px color-mix(in srgb, var(--era) 45%, transparent);
  transition: color .5s;
}
.grs-era-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.grs-era-badge {
  font-family: var(--ff); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: #0b0b10; background: var(--era); padding: 2px 10px; border-radius: 999px;
}
.grs-era-status { font-size: 12px; font-style: italic; color: var(--mu); }
.grs-legacy-chip { font-family: var(--fm); font-size: 11px; color: #A78BFA; }

.grs-substats { display: flex; gap: 8px; margin-top: 12px; }
.grs-substats > div {
  flex: 1 1 0; min-width: 0; text-align: center; padding: 8px 6px;
  background: linear-gradient(180deg, var(--s1), var(--s2)); border: 1px solid var(--bd); border-radius: 12px;
}
.grs-substats b { display: block; font-family: var(--fm); font-weight: 700; font-size: 15px; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grs-substats > div:last-child b { white-space: normal; font-size: 12.5px; line-height: 1.3; min-height: 33px; }
.grs-substats span { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--su); }

.grs-tapzone { flex: none; position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.grs-future {
  max-width: 340px; margin-bottom: 10px; padding: 9px 14px; border-radius: 14px; border-bottom-left-radius: 3px;
  background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--bd);
  font-size: 13px; font-style: italic; color: var(--tx); text-align: center;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; min-height: 0; pointer-events: none;
}
.grs-future.show { opacity: 1; transform: none; }
.grs-future::before { content: attr(data-face) " Future You: "; font-style: normal; color: #A78BFA; font-weight: 600; }
.grs-tap {
  position: relative; width: 190px; height: 190px; border-radius: 50%; cursor: pointer; color: #0b0b10;
  border: none; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--era) 90%, #fff) 0%, var(--era) 60%, color-mix(in srgb, var(--era) 60%, #000) 100%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--era) 22%, transparent), 0 14px 40px color-mix(in srgb, var(--era) 35%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform .06s ease, box-shadow .2s;
}
.grs-tap:active { transform: scale(.95); }
.grs-tap-emoji { font-size: 44px; line-height: 1; }
.grs-tap-lbl { font-family: var(--ff); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.grs-tap-val { font-family: var(--fm); font-weight: 700; font-size: 14px; opacity: .85; }
.grs-floaters { position: absolute; inset: 0; pointer-events: none; }
.grs-float {
  position: absolute; top: 30%; font-family: var(--fm); font-weight: 700; font-size: 16px; color: var(--era);
  text-shadow: 0 1px 4px #000; animation: grsFloat .9s ease forwards; pointer-events: none;
}
@keyframes grsFloat { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }

.grs-tabs { flex: none; display: flex; gap: 8px; align-items: center; }
.grs-tab {
  flex: 1 1 0; padding: 10px; font-family: var(--ff); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--mu); background: var(--s1); border: 1px solid var(--bd); border-radius: 10px; cursor: pointer;
}
.grs-tab.on { color: #0b0b10; background: var(--era); border-color: var(--era); }
.grs-ctl {
  flex: 0 0 auto; padding: 10px 12px; font-family: var(--ff); font-weight: 600; font-size: 12px;
  color: var(--tx); background: var(--s1); border: 1px solid var(--bd); border-radius: 10px; cursor: pointer;
}
.grs-ctl:hover { border-color: var(--mu); }
#grs-btn-retire.ready { border-color: #A78BFA; color: #A78BFA; box-shadow: 0 0 12px rgba(167,139,250,.35); }

.grs-list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.grs-row {
  display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; padding: 10px 12px;
  background: linear-gradient(180deg, var(--s1), var(--s2)); border: 1px solid var(--bd); border-radius: 12px;
  cursor: pointer; color: var(--tx); transition: transform .06s, border-color .12s, opacity .12s;
}
.grs-row:disabled { opacity: .5; cursor: default; }
.grs-row.aff { border-color: color-mix(in srgb, var(--era) 55%, var(--bd)); }
.grs-row.aff:hover { transform: translateY(-1px); }
.grs-row.owned { opacity: .55; }
.grs-row-locked { opacity: .5; cursor: default; pointer-events: none; border-style: dashed; }
.grs-row-locked .grs-row-nm { color: var(--mu); font-size: 12.5px; white-space: normal; }
.grs-row-locked .grs-row-cost { color: var(--su); font-size: 11px; text-align: right; }

.grs-doc-banner { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; margin-bottom: 8px;
  border: 1px dashed color-mix(in srgb, var(--era) 40%, var(--bd)); border-radius: 10px; background: color-mix(in srgb, var(--era) 6%, transparent); }
.grs-doc-banner.chosen { border-style: solid; border-color: color-mix(in srgb, var(--era) 55%, var(--bd)); }
.grs-doc-banner b { font-family: var(--ff); font-size: 13px; letter-spacing: .3px; }
.grs-doc-banner span { font-size: 11.5px; color: var(--mu); }
.grs-doc-tag { display: inline-block; margin-right: 5px; font-size: 12px; opacity: .85; }
.grs-doctrine-chip { }
.grs-doc-card em { color: var(--era); font-style: normal; font-weight: 700; }

.grs-flashback { display: block; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px dashed var(--bd); }
.grs-flashback em { display: block; color: var(--era); font-weight: 700; margin-bottom: 7px; letter-spacing: .3px; }
.grs-fb-line { display: block; font-family: var(--fm); font-size: 12px; color: var(--mu); line-height: 1.5; opacity: 0; animation: grsFbIn .5s ease forwards; }
.grs-fb-line:nth-child(2){animation-delay:.15s}.grs-fb-line:nth-child(3){animation-delay:.5s}.grs-fb-line:nth-child(4){animation-delay:.85s}.grs-fb-line:nth-child(5){animation-delay:1.2s}.grs-fb-line:nth-child(6){animation-delay:1.55s}
@keyframes grsFbIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.grs-bio-text { display: block; }

.grs-buymode-row { display: flex; align-items: center; gap: 6px; padding: 2px 2px 8px; font-family: var(--fm); font-size: 11px; color: var(--mu); }
.grs-buymode { font-family: var(--fm); font-weight: 700; font-size: 11px; padding: 3px 10px; cursor: pointer;
  color: var(--mu); background: var(--s2); border: 1px solid var(--bd);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.grs-buymode.on { color: var(--era); border-color: color-mix(in srgb, var(--era) 60%, var(--bd)); background: color-mix(in srgb, var(--era) 12%, var(--s2)); }
.grs-buyqty { font-size: 10px; color: var(--su); margin-right: 4px; }

.grs-doc-glyph { display: inline-flex; vertical-align: -2px; margin-right: 4px; }
.grs-doc-glyph svg { width: 14px; height: 14px; }
.grs-doc-banner .grs-doc-glyph svg { width: 15px; height: 15px; }

@keyframes grsEraCel { 0% { box-shadow: inset 0 0 0 0 transparent; } 30% { box-shadow: inset 0 0 90px 0 color-mix(in srgb, var(--era) 32%, transparent); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes grsNetPop { 0% { transform: none; } 40% { transform: scale(1.09); } 100% { transform: none; } }
#grs-stage.era-cel { animation: grsEraCel 1.1s ease; }
#grs-stage.era-cel .grs-net { animation: grsNetPop .7s ease; }
.grs-row.flash { animation: grsFlash .4s; }
@keyframes grsFlash { 0%,100%{ border-color: var(--bd); } 50% { border-color: var(--ac); } }
.grs-row-ico { font-size: 26px; flex: none; width: 34px; text-align: center; }
.grs-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.grs-row-nm { font-family: var(--ff); font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.grs-own { font-family: var(--fm); font-weight: 700; font-size: 11px; color: var(--era); margin-left: 6px; }
.grs-row-desc { font-size: 12px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grs-row-meta { font-family: var(--fm); font-size: 11px; color: var(--su); }
.grs-row-cost { flex: none; font-family: var(--fm); font-weight: 700; font-size: 13px; color: var(--tx); }
.grs-row.aff .grs-row-cost { color: var(--era); }

.grs-toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 20px);
  max-width: 92%; z-index: 60; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--bd); border-radius: 12px;
  padding: 9px 15px; text-align: center; transition: opacity .2s, transform .2s;
}
.grs-toast.show { opacity: 1; transform: translate(-50%, 0); }
.grs-toast b { display: block; font-family: var(--ff); font-weight: 700; font-size: 14px; color: var(--tx); }
.grs-toast span { font-size: 12px; color: var(--mu); }
.grs-toast a { color: var(--ac); }
.grs-toast.ach { border-color: rgba(52,211,153,.5); }
.grs-toast.bad { border-color: rgba(192,0,26,.5); }

.grs-card-inner { text-align: center; }
.grs-card-era { font-family: var(--ff); font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--era); margin-bottom: 6px; }
#grs-card-body { font-size: 14.5px; line-height: 1.55; color: var(--tx); }
#grs-card-body b, #grs-card-body strong { color: var(--am); }
.grs-card-stat { margin: 14px auto; padding: 10px 16px; display: inline-block; background: var(--s1); border: 1px solid var(--bd); border-radius: 12px; }
.grs-card-stat b { display: block; font-family: var(--fc); font-weight: 700; font-size: 24px; color: var(--era); }
.grs-card-stat span { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--su); }
.grs-card-learn { display: inline-block; margin-bottom: 14px; color: var(--ac); font-weight: 600; font-size: 13px; }

.grs-guide-inner { text-align: left; max-width: 430px; }
.grs-guide-eyebrow { font-family: var(--ff); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--era); margin-bottom: 6px; text-align: center; }
.grs-guide-inner h2 { text-align: center; margin: 0 0 2px; }
.grs-guide-sub { text-align: center; color: var(--mu); font-size: 13px; font-style: italic; margin: 0 0 16px; }
.grs-guide-steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.grs-guide-steps li { display: flex; gap: 12px; align-items: flex-start; }
.grs-guide-ico { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--era) 16%, var(--s3)), var(--s2) 70%);
  border: 1.5px solid color-mix(in srgb, var(--era) 45%, var(--bd));
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%); }
.grs-guide-steps b { display: block; font-family: var(--fc); font-weight: 700; font-size: 14px; color: var(--tx); }
.grs-guide-steps span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--mu); }
#grs-guide .ov-btn { width: 100%; }

.grs-mg-inner { text-align: center; max-width: 430px; }
.grs-mg-eyebrow { font-family: var(--ff); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--era); margin-bottom: 6px; }
.grs-mg-inner h2 { margin: 0 0 10px; }
.grs-mg-cash { font-family: var(--fm); font-size: 13px; color: var(--tx); margin: 0 0 6px; }
.grs-mg-cash b { color: var(--era); }
.grs-mg-cash .win { color: var(--gn); } .grs-mg-cash .lose { color: var(--rd); }
.grs-mg-note { font-size: 12px; font-style: italic; color: var(--mu); margin: 0 0 14px; }
.grs-mg-hand { margin: 8px 0; }
.grs-mg-hlabel { display: block; font-family: var(--fm); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--su); margin-bottom: 4px; }
.grs-mg-cards { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.grs-card { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 46px; padding: 0 5px;
  font-family: var(--fc); font-weight: 700; font-size: 16px; color: #12141c; background: #f4f5f8;
  border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.grs-card.red { color: #c0392b; }
.grs-card.back { color: transparent; background: repeating-linear-gradient(45deg, var(--s3) 0 5px, var(--s2) 5px 10px); border: 1px solid var(--bd); }
.grs-mg-result { font-family: var(--fc); font-weight: 700; font-size: 16px; margin: 12px 0 2px; color: var(--tx); }
.grs-mg-result.win { color: var(--gn); } .grs-mg-result.lose { color: var(--rd); }
.grs-mg-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.grs-mg-btn { flex: 1 1 40%; min-width: 130px; padding: 11px 14px; cursor: pointer;
  font-family: var(--ff); font-weight: 700; font-size: 13px; letter-spacing: .3px;
  color: #0b0b10; background: var(--era); border: none; border-radius: 10px; }
.grs-mg-btn:hover { filter: brightness(1.08); }
.grs-mg-btn.ghost { flex-basis: 100%; color: var(--mu); background: transparent; border: 1px solid var(--bd); }
.grs-mg-btn.ghost:hover { color: var(--tx); border-color: var(--mu); filter: none; }

.grs-inbox-chip { font-family: var(--fm); font-weight: 700; font-size: 11px; cursor: pointer;
  color: var(--era); background: color-mix(in srgb, var(--era) 14%, var(--s1));
  border: 1px solid color-mix(in srgb, var(--era) 55%, var(--bd)); border-radius: 999px; padding: 1px 9px;
  animation: grsInboxPulse 2s ease-in-out infinite; }
.grs-inbox-chip b { font-family: var(--fc); }
@keyframes grsInboxPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--era) 40%, transparent); } 50% { box-shadow: 0 0 0 4px transparent; } }
.grs-inbox-inner { text-align: left; max-width: 420px; }
.grs-inbox-eyebrow { font-family: var(--ff); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--era); margin-bottom: 6px; text-align: center; }
.grs-inbox-inner h2 { text-align: center; margin: 0 0 2px; }
.grs-inbox-sub { text-align: center; color: var(--mu); font-size: 13px; font-style: italic; margin: 0 0 14px; }
.grs-inbox-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.grs-inbox-list li { display: flex; gap: 11px; align-items: center; padding: 9px 12px; border-radius: 10px;
  background: var(--s1); border: 1px solid var(--bd); font-size: 13px; color: var(--tx); }
.grs-inbox-ico { flex: none; font-size: 17px; }
#grs-inbox .ov-btn { width: 100%; margin-bottom: 8px; }
#grs-inbox .ov-btn-ghost { width: 100%; }

.grs-off-amt { font-family: var(--fc); font-weight: 700; font-size: 40px; color: var(--gn); text-align: center; text-shadow: 0 0 22px rgba(52,211,153,.4); }
.grs-off-time { text-align: center; font-size: 13px; color: var(--su); margin-bottom: 6px; }
.grs-off-daily { text-align: center; font-size: 14px; color: var(--am); margin: 8px 0; }
.grs-off-quip { text-align: center; font-size: 13px; font-style: italic; color: var(--mu); }

.grs-quick-inner { text-align: center; border-color: rgba(251,191,36,.5) !important; }
.grs-quick-face { font-size: 40px; }
.grs-quick-pitch { font-size: 15px; font-style: italic; color: var(--tx); }
.grs-quick-stakeline { font-size: 14px; color: var(--mu); margin: 6px 0 4px; }
.grs-quick-stakeline b { color: var(--ac); }
.grs-quick-actions { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 6px; }
.grs-quick-yes { background: linear-gradient(180deg, #FBBF24, #d99700) !important; color: #0b0b10 !important; }
.grs-quick-fine, .grs-board-fine { font-size: 11px; color: var(--su); }

.grs-retire-lines { list-style: none; padding: 0; margin: 12px 0; }
.grs-retire-lines li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
.grs-retire-lines b { color: #A78BFA; }

.grs-board-inner { text-align: center; }
.grs-board-rec { font-size: 12px; color: var(--mu); margin-bottom: 10px; }
.grs-board-rec b { color: var(--tx); }
.grs-board-list { list-style: none; padding: 0; margin: 0 0 12px; max-height: 46vh; overflow-y: auto; text-align: left; }
.grs-board-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.grs-board-list li:nth-child(odd) { background: var(--s1); }
.grs-board-list li.me { background: color-mix(in srgb, var(--era) 22%, transparent); outline: 1px solid var(--era); }
.grs-lb-rank { font-family: var(--fm); font-weight: 700; color: var(--su); width: 34px; flex: none; }
.grs-lb-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); }
.grs-lb-name em { color: var(--era); font-style: normal; }
.grs-lb-net { font-family: var(--fm); font-weight: 700; color: var(--tx); flex: none; }
.grs-board-submit-row { display: flex; gap: 8px; margin-bottom: 8px; }
.grs-board-submit-row input {
  flex: 1 1 auto; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--bd);
  background: var(--s1); color: var(--tx); font-family: var(--fn); font-size: 14px;
}

.grs-ticker { flex: none; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 7px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.045), transparent); border: 1px solid var(--bd); overflow: hidden; }
.grs-ticker-label { flex: none; font-family: var(--fm); font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--ac); }
.grs-ticker-text { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--mu); overflow: hidden; }

.grs-ticker-scroll { display: inline-block; white-space: nowrap; padding-left: 100%; animation: grsMarquee 20s linear infinite; will-change: transform; }
.grs-ticker:hover .grs-ticker-scroll { animation-play-state: paused; }
@keyframes grsMarquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.grs-ticker.flash .grs-ticker-text { animation: grsTick .5s ease; }
@keyframes grsTick { from { opacity: 0; } to { opacity: 1; } }

.grs-job { display: flex; align-items: center; gap: 10px; margin-top: 14px; width: 100%; max-width: 380px; padding: 9px 12px; border-radius: 12px; background: linear-gradient(180deg, var(--s1), var(--s2)); border: 1px solid var(--bd); }
.grs-job-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.grs-job-name { font-family: var(--ff); font-weight: 700; font-size: 13px; color: var(--tx); }
.grs-job-name::before { content: "\1F454  "; }
.grs-job-note { font-size: 11px; color: var(--su); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grs-promote { flex: none; font-family: var(--ff); font-weight: 700; font-size: 11.5px; letter-spacing: .3px; padding: 8px 11px; border-radius: 9px; cursor: pointer; color: var(--tx); background: var(--s3); border: 1px solid var(--bd); transition: filter .1s; }
.grs-promote b { color: var(--su); font-family: var(--fm); }
.grs-promote.aff { color: #0b0b10; background: var(--era); border-color: var(--era); }
.grs-promote.aff b { color: #06231a; }
.grs-promote.aff:hover { filter: brightness(1.08); }
.grs-promote:disabled { cursor: default; opacity: .75; font-size: 10.5px; font-weight: 600; color: var(--su); background: transparent; }

.grs-cycle { font-family: var(--fm); font-weight: 700; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--s3); color: var(--mu); }
.grs-cycle.bull { color: #062; background: rgba(52,211,153,.9); }
.grs-cycle.bear { color: #fff; background: rgba(192,0,26,.9); }

.grs-billsbar { flex: none; display: flex; gap: 10px; margin-top: 10px; }
.grs-billsbar > div { flex: 1 1 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(180deg, var(--s1), var(--s2)); border: 1px solid var(--bd); font-size: 13px; }
.grs-bills-lbl { color: var(--su); font-size: 11px; }
.grs-bills b { font-family: var(--fm); font-weight: 700; color: var(--ac); }
.grs-debt b { font-family: var(--fm); font-weight: 700; color: var(--am); }
.grs-debt-pay { margin-left: auto; font-family: var(--ff); font-weight: 700; font-size: 11px; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--tx); background: var(--s3); border: 1px solid var(--bd); }
.grs-debt-pay.aff { color: #0b0b10; background: var(--era); border-color: var(--era); }

.grs-vbtn { font-family: var(--ff); font-weight: 700; font-size: 11px; letter-spacing: .3px; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--era); background: transparent; border: 1px solid var(--era); white-space: nowrap; }
.grs-vbtn:hover { background: color-mix(in srgb, var(--era) 15%, transparent); }
.grs-vmgr { font-family: var(--fm); font-size: 11px; color: var(--gn); }

.grs-alloc-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: linear-gradient(180deg, var(--s1), var(--s2)); border: 1px solid var(--bd); border-radius: 12px; margin-bottom: 8px; }
.grs-alloc-ico { font-size: 24px; flex: none; }
.grs-alloc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.grs-alloc-main b { font-family: var(--ff); font-weight: 700; font-size: 13px; }
.grs-alloc-main > span { font-size: 11.5px; color: var(--mu); }
.grs-alloc-bar { height: 5px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.grs-alloc-bar i { display: block; height: 100%; background: var(--era); }
.grs-alloc-ctrl { flex: none; display: flex; gap: 5px; }
.grs-alloc-ctrl button { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; font-weight: 700; cursor: pointer; color: var(--tx); background: var(--s3); border: 1px solid var(--bd); }
.grs-alloc-ctrl button:hover { border-color: var(--era); color: var(--era); }
.grs-alloc-cash { flex: none; font-family: var(--fm); font-size: 10px; color: var(--su); }

#grs-stage.c1 { animation: grsCreep1 14s ease-in-out infinite; }
#grs-stage.c2 { animation: grsCreep2 9s ease-in-out infinite; }
#grs-stage.c3 { animation: grsCreep3 6s ease-in-out infinite; }
#grs-stage.c1::after, #grs-stage.c2::after, #grs-stage.c3::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; mix-blend-mode: overlay;
  background: radial-gradient(130% 90% at 50% 40%, transparent 55%, color-mix(in srgb, var(--era) 40%, #3a0a2e) 100%);
}
#grs-stage.c2::after { opacity: .8; }
#grs-stage.c3::after { opacity: 1; background: radial-gradient(120% 80% at 50% 45%, transparent 40%, color-mix(in srgb, var(--era) 55%, #2a0018) 100%); }
@keyframes grsCreep1 { 0%,100% { filter: none; } 50% { filter: saturate(1.05) hue-rotate(4deg); } }
@keyframes grsCreep2 { 0%,100% { filter: saturate(1.1) hue-rotate(-3deg); } 50% { filter: saturate(1.2) hue-rotate(8deg) contrast(1.04); } }
@keyframes grsCreep3 { 0% { filter: saturate(1.2) hue-rotate(0deg); } 47% { filter: saturate(1.35) hue-rotate(12deg) contrast(1.08); } 50% { filter: invert(1) hue-rotate(180deg); } 53% { filter: saturate(1.35) hue-rotate(12deg) contrast(1.08); } 100% { filter: saturate(1.2) hue-rotate(0deg); } }

#grs-stage.c3 .grs-net { text-shadow: 0 0 26px color-mix(in srgb, var(--era) 60%, transparent), 2px 0 0 rgba(255,0,80,.5), -2px 0 0 rgba(0,200,255,.4); animation: grsGlitchNum 5s steps(1) infinite; }
@keyframes grsGlitchNum { 0%,92%,100% { transform: none; } 94% { transform: translateX(-2px) skewX(-3deg); } 96% { transform: translateX(2px); } }
#grs-stage.c2 .grs-ticker-text, #grs-stage.c3 .grs-ticker-text { font-style: italic; letter-spacing: .5px; }
#grs-stage.c3 .grs-sky { filter: hue-rotate(20deg) saturate(1.3); }
#grs-stage.c3 .grs-sky-scene::after { animation: grsWindowsWrong 3s steps(2) infinite; }
@keyframes grsWindowsWrong { 0%,100% { opacity: 1; } 50% { opacity: .5; filter: hue-rotate(140deg); } }

.grs-ethics { padding: 11px 13px; margin-bottom: 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(60,10,46,.4), var(--s2)); border: 1px solid color-mix(in srgb, var(--era) 45%, var(--bd)); }
.grs-ethics.on { background: linear-gradient(180deg, var(--s1), var(--s2)); border-color: var(--gn); }
.grs-ethics-top { display: flex; justify-content: space-between; align-items: baseline; }
.grs-ethics-top b { font-family: var(--ff); font-weight: 700; font-size: 13px; color: var(--tx); }
.grs-ethics-timer { font-family: var(--fm); font-size: 11px; color: var(--gn); }
.grs-ethics-sub { font-size: 11.5px; line-height: 1.45; color: var(--mu); margin: 4px 0 8px; }
.grs-ethics-btn { width: 100%; text-align: center; }

.grs-pool { margin-top: 8px; padding: 11px 13px; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--era) 10%, var(--s1)), var(--s2)); border: 1px solid color-mix(in srgb, var(--era) 40%, var(--bd)); }
.grs-pool-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--su); }
.grs-pool-top span { text-transform: uppercase; letter-spacing: .5px; font-size: 10px; }
.grs-pool-top b { font-family: var(--fm); font-weight: 700; font-size: 18px; color: var(--era); }
.grs-pool-sub { font-size: 11.5px; color: var(--mu); margin: 3px 0 9px; }
.grs-pool-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.grs-pool-btns .grs-vbtn { flex: 1 1 auto; text-align: center; padding: 8px 6px; font-size: 11px; }
.grs-pool-out { color: var(--am) !important; border-color: var(--am) !important; }
.grs-pool-out:hover { background: color-mix(in srgb, var(--am) 15%, transparent) !important; }

.grs-fire { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(251,146,60,.14), transparent); border: 1px solid var(--bd); font-size: 13px; color: var(--tx); }
.grs-fire b { color: var(--am); }

.grs-found-intro { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--era) 14%, transparent), transparent); border: 1px solid var(--bd); font-size: 12.5px; line-height: 1.5; color: var(--mu); }
.grs-found-intro b { color: var(--era); }

.grs-act-inner { text-align: center; border-color: var(--era) !important; box-shadow: 0 0 40px color-mix(in srgb, var(--era) 30%, transparent); }
.grs-act-n { font-family: var(--fm); font-weight: 700; font-size: 12px; letter-spacing: 4px; color: var(--era); }
.grs-act-title { font-family: var(--fc); font-weight: 700; font-size: 34px; line-height: 1.05; margin: 2px 0 4px; color: var(--tx); }
.grs-act-sub { font-size: 14px; font-style: italic; color: var(--mu); margin-bottom: 12px; }
.grs-act-unlock { font-size: 13.5px; line-height: 1.5; color: var(--tx); background: var(--s1); border: 1px solid var(--bd); border-radius: 12px; padding: 11px 14px; margin-bottom: 12px; }
.grs-act-goal { font-size: 13px; color: var(--su); margin-bottom: 14px; }
.grs-act-goal b { color: var(--am); }

.grs-sky {
  flex: none; position: relative; height: 72px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--bd); transition: filter 2s ease;
}
.grs-sky.t-day   { background: linear-gradient(180deg, #24405e 0%, #3a5a7a 70%, #2c3444 100%); }
.grs-sky.t-dawn  { background: linear-gradient(180deg, #2b2440 0%, #7a4a56 60%, #b0714f 100%); }
.grs-sky.t-dusk  { background: linear-gradient(180deg, #241f38 0%, #6e3a52 55%, #c26a3f 100%); }
.grs-sky.t-night { background: linear-gradient(180deg, #05070f 0%, #0b1024 65%, #131a30 100%); }
.grs-sky::before { 
  position: absolute; top: 7px; right: 16px; font-size: 15px; opacity: .9; content: "☀️";
}
.grs-sky.t-dawn::before  { content: "🌅"; }
.grs-sky.t-dusk::before  { content: "🌇"; }
.grs-sky.t-night::before { content: "🌙"; text-shadow: 0 0 10px rgba(255,255,220,.5); }
.grs-sky.t-night::after { 
  content: "✦ ✧ ✦ ✧ ✦"; position: absolute; top: 4px; left: 10%; right: 30%;
  font-size: 7px; letter-spacing: 26px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden;
}
.grs-sky.s-summer { filter: saturate(1.15) brightness(1.05); }
.grs-sky.s-fall   { filter: sepia(.22) saturate(1.1); }
.grs-sky.s-winter { filter: saturate(.7) brightness(1.08) hue-rotate(12deg); }
.grs-sky-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.grs-sky-scene.show { opacity: 1; }
.grs-sky-far {
  position: absolute; bottom: 6px; left: 8%; font-size: 20px; letter-spacing: 6px;
  opacity: .45; filter: grayscale(.4) brightness(.8);
}
.grs-sky-near { position: absolute; bottom: 3px; right: 12%; font-size: 32px; letter-spacing: 2px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.grs-sky.t-night .grs-sky-near { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--era) 60%, transparent)); }

.grs-chart-wrap {
  position: relative; margin-top: 8px; height: 74px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--s1), var(--s2)); border: 1px solid var(--bd); cursor: pointer;
}
#grs-chart { display: block; width: 100%; height: 100%; }
.grs-chart-mode {
  position: absolute; top: 5px; right: 6px; padding: 3px 8px; cursor: pointer;
  font-family: var(--fm); font-weight: 700; font-size: 9px; letter-spacing: 1px;
  color: var(--su); background: rgba(0,0,0,.35); border: 1px solid var(--bd); border-radius: 999px;
}
.grs-chart-mode:hover { color: var(--tx); border-color: var(--mu); }

.grs-age-chip { font-family: var(--fm); font-size: 11px; color: var(--su); }

.grs-combo { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; min-height: 20px; width: 190px; }
.grs-combo-lbl { font-family: var(--fm); font-weight: 700; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--am); min-height: 12px; }
.grs-combo-bar { width: 100%; height: 4px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.grs-combo-bar i { display: block; height: 100%; width: 0; background: var(--era); transition: width .15s ease; }
.grs-combo-bar i.zone { background: linear-gradient(90deg, #FBBF24, #F87171); box-shadow: 0 0 8px rgba(251,191,36,.7); }

.grs-float.payday { font-size: 19px; color: var(--am); animation-duration: 1.1s; }
.grs-float.gold { font-size: 20px; color: #FBBF24; text-shadow: 0 0 12px rgba(251,191,36,.8); animation-duration: 1.1s; }
.grs-float.zone { color: #FBBF24; }

.grs-row.bought { animation: grsBought .5s ease; }
@keyframes grsBought { 0% { transform: scale(1); } 30% { transform: scale(1.02); border-color: var(--era); box-shadow: 0 0 16px color-mix(in srgb, var(--era) 40%, transparent); } 100% { transform: scale(1); } }

#grs-fx { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.grs-p { position: absolute; }
.grs-p.coin { bottom: 34%; font-size: 17px; font-style: normal; animation: grsCoin 1.1s ease-out forwards; }
@keyframes grsCoin { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-130px) scale(1.15) rotate(240deg); } }
.grs-p.confetti { top: -12px; width: 7px; height: 11px; border-radius: 2px; animation: grsConfetti 2s ease-in forwards; }
@keyframes grsConfetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(104vh) rotate(560deg); } }

.grs-troph-inner { text-align: center; }
.grs-troph-count-line { font-size: 12px; color: var(--mu); margin-bottom: 10px; }
.grs-troph-count-line b { font-family: var(--fm); color: var(--era); }
.grs-troph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 30vh; overflow-y: auto; margin-bottom: 12px; }
.grs-troph { padding: 8px 10px; border-radius: 10px; text-align: left; background: var(--s1); border: 1px solid var(--bd); opacity: .45; }
.grs-troph.got { opacity: 1; border-color: color-mix(in srgb, var(--era) 50%, var(--bd)); background: linear-gradient(180deg, color-mix(in srgb, var(--era) 10%, var(--s1)), var(--s1)); }
.grs-troph b { display: block; font-family: var(--ff); font-weight: 700; font-size: 12px; color: var(--tx); }
.grs-troph span { display: block; font-size: 10.5px; line-height: 1.35; color: var(--mu); }
.grs-stats-list { list-style: none; padding: 0; margin: 0 0 12px; max-height: 32vh; overflow-y: auto; text-align: left; }
.grs-stats-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--bd); font-size: 12.5px; color: var(--mu); }
.grs-stats-list b { font-family: var(--fm); font-weight: 700; color: var(--tx); text-align: right; }

.grs-chest {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  font-family: var(--fn); font-size: 13px; color: #2a1c00;
  background: linear-gradient(180deg, #fde68a, #f59e0b); border: 1px solid #b45309;
  box-shadow: 0 0 18px rgba(245,158,11,.35); animation: grsChestGlow 2.2s ease-in-out infinite;
}
.grs-chest b { font-family: var(--ff); font-weight: 700; letter-spacing: .4px; }
.grs-chest span { font-family: var(--fm); font-size: 11px; opacity: .8; }
.grs-chest:active { transform: translateY(1px); }
@keyframes grsChestGlow { 0%,100% { box-shadow: 0 0 12px rgba(245,158,11,.25); } 50% { box-shadow: 0 0 24px rgba(245,158,11,.5); } }

.grs-boost { font-family: var(--fm); font-weight: 700; font-size: 11px; padding: 1px 8px; border-radius: 999px; color: #2a1c00; background: linear-gradient(90deg, #fde68a, #f59e0b); }

.grs-off-fcast { text-align: center; font-size: 13px; color: var(--tx); margin: 8px 0; padding: 9px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(245,158,11,.12), transparent); border: 1px solid var(--bd); }
.grs-off-fcast b { color: var(--am); }
.grs-off-fcast small { display: block; margin-top: 3px; font-size: 11px; color: var(--su); }

.grs-goal { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 9px 12px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--bd); }
.grs-goal.done { border-color: color-mix(in srgb, var(--era) 55%, var(--bd)); }
.grs-goal.claimed { opacity: .55; }
.grs-goal-desc { flex: 1 1 auto; font-size: 12.5px; color: var(--tx); }
.grs-goal-right { flex: none; font-family: var(--fm); font-weight: 700; font-size: 11px; color: var(--su); }
.grs-goal-claim { font-family: var(--ff); font-weight: 700; font-size: 11px; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: #0b0b10; background: var(--era); border: 1px solid var(--era); }
.grs-goal-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--s3); }
.grs-goal-bar i { display: block; height: 100%; background: var(--era); transition: width .3s; }
.grs-tab.dot { position: relative; }
.grs-tab.dot::after { content: ""; position: absolute; top: 5px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--am); box-shadow: 0 0 6px var(--am); }

.grs-dl-inner { text-align: center; border-color: #38BDF8 !important; }
.grs-dl-eyebrow { font-family: var(--fm); font-weight: 700; font-size: 10px; letter-spacing: 2px; color: #38BDF8; margin-bottom: 8px; }
.grs-dl-text { font-size: 14.5px; line-height: 1.55; color: var(--tx); }
.grs-dl-fine { font-size: 11px; color: var(--su); margin-top: 4px; }

.grs-heir-inner { text-align: center; border-color: #A78BFA !important; }
.grs-heir-cards { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.grs-heir-card { text-align: left; padding: 11px 14px; border-radius: 12px; cursor: pointer; background: linear-gradient(180deg, var(--s1), var(--s2)); border: 1px solid var(--bd); color: var(--tx); transition: transform .06s, border-color .12s; }
.grs-heir-card:hover { transform: translateY(-1px); border-color: #A78BFA; }
.grs-heir-card b { display: block; font-family: var(--ff); font-weight: 700; font-size: 14px; }
.grs-heir-card span { font-size: 12px; color: var(--mu); }
.grs-heir-card.rare { border-color: #FBBF24; box-shadow: 0 0 14px rgba(251,191,36,.25); }
.grs-heir-sub { font-size: 11.5px; color: var(--su); margin: 10px 0 6px; }
.grs-motto { display: block; width: 100%; margin-bottom: 6px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-style: italic; font-size: 12.5px; color: var(--mu); background: var(--s1); border: 1px solid var(--bd); }
.grs-motto:hover { color: var(--tx); border-color: var(--mu); }
.grs-motto.on { color: #0b0b10; background: #A78BFA; border-color: #A78BFA; font-weight: 600; }
.grs-heir-chip { font-family: var(--fm); font-size: 11px; color: #A78BFA; }
.grs-board-motto { font-style: italic; color: #A78BFA; margin-bottom: 5px; }

.grs-ctl-gems { opacity: .55; }
.grs-ctl-gems:hover { opacity: 1; border-color: #38BDF8; }
.grs-gems-inner { text-align: center; }
.grs-gems-packs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.grs-gem-pack { padding: 12px; border-radius: 12px; cursor: pointer; font-family: var(--ff); font-weight: 700; font-size: 14px; color: #04222f; background: linear-gradient(180deg, #7dd3fc, #38BDF8); border: none; }
.grs-gem-pack:hover { filter: brightness(1.07); }
.grs-gems-punch { font-size: 15px; line-height: 1.6; font-style: italic; color: var(--tx); margin: 14px 0; }

.grs-pigeon { position: absolute; bottom: 4px; font-size: 20px; background: none; border: none; cursor: pointer; z-index: 3; animation: grsPigeon 1.2s ease-out; filter: drop-shadow(0 0 6px rgba(251,191,36,.8)); }
.grs-cat { position: absolute; bottom: 2px; left: -30px; font-size: 15px; z-index: 2; animation: grsCat 13s linear forwards; pointer-events: none; }
@keyframes grsCat { from { left: -30px; } to { left: 105%; } }
.grs-shelf-book { cursor: pointer; }
.grs-shelf-book:hover { border-color: #A78BFA; }
@keyframes grsPigeon { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }

.grs-life-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--s1); border: 1px solid var(--bd); }
.grs-life-row b { flex: none; font-family: var(--ff); font-weight: 700; font-size: 13px; color: var(--tx); }
.grs-life-row span { flex: 1 1 auto; font-size: 12px; color: var(--mu); }
.grs-life-row .grs-vbtn { flex: none; }
.grs-life-stance { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.grs-life-stance .grs-vbtn { padding: 13px; font-size: 13px; }
.grs-heir-subline { font-size: 12px; font-style: italic; color: var(--mu); margin: -4px 0 4px; }

.grs-shelf-head { font-family: var(--ff); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--su); padding: 4px 2px 2px; }
.grs-shelf-book { padding: 9px 12px; border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, #A78BFA 10%, var(--s1)), var(--s1)); border: 1px solid color-mix(in srgb, #A78BFA 35%, var(--bd)); }
.grs-shelf-book b { display: block; font-family: var(--fc); font-weight: 700; font-size: 15px; color: var(--tx); }
.grs-shelf-book span { font-size: 11px; color: var(--mu); font-style: italic; }
.grs-led-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: var(--s1); border: 1px solid var(--bd); }
.grs-led-stamp { flex: none; width: 74px; font-family: var(--fm); font-weight: 700; font-size: 10px; color: var(--era); }
.grs-led-txt { flex: 1 1 auto; font-size: 12.5px; line-height: 1.45; color: var(--tx); font-style: italic; }
.grs-led-empty { padding: 14px; text-align: center; font-size: 12.5px; font-style: italic; color: var(--mu); }

.grs-bio-inner { text-align: center; border-color: #A78BFA !important; box-shadow: 0 0 40px rgba(167,139,250,.25); }
.grs-bio-eyebrow { font-family: var(--fm); font-weight: 700; font-size: 10px; letter-spacing: 2px; color: #A78BFA; margin-bottom: 8px; }
#grs-bio-title { font-family: var(--fc); font-weight: 700; font-size: 26px; line-height: 1.1; }
.grs-bio-body { font-size: 14px; line-height: 1.6; font-style: italic; color: var(--tx); margin: 10px 0; }
.grs-bio-sub { font-family: var(--fm); font-size: 11px; color: var(--su); margin-bottom: 6px; }

.grs-row-ico, .grs-alloc-ico {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; font-size: 19px;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--era) 16%, var(--s3)), var(--s2) 70%);
  border: 1.5px solid color-mix(in srgb, var(--era) 45%, var(--bd));
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
  filter: saturate(.85);
}
.grs-row.owned .grs-row-ico { filter: saturate(.3); }
.grs-row.aff .grs-row-ico { filter: saturate(1); box-shadow: inset 0 0 10px color-mix(in srgb, var(--era) 25%, transparent); }

.grs-svg-ico { width: 23px; height: 23px; display: block; color: color-mix(in srgb, var(--era) 80%, var(--tx)); }
.grs-row-ico:has(.grs-svg-ico) { text-shadow: none; }
.grs-row.owned .grs-svg-ico { color: color-mix(in srgb, var(--era) 45%, var(--mu)); }

#grs-stage.c2 .grs-svg-ico { filter: drop-shadow(1px 0 0 rgba(255,60,60,.5)) drop-shadow(-1px 0 0 rgba(60,120,255,.35)); }
#grs-stage.c3 .grs-svg-ico { filter: drop-shadow(1.4px 0 0 rgba(255,40,40,.7)) drop-shadow(-1.4px 0 0 rgba(40,120,255,.5)); }
.grs-tap-emoji {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; font-size: 34px;
  background: rgba(0,0,0,.18); border: 2px solid rgba(0,0,0,.28); border-radius: 50%;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}

.grs-tab, .grs-ctl, .grs-chest, .grs-vbtn, .grs-goal-claim, .grs-list .grs-row, .grs-promote, .grs-debt-pay {
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  border-radius: 0;
}
.grs-row { border-left: 3px solid color-mix(in srgb, var(--era) 30%, var(--bd)); }
.grs-row.aff { border-left-color: var(--era); }
.grs-tab.on { box-shadow: 0 0 14px color-mix(in srgb, var(--era) 45%, transparent); }

.grs-tab::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px;
  background: currentColor;
  -webkit-mask: var(--tabico) center / contain no-repeat; mask: var(--tabico) center / contain no-repeat;
}
#grs-tab-assets      { --tabico: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6"><path d="M3 17l6-6 4 4 8-9"/><path d="M15 6h6v6"/></svg>'); }
#grs-tab-upgrades    { --tabico: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6"><path d="M12 2v4M12 18v4M2 12h4M18 12h4M5 5l3 3M16 16l3 3M19 5l-3 3M8 16l-3 3"/><circle cx="12" cy="12" r="3.4"/></svg>'); }
#grs-tab-alloc       { --tabico: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6"><circle cx="12" cy="12" r="9"/><path d="M12 3v9l7 5"/></svg>'); }
#grs-tab-ventures    { --tabico: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6"><path d="M4 21V7l6-4v18M10 9l10 4v8"/><path d="M4 21h18"/></svg>'); }
#grs-tab-foundations { --tabico: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6"><path d="M12 21s-7-4.6-9.5-8.8A5 5 0 0 1 12 6a5 5 0 0 1 9.5 6.2C19 16.4 12 21 12 21z"/></svg>'); }
#grs-tab-life        { --tabico: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6"><circle cx="9" cy="8" r="3.4"/><path d="M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6"/><circle cx="17" cy="10" r="2.6"/><path d="M15.5 14.5c2.8.4 5 2.7 5 5.5"/></svg>'); }
#grs-tab-ledger      { --tabico: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6"><path d="M5 3h13a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5z"/><path d="M5 3v18M9 8h6M9 12h6"/></svg>'); }

#grs-stage::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
}
#grs-stage > * { position: relative; z-index: 1; }
.grs-substats > div { position: relative; border-left: 2px solid color-mix(in srgb, var(--era) 40%, var(--bd)); }
.grs-substats > div::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-top: 2px solid color-mix(in srgb, var(--era) 55%, var(--bd)); border-right: 2px solid color-mix(in srgb, var(--era) 55%, var(--bd)); }
.grs-net-label::before, .grs-net-label::after { content: "—"; margin: 0 8px; color: color-mix(in srgb, var(--era) 50%, var(--su)); }
.grs-shelf-head, .grs-upg-head { border-bottom: 1px solid color-mix(in srgb, var(--era) 25%, var(--bd)); padding-bottom: 5px; }

.grs-sky { height: 84px; }
.grs-sky::before { z-index: 2; } 
.grs-sky-scene::before, .grs-sky-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.grs-sky-scene::before { 
  height: 46px; opacity: .5;
  background:
    linear-gradient(color-mix(in srgb, var(--era) 14%, #0a0d16), color-mix(in srgb, var(--era) 14%, #0a0d16)) 4% 100% / 26px 34px no-repeat,
    linear-gradient(#0b0e18, #0b0e18) 14% 100% / 34px 46px no-repeat,
    linear-gradient(color-mix(in srgb, var(--era) 10%, #090c14), color-mix(in srgb, var(--era) 10%, #090c14)) 27% 100% / 22px 26px no-repeat,
    linear-gradient(#0a0d16, #0a0d16) 36% 100% / 30px 40px no-repeat,
    linear-gradient(#0b0e18, #0b0e18) 49% 100% / 26px 30px no-repeat,
    linear-gradient(color-mix(in srgb, var(--era) 12%, #0a0d16), color-mix(in srgb, var(--era) 12%, #0a0d16)) 61% 100% / 36px 44px no-repeat,
    linear-gradient(#090c14, #090c14) 76% 100% / 24px 36px no-repeat,
    linear-gradient(#0b0e18, #0b0e18) 88% 100% / 30px 28px no-repeat;
}
.grs-sky-scene::after { 
  height: 30px; opacity: .85;
  background:
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,214,140,.16) 5px 7px, transparent 7px 12px) 0 100% / 100% 22px no-repeat,
    linear-gradient(#070910, #070910) 0% 100% / 42px 30px no-repeat,
    linear-gradient(#080b12, #080b12) 22% 100% / 34px 22px no-repeat,
    linear-gradient(#070910, #070910) 45% 100% / 48px 26px no-repeat,
    linear-gradient(#080b12, #080b12) 71% 100% / 38px 30px no-repeat,
    linear-gradient(#070910, #070910) 92% 100% / 30px 20px no-repeat;
}
.grs-sky.t-night .grs-sky-scene::after { opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255,214,140,.25)); }
.grs-sky.t-day .grs-sky-scene::after { background-blend-mode: normal; }
.grs-sky-near { bottom: 6px; z-index: 3; }
.grs-sky-far { bottom: 40px; z-index: 1; opacity: .3; }

.grs-col { display: contents; } 

@media (min-width: 1024px) {
  
  #grs-stage {
    max-width: 1200px; padding: 0 30px 48px;
    display: flex; flex-direction: row; align-items: flex-start; gap: 30px;
  }
  .grs-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  #grs-stage > .grs-col-l {
    flex: 0 0 430px;
    position: sticky; top: 0; padding-top: 22px;   
  }
  .grs-col-r { flex: 1 1 auto; }
  
  .grs-sky { height: 118px; margin: 0; }
  .grs-sky-near { font-size: 38px; }
  .grs-tapzone { padding: 22px 0 4px; margin: 0; }
  .grs-tap { width: 200px; height: 200px; }
  .grs-top { margin: 0; }
  .grs-chart-wrap { height: 116px; margin-top: 10px; }
  .grs-ticker, .grs-chest, .grs-billsbar { margin: 0; }
  .grs-net { font-size: 52px; }
  
  .grs-list { flex: none; }
  
  #grs-assets, #grs-upgrades, #grs-ventures, #grs-foundations {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; align-content: start;
  }
  .grs-buymode-row, .grs-doc-banner, #grs-assets .grs-row-locked { grid-column: 1 / -1; }
  .grs-row { transition: transform .1s ease, box-shadow .1s ease; }
  .grs-row:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
  
  .grs-tabs { position: sticky; top: 0; z-index: 6; background: var(--bg);
    padding: 12px 0 8px; box-shadow: 0 10px 12px -6px var(--bg); }
  .grs-toast { bottom: 26px; }
}

@media (max-width: 480px) {
  .grs-net { font-size: 36px; }
  .grs-tap { width: 160px; height: 160px; }
  .grs-tap-emoji { font-size: 38px; }
  .grs-substats b { font-size: 13px; }
  .grs-billsbar { flex-direction: column; }
  .grs-act-title { font-size: 28px; }
  
  .grs-tabs { flex-wrap: wrap; gap: 6px; }
  .grs-tab { flex: 1 1 28%; font-size: 12px; padding: 9px 4px; letter-spacing: 0; }
  .grs-ctl { flex: 0 0 auto; padding: 9px 12px; }
  .grs-sky { height: 56px; }
  .grs-sky-near { font-size: 26px; }
  .grs-sky-far { font-size: 16px; letter-spacing: 4px; }
  .grs-chart-wrap { height: 60px; }
  .grs-combo { width: 160px; }
  .grs-troph-grid { grid-template-columns: 1fr; }
}
