/* FridgeToon — order form. Static, Pages-ready. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("fonts/fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1C1630;
  --ink-muted: #3F3A55;
  --bg: #FFF4E8;
  --bg-spot: #FFE3C8;
  --paper: #FFFFFF;
  --line: #E6D3C0;
  --primary: #5B21B6;
  --primary-hover: #4C1D95;
  --primary-soft: #EDE9FE;
  --primary-ring: #7C3AED;
  --pink: #9F1239;
  --teal: #0F766E;
  --gold: #92400E;
  --success: #047857;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --focus: #5B21B6;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(28, 22, 48, 0.08);
  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --space: 20px;
  --tap: 48px;
  --max: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  /* Small corner dots only, kept clear of the text column. */
  background-image:
    radial-gradient(circle at 16px 18px, #FECACA 0 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 14px) 28px, #FDE68A 0 6px, transparent 7px);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-hover);
}

/* Visible focus for everything interactive — WCAG 2.4.7 */
:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline-color: #fff;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
.site-footer {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 1.35rem 0 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(76, 29, 149, 0.25);
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tag {
  margin: 0.15rem 0 0;
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: #FEF3C7;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(146, 64, 14, 0.18);
}

.lede {
  margin: 1rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
}

.lede-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* Limits accordion */
.limits {
  margin: 1rem 0 1.25rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.limits summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 3rem 0.95rem 1.1rem;
  min-height: var(--tap);
  cursor: pointer;
  position: relative;
  font-weight: 800;
}

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

.limits summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.limits[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.limits-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.limits-hint {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.limits-body {
  padding: 0 1.1rem 1.15rem;
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.limits-col h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.limits-col:first-child h2 {
  color: var(--teal);
}

.limits-col:last-child h2 {
  color: var(--pink);
}

.limits-col ul {
  margin: 0;
  padding-left: 1.15rem;
}

.limits-col li + li {
  margin-top: 0.3rem;
}

/* Form chrome */
#order-form {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
}

.progress-wrap {
  margin-bottom: 1.15rem;
}

.progress-text {
  margin: 0 0 0.5rem;
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.progress-bar {
  height: 10px;
  background: #F3E8D8;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F59E0B, #E11D48 55%, #5B21B6);
  transition: width 0.3s ease;
}

.progress-dots {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.progress-dots li {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: #F3E8D8;
  color: var(--ink-muted);
  border: 2px solid transparent;
}

.progress-dots li.is-done {
  background: var(--primary-soft);
  color: var(--primary);
}

.progress-dots li.is-current {
  background: var(--primary);
  color: #fff;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

.step-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.step-title:focus {
  outline: none;
}

.step-title:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

.step-lead {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
}

.field {
  margin-bottom: 1.05rem;
}

.field label,
.field > label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.optional {
  font-weight: 700;
  color: var(--ink-muted);
}

.field-hint {
  margin: 0.4rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.field-error {
  margin: 0.4rem 0 0;
  color: var(--error);
  font-weight: 700;
  font-size: 0.92rem;
}

.field.is-invalid input,
.field.is-invalid textarea,
.dropzone.is-invalid {
  border-color: var(--error);
  background: var(--error-bg);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  border: 2px solid #CDBBA8;
  border-radius: 14px;
  background: #FFFCF8;
  appearance: none;
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: #6B657F;
  opacity: 1;
}

input:hover,
textarea:hover {
  border-color: #A89078;
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
  outline: none;
}

/* Checkboxes — large tap target */
.check-field {
  background: #FFF8F1;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0.2rem;
}

.check-field.is-invalid {
  border-color: var(--error);
  background: var(--error-bg);
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 !important;
  padding: 0.8rem;
  min-height: var(--tap);
  font-weight: 700 !important;
  cursor: pointer;
  border-radius: 14px;
}

.check-label input[type="checkbox"] {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: var(--primary);
}

.check-label .new-tab {
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* Game type cards */
.game-types {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.game-card {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.game-card input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.game-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 9.25rem;
  height: 100%;
  padding: 0.75rem 0.7rem 0.8rem;
  background: #FFFCF8;
  border: 2px solid #CDBBA8;
  border-radius: 16px;
  pointer-events: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover .game-card-inner {
  border-color: var(--primary-ring);
}

.game-card input:focus-visible + .game-card-inner {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-color: var(--primary);
}

.game-card input:checked + .game-card-inner {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.game-emoji {
  font-size: 1.55rem;
  line-height: 1;
}

.game-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
}

.game-desc {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.subhead {
  margin: 1.15rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Package choice (order form step 2) */
.package-types {
  border: 0;
  margin: 0 0 0.35rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.package-card {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.package-card input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.package-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  height: 100%;
  padding: 0.95rem 1rem 1.05rem;
  background: #FFFCF8;
  border: 2px solid #CDBBA8;
  border-radius: 16px;
  pointer-events: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.package-card:hover .package-card-inner {
  border-color: var(--primary-ring);
}

.package-card input:focus-visible + .package-card-inner {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-color: var(--primary);
}

.package-card input:checked + .package-card-inner {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.package-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}

.package-price {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.55rem;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.package-desc {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Upload */
.tip {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  background: #FEF3C7;
  border-radius: 14px;
  color: var(--gold);
  font-weight: 700;
}

.tip strong {
  color: var(--ink);
}

.dropzone {
  position: relative;
  border: 2px dashed #A89078;
  border-radius: 18px;
  background: #FFFCF8;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone.is-dragover {
  border-color: var(--primary);
  border-style: solid;
  background: var(--primary-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.4rem 1rem;
  pointer-events: none;
}

.dropzone-icon {
  font-size: 2rem;
}

.dropzone-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
}

.dropzone-sub {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 22rem;
}

.thumbs {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.thumb {
  position: relative;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #F3E8D8;
  aspect-ratio: 1;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.thumb-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.25rem 0.4rem;
  background: linear-gradient(transparent, rgba(28, 22, 48, 0.8));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #1C1630;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.thumb-remove:hover {
  background: var(--error);
}

.thumb-remove:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}

/* Review */
.review {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.review-block {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: #FFFCF8;
}

.review-block header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.review-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
}

.edit-link {
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 800;
  min-height: 44px;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
}

.edit-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.review-block dl {
  margin: 0;
}

.review-block div + div {
  margin-top: 0.45rem;
}

.review-block dt {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.review-block dd {
  margin: 0.1rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.review-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.review-thumbs img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--line);
}

/* Actions sit at the end of the step so they never cover fields. */
.actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.35rem 0 0.15rem;
}

.btn {
  flex: 1;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.08rem;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 0 var(--primary-hover);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 4px 0 var(--primary-hover), 0 0 0 6px #FDE68A;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  flex: 0 0 34%;
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

@media (max-width: 639px) {
  .actions:has(#submit-btn:not([hidden])) {
    flex-direction: column;
  }

  .actions:has(#submit-btn:not([hidden])) .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Confirmation */
.confirm {
  margin: 0.5rem 0 2rem;
}

.confirm-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem 1.25rem 2.2rem;
  text-align: center;
}

.confirm-emoji {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
}

.confirm-lead {
  margin: 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.confirm-note {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  padding: 0.5rem 0 2.5rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.4rem;
}

.footer-note {
  font-size: 0.85rem;
}

/* Legal pages share this sheet */
.legal {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem 1.8rem;
  margin: 0.75rem 0 2rem;
}

.legal h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 650;
}

.legal .banner {
  background: #FEF3C7;
  color: var(--gold);
  font-weight: 800;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  margin: 0 0 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}

/* Desktop breathing room */
@media (min-width: 640px) {
  .limits-body {
    grid-template-columns: 1fr 1fr;
  }

  .package-types {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .game-types {
    gap: 0.85rem;
  }

  .game-card-inner {
    min-height: 9rem;
    padding: 0.95rem;
  }

  .game-name {
    font-size: 1.05rem;
  }

  .game-desc {
    font-size: 0.9rem;
  }

  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  #order-form,
  .confirm-card,
  .legal {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

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

/* After step 1, tuck the intro so the current step has more room on a phone. */
body.is-past-intro .lede,
body.is-past-intro .lede-sub {
  display: none;
}

body.is-confirmed .lede,
body.is-confirmed .lede-sub {
  display: none;
}

/* ==========================================================
   Homepage (index.html). Reuses the tokens and components above.
   ========================================================== */

body.home {
  --max: 68rem;
}

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

a.btn-primary,
a.btn-primary:hover {
  color: #fff;
}

a.btn-secondary,
a.btn-secondary:hover {
  color: var(--primary);
}

.btn-inline {
  display: inline-flex;
  flex: none;
  padding-inline: 2rem;
}

.fine {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Expand the hit area of mid-sentence links without changing line wrapping. */
.fine a,
.safe-card p a {
  display: inline-block;
  padding: 0.7rem 0.25rem;
  margin: -0.7rem -0.25rem;
  border-radius: 8px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  color: var(--ink);
  text-decoration: none;
  min-height: 48px;
}

.brand-link:hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--primary-soft);
}

/* Hero */
.hero {
  display: grid;
  gap: 1.25rem;
  padding: 0.75rem 0 1.5rem;
  align-items: center;
}

.hero-tag {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8.5vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-lede {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-actions .btn {
  flex: 1 1 11rem;
}

.hero-logo {
  margin: 0;
  justify-self: center;
  width: min(100%, 26rem);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */
.section {
  padding: 1.75rem 0;
  scroll-margin-top: 0.5rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--ink-muted);
}

.section h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

/* How it works */
.steps-list,
.tier-list,
.type-list,
.safe-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-list {
  display: grid;
  gap: 0.9rem;
}

.step-card,
.tier-card,
.example-card,
.safe-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin: 0.6rem 0 0.35rem;
}

.step-card p,
.tier-card p {
  margin: 0;
  color: var(--ink-muted);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
}

/* Example */
.example-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem;
}

.example-flow {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.example-drawings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  width: 100%;
}

.example-card figure {
  margin: 0;
}

.example-card figcaption {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.example-drawings img,
.example-shot img {
  display: block;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #F3E8D8;
}

.example-drawings img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.example-arrow {
  margin: 0;
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
  transform: rotate(90deg);
}

.example-shot {
  width: min(100%, 15rem);
}

.example-text p {
  margin: 0 0 0.9rem;
}

.example-text .fine {
  margin-top: 0.25rem;
}

/* Game types */
.type-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.8rem 0.75rem 0.9rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
}

.type-card .game-name {
  margin: 0.2rem 0 0;
}

.type-card .game-desc {
  margin: 0;
}

/* Can / can't */
.limits-static {
  box-shadow: var(--shadow);
}

.limits-static .limits-body {
  border-top: 0;
  padding-top: 1.1rem;
}

.limits-static .limits-col h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.limits-static .limits-col:first-child h3 {
  color: var(--teal);
}

.limits-static .limits-col:last-child h3 {
  color: var(--pink);
}

/* Tiers */
.tier-list {
  display: grid;
  gap: 0.8rem;
}

.tier-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.tier-amount {
  margin: 0.2rem 0 0.55rem !important;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--primary) !important;
}

.tier-price {
  margin-top: 0.75rem !important;
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  background: #FEF3C7;
  color: var(--gold) !important;
  font-size: 0.82rem;
  font-weight: 800;
}

.tier-soon {
  background: #FFFCF8;
}

.tier-top {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.tier-badge {
  margin: 0 0 0.4rem !important;
  color: var(--primary) !important;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Character tier samples */
.tier-card.character-tier {
  grid-column: 1 / -1;
}

.character-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 1rem 0 0.45rem;
  padding: 0;
}

.character-samples figure {
  margin: 0;
  min-width: 0;
}

.character-samples img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #F3F0EC;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.character-samples figcaption {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.character-upsell {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.character-upsell p {
  margin: 0 0 0.65rem;
}

.character-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.85rem 0 0;
}

.credit-note {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.game-type-block.is-hidden,
.character-only-note[hidden] {
  display: none;
}

/* Safe */
.safe-list li {
  position: relative;
  padding-left: 1.7rem;
}

.safe-list li + li {
  margin-top: 0.55rem;
}

.safe-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 800;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 44rem;
}

.faq {
  margin: 0;
}

.faq summary {
  justify-content: center;
}

.faq-body {
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.faq-body p {
  margin: 0;
}

/* Final CTA */
.final-cta {
  text-align: center;
  margin: 1rem 0 0.5rem;
  padding: 2rem 1.1rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.final-cta .section-lead {
  margin-inline: auto;
}

.final-cta p:last-child {
  margin: 0;
}

.site-footer .footer-note:first-child {
  font-weight: 700;
}

@media (min-width: 640px) {
  .hero-logo {
    width: 24rem;
  }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .type-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .example-card {
    padding: 1.4rem;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding-top: 1.75rem;
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    padding: 2rem 0 2.5rem;
  }

  .hero-lede {
    font-size: 1.5rem;
  }

  .hero-actions .btn {
    flex: 0 1 auto;
    min-width: 13rem;
  }

  .hero-logo {
    width: 100%;
    justify-self: end;
  }

  .section {
    padding: 2.5rem 0;
  }

  .tier-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .package-types {
    grid-template-columns: repeat(3, 1fr);
  }

  .type-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .example-card {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem;
  }

  .example-flow {
    grid-template-columns: 1.5fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: 0.75rem;
  }

  .example-arrow {
    transform: none;
  }

  .example-text p {
    font-size: 1.1rem;
  }

  .example-text .fine {
    font-size: 0.92rem;
  }
}

/* Brand block used as a link back to the homepage */
a.brand-home,
a.brand-home:hover {
  color: var(--ink);
  text-decoration: none;
  min-height: 48px;
}

/* ==========================================================
   Arcade hub (arcade/index.html)
   ========================================================== */

body.arcade-page {
  --max: 68rem;
}

.arcade-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding-top: 0.5rem;
}

h1.arcade-hero-logo {
  margin: 0 auto 0.35rem;
  width: min(100%, 38rem);
  background: transparent;
}

h1.arcade-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  background: transparent;
}

.site-header .home-header {
  width: 100%;
}

.arcade-hero .section-lead,
.arcade-hero .arcade-safe,
.arcade-hero .arcade-hero-actions {
  width: min(100%, 42rem);
}

.arcade-safe {
  margin: 0 0 1.25rem;
  max-width: 42rem;
}

.arcade-hero-actions {
  margin: 0;
}

.arcade-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.arcade-filter {
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 650;
}

.arcade-filter.is-on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.arcade-grid {
  display: grid;
  gap: 1.25rem;
}

.arcade-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.arcade-character {
  margin: 0;
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: #FEF3C7;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.arcade-game-title {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.arcade-blurb {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.arcade-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.arcade-card figure {
  margin: 0;
}

.arcade-card figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
}

.arcade-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
}

.arcade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.arcade-actions .btn,
.arcade-actions .btn-secondary {
  flex: 1 1 10rem;
}

.arcade-empty {
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .arcade-card {
    padding: 1.4rem;
  }
}

@media (min-width: 960px) {
  .arcade-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0.35rem 2rem;
    align-items: center;
    padding: 1.75rem;
  }

  .arcade-media {
    grid-column: 1;
    grid-row: 1 / span 5;
    gap: 1.25rem;
    max-width: none;
  }

  .arcade-character,
  .arcade-game-title,
  .arcade-blurb,
  .arcade-actions {
    grid-column: 2;
  }

  .arcade-character {
    justify-self: start;
  }
}

/* Order submit (backend wired Nov 14) */
.turnstile-field { min-height: 70px; margin-top: 1rem; }
.submit-status { margin: 1rem 0 0; font-weight: 600; }
.ft-page { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.ft-page h1 { margin-top: 0.5rem; }
.ft-page .ft-box { background: #fff; border-radius: 16px; padding: 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.08); margin: 1rem 0; }
.ft-page .ft-muted { opacity: .8; font-size: .95em; }
.ft-page table { width: 100%; border-collapse: collapse; font-size: .95em; }
.ft-page td, .ft-page th { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid #eee; vertical-align: top; }
.ft-page textarea, .ft-page input[type=text], .ft-page input[type=url] { width: 100%; box-sizing: border-box; padding: .5rem; font: inherit; }
.ft-page .ft-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ft-page .ft-thumbs img { max-width: 160px; max-height: 160px; border-radius: 8px; margin: 4px; }
.ft-page .ft-choice { display: block; padding: .75rem; border: 2px solid #ddd; border-radius: 12px; margin: .5rem 0; }
