:root {
  color-scheme: light;
  --ink: #16242d;
  --ink-soft: #42525b;
  --paper: #f7f1e3;
  --paper-light: #fffdf7;
  --harbor: #2f6f8f;
  --tram: #168462;
  --sun: #f2bd55;
  --brick: #c95840;
  --line: rgba(22, 36, 45, 0.18);
  --shadow: 0 1rem 2.5rem rgba(13, 31, 40, 0.14);
  --container: 74rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  background: var(--paper);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.65rem max(1rem, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(22, 36, 45, 0.14);
  background: rgba(247, 241, 227, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  text-decoration: none;
  font-weight: 850;
  font-size: 1.08rem;
}

.brand__mark {
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--tram);
  box-shadow: inset 0 -0.2rem 0 rgba(0, 0, 0, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--tram);
}

.header-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-self: end;
}

.header-account {
  max-width: 11rem;
}

.header-account > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 0.12rem solid currentColor;
  border-radius: 50%;
}

.account-icon::after {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 1.15rem;
  height: 0.55rem;
  border: 0.12rem solid currentColor;
  border-bottom: 0;
  border-radius: 0.8rem 0.8rem 0 0;
  content: "";
  transform: translateX(-50%);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  border: 0;
  border-radius: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--compact {
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

.button--ink {
  color: white;
  background: var(--ink);
}

.button--paper {
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.2);
}

.button--sun {
  color: var(--ink);
  background: var(--sun);
  box-shadow: inset 0 -0.22rem 0 rgba(117, 74, 10, 0.18);
}

.hero {
  position: relative;
  display: flex;
  height: clamp(30rem, calc(100svh - 7rem), 46rem);
  min-height: 30rem;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: #173244;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background: url("GBG.png") var(--hero-position, center) / cover no-repeat;
  filter: brightness(1.18) saturate(1.06);
  transform: scale(1.01);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 18, 27, 0.7), rgba(6, 18, 27, 0.12) 65%, rgba(6, 18, 27, 0.2)),
    linear-gradient(0deg, rgba(6, 18, 27, 0.62), transparent 58%),
    rgba(242, 189, 85, 0.04);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  width: min(calc(100% - 2rem), var(--container));
  align-items: end;
  margin: 0 auto;
  padding-bottom: clamp(2rem, 7vw, 5rem);
}

.hero__copy {
  max-width: 43rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 0.22rem;
  margin: 0 0.55rem 0.18rem 0;
  background: var(--sun);
}

.eyebrow--green {
  color: var(--tram);
}

.eyebrow--green::before {
  background: var(--tram);
}

.eyebrow--yellow {
  color: var(--sun);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.28);
}

.hero__text {
  max-width: 39rem;
  margin: 1.15rem 0 1.5rem;
  font-size: clamp(1.08rem, 2.4vw, 1.42rem);
  line-height: 1.45;
  text-wrap: balance;
}

.hero-score {
  display: grid;
  width: clamp(8rem, 14vw, 10.5rem);
  aspect-ratio: 1;
  place-content: center;
  border: 0.14rem solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(22, 36, 45, 0.72);
  text-align: center;
  backdrop-filter: blur(0.4rem);
}

.hero-score__value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6vw, 4.5rem);
  line-height: 0.9;
}

.hero-score__label {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.discover {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper-light);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.7fr);
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.score-intro h2,
.about-strip h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading > p,
.score-intro > p:last-child,
.about-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.65;
}

.filter-row {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.6rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.result-count {
  min-height: 1.25rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.empty-category {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-category__label {
  margin: 0;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.empty-category h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.empty-category div > p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.place-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--paper-light);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.place-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow);
}

.place-card__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  text-align: left;
  background: transparent;
}

.place-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-image: linear-gradient(0deg, rgba(8, 22, 32, 0.45), transparent 58%), url("GBG.png");
  background-size: cover;
}

.place-card__category {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  color: white;
  background: var(--tram);
  font-size: 0.72rem;
  font-weight: 850;
}

