/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base typography */
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* App container */
#app {
  display: flex;
  flex-direction: column;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  min-height: 100vh;
}

/* View switching: author display rules must not defeat the hidden attribute */
#app > section[hidden] {
  display: none !important;
}

/* Error state */
.error {
  color: var(--color-error);
  display: block !important;
  padding: var(--space-4);
  border: 1px solid var(--color-error);
  border-radius: var(--border-radius);
  background: #FFF5F0;
}

/* Buttons */
button {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

button:hover {
  background: var(--color-border);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  width: 100%;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Landing view: compact welcome splash (issue #53) ────────────────

   The window itself is sized for this view in css/shell.css; this block
   is only the wizard card inside it. Centred icon-first column: a 64px
   eye glyph, the display-face catchphrase on its pixel grid (Silkscreen
   32px, uppercase), the Bank Variant's title as subtitle, a hairline
   rule, one body line, the time estimate, and a single default [Start]. */

#landing-view.wizard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 22px 14px;
  background: var(--color-bg);
  box-shadow: inset 1px 1px #808080, inset -1px -1px #FFFFFF;
}

.wizard-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wizard-icon {
  display: block;
  flex: none;
  width: 64px;
  height: 64px;
  line-height: 0;
}

.wizard-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

#landing-view .wizard-title {
  margin: 2px 0 0;
  font-family: 'Silkscreen', var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #000000;
}

#landing-view .wizard-line {
  display: block;
}

#landing-view .wizard-sub {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 13px;
  color: #000000;
}

#landing-view .wizard-rule {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid #808080;
  box-shadow: 0 1px 0 #FFFFFF;
  margin: 12px 0 10px;
}

#landing-view .wizard-body {
  margin: 0 auto 8px;
  max-width: 46ch;
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.5;
  color: #000000;
}

#landing-view .wizard-meta {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-text-light);
}

.wizard-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.wizard-btn {
  height: 26px;
  min-width: 78px;
  padding: 0 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  box-shadow: var(--bevel-raised);
}

.wizard-btn-default {
  box-shadow: var(--bevel-raised), 0 0 0 1px #000000;
}

.wizard-btn:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

/* Chinese: the headline moves to the CJK pixel face on its 36px grid
   (html[lang^="zh"] --font-heading leads with the Fusion Pixel subset);
   Han has no case, so the EN-only uppercase transform is dropped. */

html[lang^="zh"] #landing-view .wizard-title {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: normal;
}

html[lang^="zh"] #landing-view .wizard-sub,
html[lang^="zh"] #landing-view .wizard-meta,
html[lang^="zh"] #landing-view .wizard-btn {
  font-family: var(--font-heading);
  font-size: 12px;
}

html[lang^="zh"] #landing-view .wizard-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  max-width: 100%;
}

/* Responsive — Tablet */
@media (max-width: 768px) {
  #app {
    padding: var(--space-6) var(--space-3);
  }
}

/* Responsive — Mobile */
@media (max-width: 480px) {
  #app {
    padding: var(--space-4) var(--space-3);
  }

  p {
    font-size: 16px;
  }
}
