@font-face { font-family: Prompt; src: url("/assets/fonts/prompt-regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: Prompt; src: url("/assets/fonts/prompt-semibold.ttf"); font-weight: 600; font-display: swap; }
:root { color-scheme: dark; font: 14px/1.5 Prompt, sans-serif; --light: #ffffff; --panel: #081226; --field: #11213b; --page-top: #1a2332; --page-mid: #244784; --page-bottom: #1f355a; --nav-top: #254986; --nav-bottom: #171d26; --promo: #162641; --accent: #f9d969; --edge: #e1ad49; --button-start: #d99848; --button-end: #f7d868; }
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg,var(--page-top) 0,var(--page-mid) 155px,var(--page-bottom) 100vh) fixed; color: var(--light); }
button, select { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.header { width: min(100%,576px); height: 58px; margin: auto; padding: 0 16px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.logo { width: 95px; display: block; }
.header-actions { display: flex; gap: 14px; align-items: center; }
.language { background: var(--field); border: 0; border-radius: 4px; display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 10px; }
.language img { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; }
.line { display: block; width: 32px; height: 32px; border-radius: 5px; }
main { width: min(100%,576px); margin: 0 auto; background: var(--panel); border-radius: 24px 24px 0 0; padding: 24px 24px 108px; }
.banner { position: relative; overflow: hidden; border-radius: 10px; background: #0b1831; aspect-ratio: 528 / 257; }
picture, picture img { display: block; width: 100%; }
.banner img { height: 100%; object-fit: fill; }
.dots { position: absolute; inset: auto 0 17px; display: flex; gap: 8px; justify-content: center; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #001020; }
.dots button[aria-current] { background: var(--accent); }
.panel { margin-top: 20px; }
.field, .wide { min-height: 44px; border-radius: 8px; display: flex; align-items: center; }
.field { position: relative; margin-bottom: 20px; padding: 0 12px; color: #7d889b; background: var(--field); font-size: 16px; white-space: nowrap; overflow: hidden; }
.password { justify-content: space-between; }
.reveal { background: transparent; color: #aeb8c6; border: 0; padding: 0; font-size: 21px; }
.wide { width: 100%; justify-content: center; }
.gold { background: linear-gradient(103deg,var(--button-start) 30%,var(--button-end)); border: 0; color: white; box-shadow: inset 4px -6px 10px #0005; }
.outline { margin-top: 20px; border: 1px solid var(--edge); }
.help { text-align: center; font-size: 12px; color: #c4cee0; margin: 19px 0 0; }
.help a { color: white; font-weight: 600; }
.status:empty { display: none; }
.status { text-align: center; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.activity { margin-top: 17px; }
.withdrawals { display: flex; gap: 12px; overflow: auto; margin: 16px 0 20px; scrollbar-width: none; }
.withdrawal { flex: 0 0 200px; border-radius: 10px; background: var(--field); padding: 12px 12px 8px; font-size: 12px; line-height: 1.45; }
.withdrawal img { width: 39px; height: 39px; float: left; margin-right: 11px; border-radius: 5px; }
.withdrawal div { clear: both; display: flex; justify-content: space-between; align-items: center; }
.withdrawal small { color: #aeb8c6; }
.ranking-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 14px; }
select { background: var(--field); border: 0; padding: 4px 8px; border-radius: 6px; }
table { width: 100%; text-align: left; border-collapse: separate; border-spacing: 0; background: var(--field); border-radius: 16px; overflow: hidden; }
th, td { padding: 12px; font-size: 12px; }
th { font-size: 14px; }
th:last-child, td:last-child { text-align: right; }
td:last-child { color: #0f6; }
footer { text-align: center; color: #aeb8c6; font-size: 11px; margin-top: 20px; }
.bottom { position: fixed; z-index: 1; inset: auto 0 0; background: linear-gradient(var(--nav-top),var(--nav-bottom)); border-radius: 22px 22px 0 0; }
.nav-items { margin: auto; width: min(100%,590px); min-height: 67px; padding: 0 12px; display: grid; grid-template-columns: repeat(5,1fr); }
.nav-items a { position: relative; display: grid; justify-items: center; align-content: end; gap: 4px; padding-bottom: 9px; font-size: 12px; white-space: nowrap; }
.nav-items a[aria-current] { color: var(--accent); }
.nav-items svg { width: 24px; height: 24px; fill: currentColor; }
.join span { position: absolute; bottom: 40px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(var(--button-end),var(--edge)); box-shadow: 0 0 0 6px var(--panel); color: white; }
.join svg { width: 34px; height: 34px; }
dialog { width: min(500px,100% - 36px); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 10px; color: white; background: var(--promo); margin: auto; transform: translateY(-28px); overflow: auto; }
dialog::backdrop { background: #0009; }
body:has(dialog[open]) { overflow: hidden; }
.promo-art { position: relative; }
.promo-art img { aspect-ratio: 16/9; object-fit: fill; }
.close { position: absolute; top: 3px; right: 7px; border: 0; padding: 0 4px; background: transparent; font: 28px/1.35 sans-serif; }
.counter { position: absolute; inset: auto auto 7px 50%; transform: translateX(-50%); background: #080b10; border-radius: 20px; padding: 2px 8px; font-size: 11px; }
.promo-body { padding: 12px 15px 20px; }
.promo-body h2 { font-size: 23px; }
.promo-copy { margin-top: 5px; min-height: 101px; white-space: pre-line; }
.promo-copy p { margin: 0 0 18px; }
.promo-copy p:first-child { font-size: 18px; }
.next { margin-top: 18px; }
@media(max-width:599px) {
  main { padding: 16px 16px 96px; }
  .logo { width: 80px; }
  .promo-art img { aspect-ratio: 1; }
  dialog { transform: translateY(-8px); }
  .promo-body h2 { font-size: 21px; }
}
.header-actions { position: relative; }
.language-label { position: absolute; top: 40px; right: 44px; z-index: 2; white-space: nowrap; padding: 8px 14px; border-radius: 5px; background: var(--field); }
.close:focus-visible { outline-offset: -2px; }
.reveal svg { display: block; width: 22px; height: 22px; }
.line { width: 40px; height: 40px; }
.header-actions { gap: 10px; margin-right: -4px; }
.nav-items { padding-inline: 0; }
.join span { box-shadow: 0 6px 0 5px var(--panel); }
.panel { margin-top: 21px; }
.activity { margin-top: 19px; }
.ranking-title select { width: 149px; }
dialog:focus-visible { outline: none; }
.promo-body h2 { font-weight: 400; }
@media(max-width:599px) {
  .header { padding-left: 17px; }
  .nav-items { padding-inline: 12px; }
  .ranking-title select { margin-right: 8px; }
}

:root[data-theme="emerald"] {
  --panel: #071c17; --field: #113329; --promo: #15382c;
  --page-top: #142621; --page-mid: #23664e; --page-bottom: #174135;
  --nav-top: #29634b; --nav-bottom: #121f19;
  --accent: #f2d685; --edge: #c6a15a; --button-start: #90632c; --button-end: #a67c36;
}
:root[data-theme="plum"] {
  --panel: #201322; --field: #35213a; --promo: #462b4a;
  --page-top: #221b2b; --page-mid: #643d66; --page-bottom: #442947;
  --nav-top: #613c66; --nav-bottom: #221824;
  --accent: #f4b4d1; --edge: #ce83ac; --button-start: #92527b; --button-end: #9f567f;
}
:root[data-theme="graphite"] {
  --panel: #151a21; --field: #222b36; --promo: #293643;
  --page-top: #1a1e25; --page-mid: #3b4b5e; --page-bottom: #283340;
  --nav-top: #40576e; --nav-bottom: #191f26;
  --accent: #b1ddfa; --edge: #75b0d5; --button-start: #375f82; --button-end: #437499;
}
.theme-settings > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; background: var(--field); }
.theme-settings > summary::-webkit-details-marker { display: none; }
.theme-settings > summary svg { width: 20px; height: 20px; }
.theme-panel { position: absolute; z-index: 3; top: 44px; right: 0; width: min(370px, calc(100vw - 32px)); max-height: calc(100dvh - 130px); overflow: auto; padding: 12px; display: grid; gap: 8px; background: var(--promo); border: 1px solid var(--edge); border-radius: 8px; }
.theme-panel select { width: 100%; min-height: 34px; }
.theme-panel button { justify-self: start; background: none; border: 0; color: var(--accent); padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; }

:root {
  --heading: var(--light); --focus: #ffffff; --footer: #aeb8c6; --status: var(--light);
  --language-bg: var(--field); --language-text: var(--light); --gear-bg: var(--field); --gear-text: var(--light);
  --banner-bg: #0b1831; --dot: #001020; --field-text: #7d889b; --reveal: #aeb8c6;
  --button-text: #ffffff; --button-shadow: #00000055; --outline-bg: #00000000; --outline-text: var(--light);
  --help: #c4cee0; --help-link: #ffffff;
  --card-bg: var(--field); --card-text: var(--light); --card-meta: #aeb8c6; --card-amount: var(--light);
  --rank-filter-bg: var(--field); --rank-filter-text: var(--light); --table-bg: var(--field);
  --table-head: var(--light); --table-text: var(--light); --payout: #00ff66;
  --nav-text: var(--light); --nav-active: var(--accent); --join-start: var(--button-end);
  --join-end: var(--edge); --join-icon: #ffffff; --join-ring: var(--panel);
  --promo-shade: #00000099; --promo-title: #ffffff; --promo-text: #ffffff; --promo-close: #ffffff;
  --counter-bg: #080b10; --counter-text: #ffffff;
  --next-start: var(--button-start); --next-end: var(--button-end); --next-text: var(--button-text);
  --editor-bg: var(--promo); --editor-border: var(--edge); --editor-text: var(--light);
  --editor-control: var(--field); --editor-action: var(--accent);
}
:focus-visible { outline-color: var(--focus); }
h1, h2 { color: var(--heading); }
footer { color: var(--footer); }
.status { color: var(--status); }
.language, .language-label { background: var(--language-bg); color: var(--language-text); }
.banner { background: var(--banner-bg); }
.dots button { background: var(--dot); }
.field { color: var(--field-text); }
.reveal { color: var(--reveal); }
.gold { color: var(--button-text); box-shadow: inset 4px -6px 10px var(--button-shadow); }
.outline { background: var(--outline-bg); color: var(--outline-text); }
.help { color: var(--help); }
.help a { color: var(--help-link); }
.withdrawal { background: var(--card-bg); color: var(--card-text); }
.withdrawal small { color: var(--card-meta); }
.withdrawal span { color: var(--card-amount); }
.ranking-select { background: var(--rank-filter-bg); color: var(--rank-filter-text); }
table { background: var(--table-bg); color: var(--table-text); }
th { color: var(--table-head); }
td:last-child { color: var(--payout); }
.bottom { color: var(--nav-text); }
.nav-items a[aria-current] { color: var(--nav-active); }
.join span { background: linear-gradient(var(--join-start),var(--join-end)); box-shadow: 0 6px 0 5px var(--join-ring); color: var(--join-icon); }
dialog::backdrop { background: var(--promo-shade); }
.promo-body h2 { color: var(--promo-title); }
.promo-copy { color: var(--promo-text); }
.close { color: var(--promo-close); }
.counter { background: var(--counter-bg); color: var(--counter-text); }
.next { background: linear-gradient(103deg,var(--next-start) 30%,var(--next-end)); color: var(--next-text); }
.theme-settings > summary { background: var(--gear-bg); color: var(--gear-text); }
.theme-panel { background: var(--editor-bg); border-color: var(--editor-border); color: var(--editor-text); }
.theme-panel select, .color-row input { background: var(--editor-control); color: var(--editor-text); }
.theme-panel button { color: var(--editor-action); }
.theme-group { border-top: 1px solid var(--editor-border); }
.theme-group summary { cursor: pointer; padding: 8px 0; }
.color-row { display: grid; grid-template-columns: minmax(0,1fr) 32px 92px; gap: 6px; align-items: center; margin: 0 0 8px; }
.color-row input { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--editor-border); border-radius: 4px; }
.color-row input[type="text"] { font: 12px monospace; padding-inline: 5px; }
.theme-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#theme-status { margin: 0; font-size: 12px; }
#theme-status:empty { display: none; }

.outline:is(button) { cursor: pointer; }
[data-view="account"] h1 { scroll-margin-top: 16px; }
.color-hint { grid-column: 1 / -1; padding: 6px 8px; border-inline-start: 2px solid var(--editor-action); font-size: 12px; }
.color-hint button { display: inline-block; margin-inline-start: 8px; }
.theme-highlight {
  outline: 3px solid #ffdb4d !important;
  outline-offset: 2px;
  box-shadow: inset 0 0 0 3px #121419 !important;
}
.theme-marker {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  max-width: calc(100vw - 16px);
  padding: 4px 8px;
  border: 2px solid #121419;
  border-radius: 5px;
  background: #ffdb4d;
  color: #121419;
  font-size: 12px;
  font-weight: 600;
}
dialog .theme-marker { position: absolute; }
.theme-settings > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding-inline: 8px;
  white-space: nowrap;
  font-size: 12px;
}
.theme-settings > summary::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: inherit;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .theme-settings:not([open]) > summary::after { animation: theme-cue 1.15s ease-out 3; }
  @keyframes theme-cue {
    from { box-shadow: 0 0 0 0 var(--accent); }
    to { box-shadow: 0 0 0 7px transparent; }
  }
}
.theme-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.theme-panel-heading label { font-weight: 600; }

@media (min-width: 1220px) {
  .theme-panel {
    position: fixed;
    top: 58px;
    left: calc(50% + 308px);
    right: auto;
    width: min(370px, calc(50vw - 328px));
    max-height: calc(100dvh - 148px);
  }
}
@media (max-width: 1219px) {
  .header:has(.theme-settings[open]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-rows: 58px auto;
    column-gap: 8px;
    height: auto;
    padding-bottom: 16px;
  }
  .header:has(.theme-settings[open]) .header-actions,
  .theme-settings[open] { display: contents; }
  .theme-settings[open] > summary { grid-column: 2; grid-row: 1; }
  .theme-panel {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-height: min(58dvh, 480px);
  }
}
@media (max-width: 1219px) {
  .theme-settings[open]::details-content { display: contents; }
}

.theme-filename { display: grid; gap: 4px; }
.theme-filename input { width: 100%; min-height: 34px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--editor-border); background: var(--editor-control); color: var(--editor-text); font: inherit; }
#theme-filename-help { margin: 0; font-size: 12px; }
body {
  background-image: var(--site-photo, none), linear-gradient(180deg, #080b1666, #080b1699), var(--theme-photo, none), linear-gradient(180deg,var(--page-top) 0,var(--page-mid) 155px,var(--page-bottom) 100vh);
  background-size: cover, cover, cover, auto;
  background-position: center, center, center, top;
  background-repeat: no-repeat;
}
@media (max-width: 1219px) {
  .header:has(.theme-settings[open]) { grid-template-columns: minmax(0,1fr) repeat(4,auto); }
}
@media (max-width: 430px) {
  .header:has(.background-settings) { column-gap: 4px; padding-inline: 8px; }
  .header:has(.background-settings) .header-actions { gap: 4px; }
  .header:has(.background-settings) .logo { width: 52px; }
  .header:has(.background-settings) .language { padding-inline: 5px; }
  .header:has(.background-settings) .line { width: 28px; height: 28px; }
}

.logo { max-height: 48px; object-fit: contain; object-position: left center; }

.admin-session { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#admin-session-status:empty { display: none; }
#admin-save-status { margin: 0 0 16px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 8px; color: var(--light); background: var(--field); }

#login-form .field input { width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--light); font: inherit; }
#login-form .field input::placeholder { color: var(--field-text); opacity: 1; }
#login-form .field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
#login-form .field input:focus-visible { outline: none; }
#login-form .password { gap: 8px; }
.admin-session { margin-top: 16px; font-size: 12px; }
.admin-session button { cursor: pointer; color: var(--accent); padding: 7px; border: 1px solid var(--edge); border-radius: 5px; background: var(--field); font: inherit; }

:root { --theme-photo: url("/assets/background/navy.webp"); }
:root[data-theme="emerald"] { --theme-photo: url("/assets/background/emerald.webp"); }
:root[data-theme="plum"] { --theme-photo: url("/assets/background/plum.webp"); }
:root[data-theme="graphite"] { --theme-photo: url("/assets/background/graphite.webp"); }
:root[data-theme="crimson"] {
  --theme-photo: url("/assets/background/crimson.webp");
  --panel: #210a10; --field: #3e121b; --promo: #421622;
  --page-top: #22080f; --page-mid: #79202a; --page-bottom: #3a0e17;
  --nav-top: #721923; --nav-bottom: #200a0d;
  --accent: #ffe098; --edge: #d9a646; --button-start: #956221; --button-end: #b78435;
}

main { box-shadow: 0 16px 56px #05071145; }
dialog::backdrop { backdrop-filter: blur(1px); }



.header { position: relative; }
.background-settings > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 8px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: var(--gear-bg);
  color: var(--gear-text);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  list-style: none;
}
.background-settings > summary::-webkit-details-marker { display: none; }
.background-settings > summary svg { width: 20px; height: 20px; }
.media-panel {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 44px;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--editor-border);
  border-radius: 8px;
  background: var(--editor-bg);
  color: var(--editor-text);
}
.media-panel section + section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--editor-border);
}
.media-panel h2 { margin: 0 0 6px; font-size: 13px; color: inherit; }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.media-actions button {
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--editor-border);
  border-radius: 5px;
  background: var(--editor-control);
  font-size: 12px;
}
.media-actions button[id^="remove-"] { border-color: transparent; background: transparent; color: var(--editor-action); }
.media-status { margin: 6px 0 0; font-size: 12px; }
.media-status:empty { display: none; }
@media (min-width: 1220px) {
  .media-panel { position: fixed; top: 58px; left: calc(50% + 308px); right: auto; width: min(320px, calc(50vw - 328px)); }
}
@media (max-width: 1219px) {
  .header:has(.background-settings[open]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    grid-template-rows: 58px auto;
    column-gap: 8px;
    height: auto;
    padding-bottom: 16px;
  }
  .header:has(.background-settings[open]) .header-actions,
  .background-settings[open], .background-settings[open]::details-content { display: contents; }
  .background-settings[open] > summary { grid-column: 3; grid-row: 1; }
  .media-panel { position: static; width: 100%; grid-column: 1 / -1; grid-row: 2; }
}

