/* Screen-specific styles - layouts for different app screens */

/* New Home Screen Design - Adapted from chatarena_home_adapted.html */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 92px;
}

/* Simple Actions Hub v2 */
.action-hub {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 104px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-hub__header {
  padding: 4px 2px 0;
}

.action-hub__eyebrow {
  color: #66dcff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.action-hub__title {
  margin: 4px 0 0;
  color: #f4f7fb;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
}

.action-now {
  display: grid;
  gap: 8px;
}

.action-now__item,
.action-tile {
  width: 100%;
  border: 1px solid rgba(143, 155, 179, 0.22);
  background: rgba(23, 33, 56, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.action-now__item {
  min-height: 64px;
  border-radius: 16px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
}

.action-now__item.is-hot,
.action-tile.is-hot {
  border-color: rgba(255, 203, 69, 0.52);
  background: linear-gradient(145deg, rgba(43, 38, 24, 0.98), rgba(23, 33, 56, 0.96));
}

.action-now__icon,
.action-tile__icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(53, 167, 255, 0.12);
}

.action-now__icon {
  width: 38px;
  height: 38px;
  font-size: 21px;
}

.action-now__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.action-now__label,
.action-tile__title {
  color: #f4f7fb;
  font-weight: 850;
}

.action-now__text,
.action-tile__text {
  color: #9fb0ca;
  font-size: 13px;
  line-height: 1.3;
}

.action-now__arrow {
  color: #66dcff;
  font-size: 22px;
}

.action-section {
  display: grid;
  gap: 8px;
}

.action-section__title {
  margin: 0;
  color: #cbd6ea;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.action-tile {
  min-height: 118px;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-rows: 36px auto 1fr;
  gap: 7px;
}

.action-grid--secondary .action-tile {
  min-height: 96px;
  background: rgba(13, 21, 38, 0.9);
}

.action-tile__icon {
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.action-tile__title {
  font-size: 16px;
  line-height: 1.12;
}

@media (max-width: 360px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), var(--surface-1);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
}

/* Profile Header */
.profile-header {
  padding: 16px;
  margin-bottom: 16px;
}

.profile-top {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #304463, #1c2740);
  border: 2px solid rgba(255,255,255,.08);
  font-size: 28px;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.username {
  font-size: 18px;
  font-weight: 800;
  color: var(--app-text);
}

.level-badge,
.summary-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.level-badge {
  background: rgba(124,92,250,.18);
  color: #d7ccff;
  border: 1px solid rgba(124,92,250,.35);
}

.summary-badge {
  background: rgba(34,197,94,.16);
  color: #97f0b5;
  border: 1px solid rgba(34,197,94,.34);
}

.xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--app-hint);
  margin-bottom: 5px;
}

.xp-bar {
  height: 8px;
  border-radius: 999px;
  background: #21304b;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}

.xp-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7a5cfa, #4c8dff);
  box-shadow: 0 0 12px rgba(76,141,255,.45);
  transition: width .6s ease;
}

.gold-balance {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--daily), #c9921e);
  color: #1d1b12;
}

.gold-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gold-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(0,0,0,.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.gold-meta {
  font-size: 11px;
  opacity: .8;
}

.gold-amount {
  font-size: 20px;
  font-weight: 900;
}

/* Hero Banner */
.hero-banner {
  padding: 22px 18px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #243d78, #4c2f7e 62%, #7d3ab5);
}

.hero-banner::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -35px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  filter: blur(38px);
}

.hero-banner::after {
  content: '';
  position: absolute;
  left: -26px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(244,201,93,.16);
  filter: blur(34px);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--app-text);
}

.hero-subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.84);
  margin-bottom: 14px;
  max-width: 290px;
}

.hero-footer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-button {
  flex: 1;
  background: linear-gradient(135deg, var(--daily), #f2d36d);
  color: #1f1a08;
  border: none;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.hero-secondary {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.14);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}

/* Section Layout */
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
  padding: 0 2px;
}

.section-title {
  font-size: 21px;
  font-weight: 900;
  color: var(--app-text);
}

.section-subtitle {
  font-size: 12px;
  color: var(--app-hint);
}

/* Hint Strip */
.hint-strip {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 4px;
  margin: -4px 0 18px;
}

.hint-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
  color: var(--app-hint);
}

/* Activities Grid */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.activity-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 18px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.activity-card:hover {
  transform: translateY(-2px);
}

.activity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 56%);
  pointer-events: none;
}

.activity-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.activity-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(8px);
}

.status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.16);
}

.status-ready {
  background: rgba(34,197,94,.88);
}

.status-progress {
  background: rgba(59,130,246,.88);
}

.status-cooldown {
  background: rgba(100,116,139,.88);
}

.status-available {
  background: rgba(245,158,11,.88);
}

.status-live {
  background: rgba(236,72,153,.88);
}

.activity-title {
  font-size: 15px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  color: var(--app-text);
}

.activity-meta {
  font-size: 12px;
  line-height: 1.35;
  opacity: .88;
  position: relative;
  z-index: 1;
  min-height: 30px;
  color: var(--app-text);
}

.progress-bar {
  margin-top: auto;
  height: 6px;
  background: rgba(0,0,0,.24);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.progress-fill {
  height: 100%;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255,255,255,.35);
}

/* Activity Color Themes */
.activity-daily {
  background: linear-gradient(135deg, var(--daily), #c9921e);
  color: #1f1808;
}

.activity-quests {
  background: linear-gradient(135deg, var(--quests), #2b8b56);
  color: #effff5;
}

.activity-work {
  background: linear-gradient(135deg, var(--work), #237d78);
  color: #effffd;
}

.activity-slots {
  background: linear-gradient(135deg, var(--slots), #355de0);
  color: #f4f8ff;
}

.activity-coinflip {
  background: linear-gradient(135deg, var(--coinflip), #9f7a24);
  color: #fffaf1;
}

.activity-duel {
  background: linear-gradient(135deg, var(--duel), #a53a32);
  color: #fff5f5;
}

.activity-clan {
  background: linear-gradient(135deg, var(--clan), #5b3fd1);
  color: #f5f2ff;
}

.activity-events {
  background: linear-gradient(135deg, var(--events), #b73e98);
  color: #fff1fb;
}

/* Bottom Navigation */
.bottom-nav {
  display: none !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 18px;
  background: rgba(12,19,34,.86);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.06);
}

.nav-container {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #7f90af;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  min-width: 64px;
}

.nav-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .18s;
  background: transparent;
}

.nav-item.active {
  color: var(--app-text);
}

.nav-item.active .nav-icon-box {
  background: rgba(76,141,255,.18);
  border: 1px solid rgba(76,141,255,.32);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;
}

.nav-item:hover .nav-icon-box {
  background: rgba(255,255,255,.05);
}

.nav-icon {
  font-size: 19px;
}

/* Legacy Home screen styles */
.screen {
  padding-bottom: 0;
}

.home__hero {
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.home__hero-content {
  position: relative;
  z-index: 1;
}

.home__user-info {
  margin-bottom: var(--space-4);
}

.home__user-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
}

.home__user-level {
  font-size: var(--font-size-lg);
  color: var(--app-hint);
}

.home__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.home__stat {
  text-align: center;
}

.home__stat-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.home__stat-label {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.home__progress {
  max-width: 300px;
  margin: 0 auto;
}

.home__quick-actions {
  margin-bottom: var(--space-6);
}

.section__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
}

.home__quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.home__action-card {
  display: block;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  text-decoration: none;
  color: var(--app-text);
  transition: var(--transition-normal);
}

.home__action-card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home__action-card-icon {
  font-size: 32px;
  margin-bottom: var(--space-2);
  display: block;
}

.home__action-card-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.home__action-card-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.home__status-section {
  margin-bottom: var(--space-6);
}

.home__status-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
}

.home__status-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home__status-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home__status-icon {
  font-size: 20px;
}

.home__status-text {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--app-text);
}

.home__status-value {
  font-weight: var(--font-weight-semibold);
  color: var(--accent);
}

/* Activities screen */
.activities__section {
  margin-bottom: var(--space-6);
}

.activities__section-header {
  margin-bottom: var(--space-4);
}

.activities__section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
}

.activities__section-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.activities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}

.activities__card {
  display: block;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  text-decoration: none;
  color: var(--app-text);
  transition: var(--transition-normal);
  position: relative;
}

.activities__card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.activities__card-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.activities__card-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  margin-bottom: var(--space-2);
}

.activities__card-status {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.activities__card-status--ready {
  background: var(--success-bg);
  color: var(--success-text);
}

.activities__card-status--cooldown {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.activities__card-status--locked {
  background: var(--danger-bg);
  color: var(--danger-text);
}

/* Profile screen */
.profile__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.profile__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--app-text);
  border: 3px solid var(--accent);
}

.profile__name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
}

.profile__title {
  font-size: var(--font-size-lg);
  color: var(--app-hint);
  margin-bottom: var(--space-2);
}

.profile__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.profile__stat {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}

.profile__stat-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.profile__stat-label {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.profile__section {
  margin-bottom: var(--space-6);
}

.profile__section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
}

.profile__achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.profile__achievement {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.profile__achievement-icon {
  font-size: 24px;
}

.profile__achievement-info {
  flex: 1;
}

.profile__achievement-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
}

.profile__achievement-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

/* Quests screen */
.quests__tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quests__tab {
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--app-hint);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: var(--transition-normal);
}

.quests__tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.quests__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quests__item {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.quests__item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.quests__item-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
}

.quests__item-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.quests__item-reward {
  text-align: right;
}

.quests__item-reward-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.quests__item-reward-label {
  font-size: var(--font-size-xs);
  color: var(--app-hint);
}

.quests__item-progress {
  margin-bottom: var(--space-3);
}

.quests__item-progress-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-1);
}

.quests__item-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.quests__item-progress-text {
  font-size: var(--font-size-xs);
  color: var(--app-hint);
  text-align: center;
}

.quests__item-action {
  display: flex;
  justify-content: flex-end;
}

/* Work screen */
.work__states {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.work__state {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.work__state-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
}

.work__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.work__timer-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.work__timer-label {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.work__progress {
  margin-bottom: var(--space-4);
}

.work__progress-bar {
  height: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.work__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.work__progress-text {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  text-align: center;
}

.work__professions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.work__profession {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: var(--transition-normal);
}

.work__profession:hover {
  background: var(--surface-1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.work__profession-icon {
  font-size: 32px;
  margin-bottom: var(--space-2);
  text-align: center;
}

.work__profession-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
  text-align: center;
}

.work__profession-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  text-align: center;
}

.work__profession-earnings {
  margin-top: var(--space-2);
  text-align: center;
}

.work__profession-earnings-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--success);
}

.work__profession-earnings-label {
  font-size: var(--font-size-xs);
  color: var(--app-hint);
}

/* Games screen */
.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.games__card {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: var(--transition-normal);
}

.games__card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.games__card-icon {
  font-size: 48px;
  margin-bottom: var(--space-3);
}

.games__card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-2);
}

.games__card-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  margin-bottom: var(--space-3);
}

.games__card-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: var(--space-3);
}

.games__card-stat {
  text-align: center;
}

.games__card-stat-value {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.games__card-stat-label {
  font-size: var(--font-size-xs);
  color: var(--app-hint);
}

/* Clan screen */
.clan__states {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.clan__state {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.clan__no-clan {
  text-align: center;
}

.clan__no-clan-icon {
  font-size: 64px;
  margin-bottom: var(--space-3);
}

.clan__no-clan-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--app-text);
  margin-bottom: var(--space-2);
}

.clan__no-clan-description {
  font-size: var(--font-size-md);
  color: var(--app-hint);
  margin-bottom: var(--space-4);
}

.clan__no-clan-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.clan__info {
  margin-bottom: var(--space-4);
}

.clan__header {
  text-align: center;
  margin-bottom: var(--space-4);
}

.clan__emblem {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--app-text);
  border: 3px solid var(--accent);
}

