/* ============================================
   VENUE DESIGN STUDIOS — Components
   ============================================ */

/* --- Phone Header (iOS Status Bar) --- */
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  width: 100%;
}

.phone-header__time {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.phone-header__time-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  letter-spacing: -0.28px;
  color: var(--text-primary);
  white-space: nowrap;
}

.phone-header__functions {
  display: flex;
  align-items: center;
}

.phone-header__cell-signal {
  width: 23.714px;
  height: 18px;
  flex-shrink: 0;
}

.phone-header__wifi-signal {
  width: 21.75px;
  height: 18px;
  flex-shrink: 0;
}

.phone-header__battery {
  width: 32.328px;
  height: 19.333px;
  flex-shrink: 0;
}

.phone-header__functions img {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Currency Bar --- */
.currency-bar {
  width: 100%;
  aspect-ratio: 390 / 47;
  position: relative;
  overflow: hidden;
}

.currency-bar img {
  display: block;
  width: 100%;
  position: absolute;
  top: -29.79%;
  left: 0;
  height: 149.36%;
}

/* --- Overall Header (Phone Header + Currency Bar) --- */
.overall-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}

.overall-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(to bottom, rgba(255, 228, 214, 0.7) 0%, rgba(255, 228, 214, 0) 100%);
  pointer-events: none;
}

.game-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  width: 100%;
}

/* --- Footer --- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(to bottom, rgba(255, 225, 209, 0) 0%, #FFE1D1 45.455%);
}

/* Footer gradient overlay — fades content into footer */
.screen {
  position: relative;
}

.footer__gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 147px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 225, 209, 0) 0%, #FFE1D1 100%);
  pointer-events: none;
  z-index: 2;
}

/* Tab bar */
.tab-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 12px;
  width: 100%;
  clip-path: inset(-20px -16px 0 -16px);
  box-shadow: 0 0 16px rgba(239, 167, 154, 0.5);
}

.tab-bar__container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 4px;
  background: var(--white);
  border-radius: var(--radius-pill);
}

.tab-bar__segment {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px 8px;
  border-radius: var(--radius-tab);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  line-height: normal;
  color: var(--brown);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.tab-bar__segment--active {
  background: var(--coral-light);
  color: var(--white);
}

.tab-bar__segment:not(.tab-bar__segment--active):not(.tab-bar__segment--disabled):hover {
  background: rgba(239, 167, 154, 0.1);
}

.tab-bar__segment--disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Nav bar */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 83px;
  padding: 0 16px;
  background: var(--white);
  border-radius: var(--radius-phone);
}

.nav-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms ease-out;
}

.nav-bar__item:hover {
  transform: scale(1.12);
}

.nav-bar__item:active {
  transform: scale(0.95);
}

.nav-bar__item img {
  display: block;
}

.nav-bar__icon--store {
  width: 18.853px;
  height: 21.995px;
}

.nav-bar__icon--voting {
  width: 18px;
  height: 17px;
}

.nav-bar__icon--home {
  width: 17.73px;
  height: 17.73px;
}

.nav-bar__icon--social {
  width: 28.539px;
  height: 22px;
}

.nav-bar__icon--profile {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}
