:root {
    --bf-yellow: #ffe800;
    --bf-yellow-soft: #fff7a6;
    --bf-black: #050505;
    --bf-red: #ff1d1d;
    --bf-fry: #f6aa18;
    --bf-paper: #fffdf2;
    --bf-cream: #fff9cf;
    --bf-neutral: #f2f1ea;
    --bf-neutral-deep: #e2dfd3;
    --bf-mint: #4ee7b3;
    --bf-violet: #7b3ff2;
    --bf-ink: #111111;
    --bf-muted: #5f5a48;
    --bf-line: rgba(5, 5, 5, 0.18);
    --bf-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    --bf-radius: 8px;
    --bf-safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bf-neutral);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--bf-ink);
    background:
        radial-gradient(circle at 50% 0, rgba(255, 232, 0, 0.18), transparent 34rem),
        linear-gradient(180deg, var(--bf-neutral) 0%, var(--bf-neutral-deep) 100%);
    font-family: inherit;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.app-body {
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 232, 0, 0.18), transparent 34rem),
        linear-gradient(180deg, var(--bf-neutral) 0%, var(--bf-neutral-deep) 100%);
}

.native-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--bf-yellow);
}

.launch-splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    align-content: center;
    gap: clamp(16px, 4vh, 28px);
    padding: 24px;
    color: var(--bf-black);
    background:
        radial-gradient(circle at center, rgba(255, 247, 166, 0.96) 0 28%, transparent 29%),
        linear-gradient(180deg, var(--bf-neutral) 0%, var(--bf-neutral-deep) 100%);
    animation: launch-splash-fallback 2.45s ease forwards;
}

.launch-splash::before {
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background:
        linear-gradient(90deg, var(--bf-black) 0 33.333%, var(--bf-yellow) 33.333% 66.666%, var(--bf-red) 66.666% 100%);
    content: "";
}

.launch-splash img,
.launch-splash strong {
    position: relative;
    z-index: 1;
}

.launch-splash img {
    width: clamp(148px, 42vw, 280px);
    max-height: 44vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.28));
}

.launch-splash strong {
    display: block;
    color: var(--bf-paper);
    background: var(--bf-black);
    border: 3px solid var(--bf-paper);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: clamp(26px, 7vw, 48px);
    font-weight: 1000;
    line-height: 1;
    box-shadow: 0 8px 0 rgba(5, 5, 5, 0.24);
}

.launch-splash strong span {
    color: var(--bf-fry);
}

.launch-splash strong em {
    color: var(--bf-red);
    font-style: normal;
}

.launch-splash.is-hiding {
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
}

@keyframes launch-splash-fallback {
    0%,
    82% {
        opacity: 1;
        pointer-events: auto;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(14px, 3vw, 28px) 14px;
    background: var(--bf-yellow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.language-switch a {
    display: inline-grid;
    min-width: 34px;
    min-height: 30px;
    place-items: center;
    color: var(--bf-black);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 1000;
    text-decoration: none;
}

.language-switch a.active,
.language-switch a[aria-current="true"],
.language-switch a[data-active="true"] {
    color: var(--bf-paper);
    background: var(--bf-black);
    box-shadow: 0 2px 0 rgba(5, 5, 5, 0.22);
}

.screen-language {
    display: flex;
    justify-content: center;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: var(--bf-black);
    text-decoration: none;
    font-size: clamp(14px, 2.8vw, 18px);
    font-weight: 950;
    white-space: nowrap;
}

.brand-lockup img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid var(--bf-black);
    border-radius: 8px;
    background: var(--bf-paper);
}

.brand-lockup .red {
    color: var(--bf-red);
}

.search-form {
    min-width: 0;
}

.search-field {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.78);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bf-black);
    font-size: clamp(16px, 2.4vw, 20px);
    font-weight: 800;
    text-transform: uppercase;
}

.search-field input::placeholder {
    color: rgba(5, 5, 5, 0.32);
}

.icon-button,
.text-button,
.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: var(--bf-black);
    background: var(--bf-paper);
    text-decoration: none;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(5, 5, 5, 0.18);
}

.icon-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.text-button,
.pill-button {
    padding: 0 14px;
    text-transform: uppercase;
}

