/* MateGym v5 targeted UI regression fix: native quick links + scroll button. */
.fixedbtn {
  position:fixed!important;right:20px!important;left:auto!important;bottom:20px!important;
  z-index:1000;display:flex;flex-direction:column;align-items:flex-end;gap:7px;
}
.fixedbtn .kakaochanel {padding:0!important;margin:0;background:#fdd61d;border-radius:10px;box-shadow:0 3px 13px rgba(0,0,0,.16)}
.fixedbtn .kakaochanel a {
  display:flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;
  width:78px;min-height:94px;padding:9px 5px 8px;text-decoration:none;color:#1a1917;
}
.fixedbtn .kakaochanel img {display:block;width:33px!important;height:33px;object-fit:contain;padding:0!important;margin:0 0 5px}
.fixedbtn .kakaochanel p {font:600 15px/17px Teko,sans-serif;margin:0!important;padding:0}
.fixedbtn .kakaochanel b {font:600 12px/16px sans-serif;margin:0!important;padding:0}
.fixedbtn .top {margin:0!important;padding:0!important;align-self:flex-end}
.fixedbtn .top a {
  display:flex!important;justify-content:center;align-items:center;box-sizing:border-box;
  width:44px!important;height:44px!important;line-height:1!important;border-radius:50%!important;
  border:1px solid #ddd!important;background:#fff!important;box-shadow:0 2px 9px rgba(0,0,0,.16)
}
.fixedbtn .top a img {display:block;width:17px!important;height:auto}
.fixedbtn .top a:hover {background:#222!important;border-color:#222!important}
.fixedbtn .top a:hover img {filter:invert(1)!important}
.fixedbtn a:focus-visible {outline:3px solid #e13b3b;outline-offset:3px}
html:focus-within {scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}}
@media(max-width:767px){.fixedbtn{right:12px!important;left:auto!important;bottom:12px!important;gap:5px}.fixedbtn .kakaochanel a{width:64px;min-height:79px;padding:6px 3px}.fixedbtn .kakaochanel img{width:27px!important;height:27px}}
/* When the AI chat panel is open, keep underlying quick links out of its way. */
body:has(#mh-ai-root.mh-ai-is-open) .fixedbtn {visibility:hidden;pointer-events:none}
/* 2026-11-09 claude1: the AI launcher is lifted visually, but the fixed #mh-ai-root box stayed
   at the bottom-right and swallowed clicks on ToTop/Kakao. Only the real controls take input. */
#mh-ai-root:not(.mh-ai-is-open){pointer-events:none}
#mh-ai-root .mh-ai-launcher,#mh-ai-root .mh-ai-panel{pointer-events:auto}
/* If the Teko web font is slow/blocked, the wider fallback font must not push the mobile layout to 448px. */
@media(max-width:767px){.mainapp .text h1{overflow-wrap:anywhere}}
.hybrid-soon__content{max-width:100%;min-width:0}.hybrid-soon__content p,.hybrid-soon__content h1{overflow-wrap:anywhere}.hybrid-soon__background{max-width:100%}
/* Legacy reset li{word-break:break-all} split "PREMIUM MACHI/NE" on phones; wrap whole words instead. */
.mainintro li h3{word-break:keep-all;overflow-wrap:anywhere}
