/* public/style.css */
:root {
  color-scheme: dark;
  --bg:#101613;
  --panel:#1a231e;
  --line:#334039;
  --muted:#a4b1a9;
  --accent:#d4f77a;
  --text:#eef3ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Segoe UI",
    "Malgun Gothic",
    sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.topbar {
  max-width: 1240px;
  margin: auto;
  padding: 29px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-icon {
  font-size: 31px;
  color: var(--accent);
  line-height: 1;
}
.brand-detail {
  font-size: 10px;
  font-weight: 500;
  border-left: 1px solid var(--line);
  margin-left: 7px;
  padding-left: 15px;
  letter-spacing: 2px;
}
.header-label {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1160px;
  margin: 70px auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  padding: 0 44px;
}
.intro {
  padding: 23px 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 600;
}
.dot {
  display: inline-block;
  background: var(--accent);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
h1 {
  font-size: clamp(32px, 3.7vw, 47px);
  line-height: 1.3;
  letter-spacing: -2.4px;
  margin: 23px 0 20px;
  font-weight: 750;
}
.accent {
  color: var(--accent);
}
.intro > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.steps {
  list-style: none;
  margin: 38px 0 32px;
  padding: 0;
  display: grid;
  gap: 24px;
}
.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.steps li > span {
  font-size: 11px;
  font-family: monospace;
  color: var(--accent);
  padding-top: 4px;
}
.steps strong {
  font-size: 14px;
  font-weight: 600;
}
.steps p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.bot-note {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 350px;
}
code {
  color: #d8e2db;
}
.portal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding: 28px 30px 0;
  box-shadow: 0 20px 65px #0002;
}
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-head .eyebrow {
  font-size: 9px;
  color: #b3c5b9;
}
.portal-head h2 {
  margin: 4px 0 21px;
  font-size: 24px;
  letter-spacing: -1px;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 11px;
  font-size: 10px;
  color: var(--muted);
}
.account {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background: #111a15;
  border: 1px solid #2b382f;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}
.account strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.login {
  background: #e9efe9;
  color: #152019;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 700;
}
.login span {
  margin-left: 5px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.mode-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 0 13px;
  font-size: 13px;
  font-weight: 600;
}
.mode-tabs button[aria-selected=true] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.mode-tabs button span {
  margin-right: 7px;
}
.mode-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.mode-title h3 {
  font-size: 16px;
  margin: 0;
}
.eligibility {
  font-size: 10px;
  color: var(--muted);
  border-radius: 4px;
  background: #2d3831;
  padding: 3px 8px;
}
.eligibility.allowed {
  color: var(--accent);
}
.mode-description {
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0 18px;
}
.requirements {
  background: #202c24;
  border: 1px solid #354637;
  border-radius: 8px;
  padding: 13px 15px;
  margin-bottom: 23px;
}
.requirements-title {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  color: #dce8df;
}
.requirements-title span {
  color: var(--muted);
  font-size: 10px;
}
.requirements ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.requirements li {
  font-size: 11px;
  color: #bdcdbf;
}
.requirements li:before {
  content: "\25cb";
  color: #8f9e93;
  margin-right: 9px;
}
.requirements li.met:before {
  content: "\2713";
  color: var(--accent);
}
details {
  font-size: 10px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  width: fit-content;
}
details div {
  font-family: monospace;
  overflow-wrap: anywhere;
  margin-top: 8px;
  line-height: 1.9;
}
label {
  font-size: 12px;
  display: block;
  margin-bottom: 9px;
}
input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 7px;
  border: 1px solid #435249;
  background: #111a15;
  color: var(--text);
  font-size: 12px;
}
input::placeholder {
  color: #7f9085;
}
.input-help {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0 20px;
}
.submit {
  width: 100%;
  background: var(--accent);
  color: #203014;
  border: 0;
  border-radius: 7px;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.submit:disabled {
  background: #344039;
  color: #a9b5ad;
}
.message {
  font-size: 12px;
  line-height: 1.8;
  color: var(--accent);
  overflow-wrap: anywhere;
  margin: 14px 0;
  min-height: 0;
}
.message:empty {
  margin: 0;
}
.message.error {
  color: #ffc5af;
}
.portal-foot {
  margin: 24px -30px 0;
  padding: 15px 26px;
  background: #151e18;
  border-top: 1px solid var(--line);
  font-size: 9px;
  text-align: center;
  color: var(--muted);
}
.portal-foot span {
  margin-right: 5px;
}
footer {
  max-width: 1152px;
  margin: auto;
  padding: 22px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #88978e;
  font-size: 10px;
  letter-spacing: .3px;
}
@media (min-width: 1450px) {
  main {
    margin-top: 95px;
    margin-bottom: 95px;
  }
}
@media (max-width: 850px) {
  main {
    gap: 35px;
    padding: 0 25px;
  }
  .topbar {
    padding: 24px 25px;
  }
  .portal {
    padding: 24px 21px 0;
  }
  .portal-foot {
    margin-left: -21px;
    margin-right: -21px;
  }
  .brand-detail {
    display: none;
  }
  h1 {
    font-size: 34px;
  }
}
@media (max-width: 640px) {
  main {
    grid-template-columns: 1fr;
    margin: 26px auto 40px;
    gap: 25px;
    max-width: 480px;
    padding: 0 20px;
  }
  .topbar {
    padding: 18px 20px;
  }
  .intro {
    padding: 7px 0;
  }
  h1 {
    font-size: 34px;
    margin: 15px 0;
  }
  .intro > p {
    font-size: 13px;
  }
  .steps {
    margin: 24px 0 18px;
    gap: 15px;
  }
  .bot-note {
    max-width: none;
    padding-top: 13px;
  }
  .portal {
    border-radius: 13px;
  }
  footer {
    margin: 0 20px;
    padding: 18px 0;
    gap: 20px;
    font-size: 9px;
  }
  .header-label {
    font-size: 10px;
  }
}
.team-status {
  grid-column: 1/-1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
}
.status-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.status-heading h2 {
  margin: 4px 0;
  font-size: 24px;
}
.resend-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid #596846;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12px;
}
.resend-button:disabled {
  color: var(--muted);
  border-color: var(--line);
}
#resend {
  margin-top: 13px;
  width: 100%;
}
.status-note {
  font-size: 12px;
  color: var(--muted);
}
.status-total {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
#status-content canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}
#status-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 20px 0;
}
#status-content td,
#status-content th {
  text-align: left;
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#status-content th {
  font-size: 11px;
  color: var(--muted);
}
#status-content progress {
  width: 100%;
  height: 14px;
  accent-color: var(--accent);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
