/* ======================================
   Mobile screen styles (inside phone frame)
   ====================================== */

.mob-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'gg sans', 'Noto Sans', Helvetica, Arial, sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
}

.mob-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #949ba4;
  font-size: 14px;
}

/* ── Server/Channel view ── */
.mob-server-view {
  flex-direction: row;
  overflow: hidden;
  position: relative;
}

.mob-server-strip {
  width: 56px;
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 6px;
  flex-shrink: 0;
  overflow-y: auto;
}

.mob-server-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.mob-server-home {
  border-radius: 12px;
}

.mob-server-active {
  border-radius: 12px;
}

.mob-server-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  min-width: 14px;
  text-align: center;
  line-height: 1.3;
}

.mob-server-divider {
  width: 28px;
  height: 2px;
  background: #383a40;
  border-radius: 1px;
  margin: 2px 0;
}

/* Channel panel */
.mob-channel-panel {
  flex: 1;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 38px 0 0 0;
}

.mob-channel-header {
  padding: 12px 16px 8px;
}

.mob-channel-name {
  font-size: 17px;
  font-weight: 700;
  color: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mob-channel-meta {
  display: block;
  font-size: 12px;
  color: #949ba4;
  margin-top: 2px;
}

.mob-channel-search {
  margin: 8px 16px;
  background: #1e1f22;
  border-radius: 8px;
  padding: 8px 14px;
  color: #949ba4;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mob-channel-list {
  flex: 1;
  padding: 4px 0;
  overflow-y: auto;
}

.mob-channel-item {
  padding: 8px 16px;
  color: #b5bac1;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mob-channel-item.dim {
  color: #6d6f78;
}

.mob-channel-item i {
  font-size: 13px;
  width: 18px;
  text-align: center;
}

.mob-new-badge {
  margin-left: auto;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.mob-category {
  padding: 16px 16px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Floating bottom overlay — hovers over both panels */
.mob-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 10px 10px;
  z-index: 5;
}

.mob-bottom-card {
  background: rgba(40, 42, 48, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Slide-up quest sheet injection */
.mob-sheet-inject {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2b2d31;
  border-radius: 16px 16px 0 0;
  padding: 8px 20px 18px;
  z-index: 6;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-sheet-inject.mob-sheet-inject-up {
  transform: translateY(0);
}

/* Darken the background behind the sliding sheet */
.mob-expanding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 5;
  pointer-events: none;
  animation: mobBackdropFade 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes mobBackdropFade {
  0% { background: rgba(0, 0, 0, 0); }
  100% { background: rgba(0, 0, 0, 0.6); }
}

.mob-card-handle {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 6px auto 0;
}

.mob-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 14px;
}

/* Quest banner */
.mob-quest-banner {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mob-quest-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(88, 101, 242, 0.25);
}

.mob-quest-banner-icon img {
  width: 200%;
  height: 200%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mob-quest-banner-icon {
  position: relative;
}

.mob-quest-banner-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.mob-quest-banner-text strong {
  color: #f2f3f5;
  font-size: 13px;
}

.mob-quest-banner-text span {
  color: #949ba4;
  font-size: 11px;
}

/* User bar */
.mob-user-bar {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mob-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5865f2;
  flex-shrink: 0;
  overflow: hidden;
}

.mob-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mob-user-info strong {
  color: #f2f3f5;
  font-size: 13px;
}

.mob-user-info span {
  color: #23a55a;
  font-size: 10px;
}

/* ── Chat view ── */
.mob-chat-screen {
  background: #111214;
}

.mob-chat-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.mob-chat-back {
  position: relative;
  color: #b5bac1;
  font-size: 18px;
}

.mob-chat-back-badge {
  position: absolute;
  top: -6px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  min-width: 14px;
  text-align: center;
}

.mob-chat-channel {
  flex: 1;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 700;
}

.mob-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.mob-msg {
  padding: 4px 16px;
}

.mob-msg-reply {
  padding: 4px 0 4px 44px;
  font-size: 12px;
  color: #949ba4;
  border-left: 2px solid #383a40;
  margin-left: 16px;
  margin-bottom: 2px;
  padding-left: 10px;
}

.mob-msg-reply-author {
  color: #b5bac1;
  font-weight: 600;
}

.mob-msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mob-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mob-msg-content {
  flex: 1;
  min-width: 0;
}

.mob-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mob-msg-author {
  font-size: 14px;
  font-weight: 600;
}

.mob-msg-badge {
  background: #383a40;
  color: #b5bac1;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}

.mob-msg-time {
  font-size: 11px;
  color: #6d6f78;
}

.mob-msg-text {
  font-size: 14px;
  color: #dbdee1;
  line-height: 1.4;
  margin-top: 2px;
}

.mob-chat-input {
  padding: 12px 16px;
  margin: 8px 12px 12px;
  background: #383a40;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #949ba4;
  font-size: 14px;
}

.mob-chat-input span {
  flex: 1;
}

.mob-chat-input-arrow {
  width: 36px;
  height: 36px;
  background: #5865f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Quest bottom sheet ── */
.mob-quest-sheet {
  background: #1e1f22;
  position: relative;
}

.mob-sheet-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mob-sheet-bg > .mob-screen {
  width: 100%;
  height: 100%;
}

.mob-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.mob-bottom-sheet {
  margin-top: auto;
  background: #2b2d31;
  border-radius: 16px 16px 0 0;
  padding: 8px 20px 18px;
  position: relative;
  z-index: 2;
}

.mob-sheet-handle {
  width: 36px;
  height: 4px;
  background: #6d6f78;
  border-radius: 2px;
  margin: 0 auto 8px;
}

.mob-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mob-sheet-header strong {
  color: #f2f3f5;
  font-size: 18px;
}

.mob-sheet-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  background: #111;
}

.mob-sheet-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 18px;
}

/* Video click blocker */
.mob-video-blocker {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
}

/* Orb with progress ring */
.mob-sheet-orb-wrap {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  z-index: 3;
}

.mob-sheet-orb-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
}

.mob-sheet-orb-icon img {
  width: 200%;
  height: 200%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mob-orb-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mob-orb-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.mob-orb-ring-fill {
  fill: none;
  stroke: #23a55a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.1s linear;
}

.mob-watch-btn {
  width: 100%;
  background: #5865f2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 50px;
  border: none;
  text-align: center;
  cursor: pointer;
}

.mob-watch-btn.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
}

.mob-watch-btn.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 80%
  );
  animation: btnSwoosh 2s ease-in-out infinite;
}

/* ── Video playing ── */
.mob-video-screen {
  background: #1e1f22;
}

.mob-video-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: 16px;
  margin: 4px;
  overflow: hidden;
  position: relative;
}

.mob-video-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  position: relative;
  z-index: 3;
}

