/* Login, sign-up and password pages (WordPress, vk-auth): the V4 look of the local preview. The navy page with its tile
   edge, the violet card, dark fields and the gold button, the same as the forms. Loaded only on those pages by
   mu-plugins/vk-auth-v4.php. The page's own styles come later in the page, so every rule here starts with
   html body.vk-auth-canvas to win over them. */

@font-face {
  font-family: "VK Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/_next/static/vk4/abe4e9739f/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "VK Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/_next/static/vk4/abe4e9739f/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html body.vk-auth-canvas { margin: 0; background: #17143f; }
html body.vk-auth-canvas .vkb-page { padding-bottom: 48px; background: url(/_next/static/vk4/abe4e9739f/seam-tiles-navy.svg) center bottom -8px / 1440px 45px repeat-x, #17143f; color: #fff; font-family: "VK Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html body.vk-auth-canvas .vkb-page :is(input, button, select, textarea) { font-family: inherit; }

/* The card */
html body.vk-auth-canvas .vkb-card { border: 1px solid #4f49ad; border-radius: 8px; background: #262160; color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 8px 14px rgba(10, 8, 40, .35), 0 34px 60px -8px rgba(10, 8, 40, .7); }
/* The logo larger, in its place on the left; the title a little smaller under it */
html body.vk-auth-canvas .vkb-brand { gap: 12px; }
html body.vk-auth-canvas .vkb-brand-name { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
html body.vk-auth-canvas .vkb-brand-logo { width: 44px; height: 44px; border-radius: 10px; }
html body.vk-auth-canvas .vkb-h1 { margin-top: 22px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
html body.vk-auth-canvas .vkb-label { color: #fff; font-size: 14px; font-weight: 500; }
html body.vk-auth-canvas .vkb-check, html body.vk-auth-canvas .vkb-terms { color: #fff; }
html body.vk-auth-canvas .vkb-check input { accent-color: #6c67de; }

/* Fields */
html body.vk-auth-canvas .vkb-input { border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; background: #17143f; color: #fff; padding: 12px 16px; font-size: 14px; }
html body.vk-auth-canvas .vkb-input::placeholder { color: #a9a6d0; }
html body.vk-auth-canvas .vkb-input:focus { border-color: #f2b84b; background: #17143f; box-shadow: 0 0 0 1px #f2b84b; }
html body.vk-auth-canvas .vkb-input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: inset 0 0 0 100px #17143f; caret-color: #fff; }

/* The three buttons, gold, Google and Discord: the same height, the card's full width and the same corners. Google's
   own button is 40 px high with 4 px corners and can't be changed, so the other two follow it; vk-auth-v4.php gives it
   the card's width. Gold and Discord stay still when hovered */
html body.vk-auth-canvas .vkb-btn { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 4px; background: #f2b84b; color: #17143f; font-size: 14px; font-weight: 600; padding: 0 24px; box-shadow: none; }
html body.vk-auth-canvas .vkb-btn:hover { background: #e5a93a; transform: none; box-shadow: none; }
html body.vk-auth-canvas .vkb-gis { min-height: 40px; }
html body.vk-auth-canvas .vkb-dc { width: 100% !important; max-width: none !important; height: 40px !important; margin: 10px 0 0 !important; border-radius: 4px !important; background: #5865f2 !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important; }
html body.vk-auth-canvas .vkb-dc:hover { background: #4752c4 !important; }
/* Discord's real logo: the button's own drawing came out lumpy, so it is hidden and the brand mark takes its place */
html body.vk-auth-canvas .vkb-dc svg { display: none; }
html body.vk-auth-canvas .vkb-dc::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23fff%22 d=%22M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z%22/%3E%3C/svg%3E") center / contain no-repeat; }

/* Links and the "ou" line */
html body.vk-auth-canvas .vkb-card .vkb-link, html body.vk-auth-canvas .vkb-card .vkb-link:hover { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
html body.vk-auth-canvas .vkb-or { color: #fff; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
html body.vk-auth-canvas .vkb-or::before, html body.vk-auth-canvas .vkb-or::after { background: rgba(255, 255, 255, .4); }
html body.vk-auth-canvas .vkb-below .vkb-link, html body.vk-auth-canvas .vkb-below .vkb-link:hover { color: #fff; font-weight: 500; text-decoration: none; }
html body.vk-auth-canvas .vkb-below .vkb-link-strong { font-weight: 600; }
html body.vk-auth-canvas .vkb-below .vkb-link:hover { text-decoration: underline; }
html body.vk-auth-canvas .vkb-below, html body.vk-auth-canvas .vkb-below-inline { color: #c9c7e6; }
html body.vk-auth-canvas .vkb-footer { color: #c9c7e6; }
html body.vk-auth-canvas .vkb-footer a, html body.vk-auth-canvas .vkb-footer a:hover { color: #fff; font-weight: 500; }
html body.vk-auth-canvas .vkb-footer span { opacity: 1; }

/* Messages, readable on the violet card */
html body.vk-auth-canvas .vk-msg { border-radius: 8px; }
html body.vk-auth-canvas .vk-msg-error { border: 1px solid rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .14); color: #fecaca; }
html body.vk-auth-canvas .vk-msg-success { border: 1px solid rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .14); color: #a7f3d0; }

/* Sign-up's left side: written for a light page, so its words and icons change here */
html body.vk-auth-canvas .vkb-promo-title, html body.vk-auth-canvas .vkb-feats li { color: #fff; }
html body.vk-auth-canvas .vkb-promo-title { font-weight: 700; }
html body.vk-auth-canvas .vkb-promo-bar { border-radius: 2px; background: #f2b84b; }
html body.vk-auth-canvas .vkb-feat-ic { background: none; color: #f2b84b; }
html body.vk-auth-canvas :is(.vkb-mock-card, .vkb-mock-toast) { border: 1px solid #4f49ad; border-radius: 8px; background: #262160; box-shadow: 0 8px 14px rgba(10, 8, 40, .35), 0 24px 44px -8px rgba(10, 8, 40, .6); }
html body.vk-auth-canvas :is(.vkb-mock-title, .vkb-mock-v, .vkb-mock-amt, .vkb-toast-t) { color: #fff; }
html body.vk-auth-canvas :is(.vkb-mock-k, .vkb-toast-a) { color: #c9c7e6; }
html body.vk-auth-canvas .vkb-mock-cell { border-radius: 6px; background: rgba(255, 255, 255, .08); }
html body.vk-auth-canvas .vkb-mock-total { border-color: rgba(255, 255, 255, .2); }
html body.vk-auth-canvas .vkb-mock-badge { border-radius: 4px; background: rgba(242, 184, 75, .16); color: #f2b84b; }
html body.vk-auth-canvas .vkb-mock-ic { border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; }
html body.vk-auth-canvas .vkb-toast-ic { border-radius: 6px; background: rgba(242, 184, 75, .16); color: #f2b84b; }

/* The theme's "back to top" link has no styles on these pages, so it showed as loose text. The Discord bubble stays
   away too: the card has its own Discord button */
html body.vk-auth-canvas #ast-scroll-top, html body.vk-auth-canvas #discord-bubble-wrap { display: none; }

/* ===== Sign-up: a split page. On the left, on violet: the title, the three steps, our characters and three numbers
   (written by vk-auth-v4.php in the page's language). On the right, on navy: the card with its own header (title and
   the "Connexion" button). One strip of squares runs along the whole bottom: darker under the violet. On phones the
   card comes first and the left side follows it. */
html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-page { position: relative; padding: 0; background: #17143f; }
html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-main { padding: 0; align-items: stretch; }
html body.vk-auth-canvas .vkb-view-register .vkb-grid { max-width: none; min-height: 100svh; gap: 0; align-items: stretch; grid-template-columns: minmax(0, 1fr); }
html body.vk-auth-canvas .vkb-view-register .vkb-onecol { order: 1; justify-self: center; align-self: center; max-width: 472px; padding: 96px 16px 64px; }
html body.vk-auth-canvas .vkb-view-register .vk4-promo { order: 2; display: flex; flex-direction: column; justify-content: center; padding: 36px 16px 81px; background: #262160; }
html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-footer { padding: 0 16px 61px; background: #262160; }
@media (min-width: 1024px) {
  html body.vk-auth-canvas .vkb-view-register .vkb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html body.vk-auth-canvas .vkb-view-register .vk4-promo { order: 0; padding: 48px 24px 93px; }
  html body.vk-auth-canvas .vkb-view-register .vkb-onecol { padding: 96px 16px 120px; }
  html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-footer { position: absolute; left: 50%; right: 0; bottom: 70px; padding: 0 16px; background: none; }
}
/* The strip of squares, lined up from the page's left edge on both sides */
html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-page::before,
html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-page::after { content: ""; position: absolute; left: 0; bottom: 0; height: 45px; pointer-events: none; }
html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-page::after { right: 0; background: url(/_next/static/vk4/abe4e9739f/seam-tiles-violet.svg) left bottom -8px / 1440px 45px repeat-x; }
@media (min-width: 1024px) {
  html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-page::after { background-image: url(/_next/static/vk4/abe4e9739f/seam-tiles-navy.svg); }
  html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-page::before { z-index: 1; width: 50%; background: url(/_next/static/vk4/abe4e9739f/seam-tiles-violet.svg) left bottom -8px / 1440px 45px repeat-x, #262160; }
}

/* The card: the logo above it, a header row with the title and the "Connexion" button, then the form */
html body.vk-auth-canvas .vkb-view-register .vkb-card { position: relative; padding: 0 32px 30px; }
html body.vk-auth-canvas .vkb-view-register .vkb-brand { position: absolute; top: -64px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
html body.vk-auth-canvas .vk4-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -32px 22px; padding: 20px 32px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
html body.vk-auth-canvas .vk4-head .vkb-h1 { margin: 0; font-size: 20px; }
html body.vk-auth-canvas .vk4-head .vkb-link, html body.vk-auth-canvas .vk4-head .vkb-link:hover { flex: 0 0 auto; color: #f2b84b; font-weight: 600; text-decoration: none; }
html body.vk-auth-canvas .vk4-head .vkb-link:hover { text-decoration: underline; }
html body.vk-auth-canvas .vkb-view-register .vkb-below-inline { display: none; }
@media (max-width: 639.98px) {
  html body.vk-auth-canvas .vkb-view-register .vkb-card { padding: 0 26px 26px; }
  html body.vk-auth-canvas .vk4-head { margin: 0 -26px 20px; padding: 18px 26px; }
}
@media (max-width: 520px) {
  html body.vk-auth-canvas .vkb-view-register .vkb-card { padding: 0 20px 24px; }
  html body.vk-auth-canvas .vk4-head { margin: 0 -20px 18px; padding: 16px 20px; }
}

/* The left side */
html body.vk-auth-canvas .vk4-promo > * { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
html body.vk-auth-canvas .vk4-title { margin-top: 0; margin-bottom: 0; color: #fff; text-align: center; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.02em; }
html body.vk-auth-canvas .vk4-title em { color: #f2b84b; font-style: normal; }
html body.vk-auth-canvas .vk4-bar { display: block; width: 48px; max-width: 48px; height: 4px; margin-top: 12px; border-radius: 2px; background: #f2b84b; }
html body.vk-auth-canvas .vk4-steps { display: grid; gap: 8px; margin-top: 22px; margin-bottom: 0; padding: 0; list-style: none; counter-reset: vk4s; }
html body.vk-auth-canvas .vk4-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #4f49ad; border-radius: 8px; background: #17143f; counter-increment: vk4s; }
html body.vk-auth-canvas .vk4-steps li::before { content: counter(vk4s); flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: #f2b84b; color: #17143f; font-size: 12px; font-weight: 700; }
html body.vk-auth-canvas .vk4-steps i { flex: 0 0 auto; width: 34px; height: 34px; background: center / contain no-repeat; }
html body.vk-auth-canvas .vk4-steps b { display: block; color: #fff; font-size: 14px; line-height: 20px; }
html body.vk-auth-canvas .vk4-steps span { display: block; color: #c9c7e6; font-size: 12.5px; line-height: 18px; }
html body.vk-auth-canvas .vk4-scene { margin-top: 22px; aspect-ratio: 560 / 136; background: url(/_next/static/vk4/abe4e9739f/fight-ko.svg) center / contain no-repeat; }
/* Phones: the same side room as the login card, so Google's button (sized for it) fits this card too */
@media (max-width: 520px) {
  html body.vk-auth-canvas .vkb-view-register .vkb-onecol { padding-left: 12px; padding-right: 12px; }
}
/* The four numbers: four equal tiles in one row, everything centred and on the same lines: drawing, gold number, two-line label */
html body.vk-auth-canvas .vk4-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; text-align: center; }
html body.vk-auth-canvas .vk4-stats div, html body.vk-auth-canvas .vk4-stats div + div { display: flex; flex-direction: column; align-items: center; padding: 12px 6px 10px; border: 1px solid #4f49ad; border-radius: 8px; background: #17143f; }
html body.vk-auth-canvas .vk4-stats div::before { content: ""; flex: 0 0 auto; width: 32px; height: 32px; margin-bottom: 6px; background: url(/_next/static/vk4/abe4e9739f/ill-pieces-nuit.svg) center / contain no-repeat; }
html body.vk-auth-canvas .vk4-stats div:nth-child(2)::before { background-image: url(/_next/static/vk4/abe4e9739f/ill-avis-nuit.svg); }
html body.vk-auth-canvas .vk4-stats div:nth-child(3)::before { background-image: url(/_next/static/vk4/abe4e9739f/ill-casque-nuit.svg); }
html body.vk-auth-canvas .vk4-stats div:nth-child(4)::before { background-image: url(/_next/static/vk4/abe4e9739f/ill-monde.svg); }
html body.vk-auth-canvas .vk4-stats b { color: #f2b84b; font-size: 18px; line-height: 24px; letter-spacing: -.02em; }
html body.vk-auth-canvas .vk4-stats b small { color: #f2b84b; font-size: 12px; opacity: .75; }
html body.vk-auth-canvas .vk4-stats span { min-height: 32px; margin-top: 2px; color: #c9c7e6; font-size: 11.5px; line-height: 16px; }
@media (max-width: 420px) {
  html body.vk-auth-canvas .vk4-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.vk-auth-canvas .vk4-stats div:nth-child(n+3) { border-top: 1px solid #4f49ad; }
  html body.vk-auth-canvas .vk4-stats div:nth-child(3) { border-left: 1px solid #4f49ad; }
}
/* No footer on the sign-up page */
html body.vk-auth-canvas:has(.vkb-inner[data-tab="register"]) .vkb-footer { display: none; }
/* vk-auth's own left side stays hidden for the moment before it is replaced, so it never flashes */
html body.vk-auth-canvas .vkb-view-register .vkb-promo:not(.vk4-promo) > * { visibility: hidden; }
