@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Thin.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-ExtraLight.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Light.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/IBMPlexSans-Bold.ttf") format("truetype");
}

:root {
  --bg-1: #14080d;
  --bg-2: #24111a;
  --bg-3: #38202d;
  --maroon: #85263a;
  --maroon-dark: #641d2c;
  --blue: #2f4773;
  --blue-dark: #223557;
  --ink: #282322;
  --paper: #fbfaf8;
  --paper-deep: #f2efea;
  --card: rgba(255, 255, 255, 0.9);
  --card-border: rgba(48, 37, 31, 0.1);
  --text-main: #f7efe8;
  --text-soft: rgba(247, 239, 232, 0.84);
  --text-dark: #312b28;
  --text-dark-soft: rgba(49, 43, 40, 0.72);
  --footer-text: #b6b8bd;
  --accent-metal: #d7c2a1;
  --accent-metal-strong: #e2d2b6;
  --content-width: 1180px;
  --hero-width: 1020px;
  --radius: 22px;
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 16px 34px rgba(21, 15, 12, 0.12);
  --focus: 0 0 0 3px rgba(255, 248, 242, 0.9), 0 0 0 6px rgba(133, 38, 58, 0.35);
  --page-background:
    radial-gradient(circle at 12% 18%, rgba(195, 88, 109, 0.18), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(90, 118, 173, 0.12), transparent 22%),
    radial-gradient(circle at 50% 115%, rgba(255, 220, 196, 0.08), transparent 30%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 42%, var(--bg-3) 100%);
  --header-band-bg:
    radial-gradient(circle at -6% 36%, rgba(133, 46, 62, 0.035), transparent 30%),
    radial-gradient(circle at 106% 18%, rgba(49, 66, 94, 0.035), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 253, 0.998) 0%, rgba(254, 251, 247, 0.996) 44%, rgba(250, 246, 241, 0.994) 100%);
  --blob-1-bg: rgba(191, 77, 98, 0.22);
  --blob-2-bg: rgba(90, 118, 173, 0.16);
  --blob-3-bg: rgba(255, 216, 188, 0.12);
  --site-footer-border: rgba(255, 255, 255, 0.06);
  --font-display: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 100;
  --display-weight-strong: 300;
  --display-spacing: -0.03em;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--text-main);
  background: var(--page-background);
  overflow-x: hidden;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
  flex: 1 0 auto;
  min-width: 0;
}

body.page-practice main {
  display: flex;
  flex-direction: column;
}

body.page-gaming {
  --focus: 0 0 0 3px rgba(228, 255, 234, 0.94), 0 0 0 6px rgba(95, 225, 132, 0.35);
  --page-background:
    radial-gradient(circle at 16% 16%, rgba(95, 225, 132, 0.14), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(65, 255, 157, 0.08), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(144, 255, 189, 0.08), transparent 30%),
    linear-gradient(135deg, #061008 0%, #09150e 40%, #102116 100%);
  --header-band-bg:
    linear-gradient(180deg, rgba(9, 23, 14, 0.94) 0%, rgba(7, 19, 12, 0.92) 44%, rgba(4, 11, 7, 0.9) 100%);
  --blob-1-bg: rgba(59, 174, 94, 0.18);
  --blob-2-bg: rgba(117, 255, 163, 0.11);
  --blob-3-bg: rgba(171, 255, 196, 0.08);
  --site-footer-border: rgba(149, 255, 177, 0.08);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 12px;
}

.background,
.grain,
.vignette {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  pointer-events: none;
}

.background {
  z-index: 0;
  bottom: 0;
  overflow: hidden;
}

.grain {
  z-index: 1;
  bottom: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85) 0.45px, transparent 0.6px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.65) 0.45px, transparent 0.6px);
  background-size: 28px 28px, 30px 30px;
  mix-blend-mode: soft-light;
}

.vignette {
  z-index: 2;
  bottom: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.18) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  mix-blend-mode: screen;
}

.blob-1 {
  width: 34rem;
  height: 34rem;
  top: -8rem;
  left: -6rem;
  background: var(--blob-1-bg);
}

.blob-2 {
  width: 28rem;
  height: 28rem;
  top: 16%;
  right: -7rem;
  background: var(--blob-2-bg);
}

body:not(.page-home) .blob-2 {
  top: 3%;
}

.blob-3 {
  width: 30rem;
  height: 30rem;
  bottom: -10rem;
  left: 22%;
  background: var(--blob-3-bg);
}

.shell {
  position: relative;
  z-index: 3;
  width: min(var(--content-width), calc(100% - 64px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fffaf6;
  color: #231518;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

