/* tk-orders.nl — cheap uni-app H5 parody (original CSS, no stolen assets) */

:root {
  --red: #ff293a;
  --red-dark: #e0182c;
  --teal: #00b69c;
  --teal-dark: #069a85;
  --ink: #303133;
  --muted: #7a7e83;
  --line: #e6e6e6;
  --card: #fff;
  --page: #f5f5f5;
  --chrome: #bdbdbd;
  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Tahoma, Arial, sans-serif;
  --phone: 390px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: #9e9e9e;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Lock page scroll while the tabbed app is open so only .app-main scrolls */
body:has(#app-shell:not([hidden])) {
  height: 100%;
  overflow: hidden;
}

.phone:has(#app-shell:not([hidden])) {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

input {
  font: inherit;
  user-select: text;
}

/* iOS Safari paints white rounded chrome on <button> unless fully reset */
button,
[role="button"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

input {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 200;
  padding: 0.4rem 0.6rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Chrome / phone */

.app-chrome {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #9e9e9e;
}

.phone {
  width: 100%;
  max-width: var(--phone);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  position: relative;
  box-shadow: 0 0 0 1px #777;
}

/* Login */

.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  padding: 8px 18px calc(28px + env(safe-area-inset-bottom, 0px));
}

.login-screen[hidden] {
  display: none;
}

.login-top {
  display: flex;
  justify-content: flex-end;
  padding: 6px 0 10px;
}

.lang-fake {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  color: #606266;
  font-weight: 600;
}

.login-hero {
  text-align: center;
  padding: 18px 0 22px;
}

.login-logo {
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, #444, #000 70%);
  border: 3px solid #eee;
  box-shadow: 0 2px 0 #ddd;
  padding: 0;
  color: inherit;
}

.login-logo span {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.login-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.login-tag {
  margin: 6px 0 0;
  display: inline-block;
  padding: 2px 7px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 2px;
}

.login-box {
  margin-top: 8px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #303133;
}

.field-input {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid #dcdfe6;
  border-radius: 0;
  padding: 8px 0;
  font-size: 0.88rem;
  color: #303133;
  background: transparent;
  outline: none;
}

.field-input::placeholder {
  color: #c0c4cc;
}

.field-input:focus {
  border-bottom-color: #000;
}

.field-pass-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #dcdfe6;
}

.field-pass-wrap .field-input {
  border-bottom: 0;
  flex: 1;
}

.eye-btn {
  border: 0;
  background: none;
  padding: 4px;
  color: #606266;
  font-size: 0.95rem;
  line-height: 1;
}

.btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 3px;
  padding: 0.55rem 0.5rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  display: inline-block;
}

.btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-black {
  background: #000;
  background-color: #000;
  color: #fff;
}

.btn-black:hover:not(:disabled) {
  background: #222;
}

.btn-red {
  background: var(--red);
  background-color: var(--red);
}

.btn-red:hover:not(:disabled) {
  background: var(--red-dark);
}

.btn-teal {
  background: var(--teal);
  background-color: var(--teal);
}

.btn-teal:hover:not(:disabled) {
  background: var(--teal-dark);
}

.btn-block {
  width: 100%;
  margin-top: 12px;
  padding: 0.75rem;
}

.goto-reg {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  border: 0;
  background: none;
  text-align: center;
  color: #606266;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0;
}

.login-privacy {
  margin: 36px 8px 0;
  padding: 0;
  background: none;
  border: 0;
  color: #c0c4cc;
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  user-select: text;
}

/* App shell */

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  overflow: hidden;
}

.app-shell[hidden] {
  display: none !important;
}

/* Scrollable screens; tab bar stays in document flow (fixes iOS fixed hit-testing) */
.app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.screen[hidden] {
  display: none !important;
}

.screen.is-active:not([hidden]) {
  display: block !important;
}

.top-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 12px 10px 10px;
  background: #fff;
}

.title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.brand-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.cheap-badge {
  display: inline-block;
  padding: 2px 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 2px;
}

