/* Shared route shell: retain the template's colors, type, cards and presets. */
html { color-scheme: light; scroll-padding-top: calc(var(--site-header-height, 82px) + 12px); scroll-padding-bottom: calc(var(--site-footer-height, 76px) + 12px); }
html[zontal-theme="dark"] { color-scheme: dark; }
body { margin: 0; font-family: var(--theme-font, system-ui, sans-serif); }
button, input { font: inherit; }
[hidden] { display: none !important; }
.wrapper { min-height: 100dvh; padding-top: var(--site-header-height, 82px) !important; padding-bottom: var(--site-footer-height, 76px) !important; }
body.footer-static-bottom .wrapper { padding-bottom: 0 !important; }
.wrapper__content { flex: 1 0 auto; min-width: 0; }
.header { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; z-index: 100; padding-top: env(safe-area-inset-top, 0px); max-height: calc(100dvh - var(--site-footer-height, 76px)); overflow-y: auto; }
.site-header { display: flex; align-items: center; gap: 20px; min-height: 66px; padding: 10px 0; }
.site-header .header__logo { flex: 0 0 auto; }
.site-header .header__logo img { width: 170px; height: 35px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.site-header .menu__link { font-size: 15px; color: #fff; white-space: nowrap; }
.site-search { display: flex; align-items: center; border-radius: 8px; overflow: hidden; background: #fff; max-width: 220px; }
.site-search input { border: 0; min-width: 0; width: 100%; padding: 8px 10px; color: #334155; background: #fff; }
.site-search button { background: var(--theme-accent); color: #fff; border: 0; padding: 8px 12px; }
.site-menu-toggle { display: none; }
.site-theme-btn { border: 1px solid #ffffff55; color: #fff; background: #ffffff14; border-radius: 999px; padding: 7px 13px; white-space: nowrap; }
.game { padding-top: 20px; }
.grid-iframe { display: block; }
.grid-iframe.has-sidebars { display: grid; grid-template-columns: 104px minmax(0, 1fr) 104px; gap: 16px; align-items: start; padding-inline: 16px; }
.grid-iframe.has-one-sidebar { grid-template-columns: 104px minmax(0, 1fr); }
.site-game-sidebar { display: grid; gap: 14px; width: 100%; min-width: 0; }
.site-game-sidebar .game-prev__heading { padding-top: 6px; }
.site-game-sidebar .game-prev__title { font-size: 13px; line-height: 1.25; color: #fff; }
.site-game-sidebar .game-prev__icon { font-size: 10px; padding: 4px 5px; border-width: 2px; }
.site-game-backdrop { object-fit: cover; filter: blur(22px); opacity: .3; pointer-events: none; }
.game-prev__thumb { position: relative; }
.game-prev__overlay { pointer-events: none; border-radius: inherit; }
.game-prev__overlay > span { padding: 8px 16px; border: 2px solid #fff; border-radius: 8px; background: var(--theme-primary); color: #fff; font-weight: 700; }
.game-prev__thumb:focus-visible .game-prev__overlay { transform: scale(1); }
.site-game-sidebar .game-prev__overlay > span { padding: 5px 9px; font-size: 12px; }
.game-prev__icon { pointer-events: none; }
.other-games__wrapper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.other-games__wrapper .other-games__item { width: 100%; min-width: 0; margin: 0 !important; align-items: center; }
.other-games__wrapper .other-games__img { position: relative; flex: 0 0 104px; width: 104px; height: 104px; }
.other-games__img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.other-games__img .game-prev__icon { top: 0; right: 0; font-size: 10px; padding: 4px; border-width: 2px; }
.other-games__wrapper .other-games__body { min-width: 0; max-width: none; padding: 10px 12px; }
.other-games__title { display: block; font-weight: 600; }
.other-games__description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; margin-top: 6px; }
.site-game-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.site-game-summary > img { width: 96px; height: 96px; flex: 0 0 96px; object-fit: cover; border-radius: 16px; }
.site-game-summary h2 { font-size: 28px; font-weight: 700; color: var(--theme-primary); margin: 0 0 6px; }
.site-game-summary p { font-size: 15px; line-height: 1.45; }
.site-description-content { display: flow-root; }
.site-description-content.is-collapsed { max-height: 740px; overflow: hidden; }
.site-show-description { display: block; margin: 16px auto; padding: 8px 22px; border: 1px solid var(--theme-primary-border); border-radius: 8px; background: var(--theme-primary-soft); color: var(--theme-primary); cursor: pointer; }
.site-game-details.no-comments { grid-template-columns: minmax(0, 1fr); }
.site-game-sort { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 24px; }
.site-game-sort select, .site-game-sort button { border: 1px solid var(--theme-primary-border); border-radius: 8px; padding: 8px 12px; background: transparent; color: inherit; }
.site-search-wrap { width: 220px; flex-shrink: 0; }
.site-search-results { position: fixed; z-index: 1100; max-height: min(320px, 55dvh); overflow-y: auto; padding: 8px; border: 1px solid var(--theme-primary-border); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #0002; color: var(--text-color); }
.site-search-results a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: inherit; }
.site-search-results a:hover, .site-search-results a:focus-visible { background: var(--theme-primary-soft); }
.site-search-results img { object-fit: cover; border-radius: 7px; }
.box-game { width: 100%; max-width: 1100px; margin-inline: auto; }
.site-player { position: relative; width: 100%; height: min(65vw, 600px); min-height: 420px; background: #102f32; border-radius: 12px; overflow: hidden; color: #fff; }
.site-game-preview { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 24px; text-align: center; background: radial-gradient(ellipse at top, #ffffff20, transparent 70%); }
.site-game-preview img { object-fit: contain; border-radius: 20px; max-width: 38%; }
.site-game-preview p { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 0; }
.site-game-preview .play-btn__ctrl { width: auto; min-width: 120px; min-height: 48px; padding: 12px 28px; border: 0; border-radius: 16px; color: #fff; background: var(--theme-primary, #0d9488); font-weight: 700; cursor: pointer; }
.site-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.site-player-status { position: absolute; bottom: 0; inset-inline: 0; margin: 0; padding: 10px; text-align: center; background: #102f32ed; font-size: 14px; }
.site-player--popup { display: flex; flex-direction: column; background: var(--theme-header-bg, #18181b); }
.site-player--popup .site-game-preview { flex: 1; height: auto; gap: 15px; }
.site-player--popup .site-player-status { position: static; flex: none; }
.site-fan-label { color: #fdba74; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.site-launch-description { font-size: 16px; color: #e2e8f0; line-height: 1.5; }
.site-launch-note { color: #cbd5e1; font-size: 12px; line-height: 1.7; }
.site-launch-note a { color: #fdba74; text-decoration: underline; text-underline-offset: 3px; }
.site-fan-disclaimer { flex-basis: 100%; width: 100%; margin: 0 !important; color: #cbd5e1; font-size: 11px; line-height: 1.5; text-align: left; }
.site-fan-disclaimer a { color: #fdba74; white-space: nowrap; }
.site-player:fullscreen, .site-player.is-expanded { width: 100vw; height: 100dvh; max-width: none; border-radius: 0; }
/* The legacy game section creates a stacking context below the fixed header. */
.game:has(.site-player.is-expanded) { z-index: 1100; }
.site-player.is-expanded { position: fixed; inset: 0; z-index: 1000; }
.site-exit-fullscreen { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 2; border: 1px solid #fff8; border-radius: 8px; padding: 8px 12px; background: #102f32dd; color: #fff; }
.player-footer__inner { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.player-footer__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-footer__left h1 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.player-footer__left > .game-prev__icon { position: static; flex-shrink: 0; font-size: 11px; padding: 4px 6px; border-width: 2px; }
.player-footer__right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.site-control-icons { position: absolute; pointer-events: none; }
.game_vote { display: flex; align-items: center; gap: 8px; }
.player-footer .g-footer__button { width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; }
.player-footer .svg-icon__link { width: 100%; height: 100%; fill: currentColor; }
.player-footer .g-footer__button-title_text { font-size: 10px; }
.g-footer__button:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
.g-footer__button:disabled { cursor: wait; opacity: .65; }
.site-vote-status { width: 100%; margin: 0; text-align: center; font-size: 13px; }
.site-game-details { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; gap: 24px; }
.site-game-details > * { min-width: 0; }
.site-comments { margin: 0; width: 100%; }
.site-comments h2 { margin: 0 0 20px; font-size: 24px; }
.site-comments { --bg-cmt: var(--theme-primary-soft); --bg-avatar-cmt: #fff; }
.site-comments .header-comment { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--theme-primary-border); }
.site-comments .header-comment h2 { font-size: 20px; margin: 0; }
.site-comment-sort { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.site-comment-sort select { min-width: 0; max-width: 110px; border: 1px solid var(--theme-primary-border); border-radius: 7px; padding: 5px; background: transparent; color: inherit; font: inherit; }
.site-comments .main-comnent { max-height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.site-comments .empty-comment-hint { padding: 24px 8px; text-align: center; font-size: 14px; opacity: .8; }
.site-comment { margin-bottom: 14px; border: 0; border-radius: 12px; padding: 12px; background: var(--bg-cmt); overflow-wrap: anywhere; }
.site-comment .user_status { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.site-comment .avata_coment { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-avatar-cmt); color: var(--theme-primary); font-weight: 700; }
.site-comment .sum-user { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; flex: 1; }
.site-comment .txt-name { font-size: 14px; }
.site-comment .time-com { margin-left: auto; font-size: 11px; opacity: .75; }
.site-comment p { margin: 8px 0; white-space: pre-wrap; }
.site-comment .content-comment { font-size: 14px; line-height: 1.5; }
.site-comment .count-option { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.site-comment .count-option button { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; border: 0; border-radius: 6px; padding: 4px 6px; background: transparent; color: inherit; font-size: 12px; cursor: pointer; }
.site-comment .count-option button:hover, .site-comment .count-option button.voted-active { color: var(--theme-primary); background: var(--theme-primary-soft); }
.site-comment .count-option svg { width: 15px; height: 15px; fill: currentColor; }
.site-comment .count-option button:disabled { opacity: .5; cursor: wait; }
.site-comment .sub-comment:not(:empty) { margin-top: 12px; padding-left: 10px; border-left: 2px solid var(--theme-primary-border); }
.site-comment .sub-comment .site-comment { background: transparent; padding: 8px 0; margin: 0; }
.site-comments-status { font-size: 13px; }
.site-comment-more, .site-replies-more, .site-comment-retry { border: 1px solid var(--theme-primary-border); border-radius: 7px; background: transparent; color: inherit; cursor: pointer; padding: 7px 10px; font-size: 12px; }
.site-comment-more { width: 100%; margin-top: 8px; }
.site-reply-target { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: var(--theme-primary-soft); font-size: 12px; }
.site-reply-target button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.site-field-hint { font-size: 12px; opacity: .75; }
.site-feedback-form .site-comment-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.site-feedback-form .site-comment-consent input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--theme-primary); }
.site-comment-consent a { color: var(--theme-primary); text-decoration: underline; }
.site-share-link { display: flex; gap: 8px; margin: 8px 0 16px; }
.site-share-link input { width: 100%; min-width: 0; border: 1px solid var(--theme-primary-border); border-radius: 8px; padding: 10px; background: transparent; color: inherit; }
.site-share-link button { flex-shrink: 0; border: 0; border-radius: 8px; padding: 10px; background: var(--theme-primary); color: #fff; cursor: pointer; }
.site-share-status { font-size: 13px; }
.site-feedback-form { display: grid; gap: 14px; margin-top: 20px; }
.site-feedback-form label { display: grid; gap: 6px; margin: 0; }
.site-feedback-form input, .site-feedback-form textarea, .site-feedback-form select { width: 100%; min-width: 0; border: 1px solid var(--theme-primary-border, #cccccc); border-radius: 8px; padding: 10px 12px; background: var(--box-bg-color, #fff); color: inherit; font: inherit; }
.site-feedback-form textarea { resize: vertical; }
.site-feedback-submit { width: fit-content; border: 0; border-radius: 8px; padding: 10px 18px; background: var(--theme-primary); color: #fff; font-weight: 700; cursor: pointer; }
.site-feedback-submit:disabled { opacity: .65; cursor: wait; }
.site-feedback-form .site-form-trap { display: none; }
.site-form-status { margin: 0; font-size: 14px; }
.site-feedback-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid var(--theme-primary-border); border-radius: 16px; padding: 24px; color: inherit; background: #fff; }
.site-feedback-dialog::backdrop { background: #0009; }
.site-feedback-dialog .site-feedback-form { margin: 0; }
.site-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-dialog-heading h2 { margin: 0; font-size: 24px; }
.site-dialog-heading button { border: 0; border-radius: 8px; width: 40px; height: 40px; font-size: 24px; background: transparent; color: inherit; cursor: pointer; }
.site-action-status { position: fixed; z-index: 105; left: 50%; bottom: calc(var(--site-footer-height, 76px) + 12px); transform: translateX(-50%); max-width: calc(100vw - 24px); padding: 10px 18px; border-radius: 8px; background: var(--theme-primary); color: #fff; text-align: center; }
.site-fullscreen { font-size: 24px; cursor: pointer; }
.site-retry { border: 1px solid var(--theme-primary); border-radius: 8px; padding: 6px 10px; color: var(--theme-primary); background: transparent; }
.site-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.description__wrapper { padding: 24px; background: #fff; }
.description__body { overflow-wrap: anywhere; }
.description__body img { max-width: 100%; height: auto; }
.description__body h2 { margin-top: 24px; }
.description__body h2:first-child { margin-top: 0; }
.page-description { background: #fff; padding: 24px; border-radius: 20px; overflow-wrap: anywhere; }
.page-description h1 { margin-bottom: 20px; }
.grid-games { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.game_item { min-width: 0; }
.game-prev__thumb { display: block; aspect-ratio: 1; }
.game-prev__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.game-prev__title { overflow-wrap: anywhere; }
.site-pagination { display: flex; gap: 24px; justify-content: center; align-items: center; padding: 28px 0; }
.footer, body.dark-mode .footer { position: fixed !important; bottom: 0; left: 0; right: 0; z-index: 95; flex-shrink: 0; width: 100%; margin-top: 0 !important; }
body.footer-static-bottom .footer { position: static !important; margin-top: 40px !important; }
.footer__wrapper { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
.footer__wrapper > a { flex-shrink: 0; }
.footer__wrapper > a img { object-fit: contain; }
.footer__copyright { flex: 1; min-width: 0; margin: 0 !important; font-size: 14px; line-height: 1.4; }
.footer__list { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; width: auto; margin: 0; }
.footer__item, .footer__item + .footer__item { margin: 0 !important; }
.footer__item + .footer__item::before { content: none; }
.footer__link { display: inline-flex; align-items: center; min-height: 28px; font-size: 14px; line-height: 1.4; }
body.dark-mode { background: #0f1420 !important; color: #cbd5e1 !important; }
body.dark-mode .header, body.dark-mode .footer { background: #111624 !important; }
body.dark-mode .description__wrapper, body.dark-mode .page-description, body.dark-mode .player-footer { background: #182130 !important; color: #cbd5e1; }
body.dark-mode .site-feedback-dialog { background: #182130; color: #cbd5e1; }
body.dark-mode .site-comments { --bg-avatar-cmt: #182130; }
body.dark-mode .site-search-results { background: #182130; color: #cbd5e1; }
body.dark-mode .other-games__description { color: #cbd5e1; }
body.dark-mode .other-games__item { background: #182130; color: #cbd5e1; }
body.dark-mode .site-feedback-form input, body.dark-mode .site-feedback-form textarea, body.dark-mode .site-feedback-form select { background: #111624; }
body.dark-mode .description__body, body.dark-mode .player-footer h1, body.dark-mode .footer__link, body.dark-mode .footer__copyright { color: #cbd5e1 !important; }
.embed-page { margin: 0; background: #102f32; }
.embed-page .site-player { height: 100dvh; min-height: 0; border-radius: 0; }
@media (max-width: 1100px) {
  .site-header { gap: 12px; flex-wrap: wrap; }
  .site-header nav { gap: 12px; }
  .site-search { max-width: 180px; }
  .site-search-wrap { width: 180px; }
  .grid-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .site-game-details { grid-template-columns: minmax(0, 1fr); }
  .grid-iframe.has-sidebars { display: block; }
  .site-game-sidebar { display: none; }
  .other-games__wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .site-header { justify-content: space-between; gap: 10px; }
  .site-header .header__logo img { width: 130px; height: 32px; }
  .site-menu-toggle { display: block; border: 0; background: transparent; color: #fff; font-size: 25px; padding: 5px 8px; }
  .site-header nav { display: none; order: 4; width: 100%; flex-basis: 100%; flex-wrap: wrap; padding: 10px 0; }
  .site-header nav.is-open { display: flex; }
  .site-search { display: none; }
  .site-search-wrap { display: none; order: 5; width: 100%; }
  .site-header:has(nav.is-open) .site-search-wrap { display: block; }
  .site-header:has(nav.is-open) .site-search { display: flex; order: 5; width: 100%; max-width: none; }
  .game { padding-top: 12px; }
  .grid-iframe.has-sidebars { padding-inline: 9px; }
  .other-games__wrapper { grid-template-columns: minmax(0, 1fr); }
  .site-game-summary { align-items: flex-start; gap: 12px; }
  .site-game-summary > img { width: 72px; height: 72px; flex-basis: 72px; }
  .site-game-summary h2 { font-size: 24px; }
  .site-player { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .site-player--popup { aspect-ratio: auto; min-height: 420px; }
  .site-player--popup .site-game-preview { gap: 12px; padding: 20px 14px; }
  .site-player--popup .site-launch-description { font-size: 14px; max-width: 28ch; }
  .site-fan-disclaimer { grid-column: 1 / -1; font-size: 10px; line-height: 1.4; }
  .site-game-preview { gap: 12px; padding: 16px; }
  .site-game-preview img { width: 80px; height: 80px; max-width: 30%; border-radius: 14px; }
  .site-game-preview p { font-size: 22px; }
  .site-player:fullscreen, .site-player.is-expanded { height: 100dvh; aspect-ratio: auto; }
  .player-footer__inner { padding: 12px; }
  .player-footer__left h1 { font-size: 18px; }
  .description__wrapper, .page-description { padding: 18px; }
  .section-indent, .section-indent-sm { margin-top: 28px; }
  .grid-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .footer__wrapper { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 10px; padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)) !important; text-align: left; }
  .footer__wrapper > a img { width: 24px; height: 24px; }
  .footer__copyright { font-size: 12px; }
  .footer__list { grid-column: 1 / -1; justify-content: center; gap: 0 12px; }
  .footer__link { font-size: 12px; }
  .footer__item { margin: 0 !important; }
}
