@import "tailwindcss";
@custom-variant dark (&:is(.dark *));
@theme inline {
  --color-background: var(--background); --color-foreground: var(--foreground);
  --color-card: var(--card); --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary); --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent); --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring);
  --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 5px);
}
:root {
  --radius: .85rem; --background: #f7f7fc; --foreground:#151329; --card:#fff; --card-foreground:#151329;
  --popover:#fff;--popover-foreground:#151329;--primary:#6e36ec;--primary-foreground:#fff;
  --secondary:#f1edfd;--secondary-foreground:#3e2d76;--muted:#f3f3f9;--muted-foreground:#77748f;
  --accent:#ebe4ff;--accent-foreground:#4e2fa2;--destructive:#de4367;--border:#e6e5ef;
  --input:#e0dfea;--ring:#8c66fa;
  --panel:rgba(255,255,255,.83);--panel-strong:#fff;--glow:rgba(135,64,238,.14);--grid:rgba(107,82,172,.035);
}
.dark {
  --background:#090b19;--foreground:#f6f6ff;--card:#111428;--card-foreground:#f6f6ff;
  --popover:#181b32;--popover-foreground:#f6f6ff;--primary:#8a4aff;--primary-foreground:#fff;
  --secondary:#242038;--secondary-foreground:#e7ddff;--muted:#1b1b30;--muted-foreground:#a3a2be;
  --accent:#30224e;--accent-foreground:#f3eaff;--destructive:#f66079;--border:#272640;
  --input:#302d4b;--ring:#a074fc;
  --panel:rgba(19,19,40,.9);--panel-strong:#14152b;--glow:rgba(139,59,255,.18);--grid:rgba(163,128,255,.032);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{background:var(--background);color:var(--foreground);font-family:Arial,Helvetica,sans-serif} a{color:inherit;text-decoration:none} button{cursor:pointer} button:disabled{cursor:not-allowed} ::selection{background:rgba(152,72,255,.35)}
.larpdevice-gradient{background:linear-gradient(110deg,#f765aa 5%,#b878ff 53%,#6f9dff 100%);color:transparent;background-clip:text}
.gradient-button{background:linear-gradient(110deg,#b038ec,#7237ed 58%,#6051fa);box-shadow:0 7px 28px rgba(128,48,237,.35);color:white}
.gradient-button:hover{filter:brightness(1.12);box-shadow:0 8px 35px rgba(128,48,237,.48)}
.glass-panel{background:var(--panel);border:1px solid var(--border);border-radius:18px;box-shadow:0 7px 30px rgba(7,9,30,.025)}
.dark .glass-panel{box-shadow:0 8px 34px rgba(0,0,0,.16)}
.hero-glow{background:radial-gradient(ellipse at 67% 55%,rgba(139,57,245,.25),transparent 42%),radial-gradient(ellipse at 85% 30%,rgba(40,80,224,.22),transparent 48%),linear-gradient(135deg,#17102d,#0b0e21 55%,#090d22)}
.dark .hero-glow{border:1px solid #483067}
.grid-bg{background-image:linear-gradient(to right,var(--grid) 1px,transparent 1px),linear-gradient(to bottom,var(--grid) 1px,transparent 1px);background-size:46px 46px}
.hero-edge{box-shadow:inset 0 0 55px rgba(135,67,252,.13),0 22px 55px rgba(25,10,75,.12)}
.card-hover{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}.card-hover:hover{transform:translateY(-4px);border-color:#9365ed!important;box-shadow:0 12px 35px var(--glow)}
.pulse-border{box-shadow:0 0 0 1px rgba(157,98,255,.4),0 0 24px rgba(132,61,238,.23)}
.dot:before{content:'';width:7px;height:7px;border-radius:50%;display:inline-block;background:#39cf9c;margin-right:8px}
.sidebar-scroll::-webkit-scrollbar,.scrollbar-thin::-webkit-scrollbar{width:5px;height:5px}.sidebar-scroll::-webkit-scrollbar-thumb,.scrollbar-thin::-webkit-scrollbar-thumb{background:#6b5e8a66;border-radius:12px}
.sheen{position:relative;overflow:hidden}.sheen:after{content:'';position:absolute;inset:0;background:linear-gradient(120deg,transparent 37%,rgba(255,255,255,.14) 50%,transparent 63%);transform:translateX(-120%);transition:transform .8s ease}.sheen:hover:after{transform:translateX(120%)}
.theme-surface{background:var(--card);border:1px solid var(--border)}
.app-phone{width:min(100%,286px);aspect-ratio:9/18.6;border:8px solid #171e33;border-radius:40px;box-shadow:0 18px 48px rgba(0,0,0,.35),0 0 0 1px #8d8eb3,inset 0 0 0 1px rgba(255,255,255,.3);overflow:hidden;background:#0d1635;position:relative}
.app-phone:before{content:'';position:absolute;z-index:10;left:35%;top:4px;width:30%;height:18px;border-radius:0 0 14px 14px;background:#111527}
@media(max-width:768px){.app-phone{width:225px;border-width:6px;border-radius:30px}.app-phone:before{height:12px}}

/* Only materialize offscreen catalog cards when they enter the viewport. */
.card-hover {content-visibility:auto;contain-intrinsic-size:auto 180px}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}

/* Owner-only live page text selection. UI is rendered outside the editable page tree. */
[data-overlay-selected="true"]{outline:2px dashed #c084fc!important;outline-offset:4px!important;cursor:text!important;background-color:rgba(139,92,246,.14)!important}