.pill-button.primary {
    background: var(--bf-black);
    color: var(--bf-paper);
}

.pill-button.red {
    background: var(--bf-red);
    color: white;
}

.app-grid {
    flex: 1;
    display: grid;
    min-height: 0;
}

.map-zone {
    position: relative;
    min-height: 46vh;
    background: #dfe5df;
    overflow: hidden;
}

.map-real,
.map-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.map-fallback {
    background:
        linear-gradient(24deg, transparent 47%, rgba(255, 255, 255, 0.65) 47% 52%, transparent 52%),
        linear-gradient(102deg, transparent 45%, rgba(255, 255, 255, 0.55) 45% 50%, transparent 50%),
        linear-gradient(156deg, transparent 48%, rgba(255, 255, 255, 0.58) 48% 52%, transparent 52%),
        #dfe5df;
    background-size: 180px 180px, 220px 220px, 260px 260px, auto;
}

.map-overlay {
    position: absolute;
    inset: auto 14px 14px 14px;
    z-index: 5;
    display: grid;
    gap: 8px;
    max-height: 38%;
    width: min(calc(100% - 28px), 560px);
    overflow: auto;
}

.result-chip {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 70px;
    padding: 11px 10px 11px 14px;
    color: var(--bf-black);
    background:
        linear-gradient(90deg, var(--bf-yellow) 0 82%, var(--bf-yellow-soft) 82% 100%);
    border: 2px solid var(--bf-black);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 5px 0 rgba(5, 5, 5, 0.24), 0 14px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
}

.result-chip::before {
    position: absolute;
    inset: 8px auto 8px 6px;
    width: 4px;
    background: var(--bf-red);
    border-radius: 8px;
    content: "";
}

.result-chip:hover,
.result-chip:focus-visible {
    background: var(--bf-yellow-soft);
    outline: 3px solid rgba(255, 29, 29, 0.38);
    outline-offset: 2px;
}

.result-chip strong {
    display: block;
    overflow: hidden;
    font-size: 16px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.result-chip .result-city {
    display: block;
    overflow: hidden;
    color: var(--bf-black);
    font-size: 12px;
    font-weight: 900;
    opacity: 0.72;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-chip .rating-badge {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 78px;
    min-height: 44px;
    padding: 0 10px;
    color: var(--bf-yellow);
    background: var(--bf-black);
    border: 2px solid var(--bf-paper);
    border-radius: 8px;
    font-weight: 1000;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    box-shadow: inset 0 -3px 0 rgba(246, 170, 24, 0.36), 0 4px 0 rgba(5, 5, 5, 0.24);
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.result-chip .rating-badge strong {
    display: inline;
    overflow: visible;
    color: var(--bf-paper);
    font-size: 23px;
    line-height: 1;
    text-overflow: clip;
}

.result-chip .rating-badge span {
    display: inline;
    overflow: visible;
    color: var(--bf-fry);
    font-size: 17px;
    line-height: 1;
    text-overflow: clip;
}

.detail-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 16px;
    padding: 18px clamp(16px, 3.2vw, 32px) calc(92px + var(--bf-safe-bottom));
    background:
        linear-gradient(180deg, var(--bf-yellow) 0%, #ffdf12 100%);
    overflow: auto;
}

.shop-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.shop-head h1,
.shop-head h2 {
    margin: 0;
    font-size: clamp(28px, 7vw, 44px);
    line-height: 0.92;
    font-weight: 1000;
}

.shop-address {
    margin: 6px 0 0;
    color: var(--bf-black);
    font-size: clamp(13px, 2.8vw, 16px);
    font-weight: 900;
}

.sensory-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sensory-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 8px;
    color: var(--bf-paper);
    background: var(--bf-black);
    border: 2px solid rgba(255, 253, 242, 0.78);
    border-radius: 8px;
    box-shadow: 0 4px 0 rgba(5, 5, 5, 0.2);
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 1000;
    text-transform: uppercase;
    white-space: nowrap;
}

.sensory-chip:nth-child(2) {
    color: var(--bf-black);
    background: var(--bf-fry);
    border-color: var(--bf-black);
}

.sensory-chip:nth-child(3) {
    color: var(--bf-black);
    background: var(--bf-paper);
    border-color: var(--bf-black);
}

.sensory-chip svg {
    width: 17px;
    height: 17px;
    stroke-width: 3;
}

.shop-score {
    min-width: 68px;
    text-align: right;
}

.shop-score strong {
    display: block;
    font-size: clamp(30px, 7vw, 42px);
    line-height: 0.9;
    font-weight: 1000;
}

.shop-score span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.body-copy {
    margin: 0;
    color: #141000;
    font-size: clamp(14px, 2.4vw, 16px);
    font-weight: 760;
    line-height: 1.34;
}

.detail-panel .body-copy {
    padding: 10px 12px;
    background: rgba(255, 253, 242, 0.42);
    border-left: 5px solid var(--bf-black);
    border-radius: 8px;
}

.criteria-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid rgba(0, 0, 0, 0.34);
}

.criterion-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.28);
}

