
:root {
  color-scheme: light;
  --ink: #213b34;
  --ink-soft: #60756e;
  --deep: #183c31;
  --leaf: #537961;
  --leaf-soft: #e8f0e8;
  --cream: #f5f4ea;
  --paper: #fffefa;
  --line: #e3e7dc;
  --orange: #c47a4a;
  --danger: #9e473b;
  --shadow: 0 18px 55px rgba(33, 59, 52, .08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  height: 76px;
  max-width: 1200px;
  margin: auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(33, 59, 52, .1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 21px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: #fff; border-radius: 11px 11px 11px 4px; background: var(--deep); font-family: Georgia, serif; font-size: 20px; }
.brand-light { color: var(--leaf); font-weight: 500; }
.header-tag { color: var(--ink-soft); font-size: 13px; letter-spacing: .02em; }

main { max-width: 1060px; margin: 0 auto; padding: 70px 30px 58px; }
.intro { max-width: 770px; margin: 0 auto 37px; text-align: center; }
.eyebrow, .section-label { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--leaf); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(196, 122, 74, .12); }
h1 { margin: 20px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -.045em; color: var(--deep); }
h1 span { color: var(--leaf); }
.intro-copy { max-width: 600px; margin: 0 auto; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.playstyle { max-width: 630px; margin: 24px auto 0; display: inline-flex; align-items: flex-start; gap: 11px; padding: 12px 16px; text-align: left; color: #4c6758; background: #e9efe5; border: 1px solid #dbe6d8; border-radius: 13px; font-size: 12px; line-height: 1.55; }
.playstyle strong { color: var(--deep); }
.playstyle-icon { flex: 0 0 auto; color: var(--orange); font-size: 17px; line-height: 1.1; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(255px, .78fr); gap: 20px; align-items: start; }
.card, .privacy-card { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.form-card { padding: 29px 31px 26px; }
.card-heading { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 23px; }
h2 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -.035em; color: var(--deep); }
.card-subtitle { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; }
.local-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; color: #3f6a4f; background: var(--leaf-soft); font-size: 11px; font-weight: 700; }
.local-badge span { font-size: 8px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 15px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #41584f; font-size: 12px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.optional { font-size: 10px; font-weight: 500; color: #89978e; }
input, textarea { width: 100%; padding: 11px 12px; border: 1px solid #dfe4d9; border-radius: 10px; outline: none; background: #fff; color: var(--ink); font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease; }
input { min-height: 42px; }
textarea { min-height: 81px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a7b0a8; }
input:focus, textarea:focus { border-color: #729079; box-shadow: 0 0 0 3px rgba(83, 121, 97, .13); }

.custom-section { margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.custom-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.custom-heading h3 { margin: 0; color: var(--deep); font-size: 13px; }
.custom-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.custom-stats { display: grid; gap: 9px; }
.custom-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; }
.custom-row input { min-width: 0; font-size: 12px; }
.remove-stat { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #eadbd5; border-radius: 9px; background: #fff9f6; color: var(--danger); font-size: 17px; }
.remove-stat:hover { background: #f9ece6; }

.form-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 13px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.save-status { flex: 1 1 180px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.save-status[data-state="saved"] { color: #3d714d; }
.save-status[data-state="error"] { color: #a3483d; }
.form-actions { display: flex; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 39px; border: 1px solid transparent; border-radius: 10px; padding: 0 13px; font-size: 11px; font-weight: 750; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .remove-stat:focus-visible { outline: 3px solid rgba(83, 121, 97, .3); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--deep); }
.button-primary:hover { background: #265140; }
.button-danger { color: var(--danger); background: transparent; border-color: #eadbd5; }
.button-danger:hover { background: #fff5f0; }
.button-small { min-height: 32px; font-size: 10px; padding: 0 11px; }
.button-quiet { color: var(--leaf); background: #f0f4ed; border-color: #e4ebe1; }
.button-quiet:hover { background: #e8f0e8; }

.privacy-card { padding: 26px 23px 22px; background: #edf1e8; box-shadow: none; border-color: #e0e8db; }
.privacy-icon { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 17px; color: var(--deep); background: #dce7d9; border-radius: 12px 12px 12px 4px; font-size: 20px; }
.privacy-card h2 { font-size: 24px; }
.privacy-card ul { display: grid; gap: 12px; margin: 19px 0 0; padding: 0; list-style: none; }
.privacy-card li { position: relative; padding-left: 16px; color: #596c5f; font-size: 11px; line-height: 1.55; }
.privacy-card li::before { position: absolute; top: 7px; left: 0; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--orange); }
code { padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, .7); font-size: .95em; }
.privacy-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dce4d8; color: #476551; font-size: 10px; line-height: 1.5; font-weight: 650; }

.next-note { display: flex; align-items: center; gap: 16px; max-width: 800px; margin: 37px auto 0; }
.next-line { flex: 0 0 34px; height: 1px; background: var(--orange); }
.next-note p { margin: 0; color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.55; }
.next-note p strong { color: var(--deep); font-weight: 600; }
.version-mark { margin-left: auto; flex: 0 0 auto; color: #9aa69a; font-size: 8px; letter-spacing: .13em; font-weight: 800; white-space: nowrap; }
.site-footer { max-width: 1200px; margin: 0 auto; padding: 19px 30px 23px; display: flex; justify-content: space-between; gap: 12px; color: #87948a; border-top: 1px solid rgba(33, 59, 52, .1); font-size: 10px; }

@media (max-width: 760px) {
  main { padding: 50px 19px 40px; }
  .site-header { height: 66px; padding: 0 19px; }
  .workspace { grid-template-columns: 1fr; }
  .privacy-card { display: grid; grid-template-columns: 39px 1fr; column-gap: 12px; align-items: center; padding: 19px; }
  .privacy-icon { margin: 0; }
  .privacy-card ul, .privacy-note { grid-column: 1 / -1; }
  .privacy-card ul { grid-template-columns: 1fr 1fr; gap: 12px 17px; margin-top: 18px; }
  .privacy-note { margin-top: 16px; }
}
@media (max-width: 520px) {
  .header-tag { font-size: 11px; }
  main { padding: 39px 14px 31px; }
  .intro { margin-bottom: 26px; }
  .intro-copy { font-size: 13px; }
  .playstyle { padding: 11px 12px; font-size: 11px; }
  .form-card { padding: 22px 17px 19px; border-radius: 16px; }
  .card-heading { margin-bottom: 19px; }
  h2 { font-size: 27px; }
  .field-grid { gap: 14px 10px; }
  .field { font-size: 11px; }
  .custom-heading { align-items: flex-start; }
  .custom-row { grid-template-columns: 1fr 1fr auto; gap: 6px; }
  .custom-row input { padding: 10px 8px; }
  .form-footer { align-items: stretch; }
  .form-actions { width: 100%; }
  .form-actions .button { flex: 1; padding: 0 8px; }
  .privacy-card ul { grid-template-columns: 1fr; }
  .next-note { gap: 11px; align-items: flex-start; margin-top: 27px; }
  .next-line { flex-basis: 20px; margin-top: 10px; }
  .next-note p { font-size: 13px; }
  .version-mark { display: none; }
  .site-footer { padding: 15px 14px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
