/* RapidKiosk browser demo: the "tablet in your browser" around the real pages. */
@font-face { font-family: "Inter"; src: url("fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; }

:root {
  --navy: #060916; --navy-2: #0B1024; --navy-3: #131B38;
  --orange: #FF5A1F; --orange-2: #FF835D; --lime: #C6FD64;
  --mist: #F2F4F8; --mist-2: #A3ADCB; --mist-3: #6E7898;
  --ink: #1B2030; --ink-2: #4A5068;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ribbon: 34px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: var(--navy); color: var(--mist);
  font: 15px/1.4 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
iframe { display: block; border: 0; width: 100%; height: 100%; background: transparent; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- ribbon + room */
.ribbon { position: fixed; left: 0; right: 0; top: 0; height: var(--ribbon); z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px;
  background: #0B1024; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 13px; color: var(--mist-2); white-space: nowrap; overflow: hidden; }
.ribbon b { color: #fff; font-weight: 700; }
.r-dots { display: inline-flex; gap: 4px; }
.r-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.r-dots i + i { background: var(--lime); }
.r-btn { margin-left: 8px; height: 24px; padding: 0 11px; border-radius: 12px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.08); color: var(--mist); }
.r-btn:hover { background: rgba(255,255,255,.14); }
.r-text { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .ribbon { font-size: 12px; } .r-mid, .r-btn { display: none; } }

.room { position: fixed; left: 0; right: 0; top: var(--ribbon); bottom: 0; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, #0E1530, var(--navy)); }
.device { position: absolute; left: 0; top: 0; padding: 22px; border-radius: 44px; transform-origin: 0 0;
  background: linear-gradient(160deg, #262A33, #121419 60%);
  box-shadow: 0 0 0 1.5px #3A3F4A, 0 40px 90px -30px rgba(0,0,0,.9), inset 0 0 0 2px #0A0B0E; }
.cam { position: absolute; left: 50%; top: 8px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: #05060A; box-shadow: inset 0 0 0 1.5px #23262E; }
.screen { position: relative; width: 1280px; height: 853px; overflow: hidden; border-radius: 6px; background: var(--navy);
  isolation: isolate; }

body.bare .ribbon { display: none; }
body.bare .room { top: 0; background: var(--navy); }
body.bare .device { padding: 0; border-radius: 0; background: none; box-shadow: none; }
body.bare .cam { display: none; }
body.bare .screen { border-radius: 0; }

/* ---------------------------------------------------------------- layers */
.layer { position: absolute; inset: 0; transition: opacity .45s var(--ease); }
.layer.fading { opacity: 0; pointer-events: none; }
#lGreeter { z-index: 3; } #lDesk { z-index: 2; } #lBoot { z-index: 5; } #lOff { z-index: 6; }

/* boot splash */
.boot { background: linear-gradient(180deg, #060916, #0B1024); display: flex; flex-direction: column; align-items: center; }
.b-icon { width: 138px; height: 138px; margin-top: 276px; filter: drop-shadow(0 18px 30px rgba(255,90,31,.25)); animation: bobb 2.4s ease-in-out infinite; }
.b-word { margin-top: 26px; font-size: 64px; font-weight: 650; letter-spacing: -.03em; color: #fff; line-height: 1; }
.b-word b { font-weight: 850; color: var(--orange-2); }
.b-tag { margin-top: 22px; font-size: 19px; font-weight: 550; color: var(--mist-2); }
.b-dots { display: flex; gap: 14px; margin-top: 28px; }
.b-dots i { width: 13px; height: 13px; border-radius: 50%; background: #3A4260; animation: dot 1.2s infinite; }
.b-dots i:nth-child(2) { animation-delay: .4s; } .b-dots i:nth-child(3) { animation-delay: .8s; }
.b-foot { position: absolute; bottom: 36px; font-size: 14px; font-weight: 550; color: var(--mist-3); }
@keyframes bobb { 50% { transform: translateY(-8px); } }
@keyframes dot { 0%, 30% { background: var(--lime); } 34%, 100% { background: #3A4260; } }

/* screen off */
.off { background: #000; display: grid; place-items: center; }
.off-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 40px; border-radius: 30px; color: #6E7898; }
.off-btn:hover { background: rgba(255,255,255,.04); }
.off-btn .g { width: 40px; height: 40px; margin-bottom: 8px; }
.off-btn b { font-size: 18px; font-weight: 650; color: #A3ADCB; } .off-btn small { font-size: 14px; }

/* ---------------------------------------------------------------- desktop session */
#fDesk { position: absolute; inset: 0; }
.catcher { position: absolute; inset: 0 0 48px; z-index: 4; }

/* Windows-11-style taskbar (XFCE panel on the tablet) */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; z-index: 8;
  background: #F3F4F7; border-top: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center; color: var(--ink); }
.tb-center { display: flex; gap: 3px; }
.tb-app { position: relative; width: 44px; height: 40px; border-radius: 7px; display: grid; place-items: center; transition: background-color .12s, transform .12s; }
.tb-app:hover { background: rgba(0,0,0,.05); }
.tb-app:active { transform: scale(.92); }
.tb-app.on { background: rgba(0,0,0,.07); }
.tb-app img { width: 25px; height: 25px; }
.tb-search { width: 23px; height: 23px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.tb-app .run { position: absolute; bottom: 2px; left: 50%; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--orange); }
.tb-right { position: absolute; right: 6px; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; }
.tb-status { height: 38px; padding: 0 12px 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 600; font-feature-settings: "tnum"; color: var(--ink); transition: background-color .12s; }
.tb-status:hover { background: rgba(0,0,0,.05); }
.tb-status.on { background: rgba(0,0,0,.09); }
.tb-status .g { width: 24px; height: 24px; stroke-width: 1.9; }
.tb-status .pct { margin-left: -4px; }
.tb-clock { display: flex; flex-direction: column; align-items: flex-end; padding: 0 8px; font-size: 12.5px; line-height: 1.3; color: var(--ink);
  font-feature-settings: "tnum"; }
.tb-clock b { font-weight: 500; }
.tb-bell { width: 30px; display: grid; place-items: center; color: var(--ink-2); }
.tb-bell svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Control Center frame: covers the screen above the taskbar, like the real window */
.cc-frame { position: absolute; left: 0; top: 0; width: 1280px; height: 805px; z-index: 6; visibility: hidden; pointer-events: none; }
.cc-frame.open { visibility: visible; pointer-events: auto; }

/* Start menu */
.start { position: absolute; left: 50%; bottom: 58px; width: 600px; margin-left: -300px; z-index: 5;
  background: #FAFAFC; color: var(--ink); border-radius: 14px; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.65); overflow: hidden; animation: up .22s var(--ease); }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.st-search { margin: 22px 26px 6px; height: 40px; border-radius: 20px; background: #fff; border: 1px solid rgba(0,0,0,.1);
  border-bottom: 2px solid var(--orange); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #7B8196; font-size: 14.5px; }
.st-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.st-head { margin: 18px 34px 8px; font-size: 14px; font-weight: 650; }
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 22px 18px; }
.st-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; text-align: center; line-height: 1.25; }
.st-item:hover { background: rgba(0,0,0,.05); }
.st-item:active { transform: scale(.95); }
.st-item img { width: 44px; height: 44px; }
.st-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 26px 12px 30px;
  background: rgba(0,0,0,.035); border-top: 1px solid rgba(0,0,0,.06); }
.st-user { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.st-user img { width: 32px; height: 32px; }
.st-pwr { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; }
.st-pwr:hover { background: rgba(0,0,0,.06); }
.st-pwr .g { width: 20px; height: 20px; }

/* app window ("Hi, Kio!"), maximized above the taskbar like on the tablet */
.win { position: absolute; left: 0; top: 0; right: 0; bottom: 48px; z-index: 3; display: flex; flex-direction: column;
  background: var(--navy); box-shadow: 0 0 0 1px rgba(0,0,0,.4); animation: winIn .25s var(--ease); }
@keyframes winIn { from { transform: scale(.97); opacity: 0; } }
.win-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 10px; padding-left: 10px;
  background: #F3F4F7; color: #4A5068; font-size: 13.5px; border-bottom: 1px solid rgba(0,0,0,.06); }
.win-bar img { width: 22px; height: 22px; }
.win-title { flex: 1; }
.win-btns { display: flex; height: 100%; }
.wb { width: 50px; height: 100%; display: grid; place-items: center; color: #4A5068; }
.wb:hover { background: rgba(0,0,0,.06); } .wb.close:hover { background: #E81123; color: #fff; }
.wb:disabled { opacity: .45; cursor: default; background: none; }
.wb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
#fKio { flex: 1; height: auto; background: var(--navy); }

/* the full-screen kiosk app */
#lApp { z-index: 4; animation: fade .35s var(--ease); }
.app-exit { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); z-index: 2; height: 34px; padding: 0 8px 0 14px; border-radius: 17px;
  display: flex; align-items: center; gap: 8px; background: rgba(6,9,22,.55); color: #fff; font-size: 13px; font-weight: 600; opacity: .55;
  backdrop-filter: blur(6px); transition: opacity .15s; }
.app-exit:hover { opacity: 1; }
.app-exit kbd { font: 600 11px/1 Inter, sans-serif; padding: 4px 6px; border-radius: 6px; background: rgba(255,255,255,.18); }

/* ---------------------------------------------------------------- RapidTablet sheet */
.sheet-wrap { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center;
  background: rgba(3, 5, 14, .62); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 600px; padding: 40px 44px 34px; border-radius: 36px; background: #F6F5F1; color: #0E1325;
  box-shadow: 0 40px 100px -24px rgba(0,0,0,.8); animation: up .3s var(--ease); }
.ts-icon { width: 76px; height: 76px; border-radius: 20px; }
.ts-remi { position: absolute; right: 34px; top: 26px; width: 120px; }
.sheet h2 { margin: 22px 0 10px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 750; max-width: 400px; }
.sheet p { margin: 0; font-size: 17px; line-height: 1.5; color: #4A5068; }
.ts-acts { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.ts-back { height: 56px; padding: 0 22px; border-radius: 28px; background: #E4E2DC; font-size: 17px; font-weight: 600; }
.ts-go { height: 56px; padding: 0 18px 0 24px; border-radius: 28px; background: var(--orange); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 650; }
.ts-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-back:active, .ts-go:active { transform: scale(.96); }

/* ---------------------------------------------------------------- toast + brightness */
.toast { position: absolute; left: 50%; top: 18px; z-index: 20; max-width: 620px; padding: 13px 20px; border-radius: 18px;
  background: #fff; color: #0E1325; font-size: 15.5px; font-weight: 550; line-height: 1.35;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); opacity: 0; transform: translate(-50%, -10px); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.dim { position: absolute; inset: 0; z-index: 30; background: #000; opacity: 0; pointer-events: none; transition: opacity .15s; }

body.still *, body.still *::before, body.still *::after { animation-duration: 0s !important; animation-delay: 0s !important;
  animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
