/* Mate or Not? shared theme */
:root{
  --bg: #121213;
  --bg-elev: #1e1f20;
  --ink: #d7dadc;
  --ink-2: #a8aaac;
  --ink-3: #818384;
  --ink-4: #565758;
  --line: #3a3a3c;
  --line-2: #232425;

  --board-light: #818384;
  --board-dark:  #3a3a3c;
  --board-edge:  #0a0a0b;

  --accent: #538d4e;
  --accent-soft: rgba(83,141,78,.22);

  --ok:    #538d4e;
  --warn:  #b59f3b;
  --bad:   #c14a3c;

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --status-block-height: 80px;
}

*,*::before,*::after{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,input{ font: inherit; color: inherit; }
[hidden]{ display: none !important; }

.app{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
html.instant-home-active #root{ display: none; }

.topbar{
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.brand-mark{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 36;
  line-height: 1;
}
.brand-mark em{
  font-style: italic;
  color: #d96a5a;
  font-weight: 400;
  margin-left: 0.12em;
}
.brand-sub{
  font-family: var(--mono);
  font-size: 10.5px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  line-height: 1;
}

.mode-switch{
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: #0a0a0b;
  border: 1px solid #050506;
  border-radius: 999px;
  padding: 4px;
  position: relative;
  gap: 0;
}
.mode-switch button{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 18px;
  min-width: 78px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-3);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s;
  position: relative;
  z-index: 1;
}
.mode-switch button:hover{ color: var(--ink-2); }
.mode-switch button.on{ color: #f5f7f0; }
.mode-switch .pill{
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform .28s cubic-bezier(.4,.0,.2,1);
  z-index: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 2px 8px rgba(83,141,78,.4);
}

@media (max-width: 600px){
  .topbar-inner{ padding: 14px 18px; gap: 12px; }
  .brand-sub{ display: none; }
}