.clan__name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
}

.clan__level {
  font-size: var(--font-size-lg);
  color: var(--app-hint);
  margin-bottom: var(--space-2);
}

.clan__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.clan__stat {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}

.clan__stat-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.clan__stat-label {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.clan__sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.clan__section {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.clan__section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
}

.clan__section-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.clan__section-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--surface-1);
  border-radius: var(--radius-md);
}

.clan__section-item-icon {
  font-size: 16px;
}

.clan__section-item-text {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--app-text);
}

.clan__section-item-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home__stats {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .activities__grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .profile__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quests__tabs {
    overflow-x: auto;
  }
  
  .work__professions {
    grid-template-columns: 1fr;
  }
  
  .games__grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  
  .clan__sections {
    grid-template-columns: 1fr;
  }
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.home-hero__stat {
  text-align: center;
}

.home-hero__stat-label {
  font-size: var(--font-size-xs);
  color: var(--app-hint);
  margin-bottom: var(--space-1);
}

.home-hero__stat-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.home-actions {
  margin-bottom: var(--space-5);
}

.home-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.home-status {
  margin-bottom: var(--space-5);
}

.home-status__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-status__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  background: var(--surface-1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.home-status__item:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-status__label {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.home-status__value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--app-text);
}

.home-clan {
  margin-bottom: var(--space-6);
}

.home-clan__card {
  background: linear-gradient(135deg, var(--surface-1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Native Quests Screen Styles */
.quests-screen {
  padding-bottom: 92px;
}

.quests-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 var(--space-2);
}

.quests-tab {
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--app-hint);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: var(--transition-normal);
  border-radius: 0;
}

.quests-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.quests-content {
  padding: 0 var(--space-2);
}

.quest-section {
  margin-bottom: var(--space-5);
}

.quest-section__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
  padding-left: var(--space-1);
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quest {
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.quest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.8;
}

.quest.quest--completed::before {
  background: var(--success);
}

.quest.quest--clan::before {
  background: #7c3aed;
}

.quest__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.quest__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  margin-right: auto;
}

.quest__name {
  flex: 1;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  line-height: 1.3;
  min-width: 0;
}

.quest__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  line-height: 1.35;
  margin-bottom: var(--space-2);
}

.quest__status {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.quest__status--active {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.quest__status--in-progress {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.quest__status--completed {
  background: var(--success-bg);
  color: var(--success-text);
}

.quest__description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.quest__progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  box-shadow: 0 0 8px rgba(76, 141, 255, 0.3);
}

.progress-bar__fill--completed {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.progress-text {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  min-width: 50px;
  text-align: right;
}

.quest__badges {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--random {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--clan {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.quest__completed-date {
  font-size: var(--font-size-xs);
  color: var(--app-hint);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--app-hint);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: var(--space-3);
  opacity: 0.7;
}

.empty-state__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-2);
}

.empty-state__hint {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  line-height: 1.4;
}

.loading {
  text-align: center;
  padding: var(--space-4);
  color: var(--app-hint);
  font-size: var(--font-size-sm);
}

.error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
}

.hidden {
  display: none !important;
}

/* Responsive adjustments for quests */
@media (max-width: 480px) {
  .quests-tabs {
    padding: 0;
  }
  
  .quests-content {
    padding: 0;
  }
  
  .quest {
    padding: var(--space-3);
  }
  
  .quest__header {
    flex-direction: column;
    gap: var(--space-1);
  }
  
  .quest__status {
    align-self: flex-start;
  }
}

.home-clan__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.home-clan__info {
  flex: 1;
}

.home-clan__name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-1);
}

.home-clan__level {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.home-clan__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

/* Profile screen */
.profile-screen {
  padding-bottom: var(--space-8);
}

.profile-screen .profile-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--app-text);
  border: 3px solid var(--accent);
}

.profile-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--app-text);
  margin-bottom: var(--space-2);
}

.profile-username {
  font-size: var(--font-size-base);
  color: var(--app-hint);
  margin-bottom: var(--space-4);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.profile-section {
  margin-bottom: var(--space-6);
}

.profile-section__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
}

.profile-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: var(--space-3);
}

.profile-achievement {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-achievement--unlocked {
  border-color: var(--success);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--success-bg) 100%);
}

/* Activities screen */
.activities-screen {
  padding-bottom: 0;
}

.activities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.activities__card {
  min-height: 120px;
}

/* Quests screen */
.quests-screen {
  padding-bottom: 0;
}

.quests__tabs {
  margin-bottom: var(--space-4);
}

.quests__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quest-card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.quest-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.quests__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.quests__card-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--app-text);
  flex: 1;
}

.quests__card-reward {
  font-size: var(--font-size-sm);
  color: var(--success);
  font-weight: 600;
  white-space: nowrap;
}

.quests__card-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-3);
}

.quests__card-progress {
  margin-bottom: var(--space-3);
}

.quests__card-progress-label {
  font-size: var(--font-size-xs);
  color: var(--app-hint);
  margin-bottom: var(--space-2);
  display: flex;
  justify-content: space-between;
}

.quests__card-action {
  display: flex;
  justify-content: flex-end;
}

/* Work screen */
.work__status {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-5);
  text-align: center;
}