.criterion-row span:first-child {
    overflow: hidden;
    font-size: clamp(16px, 3vw, 19px);
    font-weight: 1000;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.star-line {
    color: var(--bf-black);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 950;
    white-space: nowrap;
}

.action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.action-row .pill-button {
    min-width: 0;
    padding: 0 8px;
    font-size: clamp(14px, 3vw, 20px);
}

.review-section h2,
.vote-card h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 4vw, 26px);
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
}

.review-list {
    display: grid;
    gap: 14px;
}

.review-bubble {
    position: relative;
    padding: 12px 14px;
    background: var(--bf-paper);
    border-radius: 8px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
}

.review-bubble::after {
    position: absolute;
    left: 14px;
    bottom: -18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 16px 0 0;
    border-color: var(--bf-paper) transparent transparent transparent;
    content: "";
}

.review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 1000;
}

.review-meta .pseudo {
    color: var(--bf-violet);
    text-transform: uppercase;
}

.review-meta .pseudo.alt {
    color: var(--bf-mint);
}

.review-bubble p {
    margin: 0;
    color: var(--bf-black);
    font-size: clamp(12px, 2.7vw, 14px);
    font-weight: 760;
    line-height: 1.25;
}

.tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px calc(10px + var(--bf-safe-bottom));
    background: rgba(5, 5, 5, 0.95);
}

.tabbar a,
.tabbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    color: var(--bf-paper);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.tabbar a.active,
.tabbar button.active {
    color: var(--bf-black);
    background: var(--bf-yellow);
}

.form-screen,
.vote-screen {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 100%;
    padding: 24px clamp(18px, 6vw, 42px) calc(92px + var(--bf-safe-bottom));
    background: var(--bf-yellow);
}

.form-screen > * {
    width: min(100%, 540px);
    justify-self: center;
}

.hero-logo {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 14px 0 8px;
}

.hero-logo img {
    display: block;
    width: clamp(128px, 34vw, 184px);
    height: clamp(128px, 34vw, 184px);
    object-fit: cover;
    object-position: center;
    background: transparent;
    border: 0;
    border-radius: 28%;
    clip-path: inset(0 round 28%);
    box-shadow: 0 4px 0 rgba(5, 5, 5, 0.14);
}

.hero-logo strong {
    font-size: clamp(26px, 6vw, 36px);
    font-weight: 1000;
}

.hero-logo strong .fry {
    color: var(--bf-fry);
}

.hero-logo strong .red {
    color: var(--bf-red);
}

.form-stack {
    display: grid;
    gap: 14px;
}

.compact-form {
    margin-top: -6px;
}

.login-card,
.consent-card {
    padding: 12px;
    background: rgba(255, 253, 242, 0.72);
    border: 2px solid rgba(5, 5, 5, 0.14);
    border-radius: 8px;
}

.login-card {
    margin-top: 4px;
}

.consent-card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.28;
}

.consent-card input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--bf-black);
}

.consent-card a {
    color: var(--bf-red);
    font-weight: 1000;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.input-control,
.textarea-control,
.select-control {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--bf-black);
    background: rgba(255, 255, 255, 0.74);
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    outline: 0;
    font-size: 16px;
    font-weight: 850;
}

.otp-control {
    text-align: center;
    font-size: clamp(22px, 7vw, 34px);
    font-weight: 1000;
    letter-spacing: 0;
}

