* { box-sizing: border-box; }

body.retro-body {
  margin: 0;
  min-height: 100vh;
  padding: 22px 12px 60px;
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  font-size: 14px;
  color: #001a33;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.75) 0 1px, transparent 2px) 0 0 / 46px 46px,
    radial-gradient(circle at 72% 68%, rgba(255,255,255,.55) 0 1px, transparent 2px) 0 0 / 37px 37px,
    linear-gradient(160deg, #3b0a63, #102f6b 45%, #06375e 70%, #12073f);
}

.retro-stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 42% 8%, #ffe9a8 0 1px, transparent 2px),
    radial-gradient(circle at 78% 24%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 88% 62%, #bff 0 1px, transparent 2px),
    radial-gradient(circle at 26% 72%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 64% 86%, #ffd1f5 0 1px, transparent 2px);
  opacity: .8;
}

.retro-shell { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }

.retro-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.retro-logo {
  display: inline-block;
  padding: 4px 14px;
  font: 700 30px "Trebuchet MS", Arial, sans-serif;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 2px 2px 0 #ff3fa4, 4px 4px 0 #5a1bb5;
  transform: rotate(-3deg);
}
.retro-logo span { color: #ffe95c; text-shadow: 2px 2px 0 #ff3fa4, 4px 4px 0 #5a1bb5; }
.retro-badge {
  padding: 3px 9px;
  font-size: 11px;
  color: #123;
  background: #ffe95c;
  border: 2px outset #fff3a0;
  transform: rotate(2deg);
}

.retro-marquee {
  margin: 6px 0 12px;
  padding: 5px 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, #2a0b4f, #6a1b9a, #2a0b4f);
  border: 2px ridge #c38cff;
}

.retro-window {
  background: #d7d2ec;
  border: 3px ridge #fff;
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
}
.retro-window-title {
  padding: 5px 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(90deg, #1a237e, #7b1fa2 60%, #1a237e);
  border-bottom: 2px groove #fff;
}
.retro-window-body { padding: 14px; background: #fbf7ff; }

.retro-content { min-height: 320px; }
.retro-alert { margin: 0 0 12px; padding: 9px 12px; border: 2px inset #ccb3e8; background: #fff7d6; }
.retro-alert.error { background: #ffe1e8; border-color: #d99ab0; color: #7a1030; }
.retro-ok { margin: 12px 0; padding: 12px; border: 3px double #2e7d32; background: #e8ffe8; color: #1b5e20; font-weight: 700; }

.retro-table { width: 100%; border-collapse: separate; border-spacing: 8px; }
.retro-cell { width: 64%; vertical-align: top; padding: 12px; background: #fff; border: 2px inset #c8bfe0; }
.retro-cell.side { width: 36%; background: linear-gradient(#fff, #eef7ff); }

h2 { margin: 0 0 10px; font-size: 20px; color: #4a148c; text-shadow: 1px 1px 0 #fff; }

.retro-form { display: grid; gap: 10px; }
.retro-form label { display: grid; gap: 4px; font-weight: 700; }
.retro-form input {
  padding: 7px 9px;
  font: inherit;
  color: #111;
  background: #fffef0;
  border: 2px inset #b9a8d6;
}
.retro-form input:focus { outline: 2px dotted #7b1fa2; outline-offset: 1px; }

.retro-button {
  display: inline-block;
  min-height: 32px;
  padding: 5px 15px;
  font: 700 14px "Comic Sans MS", "Trebuchet MS", sans-serif;
  color: #001a33;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(#fffbe0, #ffd95c 45%, #e9a900);
  border: 2px outset #fff3a0;
  box-shadow: 2px 2px 0 rgba(0,0,0,.25);
}
.retro-button:hover { filter: brightness(1.05); }
.retro-button:active { border-style: inset; box-shadow: none; }
.retro-button.big { padding: 9px 22px; font-size: 16px; }
.retro-button.method {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; margin: 0;
}
.retro-methods { display: grid; gap: 8px; margin: 12px 0; }
.method-code {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff; font: 700 12px Arial, sans-serif;
  background: linear-gradient(145deg, #7b1fa2, #1a237e);
}

.retro-amount {
  font: 700 34px "Trebuchet MS", Arial, sans-serif;
  color: #d81b60;
  text-shadow: 2px 2px 0 #ffe95c;
}
.retro-small { font-size: 12px; color: #4a4a6a; line-height: 1.5; }
.retro-note { margin-top: 10px; padding: 9px; font-size: 12px; background: #fffde7; border: 1px dashed #b39ddb; }
.retro-link { color: #6a1b9a; font-weight: 700; }
.retro-welcome { padding: 8px 4px; }
.retro-footer {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  margin-top: 12px; padding: 7px 10px;
  font-size: 11px; color: #e9ddff;
  background: rgba(10, 5, 40, .72);
  border: 1px solid #7e57c2;
}
.retro-counter b { color: #ffe95c; font-family: "Courier New", monospace; letter-spacing: 2px; }

.retro-music { position: fixed; right: 10px; bottom: 10px; z-index: 5; }
.retro-music button { padding: 4px 9px; font: 12px "Comic Sans MS", sans-serif; background: #ffe95c; border: 2px outset #fff3a0; cursor: pointer; }

code { font-family: "Courier New", monospace; background: #f0e6ff; padding: 1px 4px; }

@media (max-width: 700px) {
  body.retro-body { padding: 10px 6px 60px; }
  .retro-table, .retro-table tbody, .retro-table tr, .retro-cell { display: block; width: 100%; }
  .retro-logo { font-size: 24px; }
  .retro-amount { font-size: 28px; }
}
