:root {
  color-scheme: dark;
  --bg: #141318;
  --panel: #1d1b23;
  --line: #36313e;
  --ink: #f7f3fa;
  --muted: #b2aab9;
  --purple: #cbb2ff;
  --green: #99e4c6;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
[hidden] { display: none !important; }

.page {
  max-width: 732px;
  margin: 0 auto;
  padding: 27px 24px 32px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 720; }
.brand img { display: block; }
.mode { color: var(--purple); font-size: .8125rem; }

.intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 137px;
  gap: 15px;
  padding: 19px 17px 25px 0;
}

.channel { color: var(--muted); font-size: .875rem; font-weight: 630; }
.channel b { color: var(--purple); margin-right: 1px; }
h1 { margin-top: 3px; font-size: clamp(2.4rem, 8.5vw, 4.25rem); letter-spacing: -.075em; line-height: 1.06; }
h1 em { font-style: normal; color: var(--purple); white-space: nowrap; }

.token {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 79px;
  height: 79px;
  color: #dac6ff;
  background: #2f2444;
  border: 1px solid #6b5488;
  border-radius: 50%;
  box-shadow: 3px 4px 0 #141318, 4px 5px 0 #594678;
  transform: rotate(12deg);
}

.token-face {
  display: grid;
  place-content: center;
  width: 63px;
  height: 63px;
  border: 1px dashed #9679c0;
  border-radius: 50%;
  text-align: center;
  line-height: 1;
}

.token-face span { font-size: 2rem; font-weight: 860; }
.token-face small { font-size: .64rem; font-weight: 800; letter-spacing: .14em; }
.channel-body { border-top: 1px solid var(--line); }
.chat { display: grid; gap: 17px; padding: 21px 0 23px; }
.message { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: start; gap: 10px; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; font-weight: 800; }
.raszu { background: #3a2a51; color: #e2d0ff; border: 1px solid #584075; }
.rift { background: #2e463e url(/rift-banner.webp) 98% 20% / 420% auto; border: 1px solid #5b6274; }
.message-meta { display: flex; gap: 7px; align-items: baseline; flex-wrap: wrap; line-height: 1.3; }
.message-meta strong { font-size: .875rem; }
.message time { color: var(--muted); font-size: .75rem; }
.name-violet { color: var(--purple); }
.name-teal { color: var(--green); }
.message p { color: #e8e2ec; line-height: 1.4; margin-top: 4px; }

.drop {
  padding: 19px;
  border: 1px solid #454052;
  border-radius: 14px;
  background: var(--panel);
}

.drop-heading { display: flex; align-items: center; gap: 12px; }
.drop h2 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.025em; }
#quote { margin-top: 3px; color: var(--muted); font-size: .875rem; }

.sol-mark {
  flex: 0 0 40px;
  display: grid;
  justify-content: center;
  align-content: center;
  gap: 3px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #353044;
  border: 1px solid #4c405f;
}

.sol-mark i { width: 18px; height: 4px; border-radius: 1px; background: var(--green); transform: skewX(-38deg); }
.sol-mark i:nth-child(2) { background: #bbc1f0; transform: skewX(38deg); }
.sol-mark i:nth-child(3) { background: var(--purple); }

.drop-status {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding: 8px 0;
  border-block: 1px solid var(--line);
}

.status { display: flex; align-items: center; gap: 7px; color: var(--purple); font-size: .875rem; }
.status[data-kind="open"] { color: var(--green); }
.status i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.status-text p { margin-left: 14px; color: var(--muted); font-size: .8125rem; }
.status-text p:empty { display: none; }
.clock { padding: 3px 8px; border-radius: 7px; background: #352a47; color: #eadbff; font: 650 .875rem/1.5 ui-monospace, monospace; }
#claim { margin-top: 13px; }
label { display: block; font-size: .875rem; font-weight: 650; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
input, button { min-height: 44px; border-radius: 8px; }
input { width: 100%; padding: 7px 11px; border: 1px solid #4b4457; background: var(--bg); color: var(--ink); }
input::placeholder { color: var(--muted); }
input:disabled { border-color: var(--line); }
button { padding: 7px 15px; border: 1px solid transparent; background: var(--purple); color: #221631; font-size: .875rem; font-weight: 800; cursor: pointer; }
button:enabled:hover { background: #e0ccff; }
button:disabled { background: #393244; color: #c9bdd4; cursor: default; }
.feedback, .explorer { display: block; margin-top: 9px; font-size: .875rem; }
.feedback[data-kind="error"] { color: #ffbccb; }
.feedback[data-kind="success"] { color: var(--green); }
.explorer { color: var(--purple); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 13px; color: var(--muted); font-size: .8125rem; }

@media (max-width: 520px) {
  .page { padding: 17px 16px 21px; }
  .masthead { padding-bottom: 14px; }
  .intro { min-height: 108px; padding: 15px 6px 17px 0; }
  .token { width: 53px; height: 53px; }
  .token-face { width: 42px; height: 42px; }
  .token-face span { font-size: 1.32rem; }
  .token-face small { font-size: .48rem; }
  .chat { gap: 14px; padding: 17px 0 19px; }
  .drop { padding: 13px; }
}

@media (max-width: 370px) {
  .token { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