.avatar-block {
  text-align: center;
  border: 0;
  border-radius: 0;
  background: none;
  background-color: transparent;
  padding: 0;
  color: inherit;
  box-shadow: none;
}

.avatar {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.account-text {
  margin: 3px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.wallet-card {
  margin: 0 10px;
  padding: 12px 10px 10px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.balance-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.wallet-ico {
  font-size: 1.4rem;
  line-height: 1;
}

.balance-number {
  font-size: 1.15rem;
  font-weight: 800;
}

.money-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.money-btns .btn {
  flex: 1;
  font-size: 0.72rem;
  padding: 0.45rem 0.25rem;
}

.earn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.item-name {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  margin-bottom: 2px;
}

.item-number {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 10px 0;
  padding: 6px 8px;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

.notice-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.notice-track {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.notice-text {
  margin: 0;
  font-size: 0.68rem;
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: marquee 16s linear infinite;
}

.notice-text .inline-usdt {
  color: #ffe566;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

.mission-hall {
  margin: 10px 10px 0;
}

.mission-inline {
  margin: 0 0 10px;
}

.mission-inline .btn-block {
  margin-top: 0;
}

.miss-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
}

.miss-banner {
  position: relative;
  min-height: 120px;
  padding: 18px 14px;
  color: #fff;
  background:
    linear-gradient(160deg, #111 0%, #ff293a 42%, #00b69c 100%);
  overflow: hidden;
}

.miss-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -20deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.04) 12px,
      rgba(255, 255, 255, 0.04) 13px
    );
}

.miss-rate,
.miss-go,
.miss-sub {
  position: relative;
  margin: 0;
}

.miss-rate {
  z-index: 2;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.miss-go,
.miss-sub {
  z-index: 1;
  pointer-events: none;
}

.miss-go {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.miss-sub {
  font-size: 0.68rem;
  opacity: 0.92;
}

.balist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 8px 10px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.chid {
  background: #fff;
  padding: 11px 8px;
  text-align: center;
}

.chid .money {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.chidlt {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
}

.chid-note {
  display: block;
  margin-top: 3px;
  color: #aaa;
  font-size: 0.58rem;
}

.progress {
  height: 3px;
  margin: 7px 0 0;
  background: #eee;
  overflow: hidden;
}

.progress-bar {
  width: calc(100% * 60 / 61);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--teal));
  transition: width 0.8s ease;
}

.progress-bar.complete-overflow {
  width: 100%;
}

.stat-card.pulse {
  animation: bump 0.3s ease;
}

@keyframes bump {
  50% {
    transform: scale(1.03);
  }
}

.icon-list {
  margin: 8px 10px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.icon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  background-color: #fff;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.icon-item:last-child,
.icon-item.static:last-child {
  border-bottom: 0;
}

.icon-item.static {
  cursor: default;
}

.miss-hit {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  z-index: 1;
  cursor: pointer;
}

.rate-chip {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.earn-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  padding: 6px 4px;
  text-align: left;
  color: inherit;
  width: 100%;
  cursor: pointer;
  font: inherit;
  box-shadow: none;
}

.tx-btn {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 2px 4px;
  border: 0;
  background: #eee;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  word-break: break-all;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.icon-dot.red {
  background: linear-gradient(145deg, #ff6b75, var(--red));
}

.icon-dot.teal {
  background: linear-gradient(145deg, #4dd0c0, var(--teal));
}

.icon-dot.dark {
  background: linear-gradient(145deg, #555, #111);
}

.icon-dot.gray {
  background: linear-gradient(145deg, #ccc, #888);
}

.icon-body {
  flex: 1;
  min-width: 0;
}

.icon-name {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  margin-bottom: 2px;
}

.icon-body strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.chev {
  color: #c0c4cc;
  font-size: 1.15rem;
}

.cucumber-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1em;
}

.inline-usdt {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
}

.loading-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  padding: 10px;
  background: #fafafa;
  border: 1px dashed #ccc;
}

.loading-stage[hidden] {
  display: none;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 41, 58, 0.2);
  border-top-color: var(--red);
  animation: spin 0.7s linear infinite;
}

.spinner-teal {
  border-color: rgba(0, 182, 156, 0.25);
  border-top-color: var(--teal);
}

#loading-text,
#withdraw-text {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #555;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  margin: 8px 10px 0;
  display: grid;
  gap: 8px;
  scroll-margin-top: 12px;
}

.reveal[hidden] {
  display: none !important;
}

.reveal.is-visible {
  display: grid !important;
  opacity: 1;
  transform: none;
  animation: fade-up 0.45s ease both;
}

.reveal.is-visible .reveal-banner {
  animation: reveal-pop 0.5s ease both;
}

@keyframes reveal-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-banner,
.results-card,
.withdraw-panel,
.achievement-card,
.history,
.education {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 10px;
}

.reveal-banner {
  text-align: center;
}

.reveal-emoji {
  margin: 0;
  font-size: 1.8rem;
}

.reveal-banner h2 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.25rem;
}

.reveal-kicker {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-weight: 800;
  font-size: 0.8rem;
}

.reveal-message {
  margin: 0;
  color: #555;
  font-size: 0.82rem;
}

.results-card h3,
.achievements h3,
.history h3,
.education h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.results-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.results-list li:last-child {
  border-bottom: 0;
}

.results-list span {
  color: #666;
}

.results-list .xp {
  color: var(--teal-dark);
}

.account-status {
  margin: 10px 0 3px;
  text-align: center;
  font-size: 0.84rem;
}

.account-status strong {
  display: block;
  margin-top: 3px;
  color: var(--red);
  font-size: 1rem;
}

.straight-man {
  margin: 0.2rem 0 0.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
}

.harmless-note {
  margin: 0.4rem 0 0;
  text-align: center;
  color: #999;
  font-size: 0.72rem;
  font-style: italic;
}

.usdt-joke-line {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
}

.withdraw-result {
  margin-top: 8px;
  padding: 10px;
  background: #e8fff9;
  border: 1px solid rgba(0, 182, 156, 0.4);
  text-align: center;
  font-size: 0.8rem;
}

.withdraw-result[hidden] {
  display: none;
}

.withdraw-success {
  margin: 0 0 0.4rem;
  color: var(--teal-dark);
  font-weight: 800;
}

.tx-id {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  word-break: break-all;
}

.tx-id code {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 2px 4px;
  background: #eee;
  font-size: 0.68rem;
}

.achievements {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.achievement-card {
  opacity: 0;
  transform: translateY(10px);
}

.achievement-card.is-in {
  animation: fade-up 0.45s ease both;
}

.achievement-card:nth-child(2).is-in {
  animation-delay: 0.08s;
}

.achievement-badge {
  margin: 0 0 0.25rem;
  color: #d4a017;
  font-size: 0.64rem;
  font-weight: 800;
}

.achievement-badge.special {
  color: var(--teal-dark);
}

.achievement-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.achievement-card p {
  margin: 0;
  color: #666;
  font-size: 0.78rem;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.history-list li:last-child {
  border-bottom: 0;
}

.history-list strong {
  display: block;
  font-size: 0.8rem;
}

.history-list span {
  color: #666;
  font-size: 0.72rem;
}

.history-list em {
  font-style: normal;
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 0.72rem;
  white-space: nowrap;
}

.history-list .legendary {
  background: #fff8e8;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
}

.history-list .legendary em {
  color: #d48806;
}

.education {
  margin: 8px 10px 0;
  border-left: 3px solid var(--red);
}

.education p {
  margin: 0 0 0.55rem;
  color: #444;
  font-size: 0.8rem;
  user-select: text;
}

.education ul {
  margin: 0 0 0.7rem;
  padding-left: 1.1rem;
  color: #444;
  font-size: 0.8rem;
  user-select: text;
}

.education-callout {
  margin: 0 !important;
  padding: 8px;
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #664d03 !important;
}

.footer {
  margin: 10px 10px 6px;
  padding: 10px 6px 14px;
  text-align: center;
  color: #999;
  font-size: 0.7rem;
  user-select: text;
}

.footer-brand {
  display: inline-block;
  margin: 0 0 0.25rem;
  border: 0;
  background: none;
  padding: 0;
  color: #333;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

.footer p {
  margin: 0.12rem 0;
}

.tabbar {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 52px;
  height: auto;
  padding-top: 4px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  background: #000;
  background-color: #000;
  z-index: 100;
  box-sizing: border-box;
}

.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 0;
  background: #000;
  background-color: #000;
  color: #8a8e93;
  font-size: 0.58rem;
  min-height: 48px;
  padding: 6px 2px 4px;
  position: relative;
  z-index: 1;
  box-shadow: none;
  -webkit-user-select: none;
  user-select: none;
}

.tab-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 1;
  color: inherit;
}

.tab-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

.tab-label {
  display: block;
  line-height: 1.1;
  color: inherit;
}

.tab.is-active {
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  transform: translateX(-50%) translateY(120%);
  max-width: min(88vw, 340px);
  padding: 9px 12px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast[hidden] {
  display: none !important;
}

.confetti {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 10px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(105vh) rotate(640deg);
    opacity: 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.cucumber-mode .avatar,
body.cucumber-mode .login-logo {
  background: linear-gradient(145deg, #65a30d, #3f6212);
}

body.super-mode #risk-value {
  color: var(--red);
}

/* Multi-screen chrome */

.subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.subhead h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.back-btn {
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 4px 0 0;
  color: #333;
}

.panel {
  margin: 10px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.panel.center {
  text-align: center;
}

.panel-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.panel-big {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

.panel-big.muted {
  color: #999;
}

.panel-note {
  margin: 0 0 10px;
  color: #666;
  font-size: 0.78rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.amount-btn {
  border: 1px solid var(--line);
  background: #fafafa;
  padding: 12px 8px;
  font-weight: 800;
  border-radius: 3px;
}

.amount-btn.is-selected {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
}

.empty-state {
  margin: 40px 20px;
  text-align: center;
}

.empty-ico {
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.empty-title {
  margin: 8px 0 6px;
  font-weight: 800;
}

.empty-text {
  margin: 0 0 16px;
  color: #777;
  font-size: 0.82rem;
}

.mine-hero {
  padding: 22px 12px 16px;
  text-align: center;
  background: linear-gradient(180deg, #111, #333);
  color: #fff;
}

.avatar.big {
  width: 72px;
  height: 72px;
  font-size: 1.1rem;
  margin-bottom: 6px;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.mine-hero .account-text {
  color: #fff;
}

.mine-level {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #ffb4ba;
  font-weight: 700;
}

.mine-actions {
  margin: 14px 10px 20px;
}

.invite-code {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--red);
}

.faq-list {
  margin: 8px 10px 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 0 10px;
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 12px 0;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.faq-item p,
.education-inline p {
  margin: 0 0 10px;
  color: #555;
  font-size: 0.8rem;
  user-select: text;
}

.education-inline .education-callout {
  margin-bottom: 10px !important;
}

.footer.compact {
  margin-top: 16px;
}

.task-wallet .balance-title {
  width: 100%;
  justify-content: space-between;
}

.linkish {
  border: 0;
  background: none;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.balance-flash {
  color: var(--red) !important;
}

.balist {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .notice-text {
    white-space: normal;
    padding-left: 0;
  }

  .achievement-card {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 480px) {
  .app-chrome {
    padding: 20px 10px 36px;
    align-items: flex-start;
  }

  .phone {
    min-height: auto;
    height: min(820px, calc(100vh - 56px));
    border-radius: 4px;
    overflow: hidden;
  }

  .login-screen {
    min-height: 640px;
    height: 100%;
  }

  .app-shell {
    height: 100%;
    min-height: 640px;
  }

  .tabbar {
    padding-bottom: 0;
  }

  .toast {
    bottom: 1.25rem;
  }
}
