@font-face { font-family: Inter; src: url('/assets/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/assets/inter-cyrillic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Home Topic Inter'; src: url('/assets/inter-cyrillic-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
:root {
  color-scheme: dark;
  font-family: Inter, sans-serif;
  background: #000;
  color: #f5f5f5;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
/* Keep native swipes on scrollable content while disabling browser touch zoom. */
:where(html, body) { touch-action: pan-x pan-y; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: #000; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid rgb(255 255 255 / .7); outline-offset: -3px; }
:where(button, a, [role="button"]) { -webkit-tap-highlight-color: transparent; }

/* A dialog or step can move focus after a tap, even when WebKit paints it as keyboard focus. */
:root:not([data-keyboard-navigation]) :focus,
:root:not([data-keyboard-navigation]) :focus .roblox-guide-card-face {
  outline: none !important;
}
:root:not([data-keyboard-navigation]) .roblox-guide-summary:focus-visible { box-shadow: none; }
:root:not([data-keyboard-navigation]) .roblox-recommendation-carousel-controls button:focus-visible::after {
  visibility: hidden;
}

[hidden] { display: none !important; }
.local-controls { width: min(880px, calc(100% - 18px)); margin-inline: auto; padding-top: 12px; display: flex; justify-content: flex-end; }
.editor-entry { display: inline-flex; align-items: center; min-height: 38px; padding: 9px 15px; border: 1px solid #353535; border-radius: 13px; background: #111; color: #eee; font-size: 12px; text-decoration: none; }
.editor-entry:hover { background: #1c1c1c; }
.editor-entry:focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.root {
  position: relative;
  isolation: isolate;
  width: calc(100% - 18px);
  max-width: 1800px;
  min-width: 0;
  margin-inline: auto;
  padding-top: calc(8px + max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  padding-bottom: calc(14px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
}
.customTileComposition { position: absolute; inset: 0; display: block; background: linear-gradient(-75deg, #040505, #0e0e0e); }
.customTileImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.customTileLabel { position: absolute; left: 12%; right: 8%; bottom: 12%; font: 900 10.356cqw/1.1 'Home Topic Inter', Inter, sans-serif; white-space: pre-line; overflow-wrap: anywhere; text-shadow: 0 1px 8px #000; }
.error { padding: 16px 8px; }
.error button, #reader-link { border: 1px solid rgb(255 255 255 / .16); border-radius: 17px; background: #080808; padding: 12px 18px; }
dialog { width: min(620px, calc(100% - 18px)); max-height: calc(100dvh - 36px - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-bottom, 0px)); padding: 0; border: 1px solid rgb(255 255 255 / .11); border-radius: 23px; background: #080808; color: #f5f5f5; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .8); }
.reader-toolbar { display: flex; justify-content: flex-end; padding: 9px 10px 0; }
#close-reader { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 25px; line-height: 1; }
article { padding: 8px 24px 28px; }
#reader-title { margin: 0; font-size: 24px; line-height: 1.2; white-space: pre-line; overflow-wrap: anywhere; }
#reader-subtitle { color: #999; line-height: 1.7; font-size: 14px; }
#reader-body p { color: #ccc; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#reader-link { margin-top: 12px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
