:root {
  color-scheme: light;
  --ink: #181918;
  --muted: #666b66;
  --line: #dedfda;
  --paper: #f6f6f2;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: var(--paper);
}
button.primary,
.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.danger {
  color: #992b2b;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #aaa;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  min-height: 46px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
label input,
label select,
label textarea {
  margin-top: 7px;
}
label small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--ink);
}
.check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-weight: 400;
  margin: 12px 0;
}
.check input {
  flex-shrink: 0;
  margin-top: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #256146;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 16px;
  background: white;
}
.skip:focus {
  top: 12px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 5%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand img {
  object-fit: contain;
}
.brand-sub {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language select {
  min-width: 66px;
  padding: 8px;
  margin: 0;
}
.shell {
  max-width: 1340px;
  margin: 0 auto;
  padding: 38px 32px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
}
.shell:has(nav[hidden]) {
  display: block;
  max-width: 1080px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
nav a {
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 550;
}
nav a[aria-current="page"] {
  background: var(--ink);
  color: white;
}
nav small {
  padding: 18px 16px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
main {
  min-width: 0;
}
h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin: 8px 0 18px;
  font-weight: 700;
}
h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 0 0 16px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 12px 0;
}
.muted,
.intro {
  color: var(--muted);
}
.intro {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: 18px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 650;
  color: var(--muted);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.heading h1 {
  margin-bottom: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: white;
}
.panel.soft {
  background: var(--paper);
  border-color: transparent;
}
.empty {
  padding: 45px 30px;
  max-width: 780px;
}
.empty img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.field-wide {
  grid-column: 1/-1;
}
.quest-list {
  display: grid;
  gap: 14px;
}
.quest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.quest-row h2 {
  font-size: 22px;
  margin: 10px 0;
}
.quest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.draft-delete-dialog {
  width: min(480px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: white;
}
.draft-delete-dialog::backdrop {
  background: rgb(0 0 0 / 35%);
}
.draft-delete-dialog h2 {
  margin: 0 0 12px;
}
.draft-delete-dialog p {
  overflow-wrap: anywhere;
}
.quest-row p {
  margin: 6px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--paper);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #777;
}
.badge.published::before {
  background: #356d4d;
}
.badge.review::before {
  background: #af852d;
}
.feedback {
  border-left: 3px solid #a9823b;
  padding: 10px 16px;
  background: #faf8f2;
  margin: 16px 0;
  white-space: pre-wrap;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.filters button {
  font-size: 13px;
  min-height: 38px;
  padding: 7px 13px;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.editor-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.step-nav {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}
.step-nav button {
  font-size: 14px;
  padding: 10px 16px;
}
.step-nav button[aria-current="step"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.editor-form [data-step] > label {
  margin: 20px 0;
}
.editor-form [data-step] {
  scroll-margin-top: 24px;
}
.optional-fields {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 4px;
}
.optional-fields > label {
  margin: 16px 0;
}
.optional-fields summary {
  font-size: 14px;
}
.player-preview {
  margin-top: 28px;
}
.classification {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0 28px;
  min-width: 0;
}
.classification legend {
  font-weight: 650;
  padding: 0 8px;
}
.classification .tags {
  margin-top: 20px;
}
.editor-form .editor-bar {
  gap: 8px;
}
.editor-form .editor-bar button {
  font-size: 14px;
  padding: 10px 16px;
}
.editor-form .editor-bar .save-status {
  flex-basis: 100%;
}
.editor-form .panel {
  padding: 28px;
}
.section-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.section-title span {
  font-size: 13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-title h2 {
  margin: 0;
}
.editor-bar {
  position: sticky;
  bottom: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.editor-bar .save-status {
  margin-right: auto;
  font-size: 13px;
  color: var(--muted);
}
#notice:not(:empty) {
  border: 1px solid #bb9b75;
  background: #fffaf3;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#notice a {
  display: inline-block;
  margin-left: 12px;
  font-weight: 650;
}
.map {
  height: 330px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  isolation: isolate;
  background: var(--paper);
}
.map-note {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 22px;
}
.pin {
  width: 24px;
  height: 24px;
  background: #171917;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 7px #0005;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags .check {
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 13px;
  margin: 0;
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.photo {
  min-width: 0;
  background: var(--paper);
  padding: 12px;
  border-radius: 12px;
}
.photo img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
}
.photo button {
  padding: 7px 10px;
  font-size: 12px;
  margin-top: 9px;
}
.photo select {
  font-size: 13px;
}
.crop {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  background: var(--paper);
  border-radius: 12px;
}
.preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.preview-body {
  padding: 22px;
}
.preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.preview p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview small {
  color: var(--muted);
}
.preview canvas {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}
.review-details {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
}
.review-details dt {
  color: var(--muted);
}
.review-details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  max-width: 1240px;
  padding: 25px 32px 40px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.signedout {
  padding: 60px 0;
  max-width: 620px;
}
.signedout p {
  font-size: 20px;
  color: var(--muted);
}
.signedout img {
  width: 145px;
  height: 145px;
  object-fit: contain;
}
.account-id {
  font-size: 12px;
  overflow-wrap: anywhere;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.full {
  width: 100%;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  nav small {
    display: none;
  }
  nav a {
    font-size: 14px;
    padding: 10px 14px;
  }
  .topbar {
    padding: 18px 24px;
  }
}
@media (max-width: 540px) {
  .topbar {
    padding: 16px;
  }
  .brand {
    font-size: 22px;
    gap: 4px;
  }
  .brand-sub {
    font-size: 9px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .shell {
    padding: 24px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .panel,
  .editor-form .panel {
    padding: 20px;
  }
  .quest-row {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .quest-row button {
    justify-self: start;
  }
  .photos {
    grid-template-columns: 1fr;
  }
  .photo img {
    height: 180px;
  }
  .editor-bar button {
    padding: 10px 14px;
    font-size: 14px;
  }
  .editor-bar .save-status {
    width: 100%;
  }
  .map {
    height: 280px;
  }
  .review-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .review-details dd {
    margin-bottom: 14px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .signedout {
    padding: 25px 0;
  }
  .signedout p {
    font-size: 18px;
  }
  footer {
    padding: 20px 16px;
  }
  .filters {
    gap: 6px;
  }
}
.place-search {
  margin: 20px 0;
}
.place-results {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.place-results button {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 12px;
}
input[type="range"] {
  padding: 12px 0;
  accent-color: #171917;
  min-height: 44px;
  cursor: pointer;
}
:root .photo-info { font-size: 0.8rem; color: #5b5b5b; }
:root .photo-info summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
:root .photo-info summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
:root .photo-info[open] { padding-bottom: 12px; }
