/* ==========================================================================
   PLAYDROP ARCADE — MOBILE GAMES & APP STORE
   Matching playdrop_arcade.jpg with 3D Pop-Out Characters, iOS Chassis, & Confetti
   ========================================================================== */

:root {
  --bg-stage: #090d15;
  --bg-stage-grad: radial-gradient(circle at 50% 30%, #151d2c 0%, #060910 100%);
  --ios-bg: #ffffff;
  --ios-sub-bg: #f2f2f7;
  --ios-blue: #007aff;
  --ios-peach-start: #ffb79e;
  --ios-peach-end: #ff7e70;
  --ios-cyan-start: #48cae4;
  --ios-cyan-end: #0096c7;
  --ios-mint-bg: #d8f3dc;
  --ios-purple-bg: #edd8f8;
  --ios-gold-start: #ffeaa7;
  --ios-gold-end: #fdcb6e;
  --text-dark: #1c1c1e;
  --text-muted: #8e8e93;
  --radius-card: 28px;
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-card: 0 16px 36px rgba(255, 126, 112, 0.25);
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--bg-stage);
  background-image: var(--bg-stage-grad);
  font-family: var(--font-main);
  color: var(--text-dark);
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   STANDALONE SUBDOMAIN BRIDGE
   ========================================================================== */
.bas-standalone-badge {
  position: fixed;
  top: 14px;
  left: 20px;
  z-index: 1000;
  display: flex;
}

.bas-badge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 126, 112, 0.3);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 12px rgba(255, 126, 112, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.bas-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4757;
  box-shadow: 0 0 8px #ff4757;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.bas-badge-brand {
  color: #111;
  font-weight: 800;
}

.bas-badge-sep {
  color: rgba(0, 0, 0, 0.2);
}

.bas-badge-title {
  color: #666;
}

.bas-badge-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.4);
  border-radius: 999px;
  color: #ff4757;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.bas-badge-btn:hover {
  background: #ff4757;
  color: #fff;
  box-shadow: 0 0 12px #ff4757;
}

/* ==========================================================================
   STAGE BACKDROP: REFINED STUDIO AMBIENT LIGHTING
   ========================================================================== */
.stage-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.studio-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(255, 126, 112, 0.06) 45%, transparent 70%);
  filter: blur(80px);
}

/* ==========================================================================
   STAGE CONTROLS HEADER (View Mode & SFX)
   ========================================================================== */
.stage-controls {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 36px 0 36px;
}

.mode-toggle-pill {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.mode-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition);
}

.mode-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sound-fx-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.sound-fx-pill:hover {
  background: #ffffff;
}

/* ==========================================================================
   HANDSET STAGE WRAPPER
   ========================================================================== */
.phone-stage-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 40px 0;
  min-height: calc(100vh - 80px);
}

/* Handset chassis */
.handset-chassis {
  position: relative;
  width: 390px;
  height: 820px;
  background: #1c1c1e;
  border-radius: 54px;
  padding: 10px;
  box-shadow: 
    0 0 0 2px #444349,
    0 0 0 6px #2c2b30,
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 10px 25px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

/* Expanded Full View Mode */
.phone-stage-wrapper.expanded .handset-chassis {
  width: 100%;
  max-width: 900px;
  height: auto;
  min-height: 820px;
  border-radius: 28px;
  padding: 6px;
}

/* Hardware buttons */
.hw-button {
  position: absolute;
  background: #2c2b30;
  border-radius: 4px;
}

.action-btn { top: 120px; left: -10px; width: 4px; height: 28px; }
.vol-up { top: 165px; left: -10px; width: 4px; height: 50px; }
.vol-down { top: 225px; left: -10px; width: 4px; height: 50px; }
.power-btn { top: 180px; right: -10px; width: 4px; height: 75px; }

/* Phone Screen */
.handset-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--ios-bg);
  border-radius: 46px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-stage-wrapper.expanded .handset-screen {
  border-radius: 22px;
}

/* ==========================================================================
   IOS STATUS BAR & DYNAMIC ISLAND
   ========================================================================== */
.ios-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 8px 24px;
  background: transparent;
  z-index: 50;
  position: relative;
}

.status-time {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #000;
}