.textarea-control {
    min-height: 108px;
    padding-top: 12px;
    resize: vertical;
}

.input-control::placeholder,
.textarea-control::placeholder {
    color: rgba(5, 5, 5, 0.32);
    text-transform: uppercase;
}

.vote-card {
    display: grid;
    gap: clamp(12px, 2.4vw, 18px);
    padding: clamp(16px, 4vw, 28px);
    background: rgba(255, 238, 0, 0.78);
    border-radius: 8px;
}

.vote-title {
    text-align: center;
}

.vote-title h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 7vw, 42px);
    line-height: 1;
    font-weight: 1000;
}

.rating-picker {
    display: flex;
    justify-content: center;
    gap: clamp(4px, 1.8vw, 10px);
}

.star-button {
    display: inline-grid;
    width: clamp(42px, 12vw, 58px);
    height: clamp(42px, 12vw, 58px);
    place-items: center;
    padding: 0;
    color: var(--bf-paper);
    background: transparent;
    border: 0;
    -webkit-text-stroke: 1.7px var(--bf-black);
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1;
    cursor: pointer;
}

.star-button.active {
    color: var(--bf-fry);
}

.criterion-input {
    display: grid;
    grid-template-columns: minmax(118px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.criterion-input label {
    overflow: visible;
    min-width: 0;
    font-size: clamp(13px, 2.4vw, 16px);
    font-weight: 1000;
    text-transform: uppercase;
    text-overflow: clip;
    white-space: nowrap;
}

.criterion-input .rating-picker {
    justify-content: end;
    gap: 1px;
}

.criterion-input .star-button {
    width: 22px;
    height: 22px;
    -webkit-text-stroke: 1.2px var(--bf-black);
    font-size: 21px;
}

.submit-row {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.submit-row .pill-button {
    min-width: min(100%, 230px);
    min-height: 48px;
    font-size: clamp(18px, 4vw, 26px);
}

.notice {
    padding: 10px 12px;
    color: var(--bf-paper);
    background: var(--bf-black);
    border-radius: 8px;
    font-weight: 850;
}

.empty-state {
    padding: 18px;
    color: var(--bf-black);
    background: rgba(255, 255, 255, 0.58);
    border-radius: 8px;
    font-weight: 850;
}

.install-pwa-button {
    position: fixed;
    right: 14px;
    bottom: calc(72px + var(--bf-safe-bottom));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--bf-paper);
    background: var(--bf-black);
    border: 2px solid var(--bf-paper);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    font-weight: 1000;
    text-transform: uppercase;
    cursor: pointer;
}

.install-pwa-button[hidden] {
    display: none;
}

.frit-marker {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    width: 44px !important;
    height: 44px !important;
    place-items: center;
    color: var(--bf-paper);
    background: var(--bf-black);
    border: 3px solid var(--bf-yellow);
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
    transform: rotate(-45deg);
}

.frit-marker strong {
    display: block;
    margin-top: 4px;
    color: var(--bf-paper);
    font-size: 13px;
    font-weight: 1000;
    transform: rotate(45deg);
}

.frit-marker span {
    display: block;
    margin-top: -13px;
    color: var(--bf-fry);
    font-size: 9px;
    font-weight: 1000;
    transform: rotate(45deg);
}

.frit-marker.selected {
    width: 54px !important;
    height: 54px !important;
    background: var(--bf-red);
    border-color: var(--bf-paper);
    box-shadow: 0 0 0 4px rgba(255, 232, 0, 0.76), 0 12px 24px rgba(0, 0, 0, 0.38);
}

.frit-marker.selected strong {
    font-size: 15px;
}

.frit-cluster {
    display: grid !important;
    place-items: center;
    width: 52px !important;
    height: 52px !important;
    color: var(--bf-black);
    background: var(--bf-yellow);
    border: 4px solid var(--bf-black);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
    text-align: center;
}

.frit-cluster.medium {
    width: 62px !important;
    height: 62px !important;
    background: var(--bf-fry);
}

.frit-cluster.mega {
    width: 72px !important;
    height: 72px !important;
    color: var(--bf-paper);
    background: var(--bf-red);
}

.frit-cluster strong {
    display: block;
    font-size: 18px;
    font-weight: 1000;
    line-height: 0.95;
}

.frit-cluster.medium strong {
    font-size: 21px;
}

.frit-cluster.mega strong {
    font-size: 24px;
}

.frit-cluster span {
    display: block;
    margin-top: 2px;
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.user-location-ring {
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.34));
}

.leaflet-control-zoom a {
    color: var(--bf-black) !important;
    background: var(--bf-paper) !important;
    border-color: rgba(5, 5, 5, 0.18) !important;
    font-weight: 1000;
}

.popup-score {
    display: inline-block;
    margin-top: 4px;
    color: var(--bf-black);
    font-weight: 1000;
}

.leaflet-container {
    font-family: inherit;
}

.leaflet-control-attribution {
    font-size: 10px;
}

.mock-stage {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    gap: 18px;
    padding: 18px;
}

.mock-toolbar {
    display: flex;
    width: min(100%, 620px);
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    background: rgba(5, 5, 5, 0.86);
    border-radius: 8px;
}

.mock-toolbar button {
    min-width: max-content;
}

.phone-shell {
    position: relative;
    width: min(100%, 420px);
    height: min(860px, calc(100vh - 118px));
    min-height: 650px;
    padding: 16px;
    background: var(--bf-black);
    border-radius: 44px;
    box-shadow: var(--bf-shadow);
}

.phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--bf-yellow);
    border-radius: 32px;
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 40;
    width: 118px;
    height: 32px;
    border-radius: 999px;
    background: var(--bf-black);
    transform: translateX(-50%);
}