.work__status--active {
  background: linear-gradient(135deg, var(--surface-1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-color: var(--accent);
}

.work__timer {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.work__timer-label {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  margin-bottom: var(--space-3);
}

.work__profession {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: var(--space-2);
}

.work__reward {
  font-size: var(--font-size-md);
  color: var(--success);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.work__professions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.work__profession-card {
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.work__profession-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.work__profession-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.work__profession-name {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--app-text);
}

.work__profession-duration {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
}

.work__profession-description {
  font-size: var(--font-size-sm);
  color: var(--app-hint);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-3);
}

.work__profession-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
}

.work__profession-reward {
  color: var(--success);
  font-weight: 500;
}

.work__profession-risk {
  color: var(--warning);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .home__stats {
    grid-template-columns: 1fr;
  }
  
  .home__quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .activities__grid {
    grid-template-columns: 1fr;
  }
  
  .profile__info-grid {
    grid-template-columns: 1fr;
  }
  
  .home__clan-stats {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* Clan access gate */
.clan-required {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.clan-required__icon {
  font-size: 48px;
  margin-bottom: var(--space-3);
  text-align: center;
}

.clan-required__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--app-text);
  margin-bottom: var(--space-3);
  text-align: center;
}

.clan-required__text {
  color: var(--app-hint);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-normal);
  text-align: center;
}

.clan-required__steps {
  margin: 0 0 var(--space-5);
  padding-left: 20px;
  color: var(--app-text);
  display: grid;
  gap: var(--space-2);
}

.clan-required__steps code {
  font-family: var(--font-family-mono);
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
}

/* Home 2026-03 style (based on provided reference markup) */
.screen-home.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 24px;
}

.screen-home .profile-header {
  background: #151920;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-home .profile-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.screen-home .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.screen-home .avatar-icon {
  font-size: 28px;
}

.screen-home .profile-info {
  flex: 1;
}

.screen-home .profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.screen-home .username {
  font-size: 18px;
  font-weight: 700;
}

.screen-home .level-badge {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #cbd5e1;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-home .xp-bar-container {
  margin-top: 6px;
}

.screen-home .xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.screen-home .xp-bar {
  width: 100%;
  height: 8px;
  background: #1e2533;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-home .xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #475569 0%, #334155 100%);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(71, 85, 105, 0.5);
}

.screen-home .gold-balance {
  background: linear-gradient(135deg, #d4af37 0%, #aa8b2e 100%);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.screen-home .gold-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-home .gold-icon-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 8px;
}

.screen-home .gold-label {
  font-weight: 700;
  color: #1a1a1a;
}

.screen-home .gold-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.screen-home .hero-banner {
  background: linear-gradient(135deg, #4a3d6b 0%, #342951 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-home .hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.screen-home .hero-content {
  position: relative;
  z-index: 1;
}

.screen-home .hero-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.screen-home .hero-icon-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 8px;
}

.screen-home .hero-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.screen-home .hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 16px;
}

.screen-home .hero-button {
  width: 100%;
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.screen-home .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.screen-home .activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.screen-home .activity-card {
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-home .activity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.screen-home .activity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.screen-home .activity-icon-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.screen-home .activity-icon {
  font-size: 24px;
}

.screen-home .status-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.screen-home .status-ready { background: rgba(16, 185, 129, 0.9); color: white; }
.screen-home .status-progress { background: rgba(59, 130, 246, 0.9); color: white; }
.screen-home .status-cooldown { background: rgba(100, 116, 139, 0.9); color: white; }
.screen-home .status-available { background: rgba(245, 158, 11, 0.9); color: white; }
.screen-home .status-live { background: rgba(236, 72, 153, 0.9); color: white; }

.screen-home .activity-title {
  font-size: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.screen-home .progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.screen-home .progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.screen-home .activity-daily { background: linear-gradient(135deg, #d4af37 0%, #aa8b2e 100%); color: #1a1a1a; }
.screen-home .activity-quests { background: linear-gradient(135deg, #2d5f5d 0%, #1e4240 100%); color: #e8eef9; }
.screen-home .activity-work { background: linear-gradient(135deg, #3d4e5f 0%, #2a3644 100%); color: #e8eef9; }
.screen-home .activity-slots { background: linear-gradient(135deg, #3d4a6f 0%, #2a3451 100%); color: #e8eef9; }
.screen-home .activity-coinflip { background: linear-gradient(135deg, #8b7355 0%, #5e4d3a 100%); color: #e8eef9; }
.screen-home .activity-duel { background: linear-gradient(135deg, #6b3838 0%, #4a2626 100%); color: #e8eef9; }
.screen-home .activity-clan { background: linear-gradient(135deg, #4a3d6b 0%, #342951 100%); color: #e8eef9; }
.screen-home .activity-events { background: linear-gradient(135deg, #6b4a6b 0%, #4a3351 100%); color: #e8eef9; }

/* Home (current) */
.home-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 28px;
}

.home-main__hero {
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(145deg, #1e2a45, #2b3a5d 55%, #30465f);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-main__name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}

.home-main__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 10px;
}

.home-main__xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

.home-main__xp-track {
  height: 8px;
  background: rgba(10, 14, 22, 0.56);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.home-main__xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f5d76f, #f3b95f);
  border-radius: 999px;
}

.home-main__cta {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  color: #1a1f29;
  background: linear-gradient(135deg, #f7d97a, #efbe6b);
}

.home-main__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.home-main__stat {
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  background: rgba(26, 34, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


.home-main__stat-value {
  font-size: 15px;
  font-weight: 700;
}

.home-main__stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
}

.home-main__section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.home-main__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-main__action {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(36, 48, 65, 0.95), rgba(24, 33, 46, 0.95));
  border-radius: 14px;
  padding: 12px;
  color: inherit;
}


.home-main__action-title {
  font-size: 14px;
  font-weight: 700;
}

.home-main__action-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  line-height: 1.35;
}

.home-empty {
  text-align: center;
  padding: 28px 16px;
}

.home-empty__title {
  font-size: 18px;
  font-weight: 700;
}

.home-empty__hint {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

/* Loading splash */
.app-loader {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 28px 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 227, 222, 0.2);
  background:
    radial-gradient(120% 110% at 50% 0%, rgba(124, 227, 222, 0.12) 0%, rgba(124, 227, 222, 0) 55%),
    linear-gradient(180deg, rgba(12, 18, 40, 0.82) 0%, rgba(7, 11, 27, 0.92) 100%);
  box-shadow: 0 18px 42px rgba(2, 8, 24, 0.45);
}

.app-loader__image-wrap {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(136, 162, 255, 0.58), rgba(124, 227, 222, 0.5));
  box-shadow: 0 0 26px rgba(124, 227, 222, 0.28);
}

.app-loader__image {
  width: 124px;
  height: 124px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  object-fit: cover;
}

.app-loader__title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
  color: #f3f7ff;
  text-shadow: 0 0 18px rgba(124, 227, 222, 0.26);
}

.app-loader__text {
  margin: 0;
  color: rgba(243, 247, 255, 0.8);
  font-weight: 500;
}

.app-loader__bar {
  width: 220px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(124, 227, 222, 0.2);
  margin-top: 6px;
  border: 1px solid rgba(124, 227, 222, 0.2);
}

.app-loader__bar-fill {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c5cff 0%, #67e8ff 46%, #f5b942 100%);
  animation: app-loader-bar 1.2s ease-in-out infinite alternate;
}

@keyframes app-loader-bar {
  from { transform: translateX(-25%); }
  to { transform: translateX(110%); }
}

/* Embedded games inside Mini App */
.games-embed {
  padding-top: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.games-embed__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.games-embed__title {
  font-size: clamp(13px, 3.8vw, 15px);
  font-weight: 700;
  color: var(--app-text);
  overflow-wrap: anywhere;
}

.games-embed__frame {
  width: 100%;
  flex: 1;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

@media (max-width: 430px) {
  .home-main {
    padding: 12px;
  }

  .home-main__name {
    font-size: clamp(18px, 6vw, 21px);
  }

  .home-main__actions,
  .activities__grid {
    grid-template-columns: 1fr;
  }

  .home-main__action-title {
    font-size: 13px;
  }

  .home-main__action-subtitle {
    font-size: 11px;
  }
}

/* Unified sizing across Mini App screens */
.activities__card,
.quest-card,
.work__profession-card,
.profile__stat,
.home-main__action {
  border-radius: 14px;
  padding: 12px;
}

.activities__card-title,
.quests__card-title,
.work__profession-name,
.home-main__action-title,
.profile__section-title,
.section__title {
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.3;
}

.activities__card-description,
.quests__card-description,
.work__profession-description,
.home-main__action-subtitle,
/* Duels Screen Styles */
.duels-screen {
  padding: var(--spacing-md);
}

.duel-challenge-form {
  background: var(--surface-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-color-secondary);
  margin-bottom: var(--spacing-xs);
}

.form-group__input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-base);
  background: var(--background-color);
  color: var(--text-color);
  transition: border-color var(--transition-fast);
}

.form-group__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group__input::placeholder {
  color: var(--text-color-muted);
}

.pending-duels {
  background: var(--surface-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.pending-duels__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.pending-duels__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.pending-duel {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  transition: transform var(--transition-fast);
}

.pending-duel:hover {
  transform: translateY(-2px);
}

.pending-duel__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.pending-duel__players {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
}

.pending-duel__vs {
  color: var(--text-color-muted);
  font-size: var(--font-size-sm);
}

.pending-duel__bet {
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

.pending-duel__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

.status-badge--pending {
  background: var(--warning-color);
  color: white;
}

.status-badge--accepted {
  background: var(--success-color);
  color: white;
}

.status-badge--declined {
  background: var(--danger-color);
  color: white;
}

.status-badge--expired {
  background: var(--text-color-muted);
  color: white;
}

.status-badge--completed {
  background: var(--primary-color);
  color: white;
}

.pending-duel__timer {
  font-size: var(--font-size-sm);
  color: var(--text-color-secondary);
  font-weight: var(--font-weight-medium);
}

.active-duel {
  background: var(--surface-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
}

.active-duel__header {
  margin-bottom: var(--spacing-lg);
}

.active-duel__players {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.player--challenger {
  color: var(--primary-color);
}

.player--opponent {
  color: var(--danger-color);
}

.player__avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.player__name {
  font-weight: var(--font-weight-bold);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-vs {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-color-muted);
}

.active-duel__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.active-duel__bet {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

.active-duel__timer {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--warning-color);
}

.active-duel__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.duel-actions__pending {
  display: flex;
  gap: var(--spacing-md);
}

.duel-actions__waiting,
.duel-actions__active {
  text-align: center;
}

.duel-status {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-md);
}

.duel-status--waiting {
  background: var(--warning-color-light);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.duel-status--active {
  background: var(--success-color-light);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.duel-result {
  background: var(--surface-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.duel-result__header {
  margin-bottom: var(--spacing-lg);
}

.duel-result__winner {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--success-color);
  margin-bottom: var(--spacing-sm);
}

.duel-result__payout {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--primary-color);
}

.duel-result__details {
  padding: var(--spacing-md);
  background: var(--background-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-lg);
}

.duel-result__players {
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-sm);
}

.duel-result__outcome {
  color: var(--text-color-secondary);
  font-size: var(--font-size-sm);
}

/* Duels Responsive adjustments */
@media (max-width: 768px) {
  .duels-screen {
    padding: var(--spacing-sm);
  }
  
  .duel-challenge-form,
  .pending-duels,
  .active-duel {
    padding: var(--spacing-md);
  }
  
  .active-duel__players {
    gap: var(--spacing-md);
  }
  
  .player__avatar {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  .player__name {
    max-width: 80px;
    font-size: var(--font-size-sm);
  }
  
  .duel-actions__pending {
    flex-direction: column;
  }
  
  .active-duel__info {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

.profile__stat-label,
.section__subtitle {
  font-size: clamp(12px, 3.3vw, 13px);
  line-height: 1.35;
}

.work__timer,
.work__timer-value {
  font-size: clamp(24px, 7vw, 32px);
}
/* ===== Arena UI v2 overrides ===== */
.arena-home {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 28px;
}

.card--hero {
  background:
    radial-gradient(circle at 85% 0%, rgba(103, 232, 255, 0.16), transparent 42%),
    linear-gradient(165deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border-soft);
}

.card--reward {
  background: linear-gradient(155deg, rgba(245, 185, 66, 0.18), rgba(27, 37, 64, 0.9));
  border: 1px solid rgba(245, 185, 66, 0.4);
}

.card--event {
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.2), rgba(27, 37, 64, 0.9));
  border: 1px solid rgba(124, 92, 255, 0.45);
}

.home-main__hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.home-main__name {
  font-size: 24px;
  font-weight: 800;
}

.home-main__identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-main__currency {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.home-main__coin {
  font-size: 18px;
  line-height: 1;
}

.home-main__gold-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.home-main__subtitle {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.home-main__xp-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 6px;
}

.home-main__xp-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.home-main__xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  box-shadow: var(--glow-cyan);
}

.home-main__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.home-main__stat {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 12px 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}


.home-main__stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.home-main__stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.home-main__daily {
  margin-bottom: 14px;
}

.home-main__daily-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.home-main__daily-title,
.home-main__event-title,
.home-main__section-title {
  font-size: 16px;
  font-weight: 700;
}

.home-main__daily-text,
.home-main__event-text {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 13px;
}

.home-main__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.home-main__action {
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 12px;
  color: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.home-main__action:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 212, 253, 0.55);
}


.home-main__action-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.home-main__action-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.home-main__event {
  margin-bottom: 14px;
}

.home-main__event-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-main__event-timer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.home-main__event-timer--active {
  color: var(--cyan-bright);
  font-weight: 700;
}

.home-main__footer-cta {
  margin-top: 4px;
}

.quests-screen .section__title,
.duels-screen .section__title {
  margin-bottom: 6px;
}

.quests-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.quests-tab {
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.quests-tab.active {
  border-color: rgba(33, 212, 253, 0.5);
  color: var(--text-main);
  background: rgba(33, 212, 253, 0.12);
}

.quest-section {
  margin-bottom: 14px;
}

.quest-section__title {
  font-size: 15px;
  margin-bottom: 8px;
}

.quest-list {
  display: grid;
  gap: 10px;
}

.quest {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.quest--clan {
  border-color: rgba(124, 92, 255, 0.45);
}

.quest--completed {
  border-color: rgba(34, 197, 94, 0.42);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(255, 255, 255, 0.01));
}

.quest__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.quest__name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.quest__status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 3px 8px;
}

.quest__status--active,
.quest__status--in-progress {
  background: rgba(33, 212, 253, 0.14);
  color: #a9f1ff;
  border-color: rgba(33, 212, 253, 0.42);
}

.quest__status--completed {
  background: rgba(34, 197, 94, 0.16);
  color: #b8ffd2;
  border-color: rgba(34, 197, 94, 0.46);
}

.quest__description {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.quest__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.quest__progress .progress-bar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quest__progress .progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
}

.quest__progress .progress-bar__fill--completed {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.quest__progress .progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 56px;
  text-align: right;
}

.quest__badges {
  display: flex;
  gap: 6px;
}

.quest__badges .badge {
  font-size: 10px;
}

.quest__badges .badge--random {
  background: rgba(33, 212, 253, 0.14);
  border: 1px solid rgba(33, 212, 253, 0.45);
}

.quest__badges .badge--clan {
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.44);
}

.quest__footer {
  margin-top: 10px;
}

.quest__cta {
  width: 100%;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  color: var(--text-main);
  cursor: default;
  opacity: 1;
}

.quest__cta--claim {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--text-dark-on-gold);
  box-shadow: var(--glow-gold);
}

.quest__cta--progress {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  color: var(--text-dark-on-accent);
  box-shadow: var(--glow-cyan);
}

.quest__cta--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-soft);
  color: var(--text-secondary);
}

.profile-screen {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

.profile-hero {
  margin-bottom: 12px;
}

.profile-hero__top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: linear-gradient(140deg, var(--violet-dark), var(--bg-elevated));
  border: 1px solid rgba(124, 92, 255, 0.45);
}

.profile-hero__name {
  font-size: 20px;
  font-weight: 800;
}

.profile-hero__meta {
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-hero__xp-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 6px;
}

.profile-hero__badges {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.profile-tile {
  text-align: center;
  border: 1px solid var(--border-soft);
}

.profile-tile__value {
  font-size: 16px;
  font-weight: 700;
}

.profile-tile__label {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 3px;
}

.profile-section__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.profile-achievement {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-secondary);
  font-size: 13px;
  min-width: 0;
  aspect-ratio: auto;
}

.profile-achievement .badge {
  flex: 0 0 auto;
}

.profile-achievement > span:last-child {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

.games-screen .activities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.games-screen .activities__card {
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 12px;
}

.games-screen .activities__card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.games-screen .activities__card-description {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 8px;
}

.games-screen .activities__card-status {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
  color: #b8ffd2;
}

.duel-challenge-form,
.pending-duels,
.active-duel,
.duel-result {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.form-group__input {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
}

.form-group__input:focus {
  border-color: rgba(33, 212, 253, 0.5);
  box-shadow: 0 0 0 2px rgba(33, 212, 253, 0.14);
}

.status-badge--pending {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #ffd993;
}

.status-badge--accepted,
.status-badge--completed {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #b8ffd2;
}

.status-badge--declined,
.status-badge--expired {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ffd0d0;
}

@media (max-width: 430px) {
  .home-main__actions,
  .games-screen .activities__grid {
    grid-template-columns: 1fr;
  }

  .home-main__stats,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-achievements {
    grid-template-columns: 1fr;
  }
}

.pets-stage {
  --pets-cyan: #31d7ff;
  --pets-gold: #f6c85f;
  --pets-green: #4ade80;
  --pets-amber: #f59e0b;
  --pets-line: rgba(255, 255, 255, 0.1);
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.pets-stage__root {
  display: grid;
  gap: 14px;
}

.pets-stage__hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(49, 215, 255, 0.24);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 16% 12%, rgba(49, 215, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(246, 200, 95, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(9, 13, 28, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.pets-stage__hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(246, 200, 95, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 200, 95, 0.12), transparent 66%);
  pointer-events: none;
}

.pets-stage__eyebrow {
  color: var(--pets-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pets-stage__title {
  max-width: 560px;
  margin: 6px 0 8px;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.pets-stage__lead {
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.pets-stage__hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.pets-stage__metric {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.pets-stage__metric-label,
.pets-stage__metric-hint,
.pets-stage__section-subtitle,
.pets-stage__step-detail,
.pets-card__description,
.pets-card__stats,
.pets-stage__history-empty {
  color: var(--text-secondary);
}

.pets-stage__metric-label,
.pets-stage__metric-hint {
  font-size: 11px;
}

.pets-stage__metric-value {
  overflow: hidden;
  margin: 4px 0 2px;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pets-stage__next {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  border-left: 3px solid var(--pets-gold);
  padding: 10px 12px;
  border-radius: 0 14px 14px 0;
  background: rgba(246, 200, 95, 0.09);
  color: #ffe6a8;
  font-size: 13px;
  font-weight: 700;
}

.pets-stage__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pets-stage__step {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--pets-line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.pets-stage__step.is-current {
  border-color: rgba(49, 215, 255, 0.42);
  background: rgba(49, 215, 255, 0.08);
}

.pets-stage__step.is-done {
  border-color: rgba(74, 222, 128, 0.42);
  background: rgba(74, 222, 128, 0.08);
}

.pets-stage__step-index {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  font-weight: 800;
}

.pets-stage__step.is-done .pets-stage__step-index {
  background: rgba(74, 222, 128, 0.18);
  color: #c8ffd8;
}

.pets-stage__step-label {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pets-stage__step-detail {
  overflow: hidden;
  margin-top: 2px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pets-stage__section,
.pets-stage__history,
.pets-stage__loading {
  border: 1px solid var(--pets-line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.pets-stage__section--relics {
  border-color: rgba(246, 200, 95, 0.18);
}

.pets-stage__section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pets-stage__section-title {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.pets-stage__section-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.pets-stage__section-action {
  flex: 0 0 auto;
}

.pets-stage__collection {
  display: grid;
  gap: 10px;
}

.pets-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(15, 23, 42, 0.76);
}

.pets-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.pets-card--rare::before {
  background: var(--pets-cyan);
}

.pets-card--epic::before {
  background: #a78bfa;
}

.pets-card--legendary::before {
  background: var(--pets-gold);
}

.pets-card.is-active {
  border-color: rgba(49, 215, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(49, 215, 255, 0.1);
}

.pets-card__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pets-card__kicker {
  color: var(--pets-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pets-card__title {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.pets-card__bonus {
  flex: 0 0 auto;
  min-width: 58px;
  text-align: right;
  color: #d7f8ff;
  font-size: 22px;
  font-weight: 900;
}

.pets-card__bonus span {
  display: block;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pets-card__description {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.pets-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
}

.pets-card__stats span,
.pets-stage__state-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.04);
}

.pets-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.pets-stage .btn {
  min-height: 44px;
  touch-action: manipulation;
}

.pets-stage__state-chip {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.pets-stage__state-chip--active {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(74, 222, 128, 0.12);
  color: #c8ffd8;
}

.pets-stage__history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pets-stage__history-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.pets-stage__history-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pets-stage__history-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

.pets-stage__history-row b {
  display: block;
  line-height: 1.3;
}

.pets-stage__history-row small {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
}

.pets-stage__history-source {
  flex: 0 0 auto;
  min-width: 52px;
  color: var(--pets-cyan);
  font-weight: 800;
}

.pets-stage__history-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
}

.pets-stage__footer {
  display: flex;
  justify-content: center;
}

.pets-stage__loading {
  display: grid;
  gap: 12px;
}

.pets-stage__loading-line,
.pets-stage__loading-grid span {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  animation: pets-stage-shimmer 1.15s ease-in-out infinite;
}

.pets-stage__loading-line--short {
  width: 70%;
}

.pets-stage__loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pets-stage__loading-grid span {
  height: 74px;
  border-radius: 16px;
}

@keyframes pets-stage-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pets-stage__loading-line,
  .pets-stage__loading-grid span {
    animation: none;
  }
}

@media (max-width: 560px) {
  .pets-stage {
    padding: 12px;
  }

  .pets-stage__hero {
    border-radius: 22px;
    padding: 18px;
  }

  .pets-stage__hero-grid,
  .pets-stage__rail,
  .pets-stage__history-grid,
  .pets-stage__loading-grid {
    grid-template-columns: 1fr;
  }

  .pets-stage__section-head {
    display: grid;
  }

  .pets-stage__section-action,
  .pets-stage__section-action .btn {
    width: 100%;
  }
}

/* ===== Stage 5.5: pets-inspired visual polish for core screens ===== */
.screen,
.home-main {
  max-width: 720px;
  margin: 0 auto;
}

.screen {
  position: relative;
  isolation: isolate;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(49, 215, 255, 0.12), transparent 36%),
    radial-gradient(circle at 90% 6%, rgba(246, 200, 95, 0.1), transparent 34%);
  z-index: -1;
}

.screen .section,
.home-main > .card,
.profile-hero,
.profile-section,
#clanBasePanel,
.home-main__action,
.games-screen .activities__card,
.quest,
.profile-achievement,
.profile-tile,
.empty-state,
.games-embed__toolbar,
.games-embed__frame {
  border: 1px solid rgba(49, 215, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(9, 13, 28, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.screen .section {
  border-radius: 20px;
  padding: 14px;
}

.profile-screen,
.quests-screen,
.games-screen,
.clan-screen {
  max-width: 720px;
  margin: 0 auto;
}

.section__title,
.profile-section__title,
.home-main__daily-title,
.home-main__event-title,
.home-main__section-title {
  color: #eef7ff;
  letter-spacing: 0.01em;
}

.section__subtitle,
.home-main__daily-text,
.home-main__event-text,
.home-main__action-subtitle,
.profile-tile__label,
.profile-achievement,
.quest__description {
  color: #a8b7ce;
}

.home-main__action,
.games-screen .activities__card,
.quest,
.profile-achievement,
.profile-tile {
  border-radius: 16px;
}

.profile-hero__avatar {
  box-shadow: 0 0 0 1px rgba(49, 215, 255, 0.28), 0 10px 24px rgba(0, 0, 0, 0.24);
}

.badge,
.quest__status,
.activities__card-status {
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.quest__cta--ghost,
.btn.btn--ghost {
  border-color: rgba(49, 215, 255, 0.28);
  background: rgba(15, 23, 42, 0.7);
}

.home-main__action:hover,
.games-screen .activities__card:hover,
.quest:hover {
  border-color: rgba(49, 215, 255, 0.5);
  transform: translateY(-2px);
}

.home-main__hero.card--hero {
  border-color: rgba(49, 215, 255, 0.34);
  background:
    radial-gradient(circle at 86% 0%, rgba(49, 215, 255, 0.2), transparent 36%),
    radial-gradient(circle at 14% 18%, rgba(246, 200, 95, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 30, 0.96));
}

.card--reward {
  border-color: rgba(246, 200, 95, 0.45);
}

.card--event {
  border-color: rgba(49, 215, 255, 0.36);
}

.quests-tabs {
  gap: 10px;
}

.quests-tab {
  border-color: rgba(49, 215, 255, 0.28);
  background: rgba(15, 23, 42, 0.76);
  color: #b9c7dd;
}

.quests-tab.active {
  border-color: rgba(49, 215, 255, 0.62);
  background: rgba(49, 215, 255, 0.16);
  color: #eaf7ff;
  box-shadow: 0 0 0 1px rgba(49, 215, 255, 0.15) inset;
}

.quest--clan {
  border-color: rgba(160, 127, 255, 0.56);
}

.quest--completed {
  border-color: rgba(74, 222, 128, 0.52);
}

.games-embed__frame {
  min-height: 66vh;
}

.home-main__action-title,
.activities__card-title,
.quest__name,
.profile-tile__value {
  overflow-wrap: anywhere;
}

.clan-screen .section {
  margin-bottom: 12px;
}

.clan-summary {
  border-radius: 18px;
  padding: 14px;
}

.clan-summary__head {
  text-align: center;
  margin-bottom: 16px;
}

.clan-summary__icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.clan-summary__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.clan-summary__meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.clan-grid {
  margin-bottom: 12px;
}

.clan-feed-panel {
  display: grid;
  gap: 8px;
}

.clan-empty {
  border: 1px solid rgba(143, 155, 179, 0.24);
  border-radius: 14px;
  background: rgba(20, 31, 56, 0.56);
  color: #b8cbe4;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
}

.clan-activity-card {
  border: 1px solid rgba(255, 122, 47, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 122, 47, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(29, 24, 34, 0.96), rgba(15, 12, 22, 0.96));
  padding: 12px;
}

.clan-activity-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.clan-activity-card__progress {
  color: #ffbf8a;
  font-size: 13px;
  font-weight: 800;
}

.clan-activity-card__title {
  margin-top: 8px;
  color: #f4f7fb;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.clan-activity-card__reward {
  margin-top: 6px;
  color: #d4deef;
  font-size: 13px;
  line-height: 1.35;
}

.clan-activity-card__bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.clan-activity-card__bar > span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a2f, #ffcb45);
  box-shadow: 0 0 12px rgba(255, 122, 47, 0.45);
}

.clan-journal-card {
  border: 1px solid rgba(53, 167, 255, 0.28);
  border-radius: 14px;
  background: rgba(14, 23, 41, 0.78);
  padding: 11px;
}

.clan-journal-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.clan-journal-card__date {
  color: #8fa8c8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.clan-journal-card__text {
  margin-top: 7px;
  color: #dbe8ff;
  font-size: 13px;
  line-height: 1.35;
}

.clan-journal-tabs {
  margin-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.clan-journal-tabs::-webkit-scrollbar {
  display: none;
}

.clan-journal-more {
  margin-top: 4px;
}

.clan-journal-more .btn {
  width: 100%;
}

.clan-feed-item small {
  color: var(--text-secondary);
  font-size: 11px;
}

.clan-base-banner {
  margin-bottom: 10px;
}

.clan-effects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.clan-effects-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  padding: 10px;
}

.clan-effects-card__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.clan-effects-card__list {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.clan-effects-card__features {
  font-size: 11px;
  color: var(--text-muted);
}

.clan-upcoming {
  border-radius: 14px;
  border: 1px solid rgba(80, 168, 255, 0.35);
  background: linear-gradient(145deg, rgba(27, 56, 94, 0.68), rgba(14, 29, 52, 0.68));
  padding: 10px;
  margin-bottom: 10px;
}

.clan-upcoming__title {
  font-size: 12px;
  font-weight: 800;
  color: #d5ebff;
  margin-bottom: 6px;
}

.clan-upcoming__text {
  font-size: 12px;
  color: #9cc6ef;
}

.clan-next-delta {
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.38);
  background: linear-gradient(145deg, rgba(20, 55, 43, 0.62), rgba(12, 32, 28, 0.62));
  padding: 10px;
  margin-bottom: 10px;
}

.clan-next-delta__title {
  font-size: 12px;
  font-weight: 800;
  color: #cdf7df;
  margin-bottom: 6px;
}

.clan-next-delta__list {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #9cd9b7;
}

.clan-panel-actions {
  margin-top: 10px;
}

.clan-panel-actions--double {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 560px) {
  .screen .section {
    border-radius: 18px;
    padding: 12px;
  }

  .home-main__action,
  .games-screen .activities__card,
  .quest,
  .profile-achievement,
  .profile-tile {
    border-radius: 14px;
  }

  .clan-panel-actions--double {
    grid-template-columns: 1fr;
  }

  .clan-effects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Stage 5.5 QA pass: rhythm and spacing stabilization ===== */
.screen {
  padding: 12px 16px 20px;
}

.screen .section {
  margin-bottom: 12px;
}

.screen .section:last-child {
  margin-bottom: 0;
}

.quests-content {
  padding: 0;
}

.quests-screen .section__title,
.games-screen .section__title,
.clan-screen .section__title,
.profile-section__title {
  margin-bottom: 10px;
}

.profile-section,
.profile-hero {
  padding: 14px;
}

.activities__card-status--locked {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.14);
  color: #ffd0d0;
}

@media (max-width: 560px) {
  .screen {
    padding: 10px 12px 16px;
  }
}

/* Stage 5.5 UI tune: activities/work aligned with pets visual language */
.activities-stage .section,
.work-stage {
  border: 1px solid rgba(49, 215, 255, 0.2);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 14% 0%, rgba(49, 215, 255, 0.14), transparent 36%),
    linear-gradient(155deg, rgba(14, 22, 40, 0.98), rgba(10, 15, 30, 0.96));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

.activities-stage .activities__grid {
  gap: 12px;
}

.activities-stage .activities__card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  min-height: 144px;
}

.activities-stage .activities__card-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 18px;
  margin-bottom: 8px;
}

.activities-stage .activities__card-status {
  border: 1px solid rgba(49, 215, 255, 0.38);
  background: rgba(49, 215, 255, 0.12);
  color: #d6f8ff;
}

.activities-stage__hero {
  border: 1px solid rgba(53, 167, 255, 0.42);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 12% 0, rgba(24, 224, 208, 0.18), transparent 36%),
    radial-gradient(circle at 88% 20%, rgba(139, 92, 255, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 30, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.activities-stage__kicker {
  color: #8de8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.activities-stage__title {
  margin-top: 8px;
  color: #eef7ff;
  font-size: 24px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.activities-stage__lead {
  margin-top: 8px;
  color: #bed0ea;
  font-size: 14px;
  line-height: 1.4;
}

.activities-stage .activities__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 152px;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.activities-stage .activities__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.activities-stage .activities__card-icon {
  position: relative;
  z-index: 1;
}

.activities-stage .activities__card-title,
.activities-stage .activities__card-description,
.activities-stage .activities__card-status {
  position: relative;
  z-index: 1;
}

.activities-stage .activities__card-title {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 850;
  color: #eef7ff;
}

.activities-stage .activities__card-description {
  margin-top: 6px;
  color: #c1d2eb;
  font-size: 13px;
  line-height: 1.35;
}

.activities-stage .activities__card-status {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.activities-stage .activities__card--quest {
  border-color: rgba(139, 92, 255, 0.5);
  background: linear-gradient(145deg, rgba(45, 30, 77, 0.95), rgba(19, 13, 33, 0.95));
}

.activities-stage .activities__card--work {
  border-color: rgba(53, 208, 127, 0.45);
  background: linear-gradient(145deg, rgba(19, 56, 43, 0.95), rgba(12, 31, 24, 0.95));
}

.activities-stage .activities__card--luck {
  border-color: rgba(255, 203, 69, 0.48);
  background: linear-gradient(145deg, rgba(60, 47, 24, 0.95), rgba(27, 20, 10, 0.95));
}

.activities-stage .activities__card--clan {
  border-color: rgba(255, 122, 47, 0.52);
  background: linear-gradient(145deg, rgba(60, 32, 20, 0.95), rgba(28, 14, 10, 0.95));
}

.activities-stage .activities__card--season {
  border-color: rgba(53, 167, 255, 0.5);
  background: linear-gradient(145deg, rgba(19, 41, 70, 0.95), rgba(10, 20, 35, 0.95));
}

@media (max-width: 560px) {
  .activities-stage__title {
    font-size: 21px;
  }

  .activities-stage .activities__grid {
    grid-template-columns: 1fr;
  }
}

/* Home reference pass */
.lobby {
  max-width: 480px;
  padding: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lobby-card {
  border-radius: 16px;
  padding: 14px;
}

.lobby-card--player,
.lobby-card--goal,
.lobby-card--season,
.lobby-card--loadout,
.lobby-card--quick,
.lobby-card--work {
  grid-column: 1 / -1;
}

.lobby-card--player {
  padding: 14px;
  min-height: 126px;
}

.lobby-player__top {
  align-items: flex-start;
  gap: 12px;
}

.lobby-player__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border-width: 2px;
  font-size: 22px;
  box-shadow:
    0 0 0 5px rgba(139, 92, 255, 0.12),
    0 0 24px rgba(139, 92, 255, 0.42);
}

.lobby-player__name {
  font-size: 24px;
  line-height: 1.05;
}

.lobby-player__row {
  align-items: flex-start;
}

.lobby-player__gold-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 17px;
  color: #ffd86f;
  background: rgba(255, 203, 69, 0.11);
}

.lobby-player__subrow {
  margin-top: 8px;
}

.lobby-player__level {
  padding: 7px 12px;
  font-size: 14px;
  border-radius: 14px;
}

.lobby-player__clan {
  font-size: 14px;
  color: #c0cbe0;
}

.lobby-player__meta {
  margin-top: 11px;
  font-size: 14px;
}

.lobby-progress {
  height: 8px;
}

.lobby-card--goal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 10px;
  min-height: 178px;
  padding: 16px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 46%, rgba(216, 76, 255, 0.32), transparent 35%),
    radial-gradient(circle at 96% 12%, rgba(255, 122, 47, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(26, 18, 52, 0.98), rgba(9, 13, 27, 0.96));
  border-color: rgba(216, 76, 255, 0.62);
}

.lobby-card--goal .lobby-card__title {
  font-size: 24px;
  margin-bottom: 10px;
}

.lobby-card--goal .lobby-card__desc {
  font-size: 16px;
  line-height: 1.35;
}

.lobby-card--goal .lobby-card__meta {
  font-size: 17px;
}

.lobby-card--goal .lobby-card__meta b {
  color: #c66bff;
}

.lobby-card--goal .lobby-card__reward {
  margin-top: 14px;
  color: #66d8ff;
}

.lobby-goal__art {
  position: relative;
  min-height: 142px;
}

.lobby-goal__art::before {
  content: "";
  position: absolute;
  inset: 9px 2px 0 auto;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 122, 47, 0.95) 0 8%, transparent 9%),
    repeating-radial-gradient(circle, rgba(216, 76, 255, 0.55) 0 12px, rgba(255, 255, 255, 0.08) 13px 23px);
  border: 1px solid rgba(216, 76, 255, 0.68);
  box-shadow: 0 0 34px rgba(216, 76, 255, 0.45);
}

.lobby-goal__art span {
  position: absolute;
  right: 18px;
  top: 48px;
  width: 94px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a2f, #ffd27a);
  transform: rotate(-28deg);
  box-shadow: 0 0 16px rgba(255, 122, 47, 0.5);
}

.lobby .btn.btn--block {
  min-height: 48px;
  border-radius: 14px;
}

.lobby-card--goal .btn--primary {
  max-width: 176px;
}

.lobby-card--checkin,
.lobby-card--event {
  min-height: 222px;
  padding: 14px;
}

.lobby-card--checkin {
  background:
    radial-gradient(circle at 50% 70%, rgba(24, 224, 208, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(9, 46, 50, 0.96), rgba(7, 18, 28, 0.96));
}

.lobby-card--event {
  background:
    radial-gradient(circle at 82% 38%, rgba(255, 92, 55, 0.34), transparent 36%),
    linear-gradient(145deg, rgba(45, 18, 14, 0.96), rgba(10, 13, 22, 0.96));
}

.lobby-card--checkin .lobby-card__title,
.lobby-card--event .lobby-card__title {
  font-size: 17px;
}

.lobby-checkin__art {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 2px;
}

.lobby-checkin__art::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff0b8, #ffcb45 42%, #b9790d 72%);
  box-shadow: 0 0 18px rgba(255, 203, 69, 0.35);
}

.lobby-checkin__art span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  border-radius: 12px;
  color: #d9efff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(53, 167, 255, 0.85), rgba(24, 224, 208, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lobby-event__art {
  min-height: 56px;
  margin: 4px 0;
  background:
    radial-gradient(ellipse at 72% 40%, rgba(255, 122, 47, 0.8), transparent 28%),
    radial-gradient(ellipse at 76% 22%, rgba(255, 92, 55, 0.35), transparent 34%);
  clip-path: polygon(22% 62%, 45% 20%, 73% 8%, 94% 28%, 80% 58%, 95% 86%, 56% 72%, 28% 92%);
  filter: drop-shadow(0 0 14px rgba(255, 122, 47, 0.48));
}

.lobby-card--event .btn--primary {
  background: linear-gradient(135deg, #e2461f, #ff7a2f);
  box-shadow: 0 0 22px rgba(255, 122, 47, 0.36);
}

.lobby-card--season {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.lobby-season__emblem {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: linear-gradient(145deg, rgba(139, 92, 255, 0.42), rgba(53, 167, 255, 0.14));
  border: 1px solid rgba(139, 92, 255, 0.4);
}

.lobby-card--season .lobby-card__title {
  font-size: 18px;
}

.lobby-card--season .btn {
  min-width: 120px;
  margin-top: 0;
}

.lobby-season__next {
  padding: 0;
  border: 0;
  background: transparent;
  color: #aebfda;
}

.lobby-card--loadout {
  padding: 13px;
}

.lobby-loadout__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 116px;
  align-items: stretch;
}

.lobby-loadout__grid::after {
  content: none;
  display: none;
}

.lobby-loadout__action {
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 224, 208, 0.48);
  border-radius: 14px;
  background: rgba(24, 224, 208, 0.06);
  color: #74efe1;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  padding: 8px;
  cursor: pointer;
}

.lobby-card--loadout > .btn {
  display: none;
}

.lobby-card--quick {
  padding: 12px;
}

.lobby-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lobby-quick-actions__btn {
  min-height: 56px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
}

@media (min-width: 700px) {
  .lobby {
    max-width: 480px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .lobby {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .lobby-card--half {
    grid-column: 1 / -1;
  }

  .lobby-card--goal {
    grid-template-columns: 1fr;
  }

  .lobby-goal__art {
    display: none;
  }

  .lobby-card--season {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .lobby-card--season .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .lobby-loadout__grid {
    grid-template-columns: 1fr;
  }
}

.work-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-stage__hero {
  border: 1px solid rgba(246, 200, 95, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.work-stage__eyebrow {
  color: #31d7ff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.work-stage__title {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  margin-top: 6px;
}

.work-stage__lead {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.work-stage__toolbar {
  margin-bottom: 0;
}

.work-stage__frame {
  border-radius: 16px;
}

.profile-amount-badge {
  flex: 0 0 auto;
  min-width: 58px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.profile-amount-badge--plus {
  color: #b8ffd2;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
}

.profile-amount-badge--minus {
  color: #ffd0d0;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}

/* Lobby MVP */
.lobby {
  --ca-cyan: #18e0d0;
  --ca-blue: #35a7ff;
  --ca-purple: #8b5cff;
  --ca-gold: #ffcb45;
  --ca-orange: #ff7a2f;
  --ca-green: #35d07f;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.lobby-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(143, 155, 179, 0.22);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(24, 34, 58, 0.94), rgba(10, 16, 31, 0.95));
  padding: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.lobby-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 0 0, rgba(139, 92, 255, 0.11), transparent 40%);
}

.lobby-card > * {
  position: relative;
  z-index: 1;
}

.lobby-card--goal {
  border-color: rgba(139, 92, 255, 0.55);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(139, 92, 255, 0.2);
}

.lobby-card--event {
  border-color: rgba(255, 122, 47, 0.56);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(255, 122, 47, 0.22);
}

.lobby-card--player {
  border-color: rgba(53, 167, 255, 0.42);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(53, 167, 255, 0.16);
}

.lobby-card--checkin {
  border-color: rgba(24, 224, 208, 0.54);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(24, 224, 208, 0.2);
}

.lobby-card--season {
  border-color: rgba(53, 167, 255, 0.46);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(53, 167, 255, 0.16);
}

.lobby-card--loadout,
.lobby-card--quick,
.lobby-card--work {
  border-color: rgba(24, 224, 208, 0.28);
}

.lobby-card--half {
  width: 100%;
}

.lobby-player__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lobby-player__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lobby-player__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #f5f8ff;
  border: 1px solid rgba(139, 92, 255, 0.52);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(109, 66, 205, 0.6), rgba(35, 24, 74, 0.9));
  box-shadow: 0 0 18px rgba(139, 92, 255, 0.35);
}

.lobby-player__main {
  min-width: 0;
  flex: 1;
}

.lobby-player__subrow {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lobby-player__name {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  color: #eef7ff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-player__level {
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.16);
  color: #ddd3ff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.lobby-player__gold-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 203, 69, 0.45);
  background: rgba(255, 203, 69, 0.12);
  color: #ffd875;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.lobby-player__clan {
  color: #b9c8de;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-player__meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #dce9ff;
  font-size: 14px;
  font-weight: 700;
}

.lobby-card__title {
  color: #eef7ff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 8px;
}

.lobby-card__desc {
  color: #d7e6fc;
  font-size: 16px;
  line-height: 1.42;
}

.lobby-card__meta {
  margin-top: 8px;
  color: #9db1cc;
  font-size: 14px;
}

.lobby-card__reward {
  margin-top: 10px;
  color: #5cd0ff;
  font-size: 15px;
  font-weight: 800;
}

.lobby-card--goal .lobby-card__reward {
  color: #63d8ff;
}

.lobby-card--checkin .lobby-card__reward {
  color: #7ef0d6;
}

.lobby-card--event .lobby-card__reward {
  color: #ffbf8a;
}

.lobby-progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.lobby-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ca-purple), var(--ca-blue), var(--ca-cyan));
  box-shadow: 0 0 16px rgba(53, 167, 255, 0.5);
}

.lobby-loadout__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #c7d6ee;
  margin-bottom: 6px;
}

.lobby-loadout__row b {
  color: #f2f7ff;
}

.lobby-loadout__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lobby-loadout__item {
  border: 1px solid rgba(53, 167, 255, 0.24);
  border-radius: 14px;
  background: rgba(20, 31, 56, 0.65);
  padding: 10px;
  min-width: 0;
}

.lobby-loadout__label {
  color: #95accd;
  font-size: 12px;
  font-weight: 700;
}

.lobby-loadout__value {
  margin-top: 4px;
  color: #eef7ff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-loadout__bonus {
  margin-top: 4px;
  color: #66d8ff;
  font-size: 13px;
  font-weight: 700;
}

.lobby-season__next {
  margin-top: 10px;
  border: 1px solid rgba(53, 167, 255, 0.36);
  border-radius: 12px;
  background: rgba(53, 167, 255, 0.08);
  color: #88d6ff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

.lobby-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lobby-quick-actions__btn {
  border-radius: 14px;
  border: 1px solid rgba(53, 167, 255, 0.28);
  background: rgba(20, 31, 56, 0.74);
  color: #d9e8ff;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  cursor: pointer;
}

.lobby-quick-actions__btn:hover {
  border-color: rgba(24, 224, 208, 0.52);
  background: rgba(24, 224, 208, 0.1);
}

.lobby .btn.btn--primary {
  background: linear-gradient(135deg, var(--ca-purple), #b832ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 22px rgba(139, 92, 255, 0.35);
  font-weight: 900;
}

.lobby .btn.btn--gold {
  background: linear-gradient(135deg, #10bfb3, var(--ca-cyan));
  color: #06231f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 22px rgba(24, 224, 208, 0.3);
}

.lobby .btn.btn--secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 31, 56, 0.78);
}

.lobby .btn.btn--block {
  margin-top: 12px;
  min-height: 50px;
  border-radius: 14px;
}

@media (min-width: 700px) {
  .lobby {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .lobby-card--player,
  .lobby-card--goal,
  .lobby-card--season,
  .lobby-card--loadout,
  .lobby-card--quick {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .lobby-card {
    padding: 14px;
    border-radius: 16px;
  }

  .lobby-player__top {
    gap: 10px;
  }

  .lobby-player__avatar {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 17px;
  }

  .lobby-player__name {
    font-size: 22px;
  }

  .lobby-player__gold-pill {
    padding: 5px 9px;
    font-size: 12px;
  }

  .lobby-player__subrow {
    gap: 8px;
  }

  .lobby-card__title {
    font-size: 20px;
  }

  .lobby-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-loadout__grid {
    grid-template-columns: 1fr;
  }
}

/* Quests Neo Layer */
.quests-screen .section {
  border-radius: 22px;
}

.quests-screen .section__title {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.quests-screen .section__subtitle {
  color: #c3cfe4;
  font-size: 14px;
}

.quests-tabs {
  gap: 10px;
  margin: 16px 0;
}

.quests-tab {
  border-radius: 14px;
  border: 1px solid rgba(53, 167, 255, 0.28);
  background: rgba(18, 28, 50, 0.82);
  color: #9fb3cf;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.quests-tab.active {
  border-color: rgba(24, 224, 208, 0.54);
  background: linear-gradient(135deg, rgba(24, 224, 208, 0.18), rgba(53, 167, 255, 0.16));
  color: #eaf8ff;
  box-shadow: 0 0 18px rgba(24, 224, 208, 0.2);
}

.quest-section {
  margin-bottom: 16px;
}

.quest-section__title {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 850;
  color: #e8f3ff;
}

.quest-list {
  gap: 12px;
}

.quest {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(143, 155, 179, 0.24);
  background:
    linear-gradient(145deg, rgba(21, 31, 54, 0.96), rgba(9, 14, 28, 0.96));
  padding: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.quest::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 35%),
    radial-gradient(circle at 0 0, rgba(139, 92, 255, 0.11), transparent 40%);
}

.quest > * {
  position: relative;
  z-index: 1;
}

.quest--clan {
  border-color: rgba(255, 122, 47, 0.52);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(255, 122, 47, 0.18);
}

.quest--completed {
  border-color: rgba(53, 208, 127, 0.56);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(53, 208, 127, 0.2);
}

.quest__header {
  margin-bottom: 8px;
}

.quest__title {
  color: #eef7ff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
}

.quest__description {
  color: #c6d3e8;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.quest__status {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.quest__progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.quest__progress .progress-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.quest__progress .progress-bar__fill {
  background: linear-gradient(90deg, #8b5cff, #35a7ff, #18e0d0);
  box-shadow: 0 0 14px rgba(53, 167, 255, 0.5);
}

.quest__progress .progress-bar__fill--completed {
  background: linear-gradient(90deg, #1fb868, #35d07f);
  box-shadow: 0 0 14px rgba(53, 208, 127, 0.45);
}

.quest__progress .progress-text {
  color: #a9bfdc;
  font-size: 13px;
  font-weight: 700;
  min-width: 54px;
}

.quest__rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.quest__reward-tag {
  border-radius: 999px;
  border: 1px solid rgba(143, 155, 179, 0.3);
  background: rgba(14, 23, 41, 0.8);
  color: #d9e7ff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.quest__reward-tag--xp {
  border-color: rgba(53, 167, 255, 0.42);
  color: #77c0ff;
}

.quest__reward-tag--gold {
  border-color: rgba(255, 203, 69, 0.5);
  color: #ffd56f;
}

.quest__reward-tag--season {
  border-color: rgba(24, 224, 208, 0.5);
  color: #79efdf;
}

.quest__cta {
  border-radius: 14px;
  min-height: 46px;
  font-size: 14px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.quest__cta--claim {
  background: linear-gradient(135deg, #10bfb3, #18e0d0);
  color: #042620;
  box-shadow: 0 0 18px rgba(24, 224, 208, 0.28);
}

.quest__cta--progress {
  background: linear-gradient(135deg, #8b5cff, #b832ff);
  box-shadow: 0 0 18px rgba(139, 92, 255, 0.3);
}

.quest__cta--ghost {
  border-color: rgba(53, 167, 255, 0.26);
  background: rgba(20, 31, 56, 0.74);
  color: #b8cbe4;
}

@media (max-width: 560px) {
  .quests-tab {
    flex: 1;
    text-align: center;
  }

  .quest {
    border-radius: 16px;
    padding: 12px;
  }

  .quest__title {
    font-size: 17px;
  }

  .quest__cta {
    min-height: 44px;
  }
}

/* Season Screen */
.season-screen .section {
  border-radius: 22px;
}

.season-hero {
  border: 1px solid rgba(139, 92, 255, 0.5);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 0, rgba(139, 92, 255, 0.2), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(53, 167, 255, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(18, 24, 46, 0.98), rgba(8, 12, 24, 0.96));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(139, 92, 255, 0.2);
}

.season-hero__kicker {
  color: #9fd9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.season-hero__title {
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  color: #f2f7ff;
  letter-spacing: -0.03em;
}

.season-hero__lead {
  margin: 0;
  color: #c5d1e6;
  font-size: 14px;
  line-height: 1.45;
}

.season-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.season-pill {
  border: 1px solid rgba(53, 167, 255, 0.38);
  border-radius: 999px;
  background: rgba(53, 167, 255, 0.1);
  color: #bfe5ff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.season-progress {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.season-progress > span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cff, #35a7ff, #18e0d0);
  box-shadow: 0 0 16px rgba(53, 167, 255, 0.48);
}

.season-next {
  margin-top: 12px;
  border: 1px solid rgba(24, 224, 208, 0.38);
  border-radius: 12px;
  background: rgba(24, 224, 208, 0.08);
  color: #88efe1;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 11px;
}

.season-hero__actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.season-hero__actions .btn {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 900;
}

@media (max-width: 560px) {
  .season-hero {
    border-radius: 18px;
    padding: 14px;
  }

  .season-hero__title {
    font-size: 25px;
  }

  .season-hero__actions {
    grid-template-columns: 1fr;
  }
}

/* Home reference final overrides */
.lobby {
  max-width: 480px;
  padding: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lobby-card--player,
.lobby-card--goal,
.lobby-card--season,
.lobby-card--loadout,
.lobby-card--quick,
.lobby-card--work {
  grid-column: 1 / -1;
}

.lobby-card {
  border-radius: 16px;
}

.lobby-card--goal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 10px;
  min-height: 178px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 46%, rgba(216, 76, 255, 0.32), transparent 35%),
    radial-gradient(circle at 96% 12%, rgba(255, 122, 47, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(26, 18, 52, 0.98), rgba(9, 13, 27, 0.96));
  border-color: rgba(216, 76, 255, 0.62);
}

.lobby-card--goal .lobby-card__title {
  font-size: 24px;
}

.lobby-goal__art {
  display: block;
}

.lobby-card--checkin,
.lobby-card--event {
  grid-column: auto;
  min-height: 222px;
}

.lobby-card--season {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lobby-card--season .btn {
  min-width: 120px;
  margin-top: 0;
}

.lobby-loadout__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 116px;
}

.lobby-loadout__grid::after {
  content: none;
  display: none;
}

.lobby-loadout__action {
  display: grid;
}

.lobby-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .lobby {
    max-width: 480px;
  }
}

@media (max-width: 390px) {
  .lobby {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .lobby-card--half {
    grid-column: 1 / -1;
  }

  .lobby-card--goal {
    grid-template-columns: 1fr;
  }

  .lobby-goal__art {
    display: none;
  }

  .lobby-card--season {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .lobby-card--season .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .lobby-loadout__grid {
    grid-template-columns: 1fr;
  }
}

/* Home reference compact pass */
.lobby {
  max-width: 460px;
  gap: 10px;
  padding: 12px;
}

.lobby-card {
  border-radius: 18px;
  padding: 14px;
}

.lobby-card__title {
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lobby-card__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.lobby-card__meta,
.lobby-card__reward {
  font-size: 13px;
  line-height: 1.35;
}

.lobby .btn.btn--block {
  min-height: 40px;
  margin-top: 12px;
  border-radius: 13px;
  font-size: 14px;
}

.lobby-card--player {
  min-height: 108px;
  padding: 14px 16px;
}

.lobby-player__top {
  gap: 12px;
}

.lobby-player__avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 24px;
}

.lobby-player__name {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.lobby-player__row {
  gap: 10px;
}

.lobby-player__gold-pill {
  min-height: 34px;
  padding: 0 12px;
  font-size: 15px;
}

.lobby-player__subrow {
  margin-top: 8px;
  gap: 10px;
}

.lobby-player__level {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.lobby-player__clan {
  font-size: 14px;
}

.lobby-player__meta {
  margin-top: 14px;
  font-size: 14px;
}

.lobby-progress {
  height: 9px;
  margin-top: 8px;
}

.lobby-card--goal {
  grid-template-columns: minmax(0, 1fr) 118px;
  min-height: 152px;
  gap: 8px;
  padding: 16px;
}

.lobby-card--goal .lobby-card__title {
  max-width: 220px;
  font-size: 22px;
}

.lobby-card--goal .lobby-card__desc {
  max-width: 220px;
  font-size: 14px;
}

.lobby-card--goal .lobby-card__meta {
  margin-top: 10px;
  font-size: 14px;
}

.lobby-card--goal .lobby-card__reward {
  margin-top: 10px;
  font-size: 14px;
}

.lobby-card--goal .btn--primary {
  max-width: 176px;
}

.lobby-goal__art::before {
  width: 104px;
  height: 104px;
  right: 4px;
}

.lobby-goal__art span {
  width: 78px;
  height: 14px;
  right: 16px;
  top: 52px;
}

.lobby-card--checkin,
.lobby-card--event {
  min-height: 174px;
  padding: 14px;
}

.lobby-card--work {
  border-color: rgba(24, 224, 208, 0.34);
  background:
    radial-gradient(circle at 88% 50%, rgba(24, 224, 208, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(27, 38, 62, 0.98), rgba(8, 13, 27, 0.97));
}

.lobby-card--work .btn--secondary {
  color: var(--ca-text);
  background: rgba(17, 27, 48, 0.86);
  border-color: rgba(255, 255, 255, 0.16);
}

.lobby-card--loadout,
.lobby-card--quick {
  padding: 14px;
}

.lobby-loadout__grid {
  gap: 10px;
}

.lobby-loadout__item {
  min-height: 78px;
  padding: 12px;
}

.lobby-loadout__value {
  font-size: 16px;
}

.lobby-loadout__bonus {
  font-size: 13px;
}

.lobby-loadout__action {
  min-height: 78px;
  padding: 10px;
  font-size: 14px;
}

.lobby-quick-actions {
  gap: 8px;
}

.lobby-quick-actions__btn {
  min-height: 50px;
  border-radius: 13px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .lobby {
    max-width: none;
    padding: 12px;
  }

  .lobby-card--goal {
    grid-template-columns: minmax(0, 1fr) 108px;
    min-height: 148px;
  }

  .lobby-goal__art::before {
    width: 96px;
    height: 96px;
  }

  .lobby-goal__art span {
    width: 72px;
    right: 14px;
  }
}

@media (max-width: 430px) {
  .lobby {
    grid-template-columns: 1fr;
  }

  .lobby-card--half {
    grid-column: 1 / -1;
  }

  .lobby-card--goal {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .lobby-card--goal .lobby-card__title {
    font-size: 21px;
  }

  .lobby-card--goal .lobby-card__desc {
    max-width: 210px;
  }

  .lobby-goal__art::before {
    width: 86px;
    height: 86px;
  }

  .lobby-goal__art span {
    width: 64px;
    height: 12px;
    right: 12px;
    top: 50px;
  }

  .lobby-loadout__grid,
  .lobby-quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .lobby-loadout__action {
    grid-column: 1 / -1;
  }
}

/* Keep the home dashboard in two columns on normal phone widths. */
@media (max-width: 430px) {
  .lobby {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-card--half {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .lobby {
    grid-template-columns: 1fr;
  }

  .lobby-card--half {
    grid-column: 1 / -1;
  }

  .lobby-card--goal {
    grid-template-columns: 1fr;
  }

  .lobby-goal__art {
    display: none;
  }
}

/* Activities Hub Structure */
.activities-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  padding-bottom: 100px;
}

.activities-hub__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(53, 167, 255, 0.42);
  background:
    radial-gradient(circle at 0 0, rgba(139, 92, 255, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(27, 38, 62, 0.96), rgba(8, 13, 27, 0.97));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 26px rgba(53, 167, 255, 0.14);
}

.activities-hub__kicker {
  color: #18e0d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activities-hub__title {
  margin: 6px 0 0;
  color: #f4f7fb;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.activities-hub__lead {
  margin: 8px 0 0;
  color: #c9d3e8;
  font-size: 14px;
  line-height: 1.35;
}

.activities-hub__badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 203, 69, 0.4);
  background: rgba(255, 203, 69, 0.08);
  color: #ffcb45;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.activities-hub__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 27, 0.82);
}

.activities-hub__tab {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #9fb0ca;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.activities-hub__tab:first-child {
  color: #f4f7fb;
  background: linear-gradient(135deg, rgba(24, 224, 208, 0.22), rgba(53, 167, 255, 0.16));
  box-shadow: 0 0 18px rgba(24, 224, 208, 0.2);
}

.activities-daily-card,
.activities-action-card,
.activities-tip-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(143, 155, 179, 0.22);
  background: linear-gradient(145deg, rgba(23, 33, 56, 0.96), rgba(8, 13, 27, 0.97));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.activities-daily-card::before,
.activities-action-card::before,
.activities-tip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), transparent 36%);
}

.activities-daily-card > *,
.activities-action-card > *,
.activities-tip-card > * {
  position: relative;
  z-index: 1;
}

.activities-daily-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-color: rgba(139, 92, 255, 0.5);
  background:
    radial-gradient(circle at 86% 35%, rgba(216, 76, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(27, 21, 58, 0.98), rgba(8, 13, 27, 0.97));
}

.activities-daily-card__title {
  color: #f4f7fb;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.activities-daily-card__text {
  margin-top: 6px;
  color: #cbd6ea;
  font-size: 14px;
  line-height: 1.35;
}

.activities-daily-card__bar {
  height: 9px;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(3, 7, 18, 0.75);
  overflow: hidden;
}

.activities-daily-card__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cff, #35a7ff, #18e0d0);
  box-shadow: 0 0 16px rgba(53, 167, 255, 0.52);
}

.activities-daily-card__reward {
  margin-top: 10px;
  color: #9fb0ca;
  font-size: 13px;
  font-weight: 750;
}

.activities-daily-card__reward b {
  color: #66dcff;
}

.activities-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.activities-action-card {
  min-height: 190px;
  padding: 14px;
}

.activities-action-card--quest {
  border-color: rgba(139, 92, 255, 0.46);
}

.activities-action-card--work {
  border-color: rgba(24, 224, 208, 0.38);
}

.activities-action-card--event {
  border-color: rgba(255, 122, 47, 0.48);
}

.activities-action-card--weekly {
  border-color: rgba(255, 203, 69, 0.38);
}

.activities-action-card.is-active,
.activities-action-card.is-claimable {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 24px rgba(24, 224, 208, 0.16);
}

.activities-action-card__icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 10px;
}

.activities-action-card__title {
  color: #f4f7fb;
  font-size: 19px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.activities-action-card__text {
  margin-top: 8px;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.35;
}

.activities-action-card__meta {
  margin-top: 10px;
  color: #8fa3bd;
  font-size: 12px;
  font-weight: 800;
}

.activities-action-card .btn {
  min-height: 40px;
  margin-top: 12px;
  border-radius: 13px;
  font-size: 13px;
}

.activities-tip-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-color: rgba(24, 224, 208, 0.28);
}

.activities-tip-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(24, 224, 208, 0.09);
  color: #18e0d0;
  font-size: 22px;
}

.activities-tip-card__title {
  color: #18e0d0;
  font-size: 15px;
  font-weight: 900;
}

.activities-tip-card__text {
  margin-top: 3px;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.35;
}

.activities-tip-card__arrow {
  color: #18e0d0;
  font-size: 24px;
}

.season-empty {
  padding: 28px 18px;
  border-radius: 24px;
  border: 1px solid rgba(53, 167, 255, 0.38);
  background:
    radial-gradient(circle at 50% 0, rgba(139, 92, 255, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(23, 33, 56, 0.96), rgba(8, 13, 27, 0.98));
  text-align: center;
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
}

.season-empty__icon {
  font-size: 42px;
}

.season-empty__title {
  margin: 12px 0 0;
  color: #f4f7fb;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.season-empty__text {
  margin: 10px auto 0;
  max-width: 360px;
  color: #c9d3e8;
  font-size: 14px;
  line-height: 1.45;
}

.season-empty__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 430px) {
  .activities-hub {
    padding: 10px;
  }

  .activities-hub__header,
  .activities-daily-card {
    grid-template-columns: 1fr;
  }

  .activities-hub__badge {
    width: fit-content;
  }

  .activities-hub__grid {
    grid-template-columns: 1fr;
  }

  .activities-action-card {
    min-height: 0;
  }

  .season-empty__actions {
    grid-template-columns: 1fr;
  }
}

/* Inventory Hub */
.inventory-hub {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inventory-hub__header,
.inventory-loadout,
.inventory-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(53, 167, 255, 0.34);
  background: linear-gradient(145deg, rgba(23, 33, 56, 0.96), rgba(8, 13, 27, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.inventory-hub__header::before,
.inventory-loadout::before,
.inventory-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 36%),
    radial-gradient(circle at 0 0, rgba(24, 224, 208, 0.12), transparent 40%);
}

.inventory-hub__header > *,
.inventory-loadout > *,
.inventory-panel > * {
  position: relative;
  z-index: 1;
}

.inventory-hub__header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.inventory-hub__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(24, 224, 208, 0.34);
  background: rgba(24, 224, 208, 0.09);
  font-size: 30px;
  box-shadow: 0 0 24px rgba(24, 224, 208, 0.16);
}

.inventory-hub__kicker {
  color: #18e0d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-hub__title {
  margin: 4px 0 0;
  color: #f4f7fb;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.inventory-hub__lead {
  margin: 8px 0 0;
  color: #c9d3e8;
  font-size: 14px;
  line-height: 1.35;
}

.inventory-loadout {
  padding: 16px;
  border-color: rgba(24, 224, 208, 0.35);
}

.inventory-loadout__head,
.inventory-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inventory-loadout__title,
.inventory-panel__title {
  margin: 0;
  color: #f4f7fb;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.inventory-loadout__text,
.inventory-panel__text {
  margin: 6px 0 0;
  color: #c9d3e8;
  font-size: 14px;
  line-height: 1.35;
}

.inventory-loadout__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.inventory-loadout__item,
.inventory-preview-card,
.inventory-inline-empty {
  border-radius: 18px;
  border: 1px solid rgba(143, 155, 179, 0.2);
  background: rgba(13, 22, 40, 0.72);
}

.inventory-loadout__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.inventory-loadout__item-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(53, 167, 255, 0.1);
  font-size: 23px;
}

.inventory-loadout__label {
  color: #8fa3bd;
  font-size: 12px;
  font-weight: 850;
}

.inventory-loadout__value {
  margin-top: 2px;
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-loadout__hint {
  margin-top: 2px;
  color: #66dcff;
  font-size: 12px;
  font-weight: 800;
}

.inventory-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 27, 0.82);
}

.inventory-tab {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #9fb0ca;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.inventory-tab.is-active {
  color: #f4f7fb;
  background: linear-gradient(135deg, rgba(24, 224, 208, 0.22), rgba(53, 167, 255, 0.16));
  box-shadow: 0 0 18px rgba(24, 224, 208, 0.18);
}

.inventory-panel {
  padding: 16px;
}

.inventory-panel--pets {
  border-color: rgba(53, 167, 255, 0.42);
}

.inventory-panel--relics {
  border-color: rgba(168, 85, 247, 0.42);
}

.inventory-panel--empty {
  text-align: center;
  border-color: rgba(143, 155, 179, 0.24);
}

.inventory-preview-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
}

.inventory-preview-card__icon,
.inventory-empty__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(139, 92, 255, 0.12);
  font-size: 27px;
}

.inventory-preview-card__title {
  color: #f4f7fb;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-preview-card__bonus {
  margin-top: 3px;
  color: #66dcff;
  font-size: 13px;
  font-weight: 850;
}

.inventory-preview-card__status {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(53, 208, 127, 0.36);
  background: rgba(53, 208, 127, 0.1);
  color: #35d07f;
  font-size: 12px;
  font-weight: 900;
}

.inventory-inline-empty {
  margin-top: 14px;
  padding: 14px;
}

.inventory-inline-empty__title {
  color: #f4f7fb;
  font-size: 17px;
  font-weight: 900;
}

.inventory-inline-empty__text {
  margin-top: 5px;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.35;
}

.inventory-inline-empty .btn {
  margin-top: 12px;
}

.inventory-empty__icon {
  margin: 0 auto 12px;
}

.inventory-panel--empty .btn {
  margin-top: 16px;
}

@media (max-width: 430px) {
  .inventory-hub {
    padding: 10px;
  }

  .inventory-hub__header,
  .inventory-loadout__grid,
  .inventory-preview-card {
    grid-template-columns: 1fr;
  }

  .inventory-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-preview-card__status {
    width: fit-content;
  }
}

/* Clan Hub Structure */
.clan-screen {
  padding: 0;
}

.clan-hub {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clan-hero,
.clan-stat-card,
.clan-feature-card,
.clan-section-card,
.clan-empty-hero,
.clan-benefit-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 122, 47, 0.34);
  background: linear-gradient(145deg, rgba(29, 31, 48, 0.96), rgba(8, 13, 27, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.clan-hero::before,
.clan-stat-card::before,
.clan-feature-card::before,
.clan-section-card::before,
.clan-empty-hero::before,
.clan-benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 36%),
    radial-gradient(circle at 100% 0, rgba(255, 122, 47, 0.14), transparent 40%);
}

.clan-hero > *,
.clan-stat-card > *,
.clan-feature-card > *,
.clan-section-card > *,
.clan-empty-hero > *,
.clan-benefit-card > * {
  position: relative;
  z-index: 1;
}

.clan-hero {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.clan-hero__emblem {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  border: 1px solid rgba(255, 203, 69, 0.35);
  background: rgba(255, 122, 47, 0.12);
  font-size: 32px;
  box-shadow: 0 0 24px rgba(255, 122, 47, 0.18);
}

.clan-hero__kicker {
  color: #ffb84d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clan-hero__title {
  margin: 4px 0 0;
  color: #f4f7fb;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.clan-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.clan-hero__meta span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 27, 0.58);
  color: #c9d3e8;
  font-size: 12px;
  font-weight: 850;
}

.clan-stats-grid,
.clan-main-grid,
.clan-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.clan-stat-card {
  padding: 13px;
  border-color: rgba(143, 155, 179, 0.22);
}

.clan-stat-card__value {
  color: #f4f7fb;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.clan-stat-card__label {
  margin-top: 6px;
  color: #8fa3bd;
  font-size: 12px;
  font-weight: 850;
}

.clan-feature-card {
  min-height: 190px;
  padding: 14px;
}

.clan-feature-card--event.is-active {
  border-color: rgba(255, 92, 122, 0.58);
  box-shadow: 0 18px 48px rgba(0,0,0,0.38), 0 0 26px rgba(255, 92, 122, 0.2);
}

.clan-feature-card--weekly {
  border-color: rgba(255, 203, 69, 0.4);
}

.clan-feature-card--contribution {
  border-color: rgba(24, 224, 208, 0.34);
}

.clan-feature-card--members {
  border-color: rgba(53, 167, 255, 0.34);
}

.clan-feature-card__icon {
  font-size: 27px;
  line-height: 1;
  margin-bottom: 10px;
}

.clan-feature-card__title,
.clan-section-card__title {
  margin: 0;
  color: #f4f7fb;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.clan-feature-card__text,
.clan-section-card__text {
  margin: 8px 0 0;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.35;
}

.clan-feature-card__meta {
  margin-top: 10px;
  color: #ffb84d;
  font-size: 12px;
  font-weight: 850;
}

.clan-feature-card .btn {
  min-height: 40px;
  margin-top: 12px;
  border-radius: 13px;
  font-size: 13px;
}

.clan-section-card {
  padding: 16px;
  border-color: rgba(143, 155, 179, 0.22);
}

.clan-section-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.clan-base-slot {
  position: relative;
  z-index: 1;
}

.clan-empty-hero {
  padding: 26px 18px;
  text-align: center;
}

.clan-empty-hero__icon {
  font-size: 44px;
}

.clan-empty-hero__title {
  margin: 12px 0 0;
  color: #f4f7fb;
  font-size: 30px;
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.clan-empty-hero__text {
  margin: 10px auto 0;
  max-width: 370px;
  color: #c9d3e8;
  font-size: 14px;
  line-height: 1.45;
}

.clan-empty-hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.clan-benefit-card {
  padding: 14px;
  border-color: rgba(143, 155, 179, 0.22);
}

.clan-benefit-card__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.clan-benefit-card__title {
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 900;
}

.clan-benefit-card__text {
  margin-top: 5px;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 430px) {
  .clan-hub {
    padding: 10px;
  }

  .clan-hero,
  .clan-main-grid,
  .clan-benefits-grid,
  .clan-empty-hero__actions {
    grid-template-columns: 1fr;
  }

  .clan-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clan-feature-card {
    min-height: 0;
  }

  .clan-section-card__head {
    flex-direction: column;
  }
}

/* Rating Screen */
.rating-screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-hero,
.rating-my-card,
.rating-panel,
.rating-empty-list {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 203, 69, 0.34);
  background: linear-gradient(145deg, rgba(24, 32, 55, 0.96), rgba(8, 13, 27, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.rating-hero::before,
.rating-my-card::before,
.rating-panel::before,
.rating-empty-list::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 36%),
    radial-gradient(circle at 100% 0, rgba(255, 203, 69, 0.12), transparent 40%);
}

.rating-hero > *,
.rating-my-card > *,
.rating-panel > *,
.rating-empty-list > * {
  position: relative;
  z-index: 1;
}

.rating-hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.rating-hero__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  border: 1px solid rgba(255, 203, 69, 0.38);
  background: rgba(255, 203, 69, 0.1);
  font-size: 32px;
  box-shadow: 0 0 24px rgba(255, 203, 69, 0.16);
}

.rating-hero__kicker {
  color: #ffcb45;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating-hero__title {
  margin: 4px 0 0;
  color: #f4f7fb;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.rating-hero__lead {
  margin: 8px 0 0;
  color: #c9d3e8;
  font-size: 14px;
  line-height: 1.35;
}

.rating-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 27, 0.82);
}

.rating-tab {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #9fb0ca;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.rating-tab.is-active {
  color: #111827;
  background: linear-gradient(135deg, #ffcb45, #ffb84d);
  box-shadow: 0 0 18px rgba(255, 203, 69, 0.2);
}

.rating-my-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-color: rgba(24, 224, 208, 0.32);
}

.rating-my-card__label {
  color: #18e0d0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rating-my-card__title {
  margin-top: 4px;
  color: #f4f7fb;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.rating-my-card__text {
  margin-top: 7px;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.35;
}

.rating-my-card__score {
  min-width: 96px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(24, 224, 208, 0.28);
  background: rgba(24, 224, 208, 0.08);
  text-align: right;
}

.rating-my-card__score b {
  display: block;
  color: #f4f7fb;
  font-size: 20px;
  line-height: 1;
}

.rating-my-card__score span {
  display: block;
  margin-top: 5px;
  color: #66dcff;
  font-size: 12px;
  font-weight: 850;
}

.rating-panel {
  padding: 16px;
  border-color: rgba(143, 155, 179, 0.22);
}

.rating-panel--podium {
  border-color: rgba(255, 203, 69, 0.34);
}

.rating-panel__head {
  margin-bottom: 14px;
}

.rating-panel__title {
  margin: 0;
  color: #f4f7fb;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.rating-panel__text {
  margin: 6px 0 0;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.35;
}

.rating-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.rating-podium__slot {
  min-height: 132px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(143, 155, 179, 0.2);
  background: rgba(13, 22, 40, 0.72);
  text-align: center;
}

.rating-podium__slot--1 {
  min-height: 154px;
  border-color: rgba(255, 203, 69, 0.42);
  background: rgba(255, 203, 69, 0.08);
}

.rating-podium__place {
  color: #ffcb45;
  font-size: 12px;
  font-weight: 950;
}

.rating-podium__avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 10px auto 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9d3e8;
  font-weight: 950;
}

.rating-podium__name {
  margin-top: 9px;
  color: #f4f7fb;
  font-size: 15px;
  font-weight: 900;
}

.rating-podium__meta {
  margin-top: 3px;
  color: #8fa3bd;
  font-size: 12px;
  font-weight: 800;
}

.rating-empty-list {
  padding: 16px;
  text-align: center;
  border-color: rgba(143, 155, 179, 0.22);
  background: rgba(13, 22, 40, 0.7);
}

.rating-empty-list__icon {
  font-size: 34px;
}

.rating-empty-list__title {
  margin-top: 8px;
  color: #f4f7fb;
  font-size: 19px;
  font-weight: 950;
}

.rating-empty-list__text {
  margin: 6px auto 0;
  max-width: 340px;
  color: #c9d3e8;
  font-size: 13px;
  line-height: 1.4;
}

.rating-empty-list .btn {
  margin-top: 14px;
}

/* Profile Structure Pass */
.profile-screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  padding-bottom: 100px;
}

.profile-screen .profile-hero,
.profile-screen .profile-section,
.profile-screen .profile-tile {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(23, 33, 56, 0.96), rgba(8, 13, 27, 0.98));
  border-color: rgba(53, 167, 255, 0.3);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.profile-screen .profile-hero__name {
  font-size: 28px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.profile-screen .profile-section__title {
  font-size: 21px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.profile-screen .profile-grid {
  gap: 10px;
}

.profile-screen .profile-achievement {
  border-radius: 16px;
  background: rgba(13, 22, 40, 0.72);
}

@media (max-width: 430px) {
  .rating-screen,
  .profile-screen {
    padding: 10px;
  }

  .rating-hero,
  .rating-my-card {
    grid-template-columns: 1fr;
  }

  .rating-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-my-card__score {
    text-align: left;
  }
}

/* Profile Status Polish */
.profile-hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.profile-hero__actions .btn {
  min-height: 38px;
  border-radius: 13px;
}

.profile-section--status {
  border-color: rgba(24, 224, 208, 0.34) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(24, 224, 208, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(23, 33, 56, 0.96), rgba(8, 13, 27, 0.98)) !important;
}

.profile-section--status .profile-tile__value {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-screen .profile-section {
  padding: 16px;
}

.profile-screen .profile-tile {
  padding: 13px;
}

.profile-screen .profile-hero {
  padding: 18px;
}

.profile-screen .profile-hero__badges {
  gap: 7px;
}

@media (max-width: 430px) {
  .profile-hero__actions {
    grid-template-columns: 1fr;
  }
}
