/* ONRUSHA 4.0 — precision motion, monochrome surfaces and a dimensional product showcase. */
:root {
  --accent: #f2f2f2;
  --accent-soft: rgba(255,255,255,.14);
  --accent-glow: rgba(255,255,255,.12);
  --motion: cubic-bezier(.18,.78,.22,1);
}

/* Keep every brand mark and action neutral: no green fallback icon or green accent. */
.brand-mark,
.demo-brand-icon,
.laptop-app-brand b,
.laptop-side-profile > span,
.laptop-release-icon,
.preview-restore > span,
.admin-small-icon,
.detail-icon-fallback,
.access-orb {
  background: linear-gradient(145deg,#f7f7f7,#bdbdbd) !important;
  color: #111 !important;
  box-shadow: 0 5px 22px rgba(255,255,255,.08) !important;
}
.brand-dot,.external-mark,.card-open b,.text-link b,.eyebrow,.tiny-check,.live-dot,.terminal-dot,.loader-status,
.featured-chip,.button-primary,.copy-button,.compat-arrow,.editor-section-title > span,.upload-icon,
.empty-symbol,.demo-status-chip,.demo-window-footer i { color: #ddd !important; }
.live-dot,.terminal-dot,.demo-profile i,.demo-status-card .status-pulse,.demo-window-footer i,
.laptop-app-status i,.metric-online i { background: #eee !important; box-shadow: 0 0 12px rgba(255,255,255,.35) !important; }
.button-primary { background: linear-gradient(180deg,#f7f7f7,#d6d6d6) !important; color:#101010 !important; }
.button-primary:hover { background:#fff !important; box-shadow:0 12px 34px rgba(255,255,255,.13) !important; }
.copy-button,.featured-chip,.upload-icon,.editor-section-title > span,.empty-symbol { background:#242424 !important; border-color:#414141 !important; }

/* The laptop is angled towards the viewer, with a visible keyboard deck. */
.hero-laptop-visual { min-height:590px; perspective:1500px; }
.laptop-scene { width:min(710px,112%); perspective:1300px; transform:translateY(10px) rotateX(5deg); }
.laptop-device {
  transform:rotateY(-17deg) rotateX(8deg) rotateZ(-2deg);
  transform-style:preserve-3d;
  animation:laptop-hero-drift 9s var(--motion) infinite;
  filter:drop-shadow(0 42px 34px rgba(0,0,0,.62));
}
.laptop-lid {
  width:94%; padding:11px 11px 14px; border-radius:17px 17px 7px 7px;
  border:1px solid #777; border-bottom-color:#3e3e3e;
  background:linear-gradient(135deg,#c8c8c8 0%,#555 4%,#202020 16%,#101010 48%,#262626 82%,#8c8c8c 100%);
  box-shadow:inset 0 1px 0 #ffffff9c,inset 0 -3px 0 #000,0 0 0 1px #000;
  transform:rotateX(-2deg); transform-origin:bottom center;
}
.laptop-camera { width:5px;height:5px;background:#030303;box-shadow:0 0 0 1px #777,0 0 7px #fff2; }
.laptop-display { border-radius:8px;box-shadow:0 0 0 1px #666,0 0 34px rgba(255,255,255,.075),inset 0 0 0 1px #000; }
.laptop-base {
  position:relative; width:100%; height:122px; margin-top:-1px;
  border:1px solid #8b8b8b; border-top:1px solid #d0d0d0; border-radius:3px 3px 22px 22px;
  background:linear-gradient(180deg,#bcbcbc 0%,#858585 4%,#555 10%,#292929 35%,#5a5a5a 82%,#b0b0b0 100%);
  box-shadow:inset 0 2px 3px rgba(255,255,255,.5),inset 0 -3px 5px #0009,0 16px 25px #0008;
  clip-path:polygon(2.5% 0,97.5% 0,100% 70%,96% 100%,4% 100%,0 70%);
  transform:perspective(900px) rotateX(48deg) translateY(-2px);
  transform-origin:top center; overflow:hidden;
}
.laptop-keyboard {
  width:73%; margin:8px auto 0; display:grid;gap:3px;
  transform:translateZ(1px); filter:drop-shadow(0 2px 2px #0007);
}
.keyboard-row { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;min-height:10px; }
.keyboard-row i {
  min-width:0;height:11px;display:grid;place-items:center;overflow:hidden;
  border:1px solid #090909;border-bottom-color:#000;border-radius:2px;
  background:linear-gradient(180deg,#3b3b3b 0%,#1a1a1a 60%,#090909 100%);
  box-shadow:inset 0 1px 0 #ffffff25,0 1px 0 #aaa3;
  color:#9c9c9c;font:5px var(--mono);font-style:normal;line-height:1;
}
.keyboard-row .key-wide { grid-column:span 2; }
.keyboard-row .key-extra { grid-column:span 2;font-size:4px; }
.keyboard-bottom .space-key { grid-column:span 4; }
.keyboard-function i { color:#707070;font-size:4px;height:8px; }
.laptop-base-notch { position:absolute;top:0;left:45%;width:10%;height:4px;border-radius:0 0 6px 6px;background:linear-gradient(180deg,#222,#777); }
.laptop-trackpad { position:absolute;left:39%;top:76px;width:22%;height:20px;border:1px solid #333;border-bottom-color:#111;border-radius:0 0 7px 7px;background:linear-gradient(145deg,#666,#353535 50%,#555);box-shadow:inset 0 1px 1px #ffffff35,0 1px 2px #0008; }
.laptop-float-label { border-color:#454545;background:rgba(13,13,13,.88);box-shadow:0 19px 50px #0009; }
.laptop-float-label.label-top { top:2%;right:-1%; }
.laptop-float-label.label-bottom { bottom:0;left:-1%; }
.laptop-aura { background:radial-gradient(ellipse,rgba(255,255,255,.13),rgba(255,255,255,.045) 38%,transparent 72%); }
@keyframes laptop-hero-drift {
  0%,100% { transform:rotateY(-17deg) rotateX(8deg) rotateZ(-2deg) translateY(0); }
  50% { transform:rotateY(-14deg) rotateX(9deg) rotateZ(-1.2deg) translateY(-9px); }
}

/* Art-forward release cards: the uploaded cover image is the first thing users see. */
.script-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }
.script-card { padding:0 !important;min-height:0 !important;display:flex;overflow:hidden;border-radius:15px;background:#101010; }
.script-card-art { position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;min-height:190px;overflow:hidden;background:linear-gradient(140deg,#292929,#101010 70%); }
.script-cover { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s var(--motion),filter .6s var(--motion); }
.script-cover-placeholder { display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#ddd;background:radial-gradient(circle at 50% 42%,#444,transparent 35%),linear-gradient(145deg,#292929,#101010); }
.script-cover-placeholder span { font-size:76px;font-weight:750;letter-spacing:-.1em;text-shadow:0 15px 35px #0008; }
.script-cover-placeholder small { color:#888;font:8px var(--mono);letter-spacing:.2em; }
.script-art-shade { position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.02) 20%,rgba(0,0,0,.12) 48%,rgba(0,0,0,.82) 100%);pointer-events:none; }
.script-art-game { position:absolute;z-index:2;left:17px;bottom:15px;color:#e8e8e8;font:8px var(--mono);letter-spacing:.13em;text-transform:uppercase;text-shadow:0 2px 12px #000; }
.script-card-art .featured-chip { position:absolute;right:14px;top:14px;z-index:3;color:#f1f1f1 !important;background:rgba(10,10,10,.65) !important;border-color:#ffffff4a !important;backdrop-filter:blur(12px); }
.script-art-open { position:absolute;right:14px;bottom:13px;z-index:3;width:27px;height:27px;display:grid;place-items:center;border:1px solid #ffffff50;border-radius:50%;background:#111a;color:#fff;font-size:13px;opacity:0;transform:translate(-5px,5px);transition:opacity .3s,transform .4s var(--motion); }
.script-card:hover .script-art-open { opacity:1;transform:translate(0,0); }
.script-card:hover .script-cover { transform:scale(1.045);filter:contrast(1.04) saturate(.88); }
.script-card-body { display:flex;flex-direction:column;flex:1;padding:18px 19px 17px; }
.script-card-heading { display:flex;flex-direction:column;gap:5px; }
.script-card-heading .eyebrow { color:#777 !important;font-size:8px; }
.script-card-heading h3 { margin:0;font-size:17px; }
.script-description { min-height:38px;margin:12px 0 17px;color:#969696; }
.script-card-bottom { padding-top:12px;border-color:#2a2a2a; }
.card-tags span { font-size:7px; }
.card-open { color:#ddd; }

/* Large authoring preview: developers see the actual artwork before publishing. */
.icon-upload-preview { position:relative;width:100%;max-width:620px;aspect-ratio:16/9;margin:14px 0 4px;overflow:hidden;border:1px solid #3a3a3a;border-radius:13px;background:linear-gradient(145deg,#252525,#101010);box-shadow:inset 0 1px #ffffff0a,0 16px 38px #0005; }
.icon-upload-preview img { width:100%;height:100%;display:block;object-fit:cover; }
.icon-upload-preview img[hidden] { display:none; }
.icon-preview-placeholder { position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:radial-gradient(circle at 50% 38%,#383838,transparent 36%); }
.icon-preview-placeholder span { width:48px;height:48px;display:grid;place-items:center;border:1px solid #555;border-radius:14px;color:#ddd;font-size:25px;background:#202020; }
.icon-preview-placeholder b { font-size:12px;color:#ddd; }
.icon-preview-placeholder small { font-size:9px;color:#777; }
.icon-preview-placeholder[hidden] { display:none; }
.icon-preview-label { position:absolute;left:12px;bottom:11px;padding:6px 8px;border:1px solid #ffffff38;border-radius:5px;background:#090909b8;color:#ccc;font:7px var(--mono);letter-spacing:.12em;backdrop-filter:blur(10px); }

/* Preview stage reads like a product lab, not a generic empty container. */
.menu-demo-section { width:min(1240px,calc(100% - 64px)); }
.interface-frame { padding:clamp(16px,2.4vw,30px);border-radius:23px;background:radial-gradient(ellipse at 50% 0%,#ffffff12,transparent 55%),linear-gradient(145deg,#151515,#080808 76%);box-shadow:0 45px 130px #000b,inset 0 1px #ffffff13; }
.interface-frame:after { content:"";position:absolute;inset:1px;border:1px solid #ffffff08;border-radius:inherit;pointer-events:none; }
.interface-frame-glow { background:rgba(255,255,255,.09);filter:blur(100px); }
.game-menu { min-height:720px;max-width:1160px;grid-template-columns:236px minmax(0,1fr);border-radius:18px;transform:translateY(0) scale(1);transform-origin:50% 10%; }
.demo-sidebar { padding:23px 16px 17px; }
.demo-brand { padding-bottom:25px; }
.demo-tabs { gap:7px; }
.demo-tab { position:relative;overflow:hidden;min-height:44px;border-radius:9px;padding:0 12px;transition:color .28s,border-color .28s,background .35s,transform .38s var(--motion),box-shadow .35s; }
.demo-tab:before { content:"";position:absolute;inset:0;background:radial-gradient(160px circle at var(--tab-x,50%) var(--tab-y,50%),#ffffff18,transparent 72%);opacity:0;transition:opacity .3s;pointer-events:none; }
.demo-tab:after { content:"";position:absolute;left:0;top:9px;bottom:9px;width:2px;border-radius:2px;background:#eee;transform:scaleY(0);transform-origin:center;transition:transform .36s var(--motion);display:block; }
.demo-tab:hover:before,.demo-tab.active:before { opacity:1; }
.demo-tab.active:after { transform:scaleY(1); }
.demo-tab.active { background:linear-gradient(100deg,#ffffff15,#ffffff05);border-color:#ffffff20;box-shadow:inset 0 1px #ffffff08,0 7px 20px #0005; }
.demo-tab.active span { background:#eee;color:#111;border-color:#eee; }
.demo-tab:active { transform:scale(.975); }
.demo-content { min-height:720px; }
.demo-topbar { height:94px;padding:0 27px; }
.demo-topbar h2 { transition:opacity .22s,transform .32s var(--motion),filter .22s; }
.demo-topbar p { transition:opacity .22s,transform .32s var(--motion); }
.demo-topbar h2.is-changing,.demo-topbar p.is-changing { opacity:0;transform:translateY(5px);filter:blur(3px); }
.demo-panel-area { height:610px;max-height:610px;padding:25px 27px 28px;gap:22px;scrollbar-color:#555 transparent;scroll-behavior:smooth;transition:opacity .2s,transform .3s var(--motion),filter .25s; }
.demo-panel-area.is-switching { opacity:0;transform:translateY(10px) scale(.994);filter:blur(3px);pointer-events:none; }
.demo-panel-area.is-entering .demo-section-head { animation:preview-section-in .5s var(--motion) both; }
.demo-panel-area.is-entering .demo-control-card { animation:preview-card-in .58s var(--motion) both;animation-delay:calc(var(--card-order,0) * 35ms); }
.demo-column { transition:opacity .3s,transform .38s var(--motion); }
.demo-section-head { height:34px;margin-bottom:13px; }
.demo-section-head b { font-size:12px; }
.demo-control-card { padding:16px 16px 15px;margin-bottom:12px;border-radius:12px;box-shadow:0 8px 24px #0002,inset 0 1px #ffffff08;transition:transform .34s var(--motion),border-color .28s,background .3s,box-shadow .34s; }
.demo-control-card:hover { transform:translateY(-3px) scale(1.005);border-color:#ffffff34;box-shadow:0 18px 35px #0007,inset 0 1px #ffffff0d; }
.demo-control-card:active { transform:translateY(-1px) scale(.997); }
.demo-control-card b { font-size:11px; }
.demo-control-card p { font-size:9px; }
.demo-switch { transition:background .3s,border-color .3s,box-shadow .35s,transform .25s var(--motion); }
.demo-switch:active { transform:scale(.9); }
.demo-switch i { transition:transform .34s var(--motion),background .25s,box-shadow .25s; }
.demo-switch.is-on { box-shadow:0 0 0 4px #ffffff0b,0 0 18px #ffffff17; }
.demo-reset,.demo-hotkey,.demo-minimize,.demo-close,.demo-sidebar-collapse { transition:transform .3s var(--motion),background .25s,border-color .25s,box-shadow .3s,color .25s; }
.demo-reset:active,.demo-hotkey:active,.demo-minimize:active,.demo-close:active,.demo-sidebar-collapse:active,.custom-select-trigger:active { transform:scale(.95); }
.demo-reset:hover,.demo-hotkey:hover { box-shadow:0 8px 20px #0008,inset 0 1px #ffffff15; }
.demo-minimize:hover,.demo-close:hover { transform:translateY(-1px) scale(1.05); }
.demo-close:hover { background:#343434;border-color:#777; }
.demo-window-footer { min-height:44px; }
.demo-toast { opacity:0;transform:translateY(8px) scale(.98);transition:opacity .24s,transform .34s var(--motion);pointer-events:none; }
.demo-toast.show { opacity:1;transform:translateY(0) scale(1); }
.demo-control-card.is-filtering-out { opacity:0;transform:translateY(-5px) scale(.985);filter:blur(2px);pointer-events:none; }
.demo-control-card.is-filtering-in { animation:preview-card-in .32s var(--motion) both; }
.demo-control-card[hidden],.demo-column[hidden],.demo-section-head[hidden] { display:none !important; }
.game-menu:before { content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;background:radial-gradient(420px circle at var(--pointer-x,50%) var(--pointer-y,25%),rgba(255,255,255,.07),transparent 70%);opacity:1;transition:opacity .3s; }
.game-menu.is-tab-switching { box-shadow:0 36px 110px #000b,0 0 0 1px #ffffff14,0 0 70px #ffffff08; }
.game-menu.is-closing { opacity:0;transform:translateY(17px) scale(.975);filter:blur(5px);pointer-events:none; }
.game-menu.hidden-menu { opacity:0;visibility:hidden;pointer-events:none;transform:translateY(22px) scale(.96);filter:blur(7px); }
.game-menu.is-opening { animation:preview-window-open .52s var(--motion) both; }
.preview-restore { opacity:0; }
.preview-restore.is-opening { animation:preview-restore-in .42s var(--motion) both; }
.preview-restore:active { transform:translate(-50%,-50%) scale(.96); }
.demo-tab.is-pressed,.demo-switch.is-pressed,.demo-reset.is-pressed,.demo-hotkey.is-pressed { filter:brightness(1.35); }
.demo-hotkey.is-listening { width:110px;border-color:#ddd;box-shadow:0 0 0 4px #ffffff12,0 0 22px #ffffff20;animation:hotkey-pulse 1s ease-in-out infinite; }
.demo-ripple { position:absolute;width:8px;height:8px;border-radius:50%;background:#fff7;transform:translate(-50%,-50%) scale(0);pointer-events:none;animation:control-ripple .55s ease-out forwards; }

@keyframes preview-section-in { from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)} }
@keyframes preview-card-in { from{opacity:0;transform:translateY(13px) scale(.985);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)} }
@keyframes preview-window-open { from{opacity:0;transform:translateY(18px) scale(.965);filter:blur(8px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)} }
@keyframes preview-restore-in { from{opacity:0;transform:translate(-50%,-45%) scale(.92);filter:blur(3px)}to{opacity:1;transform:translate(-50%,-50%) scale(1);filter:blur(0)} }
@keyframes control-ripple { to{opacity:0;transform:translate(-50%,-50%) scale(18)} }
@keyframes hotkey-pulse { 50%{box-shadow:0 0 0 6px #ffffff0b,0 0 28px #ffffff25} }

/* Compact screens retain the whole menu without shrinking controls to illegibility. */
@media (max-width:1100px) {
  .hero-laptop-visual { min-height:500px; }
  .laptop-scene { width:min(630px,112%); }
  .game-menu { grid-template-columns:205px minmax(0,1fr); }
}
@media (max-width:760px) {
  .hero-laptop-visual { min-height:380px;margin-top:34px; }
  .laptop-scene { width:100%; }
  .laptop-device { transform:rotateY(-10deg) rotateX(8deg) rotateZ(-1deg); }
  .laptop-base { height:94px; }
  .keyboard-row { gap:2px; }
  .keyboard-row i { height:8px;font-size:4px; }
  .laptop-keyboard { width:76%;gap:2px;margin-top:6px; }
  .laptop-trackpad { top:60px;height:15px; }
  .laptop-float-label { display:none; }
  .script-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  .script-card-art { min-height:145px; }
  .script-card-body { padding:14px; }
  .menu-demo-section { width:calc(100% - 24px); }
  .interface-frame { padding:8px;border-radius:14px; }
  .game-menu { min-height:690px;grid-template-columns:150px minmax(0,1fr); }
  .demo-sidebar { padding:16px 9px; }
  .demo-content { min-height:690px; }
  .demo-topbar { height:auto;min-height:88px;padding:14px;align-items:flex-start;gap:8px; }
  .demo-tools { flex-wrap:wrap;justify-content:flex-end; }
  .demo-search { width:130px; }
  .demo-panel-area { height:590px;max-height:590px;grid-template-columns:1fr;gap:14px;padding:15px; }
  .demo-column { display:block; }
  .demo-control-card { padding:13px;margin-bottom:9px; }
  .demo-control-card b { font-size:10px; }
  .demo-control-card p { font-size:8px; }
  .demo-window-footer { padding:10px 13px;font-size:6px; }
}
@media (max-width:520px) {
  .hero-laptop-visual { min-height:300px; }
  .laptop-base { height:78px; }
  .keyboard-row i { height:6px;font-size:3px; }
  .laptop-trackpad { top:48px;height:12px; }
  .script-grid { grid-template-columns:1fr; }
  .script-card-art { min-height:190px; }
  .icon-upload-preview { aspect-ratio:4/3; }
  .game-menu { grid-template-columns:76px minmax(0,1fr);min-height:660px; }
  .demo-sidebar { padding:12px 6px; }
  .demo-brand { justify-content:center;padding:0 0 16px; }
  .demo-brand > span:nth-child(2),.demo-workspace,.demo-tab b,.demo-profile > span:not(.profile-letter),.demo-profile i,.demo-sidebar-build { display:none; }
  .demo-tab { justify-content:center;min-height:40px;padding:0; }
  .demo-tab span { width:25px;height:25px; }
  .demo-sidebar-collapse { display:none; }
  .demo-topbar { flex-direction:column; }
  .demo-tools { width:100%;justify-content:flex-start; }
  .demo-panel-area { height:560px;max-height:560px;padding:11px; }
  .demo-control-row>.custom-select-wrap { width:52%;min-width:100px; }
}
@media (prefers-reduced-motion:reduce) {
  .laptop-device,.laptop-aura,.laptop-float-label,.game-menu.is-opening,.preview-restore.is-opening,.demo-panel-area.is-entering .demo-control-card,
  .demo-panel-area.is-entering .demo-section-head { animation:none !important; }
  .demo-panel-area,.demo-control-card,.demo-tab,.demo-switch,.demo-topbar h2,.demo-topbar p { transition-duration:.01ms !important; }
}

/* Extra micro-interactions: surface tracking, click feedback and larger release artwork on detail pages. */
.demo-control-card:before { content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(260px circle at var(--card-x,50%) var(--card-y,50%),#ffffff12,transparent 72%);opacity:0;transition:opacity .28s; }
.demo-control-card:hover:before { opacity:1; }
.demo-control-card > * { position:relative;z-index:1; }
.demo-ripple { z-index:4; }
.demo-tab,.demo-switch,.demo-reset,.demo-hotkey,.demo-minimize,.demo-close,.demo-sidebar-collapse,.custom-select-trigger { position:relative;overflow:hidden; }
.preview-instructions { transition:transform .5s var(--motion),opacity .5s; }
.preview-instructions:hover { transform:translateY(-2px); }
.detail-artwork { position:relative;width:100%;aspect-ratio:16/7;max-height:360px;margin:-22px -22px 24px;width:calc(100% + 44px);overflow:hidden;border-radius:13px 13px 0 0;background:#171717; }
.detail-artwork:after { content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 48%,rgba(0,0,0,.42));pointer-events:none; }
.detail-artwork img { width:100%;height:100%;display:block;object-fit:cover; }
@media(max-width:760px) { .detail-artwork { margin:-22px -22px 20px;width:calc(100% + 44px);aspect-ratio:16/9; } }
:root { --green:#ededed;--green-2:#cfcfcf;--purple:#bdbdbd;--accent:#f2f2f2; }
.hero-title span,.page-hero h1 span,.section-heading h2 span,.access-copy h2 span,.key-card h1 span,.task-heading h1 span {
  background:none !important;color:#a7a7a7 !important;-webkit-text-fill-color:#a7a7a7 !important;
}
.eyebrow,.brand-dot,.external-mark,.text-link b,.card-open b,.tiny-check,.featured-chip,.loader-status,.live-dot,.terminal-dot { color:#d0d0d0 !important; }
:focus-visible { outline-color:#eee !important; }
input[type="checkbox"] { accent-color:#eee !important; }
::-webkit-scrollbar-thumb { background-color:#454545; }
.demo-tab.active:after { display:block;transform:scaleY(1); }

/* V5.2 key success secondary action */
.key-new-link{display:block;width:max-content;max-width:100%;margin:13px auto 0;color:var(--muted,#a5a9b1);font-size:11px;font-weight:650;text-decoration:none;transition:color .2s,transform .2s}
.key-new-link:hover{color:#d9b779;transform:translateY(-1px)}
.key-new-link span{margin-left:4px}