.mock-screen {
    position: absolute;
    inset: 0;
    display: none;
    overflow: auto;
    padding-top: 64px;
    background: var(--bf-yellow);
}

.mock-screen.active {
    display: block;
}

.mock-screen .app-topbar {
    position: sticky;
    padding: 12px 16px;
}

.mock-screen .detail-panel {
    min-height: auto;
}

.mock-screen .vote-screen {
    padding: 18px 18px calc(72px + var(--bf-safe-bottom));
}

.mock-screen .vote-card {
    gap: 14px;
    padding: 22px;
}

.mock-screen .criterion-input {
    grid-template-columns: minmax(122px, 1fr) auto;
}

.splash-screen {
    display: grid;
    min-height: 100%;
    place-items: center;
    padding: 34px;
}

.splash-screen img {
    width: 72%;
    max-width: 280px;
    border-radius: 8px;
}

/* Breakpoint 1: xs phones, <=360px */
@media (max-width: 360px) {
    .app-topbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 6px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .brand-lockup {
        display: none;
    }

    .search-field {
        min-height: 38px;
        padding: 0 9px;
    }

    .language-switch a {
        min-width: 28px;
        min-height: 28px;
        font-size: 11px;
    }

    .icon-button {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .detail-panel,
    .vote-screen,
    .form-screen {
        padding-right: 12px;
        padding-left: 12px;
    }

    .shop-head {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .shop-head h1,
    .shop-head h2 {
        font-size: 25px;
    }

    .shop-score {
        min-width: 0;
    }

    .shop-score strong {
        font-size: 26px;
    }

    .shop-score span {
        font-size: 10px;
    }

    .action-row {
        gap: 6px;
    }

    .action-row .pill-button {
        font-size: 12px;
    }

    .criterion-input {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .criterion-input .rating-picker {
        justify-content: start;
    }

    .tabbar span {
        display: none;
    }

    .mock-stage {
        gap: 10px;
        padding: 8px;
    }

    .mock-toolbar {
        width: 100%;
        padding: 6px;
    }

    .phone-shell {
        width: 100%;
        height: calc(100svh - 86px);
        min-height: 560px;
        padding: 10px;
        border-radius: 32px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .phone-notch {
        top: 14px;
        width: 96px;
        height: 28px;
    }

    .mock-screen {
        padding-top: 54px;
    }
}

/* Breakpoint 2: standard phones, 361px-480px */
@media (min-width: 361px) and (max-width: 480px) {
    .app-topbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
    }

    .brand-lockup {
        display: none;
    }

    .shop-head h1,
    .shop-head h2 {
        font-size: 28px;
    }

    .action-row {
        gap: 8px;
    }

    .action-row .pill-button {
        font-size: 13px;
    }

    .tabbar span {
        display: none;
    }

    .mock-stage {
        padding: 10px;
    }

    .mock-toolbar {
        width: 100%;
    }

    .phone-shell {
        width: min(100%, 420px);
        height: calc(100svh - 100px);
        min-height: 610px;
        padding: 12px;
        border-radius: 38px;
    }

    .phone-screen {
        border-radius: 28px;
    }
}

/* Breakpoint 3: large phones and small tablets, 481px-767px */
@media (min-width: 481px) and (max-width: 767px) {
    .app-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 10px;
    }

    .brand-lockup span {
        display: none;
    }

    .native-shell {
        min-height: 100svh;
    }

    .map-zone {
        min-height: 50vh;
    }

    .detail-panel {
        padding-right: 22px;
        padding-left: 22px;
    }

    .mock-toolbar {
        width: min(100%, 680px);
    }

    .phone-shell {
        width: min(100%, 448px);
        height: min(900px, calc(100svh - 112px));
    }
}

/* Breakpoint 4: tablets, 768px-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .native-shell {
        width: min(100%, 940px);
        min-height: calc(100vh - 28px);
        margin: 14px auto;
        border: 6px solid var(--bf-black);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: var(--bf-shadow);
    }

    .app-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-zone {
        min-height: 44vh;
    }

    .detail-panel {
        max-height: none;
        padding-bottom: calc(92px + var(--bf-safe-bottom));
    }

    .tabbar {
        position: fixed;
    }

    .mock-toolbar {
        width: min(100%, 760px);
    }

    .phone-shell {
        width: min(100%, 470px);
        height: min(900px, calc(100svh - 116px));
    }
}

/* Breakpoint 5: laptops and desktop, 1024px-1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .native-shell {
        width: min(calc(100% - 40px), 1280px);
        min-height: calc(100vh - 40px);
        margin: 20px auto;
        border: 8px solid var(--bf-black);
        border-radius: 28px;
        overflow: hidden;
        box-shadow: var(--bf-shadow);
    }

    .app-grid {
        grid-template-columns: minmax(0, 1.22fr) minmax(390px, 0.78fr);
    }

    .map-zone {
        min-height: 0;
    }

    .detail-panel {
        max-height: calc(100vh - 138px);
        padding-bottom: 32px;
    }

    .action-row .pill-button {
        padding: 0 6px;
        font-size: clamp(14px, 1.3vw, 17px);
    }

    .tabbar {
        position: static;
        padding-bottom: 10px;
    }

    .mock-toolbar {
        width: min(100%, 820px);
    }

    .phone-shell {
        width: min(100%, 430px);
        height: min(860px, calc(100vh - 118px));
    }
}

/* Breakpoint 6: wide desktop and TV, >=1440px */
@media (min-width: 1440px) {
    .native-shell {
        width: min(calc(100% - 64px), 1760px);
        min-height: calc(100vh - 64px);
        margin: 32px auto;
        border: 8px solid var(--bf-black);
        border-radius: 28px;
        overflow: hidden;
        box-shadow: var(--bf-shadow);
    }

    .app-grid {
        grid-template-columns: minmax(0, 1.34fr) minmax(440px, 0.66fr);
    }

    .map-zone {
        min-height: 0;
    }

    .detail-panel {
        max-height: calc(100vh - 164px);
        padding: 24px clamp(28px, 2.4vw, 46px) 38px;
    }

    .tabbar {
        position: static;
        padding-bottom: 10px;
    }

    .form-screen {
        align-content: center;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .form-screen > * {
        width: min(100%, 580px);
    }

    .mock-stage {
        grid-template-columns: minmax(760px, 1fr) minmax(430px, 520px);
        align-items: center;
        justify-items: center;
        padding: 24px clamp(24px, 4vw, 64px);
    }

    .mock-toolbar {
        width: min(100%, 960px);
        justify-self: end;
        align-self: start;
        margin-top: 24px;
    }

    .phone-shell {
        justify-self: start;
        width: min(100%, 460px);
        height: min(900px, calc(100vh - 48px));
        min-height: 720px;
    }
}
