/* TAICHI AQUA / USB FEATURE POPUP ONLY
   Independent style sheet: all selectors are scoped to .aqua-usb-popup.
   The original styles.css is deliberately unchanged.
*/
.aqua-usb-popup {
  --usb-ink: #142638;
  --usb-subtle: #64798b;
  --usb-accent: #236bc1;
  --usb-aqua: #43badb;
  width: min(1080px, calc(100% - 36px));
  max-width: 1080px;
  max-height: calc(100dvh - 40px);
  padding: 0;
  margin: auto;
  overflow: hidden;
  color: var(--usb-ink);
  background: #f8fbff;
  border: 1px solid rgba(224, 238, 250, .94);
  border-radius: 20px;
  box-shadow: 0 30px 95px rgba(12, 40, 73, .35);
}
.aqua-usb-popup::backdrop {
  background: rgba(9, 26, 45, .72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.aqua-usb-popup[open] { animation: aquaUsbEnter .34s cubic-bezier(.16, 1, .3, 1) both; }
.aqua-usb-popup[open]::backdrop { animation: aquaUsbBackdrop .28s ease-out both; }
.aqua-usb-popup__shell {
  position: relative;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(117deg, #fff 0%, #f9fcff 54%, #eaf4fa 100%);
  scrollbar-color: #a0bbc9 transparent;
  scrollbar-width: thin;
}
.aqua-usb-popup__shell::before {
  position: absolute;
  right: 0;
  top: 0;
  width: 36%;
  height: 240px;
  content: '';
  pointer-events: none;
  background: linear-gradient(134deg, transparent 35%, rgba(172, 217, 238, .20) 35%, rgba(172, 217, 238, .20) 68%, transparent 68%);
}
.aqua-usb-popup__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px clamp(24px, 4.6vw, 52px);
  border-bottom: 1px solid #e3edf5;
}
.aqua-usb-popup__brand {
  color: #1b3851;
  font: 700 13px/1.3 var(--font-display, 'Orbitron', sans-serif);
  letter-spacing: .05em;
}
.aqua-usb-popup__brand span { margin-left: 6px; color: #2a91ba; }
.aqua-usb-popup__header-code {
  margin-left: auto;
  margin-right: 18px;
  font: 700 11px/1.5 var(--font-heading, 'Rajdhani', sans-serif);
  color: #8a9eac;
  letter-spacing: .16em;
}
.aqua-usb-popup__close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(230, 240, 249, .95);
  color: #375268;
  border: 1px solid #d7e4ee;
  border-radius: 50%;
  transition: transform .24s, background .24s, color .24s;
}
.aqua-usb-popup__close:hover { transform: rotate(90deg); background: #1e668a; color: #fff; }
.aqua-usb-popup__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aqua-usb-popup__intro { position: relative; padding: 30px clamp(24px, 4.6vw, 52px) 21px; }
.aqua-usb-popup__eyebrow {
  margin-bottom: 8px;
  color: #3b94b9;
  font: 700 12px/1.4 var(--font-heading, 'Rajdhani', sans-serif);
  letter-spacing: .2em;
}
.aqua-usb-popup__intro h2 {
  color: var(--usb-ink);
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.aqua-usb-popup__intro h2 span { color: var(--usb-accent); }
.aqua-usb-popup__lead {
  max-width: 690px;
  margin-top: 8px;
  font: 400 13px/1.7 var(--font-body, 'Inter', sans-serif);
  color: var(--usb-subtle);
}
.aqua-usb-popup__tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 clamp(24px, 4.6vw, 52px) 17px;
}
.aqua-usb-popup__tab {
  min-width: 195px;
  min-height: 40px;
  padding: 9px 21px;
  border: 1px solid #d5e5f0;
  border-radius: 5px;
  color: #698294;
  background: rgba(255, 255, 255, .78);
  font: 700 12px/1.4 var(--font-heading, 'Rajdhani', sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .24s, background .24s, border-color .24s, box-shadow .24s;
}
.aqua-usb-popup__tab:hover { color: #13528b; border-color: #9ccce6; }
.aqua-usb-popup__tab[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(112deg, #1e609b, #328fc0);
  border-color: #2876aa;
  box-shadow: 0 5px 12px rgba(37, 103, 159, .17);
}
.aqua-usb-popup__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.48fr);
  gap: 24px;
  padding: 12px clamp(24px, 4.6vw, 52px) 28px;
}
.aqua-usb-popup__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: 17px;
}
.aqua-usb-popup__mode-copy { width: 100%; }
.aqua-usb-popup__mode-label {
  color: #4589b6;
  font: 700 12px/1.4 var(--font-heading, 'Rajdhani', sans-serif);
  letter-spacing: .13em;
}
.aqua-usb-popup__mode-copy h3 {
  margin-top: 13px;
  font: 700 clamp(25px, 2.8vw, 37px)/1.05 var(--font-heading, 'Rajdhani', sans-serif);
  letter-spacing: -.025em;
  color: #10283b;
}
.aqua-usb-popup__mode-description {
  margin-top: 13px;
  max-width: 290px;
  color: var(--usb-subtle);
  font: 400 13px/1.85 var(--font-body, 'Inter', sans-serif);
}
.aqua-usb-popup__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 28px;
  max-width: 310px;
  padding: 17px 15px;
  background: linear-gradient(100deg, rgba(222, 237, 247, .55), rgba(245, 250, 254, .65));
  border: 1px solid #dbeaf3;
  border-left: 3px solid #2f9cca;
  border-radius: 7px;
}
.aqua-usb-popup__note svg { flex: 0 0 20px; width: 20px; height: 20px; color: #2d92bc; }
.aqua-usb-popup__note strong {
  display: block;
  font: 700 13px/1.35 var(--font-heading, 'Rajdhani', sans-serif);
  color: #254662;
}
.aqua-usb-popup__note span {
  display: block;
  margin-top: 3px;
  font: 400 11px/1.5 var(--font-body, 'Inter', sans-serif);
  color: #708394;
}
.aqua-usb-popup__media { min-width: 0; }
.aqua-usb-popup__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid #dfeaf1;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 30%, #fff 0%, #f5f9fc 56%, #e9f2f8 100%);
  box-shadow: inset 0 0 55px rgba(214, 232, 244, .36);
  touch-action: pan-y;
  cursor: grab;
}
.aqua-usb-popup__viewport:active { cursor: grabbing; }
.aqua-usb-popup__track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .48s cubic-bezier(.2, .75, .2, 1);
  will-change: transform;
}
.aqua-usb-popup__track[hidden] { display: none; }
.aqua-usb-popup__slide {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
}
.aqua-usb-popup__image-area {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(260px, 29vw, 345px);
  padding: 5px ;
}
.aqua-usb-popup__image-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
  filter: drop-shadow(0 15px 17px rgba(28, 62, 88, .07));
}
.aqua-usb-popup__caption {
  min-height: 56px;
  padding: 8px 22px 12px;
  color: #426179;
  text-align: center;
  font: 600 12px/1.6 var(--font-body, 'Inter', sans-serif);
}
.aqua-usb-popup__caption span { display: block; color: #318cac; font: 700 10px/1.5 var(--font-heading, 'Rajdhani', sans-serif); letter-spacing: .18em; }
.aqua-usb-popup__arrow {
  position: absolute;
  z-index: 2;
  top: 44%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #336e91;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d6e6f1;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(18, 57, 83, .08);
  transform: translateY(-50%);
  transition: background .24s, color .24s, box-shadow .24s;
}
.aqua-usb-popup__arrow:hover { color: #fff; background: #307fab; box-shadow: 0 5px 18px rgba(29, 114, 163, .26); }
.aqua-usb-popup__arrow--prev { left: 12px; }
.aqua-usb-popup__arrow--next { right: 12px; }
.aqua-usb-popup__arrow--prev svg { transform: rotate(180deg); }
.aqua-usb-popup__thumbs { display: flex; gap: 8px; padding-top: 10px; }
.aqua-usb-popup__thumb {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  height: 71px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #d7e4ed;
  border-radius: 5px;
  background: rgba(255, 255, 255, .72);
  opacity: .65;
  transition: opacity .25s, border-color .25s, box-shadow .25s;
}
.aqua-usb-popup__thumb:hover { opacity: .94; border-color: #80b6d2; }
.aqua-usb-popup__thumb[aria-pressed="true"] {
  opacity: 1;
  border-color: #2d91c0;
  box-shadow: inset 0 0 0 1px #2d91c0;
}
.aqua-usb-popup__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.aqua-usb-popup__thumb-index {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 3px;
  color: #4f7e9a;
  background: rgba(255,255,255,.92);
  font: 700 10px/1.3 var(--font-heading, 'Rajdhani', sans-serif);
}
.aqua-usb-popup__footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px clamp(24px, 4.6vw, 52px) 16px;
  border-top: 1px solid #e4edf4;
  color: #8398a8;
  font: 600 10px/1.5 var(--font-heading, 'Rajdhani', sans-serif);
  letter-spacing: .13em;
}
.aqua-usb-popup__status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aqua-usb-popup__close:focus-visible, .aqua-usb-popup__tab:focus-visible,
.aqua-usb-popup__arrow:focus-visible, .aqua-usb-popup__thumb:focus-visible { outline: 2px solid #2889c2; outline-offset: 3px; }
@keyframes aquaUsbEnter { from { opacity: 0; transform: translateY(18px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes aquaUsbBackdrop { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 780px) {
  .aqua-usb-popup { max-height: calc(100dvh - 24px); }
  .aqua-usb-popup__shell { max-height: calc(100dvh - 24px); }
  .aqua-usb-popup__header { min-height: 58px; }
  .aqua-usb-popup__intro { padding-top: 24px; }
  .aqua-usb-popup__body { grid-template-columns: 1fr; gap: 19px; padding-top: 5px; }
  .aqua-usb-popup__copy { padding-top: 4px; }
  .aqua-usb-popup__mode-copy h3 { font-size: 29px; }
  .aqua-usb-popup__mode-description { max-width: 100%; }
  .aqua-usb-popup__note { margin-top: 14px; }

  .aqua-usb-popup__image-area { height: clamp(235px, 49vw, 330px); }
}
@media (max-width: 480px) {
  .aqua-usb-popup { width: calc(100% - 16px); border-radius: 12px; max-height: calc(100dvh - 16px); }
  .aqua-usb-popup__shell { max-height: calc(100dvh - 16px); }
  .aqua-usb-popup__header { padding-inline: 18px; }
  .aqua-usb-popup__header-code { display: none; }
  .aqua-usb-popup__close { margin-left: auto; }
  .aqua-usb-popup__intro { padding: 18px 18px 13px; }
  .aqua-usb-popup__intro h2 { font-size: 29px; }
  .aqua-usb-popup__tabs { padding: 0 18px 12px; gap: 5px; }
  .aqua-usb-popup__tab { min-width: 0; flex: 1; padding: 9px 6px; font-size: 10px; letter-spacing: .06em; }
  .aqua-usb-popup__body { padding: 3px 18px 18px; }
  .aqua-usb-popup__mode-copy h3 { font-size: 26px; }
  .aqua-usb-popup__note { padding: 11px 12px; }
  .aqua-usb-popup__image-area { height: 218px; padding: 12px 35px 4px; }
  .aqua-usb-popup__caption { padding: 5px 12px 10px; font-size: 11px; min-height: 50px; }
  .aqua-usb-popup__thumb { height: 56px; }
  .aqua-usb-popup__arrow { width: 31px; height: 31px; }
  .aqua-usb-popup__arrow--prev { left: 5px; }
  .aqua-usb-popup__arrow--next { right: 5px; }
  .aqua-usb-popup__footer { padding-inline: 18px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .aqua-usb-popup[open], .aqua-usb-popup[open]::backdrop { animation: none; }
  .aqua-usb-popup__track, .aqua-usb-popup__tab, .aqua-usb-popup__close,
  .aqua-usb-popup__arrow, .aqua-usb-popup__thumb { transition-duration: 0.01ms; }
}