.dynamic-island {
  position: relative;
  width: 116px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  cursor: pointer;
  transition: width 0.3s ease;
}

.island-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 3px #333;
}

.island-activity {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.island-wave {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 6px #34c759;
  animation: pulseDot 1.5s infinite;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.battery-icon {
  width: 22px;
  height: 11px;
  border: 1.5px solid #000;
  border-radius: 3px;
  padding: 1px;
  display: flex;
  align-items: center;
  position: relative;
}

.battery-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  width: 2px;
  height: 5px;
  background: #000;
  border-radius: 0 1px 1px 0;
}

.battery-fill {
  width: 84%;
  height: 100%;
  background: #000;
  border-radius: 1.5px;
}

/* ==========================================================================
   STORE SCROLL BODY
   ========================================================================== */
.store-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 18px 75px 18px;
  scrollbar-width: none;
}

.store-scroll-body::-webkit-scrollbar {
  display: none;
}

/* Tabs */
.tab-view {
  display: none;
  animation: fadeInTab 0.25s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TAB 1: TODAY FEED
   ========================================================================== */
.today-header-block {
  margin: 4px 0 16px 0;
}

.today-date-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.today-headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.today-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

.editorial-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.split-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 3px;
  display: block;
}

.review-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 2px;
}

.ios-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s;
}

.ios-avatar-badge:hover {
  transform: scale(1.08);
}

.ios-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feed Cards */
.feed-card {
  position: relative;
  border-radius: var(--radius-card);
  margin-bottom: 22px;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s;
}

.feed-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.card-inner-box {
  position: relative;
  border-radius: inherit;
  padding: 22px;
  overflow: visible;
  color: #fff;
}

/* Card Themes */
.card-peach .card-inner-box {
  background: linear-gradient(135deg, var(--ios-peach-start) 0%, var(--ios-peach-end) 100%);
  box-shadow: 0 16px 32px rgba(255, 126, 112, 0.35);
}

.card-cyan .card-inner-box {
  background: linear-gradient(135deg, var(--ios-cyan-start) 0%, var(--ios-cyan-end) 100%);
  box-shadow: 0 16px 32px rgba(0, 180, 216, 0.35);
}

.card-gold .card-inner-box {
  background: linear-gradient(135deg, #ffc048 0%, #ff5722 100%);
  box-shadow: 0 16px 32px rgba(255, 165, 2, 0.35);
}

/* Micro App Identity */
.app-micro-identity {
  margin-bottom: 12px;
}

.micro-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.micro-icon-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emoji-icon {
  font-size: 26px;
}

.studio-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  letter-spacing: 0.08em;
}

/* Card Content Group */
.card-info-group {
  position: relative;
  z-index: 5;
  max-width: 60%;
}

.card-main-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-sub-motto {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
  font-weight: 500;
}

.card-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.rating-cluster {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 13px;
}

.gold-star {
  color: #ffd700;
}

/* 3D Pop-Out Character Anchors */
.popout-character-anchor {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.fox-bunny-anchor {
  top: -24px;
  right: -8px;
  width: 175px;
}

.popout-fox-bunny {
  width: 100%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
  animation: bobCharacter 5s ease-in-out infinite alternate;
}

.monsters-anchor {
  top: -16px;
  right: -6px;
  width: 165px;
}

.popout-monsters {
  width: 100%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.25));
  animation: bobCharacter 4.5s ease-in-out infinite alternate 0.5s;
}

.legends-anchor {
  top: -30px;
  right: 0px;
  width: 155px;
}

.popout-warrior {
  width: 100%;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.3));
  animation: bobCharacter 6s ease-in-out infinite alternate;
}

@keyframes bobCharacter {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
  100% { transform: translateY(4px) rotate(-1deg); }
}

.feed-card:hover .popout-img {
  transform: translateY(-12px) scale(1.05);
}

/* Tactile iOS GET Button */
.ios-get-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 18px;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  color: #007aff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, background 0.2s;
}

.ios-get-btn:hover {
  transform: scale(1.06);
  background: #fdfdfd;
}

.ios-get-btn.sm {
  padding: 5px 12px;
  font-size: 11px;
}

