/* Shared phone and tablet layout. Loaded after each page's own styles. */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 14px; line-height: 1.5; padding-bottom: calc(80px + env(safe-area-inset-bottom)); background-position: center; }
  main, main > *, .footer, .footer > *, .review-form-row > *, .rating-summary > * { min-width: 0; }
  img { max-width: 100%; }
  body > header { 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 .partner { width: 48px; right: 8px; }
  .ticker { font-size: 11px; line-height: 17px; }
  .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; height: 46px; }
  .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 > .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 { max-width: 100%; }
  .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; }
}
@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; }
}
