/* 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;
}

.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 {
  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: var(--space-8); /* Extra padding for tabbar */
}

.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-icon {
  font-size: 32px;
  margin-bottom: var(--space-2);
  display: block;
}

.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);
}

.home-clan__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.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: var(--space-8);
}

.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: var(--space-8);
}

.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; }
