/* 29 Nov (owner): make the phone app FEEL like a real app (Facebook / Instagram / TikTok): no website tap box, instant touch,
   a press animation on every button, smooth scrolling (no heavy blur while scrolling), soft page-to-page transitions.
   Loaded last on every page; phones / touch only, so the desktop site is untouched. */

/* smooth page-to-page change (Chrome / Android WebView 126+); the bottom bar stays still while the page fades */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: rkOut .14s ease-in both; }
::view-transition-new(root) { animation: rkIn .22s ease-out both; }
::view-transition-group(rktabbar) { animation-duration: 0s; }
@keyframes rkOut { to { opacity: 0; } }
@keyframes rkIn { from { opacity: 0; transform: translateY(6px); } }
.m-tabbar { view-transition-name: rktabbar; }

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  /* no grey/blue square when touching; no focus box after a tap (keyboard users still get one) */
  html, body, * { -webkit-tap-highlight-color: transparent; }
  a:focus:not(:focus-visible), button:focus:not(:focus-visible), summary:focus:not(:focus-visible),
  [role="button"]:focus:not(:focus-visible), .m-tab:focus:not(:focus-visible) { outline: none; }

  /* touch answers at once (no 300 ms wait), no long-press menu / text selection on buttons and the bar */
  a, button, summary, label, select, [role="button"], .m-tab { touch-action: manipulation; }
  .m-tabbar, .m-tab, button, .btn, .set, .home-go, .m-notice, summary, header.nav a, .install-btn {
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }
  img { -webkit-touch-callout: none; -webkit-user-drag: none; }

  /* press feedback on everything you can tap: a quick, soft shrink like a native button */
  .btn, button, .set, .home-go, .m-notice, summary, .m-tab, .soc a, [role="button"], a.card, .notice a {
    transition: transform .12s cubic-bezier(.2, .8, .2, 1), opacity .12s, background-color .12s;
  }
  .btn:active, button:not(:disabled):active, .set:active, .home-go:active, .m-notice:active, summary:active, .soc a:active, [role="button"]:active {
    transform: scale(.965); opacity: .9;
  }
  .m-tab:active { transform: scale(.88); opacity: 1; }
  .m-tab:active .m-ico { background: rgba(255, 255, 255, .14); }
  .m-tab.is-active .m-ico { animation: rkPop .28s cubic-bezier(.2, 1.4, .4, 1); }
  @keyframes rkPop { from { transform: scale(.82); } to { transform: scale(1); } }

  /* scrolling: no rubber-band jump, and drop the heavy blur-behind effect that makes phones stutter while scrolling
     (the cards keep their glass look with a solid dark tint instead) */
  html, body { overscroll-behavior-y: none; }
  .panel, .course, .notice, .teacher, .contact-card, .eps-card, .ubt-hello, .ubt-buy, .credit, .review, .faq details, .set,
  html .passed figure, .pay-m, .dark, .duo .ko, .eps-notice, .foot, .nav {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .panel, .course, .notice, .teacher, .contact-card, .eps-card, .ubt-hello, .ubt-buy, .credit, .review, .faq details, .set, html .passed figure, .pay-m {
    background: linear-gradient(145deg, rgba(42, 54, 108, .96), rgba(24, 33, 78, .96));
  }
  .dark { background: rgba(7, 11, 32, .94); }
  .foot { background: rgba(5, 8, 26, .97); }
  .nav { background: rgba(9, 14, 38, .97); }
  .m-tabbar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #0a1130 !important; will-change: transform; transform: translateZ(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .btn, button, .m-tab, .set { transition: none; }
}