.place-card__score {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  width: 3.6rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: white;
  background: rgba(22, 36, 45, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.place-card__body {
  min-height: 12rem;
  padding: 1.25rem;
}

.place-card__area {
  margin: 0 0 0.55rem;
  color: var(--brick);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.place-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: 0;
}

.place-card__body > p:last-child {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.score-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: white;
  background: var(--ink);
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.6fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.score-intro {
  align-self: start;
}

.score-intro > p:last-child {
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.72);
}

.score-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-part {
  min-height: 12rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.score-part:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.score-part span {
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
}

.score-part h3 {
  margin: 1.4rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.score-part p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.about-strip {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--harbor);
}

.about-strip__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.about-strip__kicker {
  align-self: start;
  padding-top: 0.3rem;
  color: white !important;
  font-size: 0.75rem !important;
  font-weight: 900;
  text-transform: uppercase;
}

.about-strip h2 {
  max-width: 18ch;
  color: white;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.about-strip div > p:last-child {
  max-width: 42rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  background: #0d1d25;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.83rem;
}

.place-dialog {
  width: min(calc(100% - 2rem), 54rem);
  max-height: calc(100svh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0.45rem;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.42);
}

.place-dialog::backdrop {
  background: rgba(6, 18, 27, 0.72);
  backdrop-filter: blur(0.25rem);
}

.dialog-close {
  position: fixed;
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0.85rem 0 0 calc(min(54rem, 100vw - 2rem) - 3.45rem);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: white;
  background: rgba(22, 36, 45, 0.78);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.dialog-visual {
  position: relative;
  min-height: 17rem;
  background-image: linear-gradient(0deg, rgba(6, 18, 27, 0.54), transparent 62%), url("GBG.png");
  background-position: center;
  background-size: cover;
}

.dialog-visual__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  color: white;
  background: var(--tram);
  font-size: 0.76rem;
  font-weight: 850;
}

.dialog-content {
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.dialog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
}

.dialog-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.dialog-total {
  display: grid;
  width: 5.5rem;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  text-align: center;
}

.dialog-total strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.dialog-total span {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-lead {
  margin: 1.5rem 0 0.8rem;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.5;
}

.dialog-content > p:not(.eyebrow):not(.dialog-lead):not(.dialog-note) {
  color: var(--ink-soft);
  line-height: 1.65;
}

.score-bars {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.score-bar__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.score-bar__track {
  height: 0.48rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 36, 45, 0.11);
}

.score-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--tram);
}

.dialog-note {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border-left: 0.3rem solid var(--sun);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.92rem;
  line-height: 1.55;
}

.personal-review {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.personal-review__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.personal-review h3,
.review-form h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.personal-review__score {
  display: grid;
  width: 4.8rem;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  color: white;
  background: var(--tram);
  text-align: center;
}

.personal-review__score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1;
}

.personal-review__score span {
  margin-top: 0.12rem;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.personal-review > p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.review-action {
  margin-top: 1.5rem;
}

.review-form {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--paper);
}

.review-form__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.55fr);
  gap: 1.5rem;
  align-items: end;
}

.review-form__heading > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.review-sliders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
  margin-top: 1.8rem;
}

.review-slider {
  display: block;
}

.review-slider__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  font-weight: 850;
}

.review-slider output {
  color: var(--tram);
}

.review-slider input {
  width: 100%;
  accent-color: var(--tram);
  cursor: pointer;
}

.review-text {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  font-weight: 850;
}

.review-text textarea {
  width: 100%;
  resize: vertical;
  min-height: 7rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
  background: var(--paper-light);
}

