/* Shared support controls: no changes to the site's account, reader or game state. */
.ck-support-fab, .ck-support-footer, .ck-support-dialog, .ck-support-page { box-sizing: border-box; font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif; }
.ck-support-fab { position: fixed; z-index: 85; right: max(1.25rem, env(safe-area-inset-right)); bottom: calc(1.25rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: auto; min-height: 48px; padding: .65rem 1.15rem; border: 1px solid #c7923d; border-radius: 999px; color: #213820; background: linear-gradient(115deg, #ffe6ad, #e7bd70); box-shadow: 0 5px 22px #142c2133; text-decoration: none; font-size: .94rem; font-weight: 800; line-height: 1.4; }
.ck-support-fab > span { color: #075d37; font-size: 1.5rem; line-height: 1; }
.ck-support-fab:hover { background: #ffdea0; }
.ck-support-footer { display: inline-flex; align-items: center; gap: .35rem; width: auto; min-height: 44px; margin: .5rem 0; padding: .4rem .85rem; border: 1px solid #b8cbb5; border-radius: 999px; color: #075d37; background: #f3f8ee; text-decoration: none; font-size: .9rem; font-weight: 800; line-height: 1.4; }
.ck-support-fab:focus-visible, .ck-support-footer:focus-visible, .ck-support-dialog :is(a,button):focus-visible, .ck-support-page a:focus-visible { outline: 3px solid #10a65e; outline-offset: 4px; }
.ck-support-open { overflow: hidden; }
.ck-support-dialog { width: min(29rem, calc(100vw - 1.25rem)); max-width: none; max-height: calc(100dvh - 1.25rem); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #c7d6c7; border-radius: 1.35rem; color: #132a1c; background: #fbfcf9; box-shadow: 0 24px 80px #00180d66; text-align: left; font-size: .95rem; line-height: 1.6; }
.ck-support-dialog::backdrop { background: #061b11c9; backdrop-filter: blur(5px); }
.ck-support-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid #dde5d9; background: #fbfcf9; }
.ck-support-kicker { margin: 0 0 .2rem; color: #617364; font-size: .7rem; line-height: 1.5; }
.ck-support-top h2 { margin: 0; color: #133f29; font-size: 1.1rem; line-height: 1.5; }
.ck-support-top h2 span { color: #ad7b28; }
.ck-support-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid #cdd8c8; border-radius: 50%; background: #edf2e9; color: #183c26; font: 400 1.8rem/1 Arial, sans-serif; cursor: pointer; }
.ck-support-body { padding: .65rem 1rem 1rem; }
.ck-support-body > p:first-child { margin: 0 0 .65rem; font-size: .86rem; }
.ck-support-image-link { display: block; width: auto; padding: 0; border-radius: .85rem; background: white; }
.ck-support-qr { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border-radius: .85rem; object-fit: contain; }
.ck-support-dialog .ck-support-qr { max-height: min(55dvh, 31rem); width: 100%; }
.ck-support-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .8rem; }
.ck-support-actions a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: auto; min-height: 44px; padding: .55rem .9rem; border-radius: 999px; color: #075d37; background: transparent; font-size: .84rem; font-weight: 700; line-height: 1.5; text-underline-offset: .2rem; }
.ck-support-actions a.ck-support-download { border: 1px solid #075d37; background: #075d37; color: white; text-decoration: none; }
.ck-support-note { margin: .7rem 0 0; color: #617364; font-size: .77rem; line-height: 1.7; text-align: center; }
.ck-support-page { max-width: 40rem; margin: 0 auto; padding: 2rem 1rem 6rem; text-align: center; }
.ck-support-page h1 { margin: .4rem 0 1rem; color: #133f29; font-size: clamp(1.6rem, 6vw, 2.4rem); }
.ck-support-page > p { color: #526859; }
.ck-support-page .ck-support-qr { width: min(100%, 29rem); margin-inline: auto; }
.in-app :is(.ck-support-fab,.ck-support-footer) { display: none; }
body:has(dialog[open]:not(.ck-support-dialog)) .ck-support-fab { visibility: hidden; }
@media (max-width: 760px) {
  .ck-support-fab { right: max(.9rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); min-height: 46px; padding: .5rem .9rem; font-size: .84rem; }
  body:has(> .mobile-nav):not(.in-app) .ck-support-fab { bottom: calc(5.35rem + env(safe-area-inset-bottom)); }
  .ck-support-dialog { border-radius: 1.1rem; }
  .ck-support-body { padding-inline: .8rem; }
  .ck-support-top { padding: .65rem .8rem; }
  .ck-support-top h2 { font-size: 1rem; }
  .ck-support-dialog .ck-support-qr { max-height: 52dvh; }
  .ck-support-actions { gap: .25rem .4rem; }
  body.ck-has-support > footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  body.ck-has-support:has(> .mobile-nav) > footer { padding-bottom: calc(10rem + env(safe-area-inset-bottom)); }
}
