/* Portal shell. The game entry and runtime do not load this stylesheet. */
:root {--portal-sidebar-width:232px;--portal-header-height:72px}
:root[data-portal-layout=sidebar] {scroll-padding-top:0}
@media(min-width:1024px) {
  html[data-portal-layout=sidebar] body {padding-left:var(--portal-sidebar-width)}
  .portal-layout .header-inner>.brand,.portal-layout .menu-toggle {display:none}
}
.portal-sidebar {position:fixed;inset:0 auto 0 0;z-index:70;width:var(--portal-sidebar-width);display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--line);box-shadow:7px 0 28px #46344305;padding:0 18px;overflow:hidden}
.sidebar-top {height:91px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.portal-sidebar .brand {gap:9px}
.portal-sidebar .brand img {width:36px;height:41px}
.portal-sidebar .brand-name {font-size:15px;letter-spacing:-.04em}
.portal-sidebar .brand-name small {font-size:6px;letter-spacing:.1em;display:block}
.sidebar-close {display:none;width:36px;height:36px;flex-shrink:0;border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:3px;font:400 27px/1 var(--sans)}
.sidebar-menu-title {font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:25px 11px 13px;flex-shrink:0}
.portal-sidebar .main-nav {display:flex;position:static;inset:auto;flex-direction:column;align-items:stretch;gap:4px;padding:0 0 14px;margin:0;border:0;border-radius:0;background:none;box-shadow:none;max-height:none;min-height:0;overflow:auto;flex:1;scrollbar-width:thin;overscroll-behavior:contain;font-family:var(--sans)}
.portal-sidebar .main-nav .portal-nav-link {position:relative;display:flex;align-items:center;gap:11px;min-height:50px;padding:8px 13px;color:var(--muted);border:1px solid transparent;border-radius:4px;font-size:13px;font-weight:500;line-height:1.45;transition:background .2s,color .2s,border-color .2s;flex-shrink:0}
.portal-sidebar .main-nav .portal-nav-link:after {display:none}
.portal-sidebar .main-nav .portal-nav-link:before {content:'';position:absolute;left:0;top:10px;bottom:10px;width:2px;background:var(--gold);transform:scaleY(.3);opacity:0;transition:transform .22s ease,opacity .22s ease}
.nav-item-icon {width:32px;height:32px;flex-shrink:0;object-fit:contain;transition:transform .2s ease}
.portal-nav-link:hover .nav-item-icon {transform:translateY(-1px)}
.nav-item-label {min-width:0}
.portal-sidebar .main-nav .portal-nav-link:hover {color:var(--ink);background:var(--soft)}
.portal-sidebar .main-nav .portal-nav-link[aria-current] {background:var(--paper);border-color:var(--line);color:var(--ink);font-weight:600}
.portal-sidebar .main-nav .portal-nav-link[aria-current]:before {opacity:1;transform:scaleY(1)}
.portal-sidebar .main-nav .portal-nav-link:focus-visible {outline-offset:-2px}
.portal-sidebar .main-nav [data-nav-key=account] {margin-top:12px;border-top-color:var(--line);padding-top:14px;border-radius:0 0 4px 4px}
.discord-mark {width:24px;height:18px;object-fit:contain;flex-shrink:0}
.portal-sidebar .main-nav .portal-nav-community {font-size:12px;margin-top:7px;padding:13px 10px;gap:10px;border-color:var(--line);background:var(--paper)}
.portal-nav-community .discord-mark {width:34px;height:32px;padding:7px;background:#5865f2;border-radius:7px}
.portal-nav-community strong {display:block;font-size:12px;font-weight:600;color:var(--ink)}
.portal-nav-community small {display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}
.nav-external {margin-left:auto;color:var(--gold-deep);font-size:13px}
.sidebar-footer {flex-shrink:0;border-top:1px solid var(--line);padding:19px 4px 17px;background:var(--surface)}
.sidebar-play {display:flex;width:100%;justify-content:space-between;min-height:46px;font-size:12px;padding:13px 17px}
.sidebar-settings {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px}
.sidebar-settings .language-switch {gap:3px}
.sidebar-settings .language-switch a {padding:4px;font-size:9px;min-height:30px}
.sidebar-settings .language-switch svg {width:18px;height:13px}
.sidebar-settings .language-switch a span {display:block}
.sidebar-settings .portal-theme-toggle {font-size:11px;min-height:30px;padding:5px 0}
.sidebar-settings .portal-theme-options {left:0;right:auto;top:auto;bottom:39px;width:188px}
.sidebar-motion {display:block;background:transparent;border:0;border-radius:2px;padding:7px 0;margin-top:5px;min-height:31px;font-size:10px;color:var(--muted);text-align:left;cursor:pointer}
.sidebar-motion:hover {color:var(--gold-deep)}
.sidebar-motion[disabled] {cursor:default}
.portal-layout .site-header {height:var(--portal-header-height);z-index:40}
.portal-layout .header-inner {width:calc(100% - 56px);gap:16px}
.portal-layout .header-actions {margin-left:auto;gap:10px}
.portal-layout .header-actions>.account-nav {display:none}
.header-languages {flex-shrink:0;gap:2px}
.header-languages a {display:flex;align-items:center;gap:3px;min-height:34px;padding:5px 4px;font-size:8px}
.header-languages svg {width:18px;height:13px}
.portal-top-nav {display:flex;align-items:stretch;gap:clamp(12px,1.35vw,22px);align-self:stretch;min-width:0;flex:1;white-space:nowrap;font-size:12px;font-weight:500;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior-x:contain}
.portal-top-link {position:relative;display:flex;align-items:center;min-height:44px;color:var(--muted);transition:color .2s ease;flex-shrink:0}
.portal-top-link:after {content:'';position:absolute;bottom:17px;left:0;right:0;height:2px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
.portal-top-link:hover,.portal-top-link[aria-current] {color:var(--ink)}
.portal-top-link:hover:after,.portal-top-link[aria-current]:after {transform:scaleX(1)}
.portal-top-link:focus-visible {outline-offset:-2px}
.header-discord {display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 13px;min-height:40px;background:#5865f2;border:1px solid #5865f2;border-radius:3px;color:#fff;font-size:11px;font-weight:600;white-space:nowrap;transition:background .2s,box-shadow .2s}
.header-discord .discord-mark {width:21px;height:16px}
.header-discord:hover {background:#4752c4;border-color:#4752c4;box-shadow:0 4px 12px #5865f229}
.portal-menu-backdrop {position:fixed;inset:0;z-index:60;background:#1f19255c;backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .24s ease,visibility 0s linear .24s}
.portal-layout .button-gold {transition:box-shadow .25s ease,transform .2s ease,border-color .2s ease}
.portal-layout .button-gold:active {transform:translateY(0);box-shadow:inset 0 0 0 3px #fff2ce24,0 2px 8px #0001}
.portal-layout .shortcut-icon:before {transition:transform .22s ease}
.portal-layout .journey-link:hover .shortcut-icon:before {transform:translateY(-3px) rotate(-3deg)}
.portal-layout .journey-link:focus-visible {outline-offset:3px}
.portal-layout section[id] {scroll-margin-top:calc(var(--portal-header-height) + 24px)}

/* A community invitation, using the original Discord symbol and the site's type. */
.portal-layout .discord-section {grid-template-columns:104px minmax(0,1fr) auto;gap:30px;padding:38px;border:1px solid var(--line);border-top:2px solid var(--gold);background:var(--surface);margin-block:60px}
.discord-identity {display:flex;flex-direction:column;align-items:flex-start;gap:15px;font-size:15px;font-weight:700;letter-spacing:-.02em}
.portal-layout .discord-symbol {display:grid;place-items:center;width:76px;height:64px;padding:17px;background:#5865f2;border:0;border-radius:10px}
.discord-symbol .discord-mark {width:100%;height:100%}
.portal-layout .discord-section h2 {font-size:30px;line-height:1.2;max-width:480px}
.portal-layout .discord-section p:not(.eyebrow) {font-size:13px;line-height:1.85;margin-top:14px;max-width:520px}
.discord-topics {display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;margin:21px 0 0;list-style:none;font-size:11px;color:var(--muted)}
.discord-topics li {display:flex;align-items:center;gap:8px}
.discord-topics li:before {content:'';width:3px;height:3px;border-radius:50%;background:var(--gold);flex-shrink:0}
.discord-actions {display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:184px}
.portal-layout .discord-actions .button {min-height:46px;font-size:12px;gap:18px;padding-inline:20px;grid-column:auto}
.portal-layout .discord-section .discord-open-note {font-size:10px;margin:0;color:var(--muted);line-height:1.6}
@media(max-width:1279px) {
  .portal-layout .discord-section {grid-template-columns:88px minmax(0,1fr);gap:20px 28px;padding:30px}
  .discord-identity {grid-row:1/3;align-self:start}
  .discord-actions {grid-column:2;max-width:none;flex-direction:row;align-items:center;gap:18px}
  .portal-layout .discord-section .discord-open-note {max-width:160px}
}
@media(min-width:1024px) and (max-width:1279px) {
  :root {--portal-sidebar-width:218px}
  .portal-top-nav {font-size:11px;gap:14px}
  .portal-layout .header-inner {width:calc(100% - 40px);gap:13px}
  .portal-layout .header-actions {gap:8px}
  .portal-layout .header-play {padding-inline:12px;font-size:11px}
  .header-discord {padding-inline:10px;font-size:10px;gap:6px}
  .portal-layout .hero {width:calc(100% - 56px);gap:28px}
  .portal-layout .hero-wordmark {font-size:59px}
  .portal-layout .hero h2 {font-size:27px}
  .portal-layout .hero-actions {gap:15px}
  .portal-layout .hero-actions .button {font-size:12px;padding-inline:18px}
  .portal-layout .hero-actions .button-glass {padding-inline:0}
  .portal-layout .hero-note {font-size:8px;letter-spacing:.06em}
  .portal-layout .classes-section>.container {grid-template-columns:1fr;gap:30px}
  .portal-layout .classes-section .section-heading.centered {padding-top:0;max-width:600px}
  .portal-layout .classes-section .centered .section-intro {max-width:580px}
  .portal-layout .guide-section>.container {gap:24px 40px}
  .portal-layout .ranking-layout {gap:35px}
  .portal-layout .ranking-layout,.portal-layout .account-promotion {grid-template-columns:minmax(0,.8fr) minmax(0,1fr)}
}
@media(max-width:1023px) {
  :root {--portal-header-height:112px}
  .portal-layout .header-inner {display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:66px 46px;width:calc(100% - 36px);gap:0 13px}
  .portal-layout .header-inner>.brand {display:flex;margin-right:auto}
  .portal-top-nav {grid-column:1/3;grid-row:2;gap:24px;border-top:1px solid var(--line);font-size:12px}
  .header-languages {grid-column:3;grid-row:2;align-self:stretch;justify-content:flex-end;border-top:1px solid var(--line);gap:3px}
  .header-languages a {padding:5px 4px;min-width:25px}
  .header-languages a span {display:none}
  .portal-top-link:after {bottom:5px}
  .portal-layout .menu-toggle {display:grid;width:37px;height:37px;min-height:37px;padding:7px;flex-shrink:0;border:1px solid var(--line);border-radius:3px}
  .portal-layout .header-actions {margin-left:0;flex-shrink:0}
  .portal-sidebar {width:min(296px,calc(100vw - 40px));transform:translateX(-105%);visibility:hidden;transition:transform .28s cubic-bezier(.22,.75,.25,1),visibility 0s linear .28s;box-shadow:15px 0 60px #0002}
  .portal-sidebar .sidebar-close {display:grid;place-items:center}
  .sidebar-top {height:79px}
  .sidebar-menu-title {padding-top:22px}
  .portal-sidebar .brand-name {font-size:16px;max-width:none}
  .portal-sidebar .main-nav .portal-nav-link {font-size:14px;min-height:45px}
  .portal-sidebar .sidebar-motion {font-size:11px}
  .portal-drawer-open .portal-sidebar {transform:none;visibility:visible;transition:transform .28s cubic-bezier(.22,.75,.25,1)}
  .portal-drawer-open .portal-menu-backdrop {opacity:1;visibility:visible;pointer-events:auto;transition:opacity .24s ease}
  :root.portal-drawer-open,:root.portal-drawer-open body {overflow:hidden}
}
@media(max-width:600px) {
  .header-discord {width:35px;min-height:35px;padding:7px}
  .header-discord>span {display:none}
  .header-discord .discord-mark {width:20px;height:15px}
  .portal-layout .header-actions {gap:6px}
  .portal-layout .discord-section {grid-template-columns:1fr;padding:26px 23px;gap:24px;margin-block:42px}
  .discord-identity {grid-row:auto;flex-direction:row;align-items:center;gap:14px}
  .portal-layout .discord-symbol {width:55px;height:46px;padding:12px;border-radius:7px}
  .portal-layout .discord-section h2 {font-size:28px}
  .discord-actions {grid-column:auto;flex-direction:column;align-items:flex-start;gap:12px}
  .portal-layout .discord-section .discord-open-note {max-width:none}
  .discord-topics {gap:10px 16px;margin-top:18px}
}
@media(max-width:480px) {
  .portal-layout .header-inner {width:calc(100% - 28px);gap:10px}
  .portal-layout .header-inner>.brand {gap:7px}
  .portal-layout .brand-name {font-size:13px}
  .portal-layout .header-play {font-size:10px;padding:9px 12px}
  .portal-layout .menu-toggle {width:33px;height:35px;min-height:35px;padding:6px}
}
@media(max-width:350px) {
  .portal-layout .header-inner {width:calc(100% - 24px);gap:8px}
  .portal-layout .header-inner>.brand .brand-name {font-size:11px;max-width:85px}
  .portal-layout .header-inner>.brand img {width:24px;height:29px}
  .portal-layout .header-play {padding-inline:9px}
}
@media(max-height:780px) {
  .sidebar-top {height:71px}
  .sidebar-menu-title {padding-top:14px;padding-bottom:9px}
  .sidebar-footer {padding-top:13px;padding-bottom:9px}
  .sidebar-settings {margin-top:11px}
  .portal-sidebar .main-nav .portal-nav-link {min-height:44px;padding-block:6px}
}
.portal-motion-paused .portal-sidebar,.portal-motion-paused .portal-menu-backdrop,.portal-motion-paused .portal-nav-link,.portal-motion-paused .portal-nav-link:before,.portal-motion-paused .nav-item-icon,.portal-motion-paused .portal-top-link,.portal-motion-paused .portal-top-link:after,.portal-motion-paused .header-discord,.portal-motion-paused .button-gold,.portal-motion-paused .shortcut-icon:before {animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce) {
  .portal-sidebar,.portal-menu-backdrop,.portal-nav-link,.portal-nav-link:before,.nav-item-icon,.portal-top-link,.portal-top-link:after,.header-discord,.portal-layout .button-gold,.portal-layout .shortcut-icon:before {animation:none!important;transition:none!important}
}