.ios-get-btn.lg {
  padding: 10px 22px;
  font-size: 15px;
}

/* Spinner during install */
.ios-get-btn.installing {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
}

.ios-get-btn.installed {
  background: #34c759;
  color: #ffffff;
}

/* Split Row Cards */
.feed-card-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.split-card {
  border-radius: 22px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.split-card:hover {
  transform: translateY(-4px);
}

.card-mint {
  background: var(--ios-mint-bg);
}

.card-purple {
  background: var(--ios-purple-bg);
}

.split-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.split-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  margin: 10px 0 2px 0;
}

.split-sub {
  font-size: 11px;
  color: #555;
}

.split-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.split-rating {
  font-size: 11px;
  font-weight: 700;
  color: #333;
}

/* ==========================================================================
   TAB 2: GAMES CATALOG
   ========================================================================== */
.tab-page-head {
  margin-bottom: 16px;
}

.tab-page-head h2 {
  font-size: 26px;
  font-weight: 900;
}

.tab-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.games-category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.cat-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ios-sub-bg);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-chip.active {
  background: var(--ios-blue);
  color: #fff;
}

.games-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--ios-sub-bg);
  cursor: pointer;
  transition: var(--transition);
}

.game-rank-item:hover {
  background: #e8e8ed;
}

.rank-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
  width: 14px;
}

.rank-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.rank-info {
  flex: 1;
}

.rank-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.rank-info p {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   TAB 3: APPS GRID
   ========================================================================== */
.apps-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--ios-sub-bg);
}

.cell-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cell-icon.purple { background: #e0aaff; }
.cell-icon.cyan { background: #90e0ef; }
.cell-icon.orange { background: #ffd166; }

.cell-meta {
  flex: 1;
}

.cell-meta h4 {
  font-size: 14px;
  font-weight: 700;
}

.cell-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   TAB 4: PLAYABLE ARCADE MINI-GAME
   ========================================================================== */
.mini-arcade-stage {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #bde0fe 0%, #a2d2ff 60%, #cdb4db 100%);
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.arcade-game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arcade-hud {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-score {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.arcade-jump-btn {
  padding: 10px 20px;
  background: #ff5722;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
  transition: transform 0.1s;
}

.arcade-jump-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   TAB 5: SEARCH
   ========================================================================== */
.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ios-sub-bg);
  border-radius: 12px;
  margin-bottom: 14px;
}

.search-glass {
  font-size: 14px;
}

.search-input-box input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
  width: 100%;
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.tag-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   IOS BOTTOM TAB BAR
   ========================================================================== */
.ios-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 10px;
  z-index: 40;
}

.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.tab-icon {
  font-size: 18px;
}

.tab-label {
  font-size: 10px;
  font-weight: 600;
}

.tab-bar-item.active {
  color: var(--ios-blue);
}

.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: #000000;
  border-radius: 999px;
  z-index: 50;
}

/* ==========================================================================
   INTERACTIVE IOS DETAIL BOTTOM SHEET MODAL
   ========================================================================== */
.ios-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ios-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ios-sheet-window {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 36px 36px 0 0;
  padding: 12px 24px 36px 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ios-sheet-backdrop.active .ios-sheet-window {
  transform: translateY(0);
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  background: #d1d1d6;
  border-radius: 2px;
  align-self: center;
  margin-bottom: 6px;
}

.sheet-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sheet-app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.sheet-title-info {
  flex: 1;
}

.sheet-title-info h3 {
  font-size: 18px;
  font-weight: 800;
}

.sheet-dev {
  font-size: 12px;
  color: var(--text-muted);
}

.sheet-rating-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
}

.sheet-rating-strip .stars {
  color: #ffd700;
  font-size: 11px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 11px;
}

.sheet-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #f2f2f7;
  border-bottom: 1px solid #f2f2f7;
}

.sheet-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sm-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.sm-val {
  font-size: 13px;
  font-weight: 800;
}

.sheet-body-content h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.sheet-body-content p {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.sheet-close-pill {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: var(--ios-sub-bg);
  border: none;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.sheet-close-pill:hover {
  background: #e5e5ea;
}

/* ==========================================================================
   CONFETTI CANVAS
   ========================================================================== */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2000;
}
