/* FlowShift Studio – interactive parts: intro, games menu, assets menu. Navy + teal. */
:root { --fs-navy: #141A44; --fs-navy-2: #1E2556; --fs-teal: #2BBBAA; --fs-teal-d: #1FA092; --fs-ink: #E8ECFF; }

/* ------------------------------------------------------------ intro */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; text-align: center; color: var(--fs-ink);
  background: radial-gradient(ellipse at 50% 40%, #2a3380 0%, var(--fs-navy) 70%); transition: opacity .7s ease, visibility .7s; overflow: hidden; }
.intro.out { opacity: 0; visibility: hidden; }
.intro-stars { position: absolute; inset: 0; pointer-events: none; }
.intro-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .9; } }
.intro-card { position: relative; padding: 24px; max-width: 520px; }
.intro-emblem { width: 120px; height: 120px; margin: 0 auto 18px; animation: introPop 1s cubic-bezier(.3, 1.6, .5, 1) both, bob 4s 1s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(43, 187, 170, .55)); }
@keyframes introPop { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
.intro-title { font: 700 clamp(2.2rem, 7vw, 3.6rem)/1 var(--head); margin: 0; animation: introUp .8s .5s both; }
.intro-title .a { color: var(--fs-teal); } .intro-title .b { color: #F3C67A; }
.intro-sub { margin: .8rem 0 1.8rem; color: #B8C0F0; animation: introUp .8s .8s both; }
.intro-btn { animation: introUp .8s 1.1s both; }
@keyframes introUp { from { opacity: 0; transform: translateY(18px); } }
.intro-skip { position: absolute; right: 18px; top: 16px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 99px; padding: .5em 1em; font: 600 .85rem var(--head); cursor: pointer; }
.intro-skip:hover { background: rgba(255, 255, 255, .2); }

/* ------------------------------------------------------------ games menu */
.gm { background: var(--fs-navy-2); color: var(--fs-ink); border-radius: 30px; padding: clamp(18px, 3vw, 34px); box-shadow: var(--shadow-2); }
.gm-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.gm-tab { display: flex; align-items: center; gap: .6em; background: rgba(255, 255, 255, .07); color: #fff; border: 2px solid transparent; border-radius: 99px; padding: .5em 1.1em .5em .5em; font: 600 1rem var(--head); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.gm-tab img { width: 38px; height: 38px; border-radius: 11px; }
.gm-tab:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.gm-tab[aria-selected="true"] { border-color: var(--fs-teal); background: rgba(43, 187, 170, .18); }
.gm-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; animation: gmIn .45s ease both; }
@keyframes gmIn { from { opacity: 0; transform: translateX(24px); } }
.gm-panel h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gm-panel p { color: #C3CAF5; }
.gm-status { display: inline-block; font: 600 .8rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--fs-navy); background: var(--fs-teal); padding: .5em .9em; border-radius: 99px; margin-bottom: 1rem; }
.gm-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.gm-chips span { background: rgba(255, 255, 255, .1); border-radius: 99px; padding: .35em .85em; font: 600 .85rem var(--head); }
.gm-shots { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #0c1030; }
.gm-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.gm-shots img.on { opacity: 1; }
.gm-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 7px; justify-content: center; }
.gm-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.gm-dots button.on { background: var(--fs-teal); width: 24px; border-radius: 6px; }
.gm .btn-teal { box-shadow: 0 6px 0 #15786D; }

/* ------------------------------------------------------------ assets menu */
.am-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.am-chip { background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 99px; padding: .55em 1.2em; font: 600 1rem var(--head); cursor: pointer; transition: all .15s; }
.am-chip:hover { border-color: var(--fs-teal); }
.am-chip[aria-pressed="true"] { background: var(--fs-teal); border-color: var(--fs-teal); color: #0B1230; }
.am-chip small { opacity: .6; margin-left: .3em; }
.am-search { display: block; margin: 0 auto 26px; width: min(420px, 100%); padding: .8em 1.1em; border-radius: 99px; border: 2px solid var(--line); font: inherit; background: var(--card); color: var(--ink); }
.am-search:focus { outline: none; border-color: var(--fs-teal); }
.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.am-item { background: var(--card); border: 0; border-radius: var(--r); padding: 0; cursor: pointer; text-align: left; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; font: inherit; color: inherit; animation: gmIn .4s ease both; }
.am-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.am-thumb { aspect-ratio: 4 / 3; background: repeating-conic-gradient(#1a2557 0 25%, #212e68 0 50%) 0 0 / 20px 20px; display: grid; place-items: center; }
.am-thumb img { width: 100%; height: 100%; object-fit: contain; }
.am-item.cover .am-thumb img { object-fit: cover; }
.am-meta { padding: 12px 16px 14px; }
.am-meta b { display: block; font: 600 1.05rem var(--head); }
.am-meta span { font-size: .85rem; color: var(--muted); }
.am-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.lb { position: fixed; inset: 0; z-index: 900; background: rgba(10, 13, 40, .92); display: grid; grid-template-rows: 1fr auto; padding: 20px; animation: gmIn .25s ease both; }
.lb[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { width: min(92vw, 1000px); height: calc(100vh - 130px); object-fit: contain; border-radius: 14px; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; color: #fff; padding-top: 14px; }
.lb-bar b { font: 600 1.1rem var(--head); }
.lb-btn { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 99px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-dl { background: var(--fs-teal); color: #fff !important; border-radius: 99px; padding: .7em 1.3em; font: 600 1rem var(--head); text-decoration: none !important; }
.lb-close { position: absolute; right: 18px; top: 14px; }

@media (max-width: 820px) { .gm-panel { grid-template-columns: 1fr; } .gm-tab { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .intro-stars i { animation: none; } }