.mob-video-title {
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 600;
}

.mob-video-time {
  color: #949ba4;
  font-size: 13px;
  margin-top: 2px;
}

.mob-video-player {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
  overflow: hidden;
}

.mob-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.mob-video-overlay-bottom {
  position: relative;
  z-index: 3;
  padding: 0 20px 16px;
  margin-top: auto;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.mob-video-bottom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mob-video-bottom-info {
  flex: 1;
}

.mob-video-bottom-title {
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.mob-video-bottom-sub {
  color: #949ba4;
  font-size: 13px;
  margin-top: 2px;
}

.mob-cta-pill {
  width: 100%;
  background: #5865f2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px;
  border-radius: 50px;
  border: none;
  text-align: center;
  cursor: pointer;
}

.mob-cta-pill.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
}

.mob-cta-pill.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 80%
  );
  animation: btnSwoosh 2s ease-in-out infinite;
}

.mob-video-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 10px 20px 12px;
}

.mob-unmute-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  margin-right: auto;
}

/* ── Claim reward ── */
.mob-claim-screen {
  background: transparent;
  overflow: hidden;
  justify-content: flex-start;
  padding-top: 4px;
  gap: 0;
}

.mob-claim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
}

.mob-claim-top {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 20px 12px;
}

.mob-claim-orb-wrap {
  margin-bottom: 12px;
}

.mob-claim-orb-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 5px solid #23a55a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(35, 165, 90, 0.3);
}

.mob-claim-orb-inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #000;
}

.mob-claim-orb-inner img {
  width: 200%;
  height: 200%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mob-claim-title {
  color: #f2f3f5;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.mob-claim-pill {
  width: 100%;
  background: #383a40;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border-radius: 50px;
  border: none;
  text-align: center;
  cursor: pointer;
}

.mob-claim-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.mob-claim-bottom {
  flex: 0 0 auto;
  padding: 8px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mob-claim-quest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mob-claim-quest-info {
  flex: 1;
}

.mob-claim-quest-title {
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 700;
}

.mob-claim-quest-sub {
  color: #949ba4;
  font-size: 13px;
  margin-top: 2px;
}

.mob-claim-poster {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 1;
  min-height: 0;
}

.mob-claim-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.mob-claim-signup-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mob-signup-pill {
  flex: 1;
  background: #5865f2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 50px;
  border: none;
  text-align: center;
  cursor: pointer;
}

.mob-share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #b5bac1;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Orbs collected ── */
.mob-orbs-screen {
  background: transparent;
  position: relative;
  align-items: center;
  overflow: hidden;
}

.mob-orbs-close {
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 2;
}

.mob-orbs-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 10% 8%, rgba(140,120,255,0.5), transparent),
    radial-gradient(1px 1px at 25% 18%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 75% 12%, rgba(140,120,255,0.4), transparent),
    radial-gradient(1px 1px at 60% 25%, rgba(255,255,255,0.25), transparent),
    radial-gradient(3px 3px at 85% 8%, rgba(100,80,220,0.5), transparent),
    radial-gradient(1px 1px at 40% 35%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 90% 30%, rgba(140,120,255,0.3), transparent),
    radial-gradient(1px 1px at 15% 42%, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 55% 48%, rgba(120,100,240,0.25), transparent),
    radial-gradient(1px 1px at 80% 55%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 30% 62%, rgba(140,120,255,0.3), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 20% 78%, rgba(100,80,220,0.3), transparent),
    radial-gradient(1px 1px at 50% 85%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 88% 75%, rgba(140,120,255,0.25), transparent);
  pointer-events: none;
}

.mob-orbs-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.mob-orbs-big-orb {
  width: 340px;
  height: 340px;
}

.mob-orbs-big-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #fff 40%, transparent 72%);
  mask-image: radial-gradient(circle, #fff 40%, transparent 72%);
}

.mob-orbs-text {
  text-align: center;
  padding: 0 28px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.mob-orbs-title {
  color: #f2f3f5;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  white-space: nowrap;
}

.mob-orbs-desc {
  color: #949ba4;
  font-size: 14px;
  line-height: 1.5;
}

.mob-orbs-desc strong {
  color: #f2f3f5;
}

.mob-orbs-buttons {
  width: 100%;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.mob-redeem-btn {
  width: 100%;
  background: #5865f2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 50px;
  border: none;
  text-align: center;
}

.mob-earn-btn {
  width: 100%;
  background: #383a40;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 50px;
  border: none;
  text-align: center;
}

/* Slide-up animation: video screen slides up from bottom */
.mob-slide-up-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-slide-up-overlay.mob-slide-up-active {
  transform: translateY(0);
}
