/* DRS tablet device frame — shared by the DRS tablet UIs */
:root {
    --backdrop: rgba(5, 6, 10, 0.55);
    --bezel: #0b0c11;
    --bezel-edge: #262833;
    --screen: #0d0f17;
    --window: #121420;
    --row: #161826;
    --line: #242739;
    --line-soft: #1d2030;
    --white: #f3f4fa;
    --text: #d7d9e6;
    --muted: #868aa3;
    --accent: #8b8ff8;
    --accent-strong: #6d71f0;
    --accent-soft: rgba(139, 143, 248, 0.16);
    --accent-glow: rgba(139, 143, 248, 0.20);
    --danger: #ff6b66;
    --danger-soft: rgba(255, 107, 102, 0.14);
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.13);
    --warning: #fbbf24;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Manrope", "Segoe UI", sans-serif; }
body { height: 100vh; width: 100vw; overflow: hidden; background: transparent; color: var(--text); }
.hidden { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#app {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--backdrop);
}

.tablet {
    position: relative;
    width: min(1100px, 92vw);
    height: min(700px, 86vh);
    padding: 16px;
    border-radius: 42px;
    background: linear-gradient(145deg, #1a1c24 0%, var(--bezel) 38%, var(--bezel) 70%, #16171e 100%);
    box-shadow:
        0 0 0 1.5px var(--bezel-edge),
        0 0 0 5px #07080b,
        0 50px 120px -30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: tablet-in 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.05);
}
@keyframes tablet-in {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
.tablet-camera {
    position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    width: 7px; height: 7px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b4160, #0a0b10 70%);
    box-shadow: 0 0 0 1.5px #15161c;
}
.tablet-button { position: absolute; background: #1b1d25; border-radius: 3px; }
.tablet-button-power { top: -4px; right: 120px; width: 56px; height: 4px; }
.tablet-button-vol { right: -4px; top: 110px; width: 4px; height: 70px; }

.screen {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 28px;
    overflow: hidden;
    display: flex; flex-direction: column;
    background:
        radial-gradient(900px 500px at 8% -10%, var(--accent-glow), transparent 60%),
        radial-gradient(700px 420px at 105% 110%, rgba(94, 234, 212, 0.06), transparent 60%),
        var(--screen);
}

.statusbar {
    height: 34px; flex: none;
    display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px;
    padding: 0 22px;
    font-size: 12.5px; font-weight: 700; color: var(--white);
}
.sb-time, .sb-pct { font-variant-numeric: tabular-nums; }
.sb-date { color: var(--muted); font-weight: 600; }
.sb-center { justify-self: center; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.sb-icons { display: flex; align-items: center; gap: 7px; }
.sb-icons svg { width: 15px; height: 15px; }
.sb-battery { position: relative; width: 24px; height: 12px; border-radius: 3.5px; border: 1.5px solid rgba(243, 244, 250, 0.7); padding: 1.5px; }
.sb-battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(243, 244, 250, 0.7); }
.sb-battery-level { display: block; height: 100%; width: 87%; border-radius: 1.5px; background: var(--white); }

.home-indicator {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 130px; height: 5px; border-radius: 3px;
    background: rgba(243, 244, 250, 0.35);
}

.power-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; flex: none;
    background: var(--danger-soft); color: var(--danger);
    transition: background 0.15s;
}
.power-btn svg { width: 18px; height: 18px; }
.power-btn:hover { background: rgba(255, 107, 102, 0.26); }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-height: 640px) {
    .tablet { padding: 12px; border-radius: 34px; }
    .screen { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .tablet { animation: none; }
}

/* scrollbars: thin, rounded, no Windows arrows */
* { scrollbar-width: thin; scrollbar-color: #2e3248 transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2e3248; border-radius: 6px; border: 1px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4a4f70; background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
