:root { --generator-shop-width: min(340px, calc(100vw - 48px)); }
.generator-shop-tab { position: fixed; right: 0; top: 40%; z-index: 47; transition: right .22s ease-out; writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; border: 1px solid #00c4e4; border-right: 0; border-radius: 12px 0 0 12px; background: #101a27; color: #5ce4f4; padding: 18px 12px; font: 600 15px Onest, sans-serif; cursor: pointer; box-shadow: 0 4px 20px #0005; }
.generator-shop-panel { position: fixed; right: 0; top: 60px; bottom: 0; width: var(--generator-shop-width); box-sizing: border-box; z-index: 46; background: #141820; border-left: 1px solid #334155; padding: 22px 18px; overflow-y: auto; box-shadow: -12px 0 38px #0005; }
.generator-shop-panel[hidden] { display: none; }
.generator-shop-panel:not([hidden]) { animation: shop-slide-in .22s ease-out; }
@keyframes shop-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media(prefers-reduced-motion: reduce) { .generator-shop-panel:not([hidden]) { animation: none; } }
.generator-shop-close { float: right; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #344152; color: #e5e7eb; background: #101a27; font-size: 24px; cursor: pointer; }
.generator-shop-panel h2 { margin: 5px 0 22px; font-size: 19px; }
.generator-shop-empty { margin: 32px 0; color: #aab6c8; line-height: 1.6; }
.generator-shop-card { margin: 16px 0; padding: 12px; border-radius: 18px; border: 1px solid #30353e; background: #111318; }
.generator-shop-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #161c28; }
.generator-shop-card button { cursor: pointer; }
.generator-shop-picture { display: block; padding: 0; width: 100%; border: 0; background: transparent; }
.generator-shop-card h3 { margin: 12px 0 7px; font-size: 18px; }
.generator-shop-station { display: inline-block; border-radius: 7px; background: #18313a; color: #b1e5ef; padding: 5px 8px; font-size: 12px; }
.generator-shop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; color: #00c4e4; font-weight: 700; font-size: 20px; }
.generator-shop-foot button { padding: 8px 13px; background: transparent; color: #00c4e4; border: 1px solid #00c4e4; border-radius: 12px; }
.generator-shop-filter { width: 100%; padding: 10px; background: #101a27; color: #e5e7eb; border: 1px solid #344152; border-radius: 10px; }
.generator-shop-modal { width: min(520px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; border: 1px solid #344152; border-radius: 22px; padding: 20px; background: #141820; color: #e5e7eb; text-align: center; font-family: Onest, sans-serif; }
.generator-shop-modal::backdrop { background: #060c16b8; backdrop-filter: blur(6px); }
.generator-shop-modal img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: #161c28; }
.generator-shop-modal h2 { font-size: 25px; margin: 14px 0 10px; }
.generator-shop-modal .shop-price { display: block; font-size: 30px; color: #00c4e4; margin: 14px 0; }
.generator-shop-modal .shop-hint { font-size: 13px; color: #aab6c8; }
.generator-shop-modal .shop-terms { display: flex; align-items: flex-start; text-align: left; gap: 8px; margin: 15px 0; font-size: 12px; }
.generator-shop-modal .shop-terms a { color: #72dcea; }
.generator-shop-modal .shop-note { color: #aab6c8; font-size: 14px; }
@media(max-width: 600px) { .generator-shop-panel { top: 56px; } .generator-shop-tab { padding: 15px 9px; } }

.generator-shop-panel .toppergen-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #344152 transparent;
  overscroll-behavior-x: contain;
}
.generator-shop-panel .toppergen-filters > button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.capsule-shop-modal {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 16px;
  overflow: hidden;
  box-sizing: border-box;
}
.capsule-shop-modal[open] { display: grid; gap: 12px; }
.capsule-shop-modal .generator-shop-close { position: absolute; top: 12px; right: 12px; }
.capsule-shop-modal h2 {
  font-size: 22px; line-height: 1.25; margin: 2px 32px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.capsule-shop-modal img {
  width: 100%; height: min(260px, 38vh); height: min(260px, 38dvh, max(0px, calc(100dvh - 280px)));
  aspect-ratio: auto; pointer-events: none;
}
.capsule-shop-modal .shop-hint { display: none; }
.capsule-shop-modal .shop-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.capsule-shop-modal .generator-shop-station { font-size: 12px; }
.capsule-shop-modal .shop-price { margin: 0; font-size: 28px; white-space: nowrap; }
.capsule-shop-modal .shop-terms { margin: 0; font-size: 12px; line-height: 1.4; }
.capsule-shop-modal .shop-terms[hidden] { display: none; }
.capsule-shop-modal .shop-buy { margin: 0; padding: 10px 16px; min-height: 44px; }
.capsule-shop-modal .shop-note { margin: 0; font-size: 12px; line-height: 1.3; }
.capsule-shop-modal .shop-note:empty { display: none; }
@media(max-height: 500px) {
  .capsule-shop-modal[open] { gap: 8px; }
  .capsule-shop-modal { padding: 12px; }
  .capsule-shop-modal h2 { font-size: 18px; }
  .capsule-shop-modal .shop-price { font-size: 24px; }
}

.generator-shop-tab[aria-expanded="true"] { right: var(--generator-shop-width); }
.generator-shop-tab__arrow { writing-mode: horizontal-tb; line-height: 1; font-size: 24px; }
@media(prefers-reduced-motion: reduce) { .generator-shop-tab { transition: none; } }
