/* shark — website. Same palette, font and shapes as the in-game menu (bbmix look). */

@font-face {
  font-family: "Hack";
  src: url("fonts/Hack-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #111113;
  --card: #18181b;
  --well: #141416;
  --line: #26262b;
  --hover: #1c1c20;
  --fg: #e7e7ea;
  --muted: #8e8e95;
  --faint: #55555b;
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --red: #ff375f;
  --green: #30d158;
  --radius: 8px;
  --radius-small: 5px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.6 "Hack", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent-soft);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- top bar: ● shark │ coming soon │ … ---------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar .wrap {
  display: flex;
  align-items: stretch;
  height: 48px;
}

.cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.cell:first-child {
  padding-left: 0;
}

.cell.last {
  border-right: 0;
  border-left: 1px solid var(--line);
  margin-left: auto;
  padding-right: 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px var(--accent-soft);
  }
}

.brand {
  font-size: 15px;
  text-decoration: none;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

nav.links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

/* --- pills (tabs, buttons, tags) ---------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.pill:hover {
  border-color: var(--muted);
  color: var(--fg);
}

.pill.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--card) 72%, var(--accent));
  color: color-mix(in srgb, var(--accent) 65%, var(--fg));
}

.pill.small {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

/* --- hero ------------------------------------------------------------------------------ */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 11vw, 96px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 .cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.08em;
  margin-left: 0.06em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero .lead {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.hero .actions .pill {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.hero .notice {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--faint);
  font-size: 12px;
}

/* --- countdown-ish release strip ------------------------------------------------------ */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.strip > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.strip > div:last-child {
  border-right: 0;
}

.strip .num {
  font-size: 26px;
  line-height: 1.2;
}

.strip .label {
  color: var(--muted);
  font-size: 12px;
}

/* --- sections: CAPS header + hint, card body ----------------------------------------- */

section {
  padding: 40px 0;
}

.section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 16px;
}

.head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.head h2 .accent {
  letter-spacing: 0;
  text-transform: none;
}

.head .hint {
  color: var(--faint);
  font-size: 12px;
}

/* --- the live demo ------------------------------------------------------------------- */

.demo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(48, 209, 88, 0.05), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.018) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.018) 31px 32px),
    #0c0c0e;
}

#shark-menu {
  display: block;
  width: 100%;
  height: clamp(420px, 62vw, 640px);
  outline: none;
  cursor: default;
  touch-action: none;
}

.demo .loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  pointer-events: none;
}

.demo.ready .loading {
  display: none;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--well);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  text-align: center;
}

/* --- module grid ---------------------------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--well);
  padding: 12px 14px;
  min-height: 92px;
}

.tile .name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tile .name .dot {
  width: 5px;
  height: 5px;
}

.tile p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tile .cat {
  margin-left: auto;
  color: var(--faint);
  font-size: 11px;
}

/* --- two-column cards ------------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--well);
  padding: 16px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card .tagline {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- quality control --------------------------------------------------------------------- */

.qc {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8px;
}

.qc .statement {
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--well) 88%, var(--accent));
  padding: 22px;
}

.qc .statement .big {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.45;
}

.qc .statement p {
  margin: 0;
  color: color-mix(in srgb, var(--accent) 45%, var(--fg));
}

.checks {
  display: grid;
  gap: 8px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--well);
  padding: 12px 14px;
  font-size: 13px;
}

.check .mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  position: relative;
}

.check .mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.check b {
  display: block;
  font-weight: 400;
}

.check span {
  color: var(--muted);
}

/* --- versions table ------------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--faint);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

td .yes {
  color: var(--green);
}

td .no {
  color: var(--faint);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.state .dot {
  width: 5px;
  height: 5px;
}

.state.planned .dot {
  background: var(--faint);
}

.state.planned {
  color: var(--muted);
}

.scroll-x {
  overflow-x: auto;
}

/* --- faq ---------------------------------------------------------------------------- */

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--well);
  margin-bottom: 8px;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "›";
  color: var(--muted);
  transition: transform 0.15s;
}

details[open] summary::after {
  transform: rotate(90deg);
  color: var(--accent);
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* --- footer ---------------------------------------------------------------------------- */

footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--faint);
  font-size: 12px;
}

/* --- account page ---------------------------------------------------------------------- */

.account {
  display: grid;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 20px;
  min-height: calc(100vh - 160px);
  align-content: start;
}

.account .auth {
  width: 100%;
  max-width: 420px;
  margin: 40px auto 0;
}

#me {
  display: grid;
  gap: 16px;
}

#me[hidden],
.form[hidden],
.section[hidden] {
  display: none;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.form input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--well);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s;
}

.form input:focus {
  border-color: var(--accent);
}

.form button[type="submit"] {
  justify-content: center;
  height: 34px;
  margin-top: 4px;
}

.form button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.form .msg {
  margin: 0;
  min-height: 1.6em;
  color: var(--red);
  font-size: 12px;
}

.small {
  font-size: 12px;
}

.red {
  color: var(--red);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kv td {
  padding: 6px 16px 6px 0;
  vertical-align: top;
}

.kv code {
  color: var(--fg);
  word-break: break-all;
}

/* --- admin tab ------------------------------------------------------------------------- */

#admin {
  display: grid;
  gap: 16px;
}

#admin[hidden],
#view-tabs[hidden],
.notice-box[hidden],
.new-invite[hidden] {
  display: none;
}

#view-tabs {
  margin: 0;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
}

.count[hidden] {
  display: none;
}

.notice-box {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.notice-box p {
  margin: 4px 0 0;
}

.request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.request:last-child {
  border-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.admin-table td {
  vertical-align: middle;
}

.admin-table td.actions {
  display: table-cell;
  text-align: right;
}

.admin-table td.actions .pill {
  margin: 2px 0 2px 4px;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-form input {
  flex: 1;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--well);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.inline-form input:focus {
  border-color: var(--accent);
}

.new-invite {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  background: var(--accent-soft);
}

.new-invite .actions {
  justify-content: flex-start;
}

.pill.danger:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-table tr.details td {
  padding-top: 0;
  background: var(--well);
}

.admin-table tr.details code {
  margin-right: 8px;
}

.admin-table tr[hidden] {
  display: none;
}

.badge {
  margin-left: 4px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
}

/* --- small screens --------------------------------------------------------------------- */

@media (max-width: 760px) {
  nav.links {
    display: none;
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip > div:nth-child(2) {
    border-right: 0;
  }

  .strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .qc {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
