/* Hosting-only additions; original game files are not edited. */
.rianov-return { display:block; margin:14px 0 0; color:#ffe6ac; text-align:center; font-size:13px; }
.rianov-return:focus-visible { outline:2px solid #ffcf45; outline-offset:4px; }
/* The current source is a wide game board. Keep it reachable instead of clipping it. */
html, body { min-width:0; min-height:100%; height:auto; overflow:auto; }
.app { min-width:1120px; min-height:690px; height:100svh; }
.overlay { overflow:auto; }
.start-card { height:auto; max-height:calc(100svh - 32px); overflow:auto; }
.start-content { min-width:0; }
@media(max-width:700px) {
  .overlay { padding:12px; }
  .start-card { width:100%; grid-template-columns:1fr; border-radius:20px; }
  .start-art { display:none; }
  .start-content { padding:24px 18px; }
  .start-content h1 { font-size:32px; }
  .start-content h1 br { display:none; }
  .start-content h1 em::before { content:' '; }
  .lesson-card { grid-template-columns:26px minmax(0,1fr) auto; gap:7px; }
  .lesson-card b { font-size:12px; }
  .lesson-card small { font-size:10px; }
  .lesson-stars { min-width:42px; }
  .painted-star.small { width:14px; height:14px; }
  .result-card,.pause-card,.tutorial-card { width:100%; max-height:calc(100svh - 24px); overflow:auto; padding:24px 18px; }
  .start-content::after { content:'Поле широкое: для игры на телефоне поверните экран горизонтально. Поле можно прокручивать вбок.'; display:block; color:#dfccff; font-size:11px; line-height:1.5; margin-top:12px; }
}
