@font-face {
  font-family: Rubik;
  src: url("/fonts/rubik-regular.woff") format("woff");
  font-weight: 400 599;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("/fonts/rubik-bold.woff") format("woff");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #15161a;
  --panel: #141519;
  --soft: #1b1c21;
  --line: #2b2c32;
  --text: #f5f4f5;
  --mute: #acaeb9;
  --dim: #898c9a;
  --red: #ff404b;
  --red-strong: #ee303e;
  --red-soft: #32191e;
  --max: 1420px;
  --gutter: clamp(20px, 4.25vw, 76px);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Rubik, Inter, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scrollbar-gutter: stable;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button,
a,
input,
textarea,
select,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid #ff707a;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.19;
  letter-spacing: -0.035em;
}
button,
a {
  touch-action: manipulation;
}
svg {
  flex-shrink: 0;
  stroke-width: 1.75;
}
::selection {
  background: #8b262e;
  color: #fff;
}
.shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.skip {
  position: fixed;
  z-index: 99;
  left: 10px;
  top: -80px;
  background: var(--red);
  padding: 12px;
  border-radius: 6px;
}
.skip:focus {
  top: 10px;
}
.header {
  border-bottom: 1px solid #25262b;
  background: #101114;
  z-index: 5;
  position: relative;
}
.header-inner,
.main,
.footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(30px, 5.6vw, 92px);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  color: #f5f4f4;
  white-space: nowrap;
}
.brand svg {
  color: var(--red);
  margin-right: 2px;
}
.brand > span {
  letter-spacing: -0.066em;
  font-style: italic;
  font-size: 26px;
  font-weight: 900;
}
.brand > b {
  align-self: center;
  display: inline-flex;
  align-items: center;
  border: 1px solid #713438;
  color: #ff5a63;
  border-radius: 4px;
  padding: 3px 4px 2px;
  font: 700 0.67rem/1 var(--mono);
  letter-spacing: 0.015em;
  margin-left: 1px;
}
.main-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: clamp(18px, 2.35vw, 40px);
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: #aeb0ba;
  font-size: 0.91rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s;
}
.main-nav a:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a.active,
.main-nav a:hover {
  color: white;
}
.main-nav a.active:after {
  transform: scaleX(1);
}
.main-nav a.active svg {
  color: var(--red);
}
.head-actions {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
}
.header-login,
.primary,
.secondary,
.filter-btn,
.account-trigger,
.icon-btn,
.text-btn,
.account-menu a,
.account-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.18s;
}
.header-login,
.primary {
  color: #fff;
  background: #e73441;
  border: 1px solid #ef4450;
  padding: 11px 19px;
  min-height: 42px;
}
.header-login {
  min-height: 39px;
  padding: 9px 18px;
}
.header-login:hover,
.primary:hover {
  background: #fb4754;
  border-color: #ff606a;
}
.primary:active,
.header-login:active {
  transform: translateY(1px);
}
.secondary,
.filter-btn,
.account-trigger,
.icon-btn {
  background: #1a1b20;
  color: #e4e4ea;
  border: 1px solid var(--line);
  padding: 10px 14px;
  min-height: 41px;
}
.secondary:hover,
.filter-btn:hover,
.icon-btn:hover,
.account-trigger:hover {
  background: #24252b;
  border-color: #43444e;
}
.compact {
  padding: 8px 13px;
  min-height: 36px;
}
.full {
  width: 100%;
}
.icon-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}
.account {
  position: relative;
}
.account-trigger {
  max-width: 190px;
  padding: 8px 11px;
  min-height: 36px;
}
.account-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  display: grid;
  width: 235px;
  background: #1a1b20;
  box-shadow: 0 16px 44px #0008;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 10;
  padding: 10px;
}
.account-menu strong {
  padding: 5px 6px 0;
  font-size: 0.96rem;
}
.account-menu small {
  padding: 0 6px 9px;
  color: var(--mute);
  font-size: 0.8rem;
}
.account-menu a,
.account-menu button {
  justify-content: flex-start;
  text-align: left;
  color: #d9d9df;
  padding: 9px;
  font-weight: 400;
}
.account-menu a:hover,
.account-menu button:hover {
  background: #26272e;
}
.main {
  padding-top: 28px;
  flex: 1;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 15px;
  background: #0b090b;
  border: 1px solid #3c262b;
  min-height: 268px;
  display: flex;
  align-items: center;
}
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-image {
  background: url("/art/arena-hero.webp") center 50% / cover no-repeat;
  animation: art-in 1.15s ease-out both;
}
.hero-shade {
  background: linear-gradient(
    90deg,
    rgba(14, 13, 16, 0.93) 0%,
    rgba(14, 13, 16, 0.75) 27%,
    rgba(14, 13, 16, 0.12) 56%,
    transparent 76%
  );
  z-index: -1;
}
.hero-content {
  padding: 29px clamp(24px, 3.25vw, 52px) 30px;
  position: relative;
  flex: 1;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 11px;
  flex-wrap: wrap;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #773039;
  border-radius: 4px;
  background: rgba(66, 19, 26, 0.76);
  color: #ff7881;
  font: 700 0.7rem/1 var(--mono);
  letter-spacing: 0.075em;
  text-transform: uppercase;
  padding: 6px 8px 5px;
  white-space: nowrap;
}
.live-badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5d67;
  box-shadow: 0 0 7px #ff3c5388;
}
.live-badge.open > span {
  animation: pulse 3s ease-in-out infinite;
}
.live-badge.paused,
.live-badge.closed {
  border-color: #6d6266;
  background: #292629;
  color: #ded4d8;
}
.live-badge.paused > span,
.live-badge.closed > span {
  background: #b9adb1;
  box-shadow: none;
}
.round-title,
.kicker {
  font: 500 0.73rem/1.4 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #b5aeb5;
}
.round-title {
  position: relative;
  padding-left: 15px;
}
.round-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  height: 11px;
  width: 1px;
  background: #595058;
}
.hero h1,
.page-head h1 {
  font-family: var(--sans);
  font-size: clamp(3.75rem, 5.8vw, 5.7rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.069em;
}
.hero h1 i,
.page-head h1 i {
  color: var(--red);
  font-style: normal;
  margin-left: 2px;
}
.hero-content > p {
  font-size: 1rem;
  line-height: 1.48;
  color: #cbc8d0;
  max-width: 535px;
  margin-top: 10px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 23px;
  color: #bbb8c1;
}
.hero-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.2;
}
.hero-stats b {
  color: #f1edf1;
  font-size: 0.9rem;
}
.hero-stats svg {
  width: 15px;
  height: 15px;
  color: #f25a64;
  margin-right: 3px;
}
.hero-stats > i {
  width: 1px;
  height: 13px;
  background: #4a3d42;
}
.hero-cross {
  height: 12px;
  width: 12px;
  position: absolute;
  opacity: 0.5;
}
.hero-cross.a {
  right: 18px;
  top: 17px;
}
.hero-cross.b {
  right: 18px;
  bottom: 17px;
}
.hero-cross:before,
.hero-cross:after {
  content: "";
  background: #d3a6a9;
  position: absolute;
}
.hero-cross:before {
  width: 11px;
  height: 1px;
  top: 5px;
}
.hero-cross:after {
  height: 11px;
  width: 1px;
  left: 5px;
}
.catalog {
  margin-top: 34px;
  margin-bottom: 44px;
}
.catalog-heading,
.section-title,
.catalog-tools,
.panel-heading,
.panel-heading h2,
.field-heading,
.task-meta,
.task-solves {
  display: flex;
  align-items: center;
}
.catalog-heading {
  justify-content: space-between;
  gap: 18px;
}
.section-title {
  gap: 12px;
}
.section-title h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  letter-spacing: -0.047em;
  font-weight: 700;
}
.section-mark {
  height: 21px;
  width: 4px;
  border-radius: 1px;
  background: var(--red);
  transform: skew(-13deg);
}
.number-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 27px;
  height: 24px;
  padding: 1px 7px 0;
  background: #1e1f25;
  border: 1px solid #33343c;
  border-radius: 6px;
  color: #bfc0ca;
  font: 600 0.78rem var(--mono);
}
.catalog-tools {
  gap: 9px;
}
.search {
  height: 39px;
  width: clamp(150px, 17vw, 245px);
  background: #141519;
  border: 1px solid #303137;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  color: #8e909d;
}
.search:focus-within {
  border-color: #9b424b;
}
.search input {
  background: transparent !important;
  border: 0 !important;
  outline: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  font-size: 0.86rem;
  min-width: 0;
}
.search input::placeholder {
  color: #92939f;
}
.filter-btn {
  min-height: 39px;
  padding: 8px 13px;
  background: #17181c;
  font-size: 0.85rem;
}
.filter-btn i {
  background: var(--red);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.filter-btn.set {
  border-color: #744047;
  color: #ffa0a6;
}
.category-tabs,
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 21px;
  margin-bottom: 21px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #44454f transparent;
}
.category-tabs button,
.admin-tabs a,
.editor-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 7px;
  color: #b7b8c3;
  border-radius: 7px;
  border: 1px solid #2b2c32;
  background: #141519;
  min-height: 35px;
  padding: 7px 13px;
  font: 500 0.83rem/1.2 var(--sans);
  transition:
    color 0.2s,
    border 0.2s,
    background 0.2s;
}
.category-tabs button:hover,
.admin-tabs a:hover,
.editor-switch button:hover {
  color: #fff;
  background: #222329;
}
.category-tabs .chosen,
.admin-tabs a.selected,
.editor-switch button.selected {
  background: #391d22;
  border-color: #79313c;
  color: #ff717b;
}
.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 15px;
  margin: -6px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.filter-row label {
  min-width: 142px;
}
.filter-row select {
  margin-top: 3px;
}
.filter-row .text-btn {
  padding: 12px 8px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.challenge-card {
  min-width: 0;
  border: 1px solid #303137;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
  animation: card-in 0.32s ease-out backwards;
}
.challenge-card:nth-child(3n + 2) {
  animation-delay: 0.045s;
}
.challenge-card:nth-child(3n) {
  animation-delay: 0.09s;
}
.challenge-card:hover {
  transform: translateY(-4px);
  border-color: #714249;
  box-shadow: 0 10px 25px #0004;
}
.card-art {
  height: clamp(88px, 7.6vw, 120px);
  position: relative;
  overflow: hidden;
  background-color: #16141a;
  background-size: cover;
  background-position: 50% 49%;
  border-bottom: 1px solid #ffffff0c;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 15px 17px;
}
.card-art:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #100d1050, transparent 70%);
}
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  background: #151519dd;
  color: #ff8a91;
  white-space: nowrap;
  font: 600 0.67rem/1 var(--mono);
  letter-spacing: 0.075em;
  border-radius: 4px;
  padding: 6px 7px 5px;
  align-self: flex-start;
}
.category-tag.forensics,
.row-symbol.forensics {
  color: #ff8388;
  background: #381a20e8;
}
.category-tag.crypto,
.row-symbol.crypto {
  color: #c897ff;
  background: #2c203de8;
}
.category-tag.osint,
.row-symbol.osint {
  color: #6fd9d7;
  background: #132e32eb;
}
.category-tag.logs,
.row-symbol.logs {
  color: #eab86e;
  background: #352a1bea;
}
.card-solved {
  display: flex;
  align-items: center;
  gap: 3px;
  position: absolute;
  right: 11px;
  bottom: 9px;
  background: #13372f;
  color: #9ae5c5;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}
.card-copy {
  padding: 17px 19px 15px;
  flex: 1;
}
.card-copy h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.43rem);
  font-weight: 700;
  letter-spacing: -0.036em;
  line-height: 1.18;
}
.card-copy p {
  color: #b5b5c0;
  font-size: 0.91rem;
  line-height: 1.48;
  margin-top: 7px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 19px 12px;
  border-top: 1px solid #2c2d33;
}
.points,
.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  font-size: 0.8rem;
  white-space: nowrap;
}
.points {
  color: #d9d9e0;
}
.points svg {
  color: var(--red);
  margin-right: 2px;
}
.points b {
  color: #f0eff2;
  font: 700 0.9rem var(--mono);
}
.difficulty {
  font-size: 0.77rem;
  color: #c2c2cb;
  gap: 7px;
}
.difficulty i {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.difficulty i b {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: #42434b;
}
.difficulty i b:nth-child(1) {
  height: 4px;
}
.difficulty i b:nth-child(2) {
  height: 7px;
}
.difficulty i b:nth-child(3) {
  height: 10px;
}
.easy i b:first-child {
  background: #61c995;
}
.medium i b:nth-child(-n + 2) {
  background: #eeb45d;
}
.hard i b {
  background: #fe6873;
}
.footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 21px;
  padding-bottom: 24px;
  position: relative;
  color: var(--dim);
}
.footer:before {
  content: "";
  height: 1px;
  background: var(--line);
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
}
.footer > div,
.footer > a {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer > div > span,
.footer > a {
  font-size: 0.8rem;
}
.footer > a {
  gap: 7px;
}
.footer > a:hover {
  color: #fff;
}
.footer .brand {
  opacity: 0.8;
  gap: 5px;
}
.footer .brand svg {
  width: 21px;
  height: 22px;
}
.footer .brand > span {
  font-size: 17px;
}
.footer .brand > b {
  font-size: 0.5rem;
  padding: 2px;
}
.inner-page {
  padding: 14px 0 54px;
  animation: card-in 0.3s ease-out;
}
.page-head {
  margin: 8px 0 27px;
  max-width: 860px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef747e;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  margin: 0 0 10px;
}
.mini-line {
  width: 15px;
  height: 2px;
  background: var(--red);
}
.page-head h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}
.page-head > p:last-child:not(.kicker) {
  margin-top: 12px;
  color: var(--mute);
  max-width: 740px;
}
.panel,
.rule,
.metric-grid > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.panel-heading {
  padding: 17px 21px;
  gap: 12px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  gap: 9px;
  font-size: 1.2rem;
}
.panel-heading h2 svg {
  color: var(--red);
}
.panel-copy {
  padding: 22px;
}
.panel-copy > p {
  color: var(--mute);
  margin-bottom: 14px;
}
.empty {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 20px;
  gap: 10px;
}
.empty-glyph {
  width: 54px;
  height: 54px;
  border: 1px solid #554147;
  border-radius: 15px;
  background: linear-gradient(145deg, #382228, #201a1d);
  display: grid;
  place-items: center;
  color: #ff868d;
  margin-bottom: 5px;
}
.empty-glyph svg {
  width: 25px;
  height: 25px;
}
.empty h3 {
  font-size: 1.22rem;
}
.empty p {
  color: var(--mute);
  max-width: 500px;
}
.empty :is(a, button) {
  margin-top: 8px;
}
.table-scroll {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th,
.data-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.data-table th {
  font: 0.76rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a4a6b2;
  background: #191a20;
}
.data-table tr:last-child td {
  border: 0;
}
.data-table th:last-child,
.data-table td:last-child {
  text-align: right;
}
.data-table small,
.admin-row small,
.member-row small,
.history-row small {
  display: block;
  color: var(--mute);
  font-size: 0.79rem;
  line-height: 1.4;
  margin-top: 3px;
}
.rank-place,
.rank-score {
  font-family: var(--mono);
}
.rank-place {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 29px;
  border-radius: 5px;
  background: #25262a;
  color: #c4c5cf;
  font-size: 0.83rem;
}
.place-0 {
  background: #3e2921;
  color: #ffb790;
}
.is-mine {
  background: #22191e;
}
.refresh-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 15px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.metric-grid > div {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  grid-template-areas: "num icon" "label icon";
  gap: 3px;
}
.metric-grid svg {
  grid-area: icon;
  color: var(--red);
}
.metric-grid b {
  grid-area: num;
  font-size: 2rem;
  line-height: 1.15;
}
.metric-grid span {
  grid-area: label;
  color: var(--mute);
  font-size: 0.87rem;
}
.two-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 18px;
}
.member-row,
.history-row,
.admin-row {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.history-row {
  justify-content: space-between;
}
.history-row > b {
  color: #8edbba;
  font: 600 0.95rem var(--mono);
}
.member-row:last-child,
.history-row:last-child,
.admin-row:last-child {
  border: 0;
}
.avatar,
.row-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  border: 1px solid #ffffff11;
  background: #29232b;
  color: #f497a5;
}
.row-symbol {
  background: #24252b;
  color: #c8c8d3;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.rule {
  padding: 22px;
}
.rule > span {
  color: var(--red);
  display: inline-grid;
  place-items: center;
  height: 38px;
  width: 38px;
  border-radius: 9px;
  background: #321c21;
  margin-bottom: 14px;
}
.rule h2 {
  font-size: 1.22rem;
}
.rule p {
  color: var(--mute);
  font-size: 0.95rem;
  margin-top: 9px;
}
.modal {
  --modal-pad: clamp(20px, 3vw, 30px);
  width: min(96%, 450px);
  max-width: calc(100vw - 20px);
  max-height: min(88svh, 850px);
  border: 1px solid #404048;
  border-radius: 14px;
  background: #18191e;
  color: var(--text);
  padding: 0;
  box-shadow: 0 24px 100px #0009;
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #494953 transparent;
}
.modal.wide {
  width: min(94%, 666px);
}
.modal[open] {
  animation: modal-in 0.18s ease-out;
}
.modal::backdrop {
  background: #050608bb;
  backdrop-filter: blur(5px);
}
.modal-inner {
  padding: var(--modal-pad);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.modal-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
}
.modal-head .icon-btn {
  margin-top: 0;
  flex: none;
}
.modal-head .kicker {
  margin-bottom: 6px;
}
.muted,
.field-help,
.intro {
  color: var(--mute);
}
.intro {
  font-size: 0.96rem;
  margin-bottom: 20px;
}
.field-help {
  font-size: 0.84rem;
  line-height: 1.45;
}
.mono,
pre {
  font-family: var(--mono);
}
.text-btn {
  color: #ff8892;
  background: transparent;
  padding: 5px 0;
  align-self: flex-start;
  font-size: 0.86rem;
}
.text-btn:hover {
  color: white;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #d6d7dd;
}
input:not([type="checkbox"]):not([type="file"]),
textarea,
select {
  border: 1px solid #393a43;
  background: #111216;
  border-radius: 7px;
  line-height: 1.4;
  color: var(--text);
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #8c8e9c;
}
textarea {
  resize: vertical;
  min-height: 60px;
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23abaeba' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}
input:focus,
textarea:focus,
select:focus {
  outline: 1px solid #c5525d;
  outline-offset: 0;
}
.search {
  flex-direction: row;
}
.search input:focus {
  outline: 0;
}
.password-field {
  position: relative;
  display: flex;
}
.password-field input {
  width: 100%;
  padding-right: 44px !important;
}
.password-field .icon-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #b7b7c1;
}
.notice {
  border: 1px solid #6b303a;
  background: #321c22;
  color: #ffc1c6;
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
}
.notice svg {
  margin-top: 2px;
}
.notice.success {
  background: #172e26;
  border-color: #345b49;
  color: #b3edd0;
}
.notice.info {
  background: #232730;
  border-color: #404a58;
  color: #d0d9e9;
}
.retry-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.inner-page > .notice {
  margin: 12px 0;
}
.task-meta {
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.task-meta .category-tag {
  align-self: center;
}
.field-heading {
  font-size: 1.02rem;
  gap: 7px;
  margin-bottom: 9px;
}
.field-heading svg {
  color: var(--red);
}
.task-prompt {
  color: #dedee4;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.material,
.hint,
.edit-section,
.editor-preview details {
  border: 1px solid #36373e;
  border-radius: 8px;
  background: #131419;
  margin-top: 16px;
  overflow: hidden;
}
.file-line {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
}
.file-line > span:nth-child(2) {
  min-width: 0;
}
.file-line strong {
  display: block;
  font: 600 0.86rem var(--mono);
  overflow-wrap: anywhere;
}
.file-line small {
  font-size: 0.76rem;
  display: block;
  color: var(--mute);
  margin-top: 3px;
}
.file-line a {
  margin-left: auto;
}
.file-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
  background: #262630;
  color: #d9dae4;
}
summary {
  font-size: 0.86rem;
  color: #d5d6df;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.material details > summary,
.hint summary,
.edit-section > summary,
.editor-preview details > summary {
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.material details > summary {
  border-top: 1px solid var(--line);
}
.material summary svg,
.hint summary svg:last-child {
  margin-left: auto;
  transition: transform 0.2s;
}
.material details[open] > summary svg,
.hint[open] > summary svg:last-child {
  transform: rotate(180deg);
}
pre {
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 3;
  line-height: 1.55;
  color: #d9d9e2;
  background: #101115;
  border-radius: 5px;
  padding: 12px;
  margin: 0;
  max-height: 320px;
  overflow: auto;
}
.hint summary svg:first-child {
  color: #e0b87f;
}
.hint p,
.editor-preview details p {
  padding: 0 13px 13px;
  color: #c9cad3;
  font-size: 0.92rem;
}
.flag-area {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.flag-area > .muted {
  font-size: 0.91rem;
  margin-bottom: 11px;
}
.flag-area > .notice {
  margin-bottom: 12px;
}
.inline-form {
  display: flex;
  gap: 8px;
}
.inline-form input {
  flex: 1;
  font-family: var(--mono);
}
.solved-text {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9ee2bd;
}
.task-solves {
  gap: 6px;
  color: var(--dim);
  font-size: 0.77rem;
  margin-top: 14px;
}
.admin-tabs {
  margin-top: 0;
}
.admin-row {
  background: transparent;
  width: 100%;
  color: #d9d9e1;
  transition: background 0.15s;
}
.admin-row:hover {
  background: #1f2026;
}
.row-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-row > svg:last-child {
  color: #8d8e9a;
}
.row-count {
  color: var(--mute);
  font-size: 0.8rem;
}
.status-pill {
  border: 1px solid #46454d;
  background: #28282e;
  color: #c4c3cb;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 0.72rem;
}
.status-pill.published {
  border-color: #365446;
  background: #1c2c26;
  color: #a8d5bb;
}
.form-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 3px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.check-label input {
  accent-color: #f74652;
  width: 17px;
  height: 17px;
}
.field-grid {
  display: grid;
  gap: 11px;
}
.field-grid.three {
  grid-template-columns: 1.4fr 1.1fr 0.75fr;
}
.narrow-form {
  max-width: 535px;
}
.narrow-form > .primary {
  align-self: flex-start;
}
.editor-switch {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
}
.editor-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.editor-preview h3 {
  font-size: 1.4rem;
}
.editor-preview p {
  color: #ccced6;
}
.editor-preview .task-meta {
  margin: 0;
}
.editor-preview .secondary {
  align-self: flex-start;
}
.edit-section {
  margin: 0;
}
.edit-section > summary {
  font-weight: 600;
}
.edit-section .form-stack {
  padding: 6px 13px 14px;
}
.upload-label {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 9px;
  border: 1px dashed #585962;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
}
.upload-label:focus-within {
  outline: 2px solid var(--red);
}
.upload-label input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 9px 2px #ff495773;
  }
}
@keyframes art-in {
  from {
    opacity: 0.5;
    transform: scale(1.018);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 300px;
  }
  .card-art {
    height: 124px;
  }
  .card-copy {
    padding-top: 20px;
    padding-bottom: 19px;
  }
  .catalog {
    margin-top: 38px;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    gap: 30px;
  }
  .main-nav {
    gap: 17px;
  }
  .main-nav a {
    gap: 6px;
  }
  .head-actions {
    gap: 8px;
  }
  .cards {
    gap: 13px;
  }
  .card-copy,
  .card-foot {
    padding-left: 15px;
    padding-right: 15px;
  }
  .hero {
    min-height: 250px;
  }
  .hero-content {
    padding-top: 24px;
    padding-bottom: 25px;
  }
}
@media (max-width: 870px) {
  .header-inner {
    gap: 17px;
  }
  .main-nav {
    gap: 15px;
  }
  .main-nav a {
    font-size: 0.85rem;
  }
  .main-nav a svg {
    display: none;
  }
  .brand > span {
    font-size: 23px;
  }
  .brand svg {
    width: 30px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .card-art {
    height: 103px;
  }
  .card-copy h3 {
    font-size: 1.28rem;
  }
  .hero {
    min-height: 235px;
  }
  .header-inner {
    height: 65px;
  }
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  :root {
    --gutter: 18px;
  }
  .header-inner {
    display: grid;
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-rows: 55px 41px;
    gap: 0 12px;
  }
  .brand-link {
    justify-self: start;
  }
  .head-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .header-login {
    min-height: 33px;
    padding: 7px 13px;
    font-size: 0.82rem;
  }
  .account-trigger {
    min-height: 33px;
  }
  .main-nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: space-between;
    gap: 4px;
  }
  .main-nav a {
    font-size: 0.82rem;
    gap: 5px;
    padding: 0 2px;
  }
  .main-nav a svg {
    display: block;
    width: 14px;
  }
  .main {
    padding-top: 16px;
  }
  .hero {
    min-height: 235px;
    border-radius: 11px;
  }
  .hero-content {
    padding: 21px 19px;
  }
  .hero h1 {
    font-size: clamp(2.95rem, 10.5vw, 4.2rem);
  }
  .hero-image {
    background-size: auto 115%;
    background-position: 69% 52%;
    opacity: 0.83;
  }
  .hero-shade {
    background: linear-gradient(
      90deg,
      #100e11ef 0%,
      #100e11cf 42%,
      #100e1150 75%,
      #100e1110 100%
    );
  }
  .hero-eyebrow {
    gap: 9px;
    margin-bottom: 12px;
  }
  .live-badge {
    font-size: 0.64rem;
    padding: 5px 6px;
  }
  .round-title {
    font-size: 0.66rem;
    padding-left: 9px;
  }
  .hero-content > p {
    font-size: 0.9rem;
    line-height: 1.44;
    max-width: 365px;
  }
  .hero-stats {
    gap: 10px;
    margin-top: 18px;
  }
  .hero-stats > span {
    font-size: 0.73rem;
    gap: 3px;
  }
  .hero-stats b {
    font-size: 0.78rem;
  }
  .hero-stats svg {
    width: 12px;
    height: 12px;
    margin-right: 1px;
  }
  .hero-stats > i {
    height: 10px;
  }
  .hero-cross {
    display: none;
  }
  .catalog {
    margin-top: 23px;
  }
  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .catalog-tools {
    width: 100%;
  }
  .search {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .filter-btn,
  .search {
    height: 37px;
    min-height: 37px;
  }
  .category-tabs {
    margin-top: 12px;
    margin-bottom: 14px;
    padding-bottom: 3px;
    gap: 6px;
  }
  .category-tabs button {
    font-size: 0.8rem;
    padding: 6px 10px;
    min-height: 32px;
  }
  .section-title {
    gap: 9px;
  }
  .section-title h2 {
    font-size: 1.65rem;
  }
  .section-mark {
    height: 19px;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .filter-row label {
    flex: 1;
    min-width: 115px;
  }
  .rules-grid,
  .two-panels {
    grid-template-columns: 1fr;
  }
  .page-head {
    margin: 0 0 20px;
  }
  .inner-page {
    padding: 9px 0 38px;
  }
  .page-head > p:last-child:not(.kicker) {
    font-size: 0.95rem;
  }
  .footer > div > span {
    display: none;
  }
  .panel-heading,
  .admin-row {
    padding: 13px 14px;
  }
  .panel-heading h2 {
    font-size: 1.05rem;
  }
  .data-table td,
  .data-table th {
    padding: 11px 10px;
  }
  .data-table th {
    font-size: 0.68rem;
  }
  .metric-grid {
    gap: 7px;
  }
  .metric-grid > div {
    padding: 11px;
    grid-template-areas: "icon" "num" "label";
    grid-template-columns: 1fr;
  }
  .metric-grid svg {
    width: 16px;
    height: 16px;
  }
  .metric-grid b {
    font-size: 1.6rem;
  }
  .metric-grid span {
    font-size: 0.75rem;
  }
  .admin-tabs {
    gap: 6px;
  }
  .admin-tabs a {
    padding: 7px 10px;
  }
  .panel-copy {
    padding: 16px;
  }
  .modal.wide {
    width: calc(100% - 18px);
  }
  .modal {
    max-height: 90svh;
  }
  .field-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .field-grid.three > label:first-child {
    grid-column: 1/-1;
  }
  .status-pill {
    font-size: 0.65rem;
  }
  .footer {
    padding-top: 16px;
    padding-bottom: 18px;
  }
}
@media (max-width: 530px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card-art {
    height: clamp(92px, 23vw, 114px);
    padding: 13px 16px;
    background-position: center 50%;
  }
  .card-copy {
    padding: 15px 16px 14px;
  }
  .card-copy h3 {
    font-size: 1.3rem;
  }
  .card-copy p {
    font-size: 0.92rem;
    margin-top: 5px;
  }
  .card-foot {
    padding: 10px 16px;
  }
  .hero {
    min-height: 224px;
  }
  .hero-break {
    display: none;
  }
  .hero-content > p {
    max-width: 265px;
  }
  .hero-image {
    background-position: 66% 53%;
    background-size: auto 103%;
  }
  .hero-stats {
    column-gap: 8px;
    row-gap: 7px;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  .catalog-tools {
    gap: 7px;
  }
  .main-nav a {
    font-size: 0.79rem;
  }
  .modal-inner {
    padding: 19px 16px;
  }
  .modal-head {
    margin-bottom: 15px;
  }
  .file-line {
    gap: 7px;
  }
  .file-line .compact {
    padding: 7px 9px;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .inline-form input {
    min-width: 145px;
  }
  .admin-row {
    gap: 9px;
  }
  .footer .brand svg {
    width: 18px;
  }
  .retry-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .edit-section pre {
    font-size: 0.76rem;
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 12px;
  }
  .hero-content {
    padding: 17px 13px;
  }
  .hero-stats {
    gap: 6px;
  }
  .main-nav a {
    font-size: 0.74rem;
  }
  .main-nav a svg {
    width: 12px;
  }
  .hero-eyebrow {
    gap: 7px;
  }
  .account-trigger > span {
    max-width: 65px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.brand-lockup,
.institution-marks {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-lockup {
  gap: 12px;
}
.institution-marks {
  gap: 5px;
  padding-right: 12px;
  border-right: 1px solid #ffffff29;
}
.institution-marks img {
  width: auto;
  height: 43px;
  object-fit: contain;
  display: block;
}
.footer .institution-marks img {
  height: 32px;
}
.footer .brand-lockup,
.footer .institution-marks {
  gap: 6px;
}
.footer .institution-marks {
  padding-right: 8px;
}
.header-inner {
  column-gap: clamp(20px, 3vw, 60px);
}
.media-field {
  min-width: 0;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.media-field legend {
  padding: 0 5px;
  color: var(--ink, #eee);
  font-weight: 650;
}
.media-field legend svg {
  margin-right: 4px;
  vertical-align: -2px;
}
.media-field .upload-label {
  justify-self: start;
  cursor: pointer;
}
.media-field .muted,
.field-help {
  line-height: 1.45;
}
.media-selection {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.media-selection img {
  width: 69px;
  height: 43px;
  border-radius: 5px;
  object-fit: cover;
}
.media-selection > span {
  min-width: 0;
  flex: 1;
}
.media-selection small,
.media-selection strong {
  display: block;
  overflow-wrap: anywhere;
}
.media-selection small {
  color: var(--dim);
  font-size: 0.78rem;
}
.editor-cover {
  width: 100%;
  height: clamp(95px, 18vw, 160px);
  object-fit: cover;
  border-radius: 7px;
}
.media-material {
  overflow: hidden;
}
.media-material .photo-open {
  display: block;
  cursor: zoom-in;
}
.media-material .photo-open img,
.media-material video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  background: #090a0d;
}
.media-material .file-line {
  border-top: 1px solid var(--line);
}
.media-material .file-line > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.paid-hint {
  margin: 14px 0;
  padding: 15px 17px;
  border-radius: 9px;
  border: 1px solid #52343a;
  background: #20191d;
}
.paid-title,
.hint-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.paid-title h3 {
  font-size: 1rem;
  margin: 0;
}
.paid-title > svg {
  color: #ff8895;
}
.paid-title > span {
  margin-left: auto;
  color: #ffa8b2;
  font: 600 0.88rem/1 var(--mono);
}
.paid-hint p {
  color: #cac4c7;
  margin: 11px 0 13px;
}
.hint summary small {
  color: var(--dim);
  font-size: 0.77rem;
}
.price-settings {
  display: grid;
  gap: 6px;
}
.balance-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--dim);
  font-size: 0.86rem;
  margin: 12px 0 22px;
}
.balance-parts b {
  color: #eee;
  font-family: var(--mono);
  margin-left: 3px;
}
.solver-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dim);
  font-size: 0.82rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.solver-filter select {
  max-width: 74%;
  color: #eee;
  background: #202125;
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 5px;
}
.score-history {
  margin-top: 16px;
}
@media (min-width: 681px) and (max-width: 910px) {
  .header-inner {
    column-gap: 14px;
  }
  .institution-marks img {
    height: 31px;
  }
  .brand-lockup {
    gap: 7px;
  }
  .institution-marks {
    padding-right: 6px;
    gap: 3px;
  }
}
@media (max-width: 680px) {
  .header-inner {
    column-gap: 8px;
  }
  .brand-lockup {
    gap: 7px;
  }
  .institution-marks {
    padding-right: 7px;
    gap: 3px;
  }
  .institution-marks img {
    height: 31px;
  }
  .brand svg {
    width: 23px;
  }
  .brand {
    gap: 4px;
  }
  .brand > span {
    font-size: 21px;
  }
  .footer .institution-marks img {
    height: 26px;
  }
  .footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 385px) {
  .header .brand svg {
    display: none;
  }
  .header .institution-marks img {
    height: 27px;
  }
  .header .account-trigger > span {
    max-width: 62px;
  }
  .media-material .file-line {
    flex-wrap: wrap;
  }
}