.review-text__count {
  justify-self: end;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.review-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.button--quiet {
  border: 1px solid var(--line);
  background: transparent;
}

.review-storage,
.review-status {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.review-status:empty {
  display: none;
}

.auth-dialog {
  width: min(calc(100% - 2rem), 31rem);
  max-height: calc(100svh - 2rem);
  padding: clamp(1.4rem, 5vw, 2.4rem);
  overflow: auto;
  border: 0;
  border-top: 0.45rem solid var(--tram);
  border-radius: 0.45rem;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.42);
}

.auth-dialog::backdrop {
  background: rgba(6, 18, 27, 0.72);
  backdrop-filter: blur(0.25rem);
}

.auth-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.auth-close:hover {
  background: var(--paper);
}

.auth-dialog__header {
  padding-right: 2rem;
}

.auth-dialog__header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.auth-dialog__header > p:last-child {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.auth-setup {
  margin-top: 1.5rem;
  padding: 1.15rem;
  border-left: 0.3rem solid var(--sun);
  background: var(--paper);
}

.auth-setup strong {
  display: block;
}

.auth-setup p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--paper);
}

.auth-tabs button {
  min-height: 2.7rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.auth-tabs button.is-active {
  color: white;
  background: var(--ink);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.auth-form label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  background: white;
  font: inherit;
}

.auth-form small,
.auth-fineprint {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.auth-form > .button {
  width: 100%;
}

.auth-link {
  justify-self: center;
  padding: 0.25rem;
  border: 0;
  color: var(--harbor);
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.auth-fineprint {
  margin: 0;
  text-align: center;
}

.account-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.account-panel__avatar {
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--tram);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.account-panel div {
  min-width: 0;
}

.account-panel strong,
.account-panel span:not(.account-panel__avatar) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel div span {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.account-panel .button {
  grid-column: 1 / -1;
}

.auth-message {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.auth-message:empty {
  display: none;
}

.auth-message[data-type="error"] {
  color: #a3382c;
}

.auth-message[data-type="success"] {
  color: #116849;
}

:focus-visible {
  outline: 0.2rem solid var(--sun);
  outline-offset: 0.2rem;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero__inner,
  .section-heading,
  .score-layout,
  .about-strip__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    --hero-position: 42% center;
  }

  .hero__inner {
    position: relative;
    gap: 1rem;
  }

  .hero__copy {
    padding-right: 4.5rem;
  }

  .hero-score {
    position: absolute;
    right: 0;
    bottom: clamp(2rem, 7vw, 5rem);
    width: 6.5rem;
  }

  .hero-score__value {
    font-size: 2.65rem;
  }

  .place-grid {
    grid-template-columns: 1fr;
  }

  .place-card__button {
    display: grid;
    grid-template-columns: minmax(9rem, 0.85fr) minmax(0, 1.15fr);
  }

  .place-card__visual {
    aspect-ratio: auto;
    min-height: 15rem;
  }

  .place-card__body {
    min-height: 15rem;
  }

  .score-layout {
    gap: 3rem;
  }

  .about-strip__inner {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 0.75rem;
  }

  .brand > span:last-child {
    display: none;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-account {
    max-width: 8.5rem;
  }

  .hero {
    height: calc(100svh - 6rem);
    min-height: 28rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13.25vw, 4rem);
  }

  .hero__copy {
    padding-right: 0;
    padding-bottom: 5.5rem;
  }

  .hero-score {
    right: auto;
    bottom: 1.6rem;
    left: 0;
    width: 5.25rem;
  }

  .hero-score__value {
    font-size: 2.1rem;
  }

  .hero-score__label {
    font-size: 0.58rem;
  }

  .filter-row {
    flex-wrap: wrap;
    overflow: visible;
  }

  .empty-category {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .place-card__button {
    display: block;
  }

  .place-card__visual {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .place-card__body {
    min-height: 0;
  }

  .score-parts {
    grid-template-columns: 1fr;
  }

  .score-part:nth-child(odd) {
    border-right: 0;
  }

  .score-part {
    min-height: 0;
    padding: 1.3rem 0;
  }

  .site-footer__inner,
  .dialog-heading {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    display: grid;
  }

  .dialog-visual {
    min-height: 13rem;
  }

  .dialog-total {
    width: 4.8rem;
  }

  .personal-review__heading,
  .review-form__heading,
  .review-sliders {
    grid-template-columns: 1fr;
  }

  .personal-review__score {
    width: 4.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
