/* Shared phone and tablet layout. Loaded after each page's own styles. */
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: clip; }
  html { -webkit-text-size-adjust: 100%; }
  body { width: 100%; font-size: 14px; line-height: 1.5; padding-top: calc(78px + env(safe-area-inset-top)); padding-bottom: calc(80px + env(safe-area-inset-bottom)); background-position: center; }
  *, *::before, *::after { box-sizing: border-box; }
  main, main > *, .footer, .footer > *, .review-form-row > *, .rating-summary > *,
  .games-page, .promo-page, .support-chat, .support-layout, .chat-workspace { min-width: 0; max-width: 100%; }
  img, svg, video, canvas, iframe { max-width: 100%; }
  body > header { top: env(safe-area-inset-top); right: 0; left: 0; z-index: 90; width: 100%; padding-inline: 56px 64px; }
  body > header .logo { width: 210px; max-width: 100%; height: 48px; }
  body > header .menu { width: 40px; height: 40px; left: 8px; }
  body > header .menu::after { content: none; }
  body > header .partner { width: 48px; right: 8px; }
  .ticker { top: calc(59px + env(safe-area-inset-top)); z-index: 89; width: 100%; font-size: 11px; line-height: 17px; }
  main header { z-index: auto; }
  .bottom { height: calc(65px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bottom button { min-width: 0; padding: 4px 0; min-height: 44px; }
  .bottom .nav-art { width: 46px; max-width: 100%; height: 46px; object-fit: contain; }
  .bottom .badge { left: calc(50% + 10px); font-size: 10px; padding: 1px 5px; }
  .drawer.site-panel { width: min(295px, 90vw); max-width: 100%; }
  .panel-head img { max-width: calc(100% - 58px); }
  .site-panel .panel-link { min-height: 48px; }
  .layout { display: flex; flex-direction: column; width: 100%; }
  .layout > .center { order: 0; width: 100%; padding: 14px 12px 0; border: 0; }
  .layout > .center, .home-blog, .guide-content, .guide-section { width: 100%; max-width: 100%; min-width: 0; }
  .center > *, .home-blog > *, .guide-content > *, .guide-section > *, .guide-grid > *, .games > * { min-width: 0; max-width: 100%; }
  .home-blog { overflow: hidden; }
  .guide-hero, .guide-content, .guide-section { padding-right: 16px; padding-left: 16px; }
  .guide-hero h1, .guide-heading, .guide-closing, .guide-details, .guide-notice { max-width: 100%; overflow-wrap: anywhere; }
  .guide-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .guide-table-wrap table { width: 100%; min-width: 520px; }
  .layout > .sidebar { display: block; width: 100%; padding: 16px 12px; }
  .layout > .left { order: 1; }
  .layout > .right { order: 2; }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .providers { width: 100%; max-width: 100%; overflow-x: auto; }
  .provider { min-width: 80px; }
  .categories { flex-wrap: wrap; gap: 6px; }
  .categories button { min-height: 44px; font-size: 12px; padding: 8px; }
  .gold-actions { gap: 8px; }
  .gold { min-height: 44px; }
  .play { min-height: 44px; width: 100%; text-align: center; }
  .transactions { width: 100%; table-layout: fixed; }
  .transactions td, .transactions th { overflow-wrap: anywhere; }
  .login-page { width: 100%; max-width: 520px; margin: 0 auto; padding: 24px 16px; font-size: 14px; }
  .login-page input { min-height: 46px; font-size: 16px; }
  .login-submit, .register { min-height: 44px; }
  .forgot { min-height: 44px; padding: 10px; }
  .promo-page { width: auto; max-width: none; margin: 16px 12px 24px; }
  .promo-page .promo-cards { padding: 14px 10px; gap: 12px 8px; justify-content: center; min-height: 0; }
  .promo-page .promo-image-button { flex: 0 1 100%; width: 100%; max-width: 488px; }
  .promo-page .claim-card { flex: 0 0 86px; width: 86px; min-width: 0; height: 120px; }
  .promo-page .row-break { display: none; }
  .promo-section { margin-bottom: 16px; border-radius: 12px; }
  .promo-section h2 { height: auto; min-height: 44px; font-size: 18px; line-height: 1.3; padding: 12px; overflow-wrap: anywhere; }
  .promo-section.compact h2 { height: auto; min-height: 44px; font-size: 13px; padding: 12px; }
  .promo-section .promo-heading-art { height: 64px; min-height: 0; padding: 12px; }
  .promo-heading-art img { max-height: 40px; }
  .chat-page { width: 100%; padding: 12px; }
  .chat-message { padding: 12px; }
  .welcome { min-height: 0; padding: 24px 12px; border-radius: 16px; }
  .welcome h1 { font-size: clamp(22px, 6vw, 30px); overflow-wrap: anywhere; }
  .welcome h1 span { font-size: 24px; margin-right: 4px; }
  .welcome-copy { display: block; width: 100%; font-size: 15px; line-height: 1.6; padding: 12px; margin: 12px 0 20px; }
  .welcome-copy br { display: none; }
  .explore { min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 14px; font-size: 14px; }
  body:has(.composer) { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .composer { bottom: calc(65px + env(safe-area-inset-bottom)); height: 52px; padding: 4px 10px; gap: 6px; border-radius: 12px 12px 0 0; background: #282828f2; }
  .composer input[type=text] { font-size: 16px; min-height: 44px; }
  .composer button { width: 44px; height: 44px; flex-shrink: 0; }
  .attachment-label { max-width: 18%; font-size: 10px; }
  .standalone-footer { width: auto; max-width: none; margin: 16px 12px 0; }
  .footer .intro { grid-template-columns: minmax(0, 1fr); padding: 22px 16px; gap: 16px; }
  .footer .intro p { margin: 0; max-width: none; font-size: 14px; line-height: 1.7; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 12px; gap: 10px; }
  .footer-links h3 { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
  .footer-links a { margin: 8px 0; min-height: 36px; font-size: 12px; display: flex; align-items: center; overflow-wrap: anywhere; }
  .licenses { padding: 22px 16px; min-height: 0; }
  .licenses h3 { line-height: 1.5; }
  .license-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 10px; }
  .license-grid img { height: 54px; max-width: 100%; }
  .copyright { padding: 18px 12px; font-size: 11px; line-height: 1.6; }
  .home-blog, .player-reviews { font-size: 14px; line-height: 1.7; }
  .blog-intro, .blog-article, .player-reviews { padding: 20px 14px; }
  .home-blog h2, .player-reviews h2 { font-size: 22px; }
  .blog-article h3 { font-size: 19px; }
  .reviews-heading, .review-toolbar { flex-wrap: wrap; gap: 10px; }
  .rating-summary { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .rating-score strong { font-size: 42px; }
  .rating-score .review-stars { font-size: 16px; letter-spacing: 1px; }
  .rating-row { grid-template-columns: 12px minmax(0, 1fr) 24px; gap: 6px; }
  .review-card header { flex-wrap: wrap; gap: 8px; }
  .review-card time { margin-left: 0; }
  .review-form { padding: 14px; }
  .review-form-row { grid-template-columns: minmax(0, 1fr); }
  .review-form input, .review-form select, .review-form textarea { font-size: 16px; min-width: 0; }
  .review-form button { width: 100%; min-height: 44px; }
  main p, main li, .footer .intro p, .review-card p { text-align: justify; text-align-last: start; hyphens: auto; overflow-wrap: anywhere; }
  h1, h2, h3, label, .panel-nav, .chat-time, .chat-sender { text-align: start; }
  .bottom button, .gold, .claim-card, .login-submit, .register, .welcome h1, .licenses h3 { text-align: center; }
  .notice { position: relative; inset: auto; transform: none; width: calc(100% - 24px); max-width: 380px; margin: 20px auto 12px; padding: 14px; gap: 12px; border-radius: 12px; }
  .notice > div { min-width: 0; }
  .notice p { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  .notice img { width: 44px; height: 44px; flex-shrink: 0; }
  .notice button { min-height: 44px; padding: 10px 14px; }
  .modal { padding: 12px; }
  .dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .toast { max-width: calc(100% - 24px); bottom: calc(78px + env(safe-area-inset-bottom)); overflow-wrap: anywhere; }
  main, .layout, .games-page, .promo-page, .support-chat, .auth-page { margin-left: auto; margin-right: auto; }
  .support-layout > *, .chat-benefits > *, .faq-sidebar > *, .chat-workspace > * { min-width: 0; width: 100%; max-width: 100%; }
  .support-head { flex-direction: column; justify-content: center; text-align: center; }
  .support-head > div { width: 100%; min-width: 0; justify-content: center; }
  .support-head h1, .support-head p { text-align: center; }
  .support-head button { margin: 0 auto; }
  .chat-benefits { justify-items: center; }
  .benefit-card { width: 100%; text-align: center; }
  .benefit-card .benefit-icon { margin-right: auto; margin-left: auto; }
  .benefit-card h2, .benefit-card p, .faq-sidebar h2, .faq-sidebar > .eyebrow, .question-heading h2, .question-heading .eyebrow { text-align: center; text-align-last: center; }
  .faq-categories button, .faq-questions button { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .games { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 8px; }
  .guide-hero { padding: 26px 14px; }
  .guide-content { padding: 14px 8px 20px; }
  .guide-section { padding: 22px 14px; }
  .guide-number { right: 12px; font-size: 32px; }
  .guide-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .guide-actions a { width: 100%; min-width: 0; }
}
@media (max-width: 380px) {
  body > header { padding-inline: 50px 54px; }
  body > header .logo, body > header .logo-home-link { width: 100%; max-width: 190px; }
  .bottom .nav-art { width: 42px; height: 44px; }
  .support-head { flex-wrap: wrap; align-items: flex-start; }
  .support-head > div { min-width: 0; }
  .support-head button { margin-left: auto; }
  .question-heading { align-items: flex-start; flex-direction: column; }
  .chat-bubble { max-width: calc(100% - 38px); overflow-wrap: anywhere; }
  .chat-composer input { width: 100%; min-width: 0; }
}
@media (max-width: 360px) {
  .footer-links { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 16px; }
  .footer-links h3 { margin-bottom: 6px; }
  .footer-links a { min-height: 32px; }
  .promo-page .claim-card { flex-basis: 82px; width: 82px; }
}