@media (max-width: 640px) {
  .team-status {
    padding: 22px 16px;
  }
  #status-content td,
  #status-content th {
    padding: 8px 4px;
    font-size: 11px;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.language-toggle button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 7px 2px;
  min-height: 36px;
}
.language-toggle button[aria-pressed=true] {
  color: var(--accent);
  font-weight: 700;
}
.language-toggle button:hover {
  color: var(--text);
}
.requirements-title > span:first-child {
  color: #dce8df;
  font-size: 11px;
}
.mode-title h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.eligibility {
  flex-shrink: 0;
}
.login span:first-child {
  margin-left: 0;
}
html[lang=en] h1 {
  letter-spacing: -1.5px;
}
html[lang=en] main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 850px) {
  .header-actions {
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .header-actions {
    gap: 0;
  }
  .header-label {
    display: none;
  }
  html[lang=en] main {
    grid-template-columns: minmax(0, 1fr);
  }
  .language-toggle {
    font-size: 11px;
  }
  .status-heading {
    gap: 12px;
  }
  .status-heading h2 {
    font-size: 20px;
  }
  .status-heading button {
    flex-shrink: 0;
  }
  .mode-title {
    align-items: flex-start;
  }
  .eligibility {
    max-width: 42%;
    text-align: center;
  }
  .account {
    padding: 13px;
    gap: 8px;
  }
  .text-button {
    white-space: normal;
  }
  .status-total {
    overflow-wrap: anywhere;
  }
}
.account .text-button {
  flex-shrink: 0;
  white-space: nowrap;
}
