/* Project site for New Tab Mii Plaza (https://ankush.one/newtab-mii-plaza/).
   Calm plaza haze, clean spacing, single focal screenshot, zero marketing clutter. */

:root {
  color-scheme: light dark;
  --bg: light-dark(#e9f1f4, #14181b);
  --surface: light-dark(rgb(255 255 255 / 0.8), rgb(29 35 39 / 0.85));
  --soft: light-dark(rgb(45 70 85 / 0.07), rgb(255 255 255 / 0.08));
  --soft-hover: light-dark(rgb(45 70 85 / 0.13), rgb(255 255 255 / 0.14));
  --line: light-dark(rgb(45 70 85 / 0.12), rgb(255 255 255 / 0.09));
  --ink: light-dark(#3b4246, #d7dfe3);
  --strong: light-dark(#1a2023, #f2f6f8);
  --muted: light-dark(rgb(59 66 70 / 0.66), rgb(215 223 227 / 0.62));
  --sky: #4fbfee;
  --sky-deep: #249ad2;
  --shadow: 0 24px 60px -30px light-dark(rgb(20 50 70 / 0.35), rgb(0 0 0 / 0.78));
  --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --font: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg);
  background-image: radial-gradient(
    ellipse 80% 45% at 50% 0%,
    light-dark(rgb(79 191 238 / 0.16), rgb(79 191 238 / 0.1)),
    transparent 70%
  );
  background-repeat: no-repeat;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: light-dark(var(--sky-deep), var(--sky));
  text-underline-offset: 2px;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--soft);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bi {
  width: 22px;
  height: 22px;
  flex: none;
}

.icon {
  display: block;
  width: 12px;
  height: 12px;
  flex: none;
}

/* Header ------------------------------------------------------------------------------------------ */

.site-head {
  width: min(920px, 100% - 32px);
  margin: 0 auto;
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.head-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.head-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.head-links a:hover {
  background: var(--soft);
  color: var(--strong);
}

.head-links a:has(.mark) {
  padding-left: 5px;
}

.mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
}

.mark-discord {
  background: #5865f2;
}

.mark-github {
  background: #181717;
}

.mark-sponsor {
  background: #ea4aaa;
}

.mark-sponsor .icon {
  transform: translateY(0.5px);
}

.mark-kofi {
  background: #ff6433;
}

.mark-bmc {
  background: #ffdd00;
  color: #000;
}

/* Main -------------------------------------------------------------------------------------------- */

.page {
  width: min(920px, 100% - 32px);
  margin: 0 auto;
  padding: 40px 0 32px;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 10px 24px -10px rgb(20 50 70 / 0.35);
}

h1 {
  max-width: 22ch;
  margin: 18px 0 0;
  color: var(--strong);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  max-width: 56ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17px);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px 0 14px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--strong);
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 4px 14px -8px light-dark(rgb(20 50 70 / 0.35), rgb(0 0 0 / 0.65));
  transition: transform 0.22s var(--spring);
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, #6fd0f6 0%, var(--sky) 55%, var(--sky-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    0 10px 22px -12px rgb(36 154 210 / 0.85);
  color: #fff;
  text-shadow: 0 1px 1px rgb(15 75 110 / 0.3);
}

/* Where each store stands, under the buttons: a green dot once live, amber while it's coming. */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.store::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2a93b;
  box-shadow: 0 0 0 3px rgb(242 169 59 / 0.18);
}

.store[data-state='live']::before {
  background: #34c27a;
  box-shadow: 0 0 0 3px rgb(52 194 122 / 0.18);
}

.store b {
  color: var(--strong);
  font-weight: 650;
}

a.store:hover b {
  color: var(--sky-deep);
}

/* Screenshot -------------------------------------------------------------------------------------- */

.shot-wrap {
  margin: 40px 0 0;
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.shot[data-mode='light'] .shot-dark,
.shot[data-mode='dark'] .shot-light {
  opacity: 0;
  pointer-events: none;
}

.theme-switch {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  padding: 3px;
  border-radius: 99px;
  background: light-dark(rgb(255 255 255 / 0.82), rgb(24 29 33 / 0.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.theme-btn[aria-pressed='true'] {
  background: var(--surface);
  color: var(--strong);
}

.shot-cap {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Overview notes (no boxes, max 2 lines) ----------------------------------------------------------- */

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.notes h2 {
  margin: 0 0 4px;
  color: var(--strong);
  font-size: 15px;
  font-weight: 700;
}

.notes p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Install ----------------------------------------------------------------------------------------- */

.install {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.install h2 {
  margin: 0 0 4px;
  color: var(--strong);
  font-size: 20px;
  font-weight: 750;
}


/* The visitor's browser goes first in the install steps too. */
:root[data-browser='firefox'] [data-steps='firefox'] {
  order: -1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.steps > div {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
}

.steps h3 {
  margin: 0 0 8px;
  color: var(--strong);
  font-size: 15px;
  font-weight: 700;
}

.steps ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
}

.steps li + li {
  margin-top: 5px;
}

/* FAQ --------------------------------------------------------------------------------------------- */

.faq {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.faq h2 {
  margin: 0 0 14px;
  color: var(--strong);
  font-size: 20px;
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq details {
  border-radius: 14px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--strong);
  font-size: 14.5px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 18px 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer & Support -------------------------------------------------------------------------------- */

.foot {
  width: min(920px, 100% - 32px);
  margin: 24px auto 0;
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.support-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.support-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 5px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--strong);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease;
}

.support-row a:hover {
  background: var(--soft-hover);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--muted);
}

.foot-meta a {
  color: var(--muted);
  text-decoration: none;
}

.foot-meta a:hover {
  color: var(--strong);
}

.legal {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-wrap: pretty;
}

.legal a {
  color: inherit;
}

.legal a:hover {
  color: var(--strong);
}

/* Privacy policy (site/privacy.html) -------------------------------------------------------------- */

.prose {
  width: min(720px, 100% - 32px);
  padding-top: 40px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--strong);
  font-weight: 650;
  text-decoration: none;
}

.back img {
  border-radius: 8px;
}

.prose h1 {
  max-width: none;
  margin-top: 36px;
  font-size: clamp(28px, 5vw, 38px);
  text-align: left;
}

.prose h2 {
  margin-top: 32px;
  color: var(--strong);
  font-size: 19px;
  font-weight: 750;
}


.prose ul {
  padding-left: 20px;
}

.prose li + li {
  margin-top: 6px;
}

.prose-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.prose-foot a {
  color: var(--muted);
  text-decoration: none;
}

.prose-foot a:hover {
  color: var(--strong);
}

@media (max-width: 720px) {
  .notes {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .link-text {
    display: none;
  }

  .head-links a {
    padding: 0 7px;
  }

  .page {
    padding-top: 28px;
  }

  .actions,
  .btn {
    width: 100%;
  }

  .shot {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .shot-img {
    transition: none;
  }
}
