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

:root {
  --wall: #f5f5f5;
}

body {
  width: 100vw; height: 100vh; overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--wall);
}

/* =====================================================
   ROOM BACKGROUND
===================================================== */

.room {
  position: fixed;
  inset: -30px;
  will-change: transform;
  transition: transform 0.14s ease-out;
}

.room-wall {
  position: absolute;
  inset: 0;
  background: var(--wall);
}

/* =====================================================
   SCENE & TABLE
===================================================== */

.scene {
  position: relative;
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
  perspective-origin: var(--px, 50%) var(--py, 40%);
  overflow: hidden;
}

.tablet-glow {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.08) 0%, transparent 70%);
  filter: blur(16px);
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 1;
}

/* =====================================================
   TABLET
===================================================== */

.tablet {
  position: relative;
  z-index: 2;
  width: min(1020px, 96vw);
  height: min(720px, 93vh);
  background: linear-gradient(160deg, #2c2c2e 0%, #1c1c1e 55%, #141416 100%);
  border-radius: 28px;
  border: 1.5px solid rgba(139,92,246,0.35);
  box-shadow:
    0 40px 80px -10px rgba(0,0,0,0.5),
    0 20px 40px -5px rgba(0,0,0,0.3),
    0 0 20px rgba(139,92,246,0.15),
    inset 0 1px 0 rgba(139,92,246,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.25);
  transition:
    transform 1.1s cubic-bezier(0.34, 1.15, 0.64, 1),
    box-shadow 1.1s cubic-bezier(0.34, 1.15, 0.64, 1);
  cursor: pointer;
}

.tablet.idle {
  transform: rotateX(54deg) rotateZ(-16deg) scale(0.57);
  box-shadow:
    0 50px 80px -5px rgba(0,0,0,0.6),
    0 25px 40px rgba(0,0,0,0.3),
    0 0 25px rgba(139,92,246,0.2),
    inset 0 1px 0 rgba(139,92,246,0.2);
  cursor: pointer;
}

.tablet.idle:hover {
  transform: rotateX(51deg) rotateZ(-15deg) scale(0.59);
}

.tablet.zoomed {
  transform: rotateX(0deg) rotateZ(0deg) scale(1);
  box-shadow:
    0 40px 100px -10px rgba(0,0,0,0.4),
    0 15px 35px -5px rgba(0,0,0,0.25),
    0 0 20px rgba(139,92,246,0.15),
    inset 0 1px 0 rgba(139,92,246,0.2);
  cursor: default;
}

.tablet-power-btn {
  position: absolute;
  right: -4px; top: 22%;
  width: 4px; height: 52px;
  background: linear-gradient(to bottom, #3a3a3c, #2c2c2e);
  border-radius: 0 3px 3px 0;
}

.tablet-vol-group {
  position: absolute;
  left: -4px; top: 18%;
  display: flex; flex-direction: column; gap: 10px;
}

.tablet-vol-group span {
  display: block;
  width: 4px; height: 30px;
  background: linear-gradient(to bottom, #3a3a3c, #2c2c2e);
  border-radius: 3px 0 0 3px;
}

.tablet-camera {
  position: absolute;
  top: 13px; /* Start slightly inside the bezel */
  left: 50%;
  transform: translateX(-50%);
  width: 110px; 
  height: 24px;
  background: #000;
  border-radius: 0 0 12px 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The actual camera lens inside the notch */
.tablet-camera::after {
  content: '';
  width: 8px; height: 8px;
  background: #111;
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(60,100,255,0.35), 0 0 1px rgba(255,255,255,0.05);
}

.tablet-home-bar {
  position: absolute;
  bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  z-index: 21;
}

/* =====================================================
   HOVER PROMPT & PULSE
===================================================== */

.hover-prompt {
  position: absolute;
  bottom: -46px; left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,20,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e8ecea;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.tablet.idle:hover .hover-prompt { opacity: 1; }

.pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 36px;
  border: 2px solid rgba(139,92,246,0.35);
  pointer-events: none;
  opacity: 0;
  animation: pulseRing 2.2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.tablet.idle:hover .pulse-ring { opacity: 1; }

@keyframes pulseRing {
  0%, 100% { transform: scale(1.00); opacity: 0.35; }
  50%       { transform: scale(1.03); opacity: 0.70; }
}

/* =====================================================
   SCREEN
===================================================== */

.tablet-screen {
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}

.close-btn {
  position: fixed;
  top: 20px; right: 24px;
  z-index: 200;
  background: rgba(18,18,20,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e8ecea;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.7s, transform 0.35s ease 0.7s, background 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.close-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.close-btn:hover {
  background: rgba(139,92,246,0.15);
  color: #8b5cf6;
  border-color: rgba(139,92,246,0.2);
}

/* =====================================================
   SCREEN LAYERS
===================================================== */

.screen-layer {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  transition: opacity 0.45s ease;
}

.screen-layer.hidden {
  opacity: 0;
  pointer-events: none;
}

#screenWake {
  background: #000;
  z-index: 10;
}

/* =====================================================
   LOCK SCREEN
===================================================== */

#screenLock {
  background: linear-gradient(155deg, #1a2a26 0%, #101a17 55%, #0a1210 100%);
  z-index: 9;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.lock-time {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 72px;
  color: #e8ecea;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}

.lock-date {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(232,236,234,0.55);
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.lock-swipe-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lock-swipe-arrow {
  width: 20px;
  height: 20px;
  border-left: 2px solid rgba(255,255,255,0.85);
  border-top: 2px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
  animation: swipeArrow 2s ease-in-out infinite;
}

.lock-swipe-text {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7) /* slightly more transparent to be subtle */;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes swipeArrow {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(0); }
  50%      { opacity: 0.8; transform: rotate(45deg) translateY(-6px); }
}

/* Lock screen drag overlay */
.lock-drag-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* =====================================================
   LOADING
===================================================== */

#screenLoading {
  background: radial-gradient(circle at 40% 40%, #1e2d29 0%, #0f1715 100%);
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 8;
}

.loader-ring {
  width: 36px; height: 36px;
  border: 2.5px solid rgba(106,13,173,0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-brand {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-style: italic;
  color: #8b5cf6;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.25s both;
}

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

/* =====================================================
   HOME SCREEN
===================================================== */

#screenHome {
  background: #000;
  z-index: 7;
  height: 100%;
  touch-action: none;
}

.particle-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
}

.status-bar {
  height: 28px;
  padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: rgba(0,0,0,0.25);
  position: relative;
  z-index: 5;
}

.status-time {
  font-size: 13px; font-weight: 600;
  color: #e8ecea; letter-spacing: 0.02em;
}

.status-icons { display: flex; align-items: center; gap: 7px; color: rgba(232,236,234,0.9); }

.signal-bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.signal-bars .bar { width: 3px; background: #e8ecea; border-radius: 1px; }
.signal-bars .bar:nth-child(1) { height: 3px; }
.signal-bars .bar:nth-child(2) { height: 6px; }
.signal-bars .bar:nth-child(3) { height: 8px; }
.signal-bars .bar:nth-child(4) { height: 11px; }

.wifi-icon { color: inherit; }

.battery-wrap { display: flex; align-items: center; gap: 1px; }
.battery-body {
  width: 22px; height: 11px;
  border: 1.5px solid rgba(232,236,234,0.75);
  border-radius: 2.5px;
  padding: 1.5px;
}
.battery-fill { height: 100%; width: 72%; background: #30d158; border-radius: 1px; }
.battery-tip { width: 2px; height: 5px; background: rgba(232,236,234,0.75); border-radius: 0 1px 1px 0; }

/* =====================================================
   SEARCH BAR (Spotlight)
===================================================== */

.search-bar-trigger {
  margin: 8px 18px 4px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.search-bar-trigger:hover {
  background: rgba(255,255,255,0.12);
}

.search-bar-trigger svg {
  width: 14px; height: 14px;
  stroke: rgba(232,236,234,0.4);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-bar-trigger span {
  font-size: 14px;
  color: rgba(232,236,234,0.35);
}

/* Search overlay */
.search-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,21,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 12;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-header {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.search-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #e8ecea;
  outline: none;
}

.search-input::placeholder { color: rgba(232,236,234,0.3); }

.search-cancel {
  background: none;
  border: none;
  color: #8b5cf6;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.2s;
}

.search-cancel:hover { opacity: 0.6; }

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.search-results::-webkit-scrollbar { width: 3px; }
.search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.search-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139,92,246,0.7);
  margin: 12px 0 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.06);
}

.search-result-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.search-result-icon svg {
  width: 18px; height: 18px;
  stroke: white; fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.search-result-title {
  font-size: 15px;
  font-weight: 500;
  color: #e8ecea;
}

.search-result-sub {
  font-size: 13px;
  color: rgba(232,236,234,0.4);
  margin-top: 1px;
}

.search-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(232,236,234,0.3);
  font-size: 15px;
}

/* =====================================================
   SWIPE PAGES & DOTS
===================================================== */

.pages-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.pages-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.pages-track.dragging {
  transition: none;
}

.page {
  min-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 12px;
  padding: 16px 26px 10px;
  align-content: start;
  overflow: hidden;
}

.page-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  flex-shrink: 0;
}

.page-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.page-dot.active {
  background: rgba(255,255,255,0.7);
  transform: scale(1.2);
}

/* =====================================================
   APP ICONS
===================================================== */

.app-icon {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer; position: relative;
  user-select: none; -webkit-user-select: none;
}

.app-face {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.app-face svg {
  width: 28px; height: 28px;
  stroke: white; fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.app-face.filled svg { fill: white; stroke: none; }

.app-icon:active .app-face {
  transform: scale(0.87);
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.app-name {
  font-size: 13px; font-weight: 500;
  color: rgba(232,236,234,0.85);
  letter-spacing: 0.01em;
  text-align: center;
}

.notif {
  position: absolute;
  top: -5px; right: calc(50% - 38px);
  min-width: 17px; height: 17px;
  background: #ff3b30; color: white;
  font-size: 11px; font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #141e1b;
}

/* Dock */
.dock {
  margin: 6px 18px 12px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 10px 20px;
  display: flex; justify-content: center; gap: 24px;
  flex-shrink: 0;
}

.dock .app-face { width: 50px; height: 50px; }
.dock .app-face svg { width: 24px; height: 24px; }
.dock .app-name { display: none; }
.dock .notif { right: calc(50% - 32px); }

/* =====================================================
   NOTIFICATION BANNER
===================================================== */

.notif-banner {
  position: absolute;
  top: 34px;
  left: 12px;
  right: 12px;
  z-index: 18;
  background: rgba(40,50,46,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.notif-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.notif-banner:hover {
  background: rgba(50,62,56,0.95);
}

.notif-banner-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.notif-banner-icon svg {
  width: 18px; height: 18px;
  stroke: white; fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.notif-banner-app {
  font-size: 12px;
  font-weight: 600;
  color: rgba(232,236,234,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notif-banner-text {
  font-size: 14px;
  color: #e8ecea;
  font-weight: 500;
  margin-top: 2px;
}

.notif-banner-time {
  font-size: 12px;
  color: rgba(232,236,234,0.35);
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

/* =====================================================
   CONTROL CENTRE
===================================================== */

.cc-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 28px;
  z-index: 19;
  cursor: pointer;
}

.cc-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cc-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cc-panel {
  position: absolute;
  top: 28px;
  right: 10px;
  width: 260px;
  z-index: 21;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px;
  transform: translateY(-10px) scale(0.95);
  transform-origin: top right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.25s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.cc-panel.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.cc-tile {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.cc-tile:hover {
  background: rgba(255,255,255,0.1);
}

.cc-tile.active {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.3);
}

.cc-tile-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.cc-tile.active .cc-tile-icon {
  background: rgba(139,92,246,0.3);
}

.cc-tile-icon svg {
  width: 15px; height: 15px;
  stroke: rgba(232,236,234,0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}

.cc-tile.active .cc-tile-icon svg {
  stroke: #8b5cf6;
}

.cc-tile-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(232,236,234,0.7);
  line-height: 1.2;
}

.cc-tile.active .cc-tile-label {
  color: #8b5cf6;
}

.cc-tile-status {
  font-size: 11px;
  color: rgba(232,236,234,0.35);
  margin-top: 1px;
}

.cc-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0 12px;
}

/* Brightness slider */
.cc-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  margin-bottom: 14px;
}

.cc-slider-row svg {
  width: 16px; height: 16px;
  stroke: rgba(232,236,234,0.5);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.cc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
}

.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: #e8ecea;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Quick links row */
.cc-links {
  display: flex;
  justify-content: space-around;
  gap: 6px;
}

.cc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.cc-link:hover {
  background: rgba(255,255,255,0.06);
}

.cc-link-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}

.cc-link-icon svg {
  width: 16px; height: 16px;
  stroke: rgba(232,236,234,0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-link-label {
  font-size: 11px;
  color: rgba(232,236,234,0.45);
  letter-spacing: 0.03em;
}

/* =====================================================
   APP PANELS (with dynamic transform-origin)
===================================================== */

.app-panel {
  position: absolute; inset: 0;
  background: #000000;
  display: flex; flex-direction: column;
  z-index: 15;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.app-panel.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.panel-nav {
  height: 44px;
  padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
}

.panel-back-btn {
  background: none; border: none;
  color: #8b5cf6; font-size: 23px;
  cursor: pointer; padding: 4px 6px 4px 0;
  line-height: 1; transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
}
.panel-back-btn:hover { opacity: 0.6; }

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: #e8ecea; letter-spacing: -0.02em;
}

.panel-body {
  flex: 1; overflow-y: auto;
  padding: 20px 20px 16px;
  color: #e8ecea;
}

.panel-body::-webkit-scrollbar { width: 3px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.panel-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: #e8ecea; letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.panel-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; color: #8b5cf6;
  letter-spacing: -0.02em; margin-bottom: 14px;
  font-style: italic;
}

.panel-p {
  font-size: 15px; line-height: 1.7;
  color: rgba(232,236,234,0.68);
  margin-bottom: 14px;
}

.panel-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 16px 0; }

.panel-label {
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139,92,246,0.75);
  margin-bottom: 10px;
}

.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 16px;
  margin-bottom: 12px; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  background: rgba(139,92,246,0.07);
  border-color: rgba(139,92,246,0.2);
}

.project-card-title { font-family: 'Playfair Display', serif; font-size: 17px; color: #e8ecea; margin-bottom: 4px; }
.project-card-meta  { font-size: 12px; color: #8b5cf6; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.project-card-desc  { font-size: 14px; color: rgba(232,236,234,0.58); line-height: 1.6; }

.skill-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.skill-pill {
  font-size: 13px; font-weight: 500;
  padding: 5px 13px; border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(232,236,234,0.78);
  letter-spacing: 0.02em;
}

.skill-pill.gold {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.25);
  color: #8b5cf6;
}

.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; margin-bottom: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
  background: rgba(139,92,246,0.07);
  border-color: rgba(139,92,246,0.2);
}

.contact-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { font-size: 12px; color: rgba(232,236,234,0.45); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-value { font-size: 15px; color: #e8ecea; font-weight: 500; }

/* Contact Form */
.contact-form {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 16px;
}
.contact-form-field { display: flex; flex-direction: column; gap: 4px; }
.contact-form-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(232,236,234,0.45); font-weight: 500;
}
.contact-form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px; color: #e8ecea;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form-input::placeholder { color: rgba(232,236,234,0.25); }
.contact-form-input:focus { border-color: #7c3aed; }
.contact-form-textarea { resize: none; min-height: 80px; }
.contact-form-btn {
  background: #7c3aed; color: #fff;
  border: none; border-radius: 10px;
  padding: 10px 0; font-size: 15px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: opacity 0.2s;
}
.contact-form-btn:hover { opacity: 0.85; }
.contact-form-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.contact-form-status {
  font-size: 13px; text-align: center; min-height: 16px;
  color: #7c3aed;
}

.timeline-item {
  position: relative; padding-left: 22px; margin-bottom: 18px;
}

.timeline-item::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 9px; height: 9px; background: #8b5cf6; border-radius: 50%;
}

.timeline-item::after {
  content: ''; position: absolute; left: 4px; top: 14px; bottom: -10px;
  width: 1px; background: rgba(255,255,255,0.08);
}

.timeline-item:last-child::after { display: none; }
.timeline-role    { font-size: 16px; font-weight: 600; color: #e8ecea; margin-bottom: 2px; }
.timeline-company { font-size: 14px; color: #8b5cf6; margin-bottom: 3px; }
.timeline-period  { font-size: 12px; color: rgba(232,236,234,0.4); letter-spacing: 0.03em; }

.lab-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 16px; margin-bottom: 12px;
}

.lab-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 10px; margin-bottom: 9px;
}

/* =====================================================
   SHAKE ANIMATION (disabled apps)
===================================================== */
@keyframes appShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-4px) rotate(-2deg); }
  30% { transform: translateX(3px) rotate(1.5deg); }
  45% { transform: translateX(-3px) rotate(-1deg); }
  60% { transform: translateX(2px) rotate(0.5deg); }
  75% { transform: translateX(-1px); }
}
.app-icon.app-disabled.shake {
  animation: appShake 0.5s ease;
}

/* =====================================================
   SETTINGS PANEL
===================================================== */
.settings-group {
  margin-bottom: 20px;
}

.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
}
.settings-group .settings-item:first-child,
.settings-group .settings-item:first-of-type { border-radius: 12px 12px 0 0; }
.settings-group .settings-item:last-child,
.settings-group .settings-item:last-of-type { border-radius: 0 0 12px 12px; border-bottom: none; }
.settings-group .settings-item:only-child,
.settings-group .settings-item:only-of-type { border-radius: 12px; }

.settings-item-info { flex: 1; }
.settings-item-label { display: block; font-size: 15px; font-weight: 500; color: #e8ecea; }
.settings-item-desc { display: block; font-size: 12px; color: rgba(232,236,234,0.4); margin-top: 2px; }

.settings-toggle {
  position: relative; width: 42px; height: 24px; flex-shrink: 0;
}
.settings-toggle input { opacity: 0; width: 0; height: 0; }
.settings-toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); border-radius: 24px;
  transition: background 0.3s;
}
.settings-toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.3s;
}
.settings-toggle input:checked + .settings-toggle-slider {
  background: #7c3aed;
}
.settings-toggle input:checked + .settings-toggle-slider::before {
  transform: translateX(18px);
}

.settings-wallpaper-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.settings-wallpaper {
  cursor: pointer; text-align: center; overflow: hidden;
}
.settings-wallpaper > div {
  width: 100%; aspect-ratio: 3/4; border: 2px solid transparent; border-radius: 10px;
  transition: border-color 0.2s;
}
.settings-wallpaper.active > div {
  border-color: #7c3aed;
}
.settings-wallpaper span {
  display: block; font-size: 11px; color: rgba(232,236,234,0.5); margin-top: 5px;
}

/* Light mode settings */
.tablet-screen.light-mode .settings-item { background: rgba(0,0,0,0.03); border-bottom-color: rgba(0,0,0,0.06); }
.tablet-screen.light-mode .settings-item-label { color: #1a1a18; }
.tablet-screen.light-mode .settings-item-desc { color: rgba(26,26,24,0.65); }
.tablet-screen.light-mode .settings-toggle-slider { background: rgba(0,0,0,0.12); }
.tablet-screen.light-mode .settings-toggle input:checked + .settings-toggle-slider { background: #7c3aed; }
.tablet-screen.light-mode .settings-wallpaper span { color: rgba(26,26,24,0.75); }

/* =====================================================
   LIGHT MODE
===================================================== */

.tablet-screen.light-mode #screenHome {
  background: #f0ede6;
}

.tablet-screen.light-mode .status-bar {
  background: rgba(0,0,0,0.06);
}

.tablet-screen.light-mode .status-time { color: #2a2a28; }
.tablet-screen.light-mode .status-icons { color: #2a2a28; }
.tablet-screen.light-mode .signal-bars .bar { background: #2a2a28; }
.tablet-screen.light-mode .wifi-icon { color: #2a2a28; }
.tablet-screen.light-mode .battery-body { border-color: rgba(42,42,40,0.85); }
.tablet-screen.light-mode .battery-fill { background: #30a050; }
.tablet-screen.light-mode .battery-tip { background: rgba(42,42,40,0.85); }

.tablet-screen.light-mode .search-bar-trigger {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.08);
}
.tablet-screen.light-mode .search-bar-trigger:hover { background: rgba(0,0,0,0.1); }
.tablet-screen.light-mode .search-bar-trigger svg { stroke: rgba(42,42,40,0.65); }
.tablet-screen.light-mode .search-bar-trigger span { color: rgba(42,42,40,0.65); }

.tablet-screen.light-mode .app-face {
  background: rgba(0,0,0,0.08) !important;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.4);
}

.tablet-screen.light-mode .app-face svg {
  stroke: #1a1a18;
  filter: none;
}

.tablet-screen.light-mode .app-face.filled svg {
  fill: #1a1a18;
  stroke: none;
}

.tablet-screen.light-mode .app-name { color: #2a2a28; }

.tablet-screen.light-mode .notif { border-color: #e8e4dc; }

.tablet-screen.light-mode .page-dot { background: rgba(0,0,0,0.15); }
.tablet-screen.light-mode .page-dot.active { background: rgba(0,0,0,0.5); }

.tablet-screen.light-mode .dock {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(0,0,0,0.06);
}

.tablet-screen.light-mode .notif-banner {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.tablet-screen.light-mode .notif-banner:hover { background: rgba(255,255,255,0.97); }
.tablet-screen.light-mode .notif-banner-app { color: rgba(42,42,40,0.75); }
.tablet-screen.light-mode .notif-banner-text { color: #1a1a18; }
.tablet-screen.light-mode .notif-banner-time { color: rgba(42,42,40,0.60); }

/* Light mode panels */
.tablet-screen.light-mode .app-panel {
  background: #f0ede6;
}

.tablet-screen.light-mode .app-panel .panel-nav {
  background: rgba(0,0,0,0.04);
  border-bottom-color: rgba(0,0,0,0.06);
}

.tablet-screen.light-mode .app-panel .panel-back-btn { color: #7c3aed; }
.tablet-screen.light-mode .app-panel .panel-title { color: #1a1a18; }
.tablet-screen.light-mode .app-panel .panel-body { color: #1a1a18; }
.tablet-screen.light-mode .app-panel .panel-h1 { color: #1a1a18; }
.tablet-screen.light-mode .app-panel .panel-h2 { color: #7c3aed; }
.tablet-screen.light-mode .app-panel .panel-p { color: rgba(26,26,24,0.85); }
.tablet-screen.light-mode .app-panel .panel-divider { background: rgba(0,0,0,0.08); }
.tablet-screen.light-mode .app-panel .panel-label { color: rgba(124,58,237,1); }

.tablet-screen.light-mode .app-panel .project-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
.tablet-screen.light-mode .app-panel .project-card:hover {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
}
.tablet-screen.light-mode .app-panel .project-card-title { color: #1a1a18; }
.tablet-screen.light-mode .app-panel .project-card-meta { color: #7c3aed; }
.tablet-screen.light-mode .app-panel .project-card-desc { color: rgba(26,26,24,0.75); }

.tablet-screen.light-mode .app-panel .skill-pill {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: rgba(26,26,24,0.95);
}
.tablet-screen.light-mode .app-panel .skill-pill.gold {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.25);
  color: #7c3aed;
}

.tablet-screen.light-mode .app-panel .contact-item {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
.tablet-screen.light-mode .app-panel .contact-item:hover {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
}
.tablet-screen.light-mode .app-panel .contact-label { color: rgba(26,26,24,0.65); }
.tablet-screen.light-mode .app-panel .contact-value { color: #1a1a18; }
.tablet-screen.light-mode .app-panel .contact-form-label { color: rgba(26,26,24,0.65); }
.tablet-screen.light-mode .app-panel .contact-form-input {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #1a1a18;
}
.tablet-screen.light-mode .app-panel .contact-form-input::placeholder { color: rgba(26,26,24,0.55); }

.tablet-screen.light-mode .app-panel .timeline-item::before { background: #7c3aed; }
.tablet-screen.light-mode .app-panel .timeline-item::after { background: rgba(0,0,0,0.08); }
.tablet-screen.light-mode .app-panel .timeline-role { color: #1a1a18; }
.tablet-screen.light-mode .app-panel .timeline-company { color: #7c3aed; }
.tablet-screen.light-mode .app-panel .timeline-period { color: rgba(26,26,24,0.65); }

.tablet-screen.light-mode .app-panel .lab-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}

.tablet-screen.light-mode .app-panel .panel-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }

/* Light mode control centre */
.tablet-screen.light-mode .cc-panel {
  background: rgba(240,237,230,0.95);
  border-color: rgba(0,0,0,0.08);
}
.tablet-screen.light-mode .cc-tile {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.06);
}
.tablet-screen.light-mode .cc-tile:hover { background: rgba(0,0,0,0.07); }
.tablet-screen.light-mode .cc-tile.active {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.25);
}
.tablet-screen.light-mode .cc-tile-icon { background: rgba(0,0,0,0.06); }
.tablet-screen.light-mode .cc-tile.active .cc-tile-icon { background: rgba(124,58,237,0.2); }
.tablet-screen.light-mode .cc-tile-icon svg { stroke: rgba(42,42,40,0.85); }
.tablet-screen.light-mode .cc-tile.active .cc-tile-icon svg { stroke: #7c3aed; }
.tablet-screen.light-mode .cc-tile-label { color: rgba(42,42,40,0.95); }
.tablet-screen.light-mode .cc-tile.active .cc-tile-label { color: #7c3aed; }
.tablet-screen.light-mode .cc-tile-status { color: rgba(42,42,40,0.60); }
.tablet-screen.light-mode .cc-divider { background: rgba(0,0,0,0.06); }
.tablet-screen.light-mode .cc-slider-row svg { stroke: rgba(42,42,40,0.70); }
.tablet-screen.light-mode .cc-slider { background: rgba(0,0,0,0.08); }
.tablet-screen.light-mode .cc-slider::-webkit-slider-thumb { background: #2a2a28; }
.tablet-screen.light-mode .cc-link-icon { background: rgba(0,0,0,0.06); }
.tablet-screen.light-mode .cc-link-icon svg { stroke: rgba(42,42,40,0.85); }
.tablet-screen.light-mode .cc-link-label { color: rgba(42,42,40,0.70); }

/* Light mode search overlay */
.tablet-screen.light-mode .search-overlay {
  background: rgba(240,237,230,0.97);
}
.tablet-screen.light-mode .search-header { border-bottom-color: rgba(0,0,0,0.06); }
.tablet-screen.light-mode .search-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a18;
}
.tablet-screen.light-mode .search-input::placeholder { color: rgba(42,42,40,0.55); }
.tablet-screen.light-mode .search-cancel { color: #7c3aed; }
.tablet-screen.light-mode .search-section-label { color: rgba(124,58,237,0.7); }
.tablet-screen.light-mode .search-result-item:hover { background: rgba(0,0,0,0.04); }
.tablet-screen.light-mode .search-result-title { color: #1a1a18; }
.tablet-screen.light-mode .search-result-sub { color: rgba(42,42,40,0.65); }
.tablet-screen.light-mode .search-empty { color: rgba(42,42,40,0.55); }

/* =====================================================
   HALFTONE CORNERS + FLOATING GREETINGS
===================================================== */

.halftone {
  position: fixed;
  width: min(340px, 35vw);
  height: min(340px, 35vh);
  z-index: 1;
  pointer-events: none;
  /* Dot pattern */
  background-image: radial-gradient(circle, rgba(0,0,0,0.7) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
}

/* Fade from corner using mask */
.halftone-tr {
  top: 0; right: 0;
  -webkit-mask: radial-gradient(circle at 100% 0%, black 0%, black 15%, transparent 65%);
  mask: radial-gradient(circle at 100% 0%, black 0%, black 15%, transparent 65%);
}

.halftone-bl {
  bottom: 0; left: 0;
  -webkit-mask: radial-gradient(circle at 0% 100%, black 0%, black 15%, transparent 65%);
  mask: radial-gradient(circle at 0% 100%, black 0%, black 15%, transparent 65%);
}

/* Floating greetings (opposite corners to halftone) */
.greeting {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 26px);
  color: #1a1a18;
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.greeting.visible {
  opacity: 1;
}

.greeting-tl {
  top: 3%;
  left: 2%;
  animation: greetFloatTL 5s ease-in-out infinite;
}

.greeting-br {
  bottom: 3%;
  right: 2%;
  text-align: right;
  animation: greetFloatBR 5s ease-in-out infinite;
}

@keyframes greetFloatTL {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes greetFloatBR {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* =====================================================
   ROOM PROMPT TEXT
===================================================== */

.room-prompt {
  position: absolute;
  top: 16%;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  animation: promptFloat 4s ease-in-out infinite;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes promptFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

.room-prompt.fade-out {
  opacity: 0;
  animation: none;
  transform: translateY(-20px);
}

.room-prompt-text {
  font-family: 'Doto', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 72px);
  color: #1a1a18;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.room-prompt-sub {
  font-family: 'Doto', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 24px);
  color: #1a1a18;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* =====================================================
   RESPONSIVE — PHONE (< 600px)
===================================================== */

@media (max-width: 599px) {
  .tablet {
    width: min(320px, 94vw);
    height: min(620px, 88vh);
    border-radius: 44px;
  }

  .tablet.idle {
    transform: rotateX(52deg) rotateZ(-12deg) scale(0.72);
  }

  .tablet.idle:hover {
    transform: rotateX(49deg) rotateZ(-11deg) scale(0.74);
  }

  .tablet-home-bar { width: 100px; height: 5px; bottom: 8px; }
  .tablet-camera { width: 10px; height: 10px; top: 13px; }

  .page {
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 18px 8px;
    gap: 22px 10px;
  }

  .app-face { width: 56px; height: 56px; }
  .app-face svg { width: 26px; height: 26px; }

  .dock { gap: 16px; }

  .panel-h1 { font-size: 22px; }
  .panel-p  { font-size: 14px; }

  .room-prompt { top: 10%; }
  .lock-time { font-size: 54px; }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .tablet {
    width: min(900px, 96vw);
    height: min(640px, 93vh);
  }

  .tablet.idle {
    transform: rotateX(54deg) rotateZ(-16deg) scale(0.60);
  }

  .tablet.idle:hover {
    transform: rotateX(51deg) rotateZ(-15deg) scale(0.62);
  }
}

@media (min-width: 1400px) {
  .tablet {
    width: min(1100px, 96vw);
    height: min(780px, 94vh);
  }
}