#readyGamesLaunch{margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:#f8f8ff}
body[data-home-tab="games"] .site-cover,body[data-home-tab="games"] h1,body[data-home-tab="games"] .lead,body[data-home-tab="games"] .app>.panel[style],body[data-home-tab="games"] .home-tabs,body[data-home-tab="games"] .social-links,body[data-home-tab="games"] .app>.help,body[data-home-tab="games"] footer{display:none!important}
body[data-home-tab="games"] #miniGamePanel{display:block!important;max-width:980px;margin:0 auto 18px;padding:12px 0 24px}
body[data-home-tab="games"] .workspace{display:none!important}
body:not([data-home-tab="games"]) #miniGamePanel{display:none!important}
body[data-game-active="true"] #miniGamePanel{display:block!important;max-width:980px;margin:10px auto 20px;padding:12px 0 24px}
body[data-screen-mode][data-game-active="true"] #miniGamePanel{display:block!important}
#miniGamePanel>.field-title,#miniGamePanel>.games-intro,#miniGamePanel>#gamesBack,#miniGamePanel>.game-columns{display:none!important}
#readyGamesLaunch .am-library{position:relative;overflow:hidden;border:1px solid #3a4771;border-radius:22px;padding:clamp(13px,2.5vw,22px);background:radial-gradient(ellipse at 0 0,#5541a733,transparent 45%),linear-gradient(145deg,#141d3a,#0c1329 72%,#17112f);box-shadow:0 18px 45px #02061788;color:#f7f8ff}
.am-library-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.am-kicker{font-size:10px;letter-spacing:1.8px;font-weight:900;color:#9eabff}
.am-library-head h3{margin:5px 0 5px;font-size:clamp(21px,4vw,28px);line-height:1.1}
.am-library-head p{margin:0;color:#b9c5e1;font-size:13px;line-height:1.45}
.am-total{flex:none;border:1px solid #5e65a1;border-radius:13px;padding:8px 11px;background:#242b52;color:#e9eaff;font-weight:900;font-size:13px}
.am-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 13px}
.am-mode-switch button{min-width:0;min-height:52px;border:1px solid #46527c;border-radius:14px;background:#18213e;color:#dce5ff;font-size:14px;font-weight:800;padding:8px 10px}
.am-mode-switch button span{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:4px;border-radius:8px;background:#313d67;color:#fff;font-size:11px}
.am-mode-switch button.active{border-color:#b2a5ff;background:linear-gradient(115deg,#654bd6,#914cbd 55%,#bd4c91);color:#fff;box-shadow:0 6px 18px #7548d955}
.am-search{width:100%;height:48px;margin:0 0 12px;border:1px solid #46547e;border-radius:13px;background:#090f22;color:#fff;padding:0 14px;font-size:15px}
.am-categories{display:flex;gap:7px;overflow-x:auto;padding:1px 0 12px;scrollbar-width:thin;overscroll-behavior-x:contain}
.am-chip{flex:none;min-height:38px;border:1px solid #3d4a70;border-radius:999px;background:#18213d;color:#d8e0f7;padding:0 13px;font-size:12px;font-weight:700}
.am-chip.active{background:#e8eaff;color:#20264a;border-color:#fff}
.am-games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.am-game-card{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:11px;border:1px solid #344265;border-radius:16px;background:linear-gradient(145deg,#1b2848,#121a32);box-shadow:0 6px 16px #03081755}
.am-game-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(140deg,#4c56a6,#854da8);font-size:23px}
.am-game-copy{min-width:0}
.am-game-copy strong{display:block;color:#fff;font-size:13px;line-height:1.25}
.am-game-copy p{margin:4px 0 0;color:#b9c5de;font-size:11px;line-height:1.35}
.am-game-copy span{display:block;margin-top:4px;color:#93a3c9;font-size:10px}
.am-play-button{grid-column:1/-1;width:100%;min-height:44px;border:1px solid #6b66b7;border-radius:11px;background:linear-gradient(105deg,#6253d9,#8751c3);color:#fff;font-size:13px;font-weight:900}
.am-library-note{margin:13px 0 0;color:#aebbd7;text-align:center;font-size:12px;line-height:1.45}
.am-empty{grid-column:1/-1;padding:25px 10px;text-align:center;color:#b9c5de}
.am-play-stage{margin-top:12px;border:1px solid #5865a0;border-radius:16px;overflow:hidden;background:#080f21}
.am-stage-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;background:#151e3a}
.am-stage-head strong,.am-stage-head span{display:block}
.am-stage-head strong{font-size:14px}
.am-stage-head span{margin-top:3px;color:#aebbd7;font-size:11px}
.am-stage-head button{flex:none;min-height:42px;padding:0 12px;border:1px solid #58658f;border-radius:10px;background:#263251;color:#fff;font-size:12px;font-weight:800}
#amGamesFrame{display:block;width:100%;height:min(72dvh,700px);min-height:340px;max-height:calc(100dvh - 150px);border:0;background:#090f20}
.am-native-stage{padding:10px}
#readyGamesLaunch .am-native-stage #otherGameArea,#readyGamesLaunch .am-native-stage #runnerGameWrap,#readyGamesLaunch .am-native-stage #birdGameWrap{display:block!important;margin:0}
#readyGamesLaunch .am-native-stage #otherGameArea[hidden],#readyGamesLaunch .am-native-stage #runnerGameWrap[hidden],#readyGamesLaunch .am-native-stage #birdGameWrap[hidden]{display:none!important}
#readyGamesLaunch .am-native-stage .game-canvas{width:100%;height:auto;aspect-ratio:600/232;touch-action:manipulation}
.am-invite-layer{position:absolute;z-index:30;inset:0;display:grid;place-items:center;padding:16px;background:#050918d9;backdrop-filter:blur(8px)}
.am-invite-layer[hidden]{display:none!important}
.am-invite-card{width:min(100%,360px);padding:22px;border:1px solid #8174d8;border-radius:20px;background:linear-gradient(145deg,#202b50,#11182e);text-align:center;box-shadow:0 20px 55px #0009}
.am-invite-icon{font-size:34px;margin-bottom:8px}
.am-invite-card strong{font-size:18px}
.am-invite-card p{color:#c4cee5;font-size:13px;line-height:1.45}
.am-invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.am-invite-actions button{min-height:46px;border:0;border-radius:11px;background:#4b9b75;color:#fff;font-weight:800}
.am-invite-actions button+button{background:#414b68}
.am-chat-games{display:block;width:100%;min-height:44px;margin:8px 0 12px;border:1px solid #7d6cd0;border-radius:12px;background:linear-gradient(105deg,#5d4bd3,#904bb8);color:#fff;font-weight:900;font-size:14px}
@media(min-width:900px){.am-games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
  #readyGamesLaunch .am-library{padding:13px;border-radius:18px}
  .am-library-head h3{font-size:21px}
  .am-mode-switch button{min-height:50px;font-size:12px;padding:7px 6px}
  .am-games-grid{grid-template-columns:1fr}
  .am-game-card{grid-template-columns:44px minmax(0,1fr) 84px;gap:9px;padding:10px}
  .am-play-button{grid-column:auto;min-height:44px}
  .am-game-copy strong{font-size:13px}
  .am-game-copy p{font-size:10px}
  #amGamesFrame{height:calc(100dvh - 190px);min-height:300px;max-height:calc(100dvh - 145px)}
  .am-stage-head{padding:9px}
  .am-stage-head button{min-height:44px;padding:0 9px}
}
@media(max-height:500px) and (orientation:landscape){#amGamesFrame{height:calc(100dvh - 125px);min-height:240px;max-height:calc(100dvh - 125px)}}

.am-close-games{flex:none;min-height:40px;border:1px solid #58658f;border-radius:10px;background:#263251;color:#fff;padding:0 10px;font-size:11px;font-weight:800}
@media(max-width:480px){.am-library-head{flex-wrap:wrap}.am-close-games{margin-left:auto}}

html body[data-game-active="true"] #miniGamePanel{display:block!important;max-width:980px;margin:10px auto 20px;padding:12px 0 24px}

.am-chip{min-height:44px}
.am-close-games,.am-stage-head button{min-height:44px}

html body[data-home-tab="games"] #miniGamePanel,html body[data-game-active="true"] #miniGamePanel{padding-left:0!important;padding-right:0!important}
html body[data-home-tab="games"] #readyGamesLaunch,html body[data-game-active="true"] #readyGamesLaunch{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
@media(max-width:360px){#readyGamesLaunch .am-library{padding:10px!important}}

.am-stage-actions{display:flex;align-items:center;gap:7px;flex:none}
.am-stage-actions button{min-height:44px;padding:0 11px;border:1px solid #58658f;border-radius:10px;background:#263251;color:#fff;font-size:12px;font-weight:800}
@media(max-width:420px){.am-stage-head{flex-wrap:wrap}.am-stage-actions{width:100%}.am-stage-actions button{flex:1;min-width:0}}
#readyGamesLaunch .am-library{padding-bottom:calc(clamp(13px,2.5vw,22px) + env(safe-area-inset-bottom,0px))}
@media(max-width:360px){#readyGamesLaunch .am-library{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}}
@media(max-width:600px){#amGamesFrame{height:calc(100dvh - 190px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 145px - env(safe-area-inset-bottom,0px))}}

/* Persistent top-left return to AlexMeet home from the games area. */
#amReturnHome{display:none;position:fixed;top:10px;left:10px;z-index:20000;min-height:44px;padding:10px 14px;border:1px solid #b9a7ff;border-radius:12px;background:linear-gradient(120deg,#5142b8,#793db2);color:#fff;text-decoration:none;font-size:13px;font-weight:900;box-shadow:0 5px 18px #05091cbb;align-items:center;justify-content:center}
body[data-home-tab="games"] #amReturnHome,body[data-game-active="true"] #amReturnHome{display:flex}
@media(max-width:520px){#amReturnHome{top:8px;left:8px;min-height:44px;padding:9px 12px;font-size:12px}}

/* Compact side navigation and denser game catalogue */
#readyGamesLaunch.am-games-layout{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:start;
  gap:10px;
  width:100%;
  max-width:1080px;
  margin:0 auto;
}
#readyGamesLaunch.am-games-layout>.am-library{grid-column:2;grid-row:1;min-width:0}
#readyGamesLaunch #amReturnHome{
  grid-column:1;grid-row:1;
  position:sticky;top:16px;
  display:none;
  width:44px;min-height:142px;
  padding:10px 7px;
  border:1px solid #887ce0;border-radius:14px;
  background:linear-gradient(160deg,#5142b8,#783eaa);
  color:#fff;text-decoration:none;
  font-size:12px;font-weight:900;line-height:1.2;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  align-items:center;justify-content:center;
  box-shadow:0 6px 18px #05091c66;
}
body[data-home-tab="games"] #readyGamesLaunch #amReturnHome,
body[data-game-active="true"] #readyGamesLaunch #amReturnHome{display:flex}
#readyGamesLaunch .am-chip{min-height:34px;padding:0 11px;font-size:11px}
#readyGamesLaunch .am-game-card{padding:9px;gap:8px;border-radius:13px}
#readyGamesLaunch .am-play-button{min-height:38px;font-size:12px}
@media(min-width:900px){#readyGamesLaunch .am-games-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}}
@media(max-width:600px){
  #readyGamesLaunch.am-games-layout{grid-template-columns:38px minmax(0,1fr);gap:7px}
  #readyGamesLaunch #amReturnHome{width:36px;min-height:128px;padding:8px 5px;font-size:10px;border-radius:11px}
  #readyGamesLaunch .am-library{padding:10px;border-radius:14px}
  #readyGamesLaunch .am-games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #readyGamesLaunch .am-game-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px}
  #readyGamesLaunch .am-game-icon{width:32px;height:32px;font-size:18px;border-radius:9px}
  #readyGamesLaunch .am-game-copy strong{font-size:11px;line-height:1.25}
  #readyGamesLaunch .am-game-copy p,#readyGamesLaunch .am-game-copy span{display:none}
  #readyGamesLaunch .am-play-button{min-height:34px;padding:0 5px;font-size:11px;border-radius:9px}
  #readyGamesLaunch .am-mode-switch{gap:6px}
  #readyGamesLaunch .am-mode-switch button{min-height:42px;font-size:11px}
  #readyGamesLaunch .am-search{height:42px;font-size:13px}
  #readyGamesLaunch .am-chip{min-height:31px;padding:0 9px;font-size:10px}
}

/* AlexMeet Arcade: polished jewel-like depth for game sections and controls */
#readyGamesLaunch .am-library{
  border:1px solid #a99aff99;
  background:radial-gradient(ellipse at 12% 0%,#8266ff35,transparent 42%),radial-gradient(ellipse at 100% 100%,#e34fa522,transparent 38%),linear-gradient(145deg,#202b55 0%,#111a38 52%,#21163f 100%);
  box-shadow:inset 0 2px 0 #ffffff22,inset 0 -2px 0 #03081799,0 2px 0 #080d20,0 16px 38px #020617bb,0 0 24px #765cff22;
}
#readyGamesLaunch .am-mode-switch button,
#readyGamesLaunch .am-chip,
#readyGamesLaunch .am-play-button,
#readyGamesLaunch #amReturnHome,
#miniGamePanel>#gamesBack,
#readyGamesLaunch .am-stage-actions button{
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid #ffffff88;
  box-shadow:inset 0 2px 0 #ffffff66,inset 0 -4px 0 #0005,0 4px 0 #090f25,0 8px 15px #02061799;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
  text-shadow:0 1px 3px #090b20aa;
}
#readyGamesLaunch .am-mode-switch button{border-color:#8492c8;background:linear-gradient(155deg,#354a79,#1a294c 58%,#131d39);}
#readyGamesLaunch .am-mode-switch button.active{border-color:#e1caff;background:linear-gradient(145deg,#b47aff 0%,#754fe0 48%,#4930a5 100%);box-shadow:inset 0 2px 0 #ffffffaa,inset 0 -4px 0 #32135f,0 0 0 1px #d8c5ff55,0 5px 0 #29184e,0 10px 20px #8a54ff66;}
#readyGamesLaunch .am-mode-switch button span{border:1px solid #ffffff55;background:linear-gradient(145deg,#52679b,#29395f);box-shadow:inset 0 1px 0 #ffffff55,0 2px 0 #111a35;}
#readyGamesLaunch .am-chip{border-color:#7180b2;background:linear-gradient(155deg,#34466f,#1a2748 60%,#111a34);color:#edf1ff;box-shadow:inset 0 1px 0 #ffffff55,inset 0 -3px 0 #0005,0 3px 0 #0a1025,0 6px 10px #02061788;}
#readyGamesLaunch .am-chip.active{border-color:#fff2c5;background:linear-gradient(145deg,#fff1b8,#e9b85c 52%,#b97831);color:#38234a;text-shadow:none;box-shadow:inset 0 2px 0 #fff,inset 0 -3px 0 #a75d2c,0 4px 0 #633b31,0 7px 14px #02061799;}
#readyGamesLaunch .am-game-card{
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid #7f91c5;border-radius:17px;
  background:linear-gradient(150deg,#2b3b68 0%,#1a294b 54%,#111b36 100%);
  box-shadow:inset 0 2px 0 #ffffff30,inset 0 -3px 0 #050b1d99,0 4px 0 #090f25,0 9px 17px #02061799;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,filter .18s ease;
}
#readyGamesLaunch .am-game-card::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(115deg,#ffffff22 0%,transparent 36%,#ffffff08 68%,#0004 100%);pointer-events:none;}
#readyGamesLaunch .am-game-card:nth-child(4n+1){border-color:#d5a76d;background:linear-gradient(150deg,#59416a,#302747 56%,#1d1b38);}
#readyGamesLaunch .am-game-card:nth-child(4n+2){border-color:#70cbd4;background:linear-gradient(150deg,#24546a,#1b354e 56%,#15223c);}
#readyGamesLaunch .am-game-card:nth-child(4n+3){border-color:#bd8de7;background:linear-gradient(150deg,#503b79,#30264f 56%,#1d1a39);}
#readyGamesLaunch .am-game-card:nth-child(4n){border-color:#8fd0a7;background:linear-gradient(150deg,#285a58,#1b3d46 56%,#14263a);}
#readyGamesLaunch .am-game-icon{border:1px solid #ffffff99;background:linear-gradient(145deg,#9b83ff,#5b52c6 58%,#353b83);box-shadow:inset 0 2px 0 #ffffff88,inset 0 -3px 0 #17184988,0 4px 9px #02061788;}
#readyGamesLaunch .am-play-button{border-color:#d7c1ff;background:linear-gradient(145deg,#b17aff 0%,#8150df 48%,#4d34a5 100%);box-shadow:inset 0 2px 0 #ffffffaa,inset 0 -4px 0 #32135f,0 4px 0 #25174e,0 8px 14px #02061799;}
#readyGamesLaunch #amReturnHome{border-color:#d7c6ff;background:linear-gradient(155deg,#a985ff,#6747ce 55%,#3b2b8e);box-shadow:inset 0 2px 0 #ffffff99,inset 0 -4px 0 #25134f,0 4px 0 #1c173f,0 9px 16px #020617aa;}
#miniGamePanel>#gamesBack{min-height:46px;padding:0 17px;border-color:#c5b6ff;border-radius:14px;background:linear-gradient(145deg,#8e75ed,#5d48bd 58%,#392b83);color:#fff;font-weight:900;}
#readyGamesLaunch .am-stage-actions button{border-color:#91b6ec;background:linear-gradient(145deg,#476a9f,#2b4677 58%,#1a2b50);}
#readyGamesLaunch .am-mode-switch button:active,
#readyGamesLaunch .am-chip:active,
#readyGamesLaunch .am-play-button:active,
#readyGamesLaunch #amReturnHome:active,
#miniGamePanel>#gamesBack:active,
#readyGamesLaunch .am-stage-actions button:active{transform:translateY(3px) scale(.985);filter:brightness(1.15);box-shadow:inset 0 3px 7px #0007,0 1px 0 #080d20;}
@media(hover:hover){
 #readyGamesLaunch .am-game-card:hover{transform:translateY(-3px);filter:brightness(1.12);border-color:#f0ddff;box-shadow:inset 0 2px 0 #ffffff55,0 0 0 1px #d8c5ff44,0 7px 0 #090f25,0 15px 24px #020617bb,0 0 20px #9870ff33;}
 #readyGamesLaunch .am-play-button:hover,#readyGamesLaunch .am-mode-switch button:hover,#readyGamesLaunch .am-chip:hover,#miniGamePanel>#gamesBack:hover{filter:brightness(1.18);}
}
@media(prefers-reduced-motion:reduce){#readyGamesLaunch .am-game-card,#readyGamesLaunch .am-mode-switch button,#readyGamesLaunch .am-chip,#readyGamesLaunch .am-play-button,#readyGamesLaunch #amReturnHome,#miniGamePanel>#gamesBack{transition:none;}}
#miniGamePanel>#gamesBack{display:flex!important;align-items:center;justify-content:center;}
