:root {
  --black: #0a0a0a;
  --white: #fff;
  --paper: #f1eee1;
  --yellow: #f2ed35;
  --pink: #ff5f9e;
  --line: #181818;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--black); }
body { margin: 0; background: var(--paper); color: var(--black); font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.app-shell { width: min(100%, 760px); min-height: 100dvh; margin: 0 auto; padding-bottom: calc(78px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 0 0 1px #ffffff1c, 0 0 70px #0008; }
.app-topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 10px; padding: calc(9px + env(safe-area-inset-top)) 14px 9px; border-bottom: 2px solid var(--white); background: var(--black); color: var(--white); }
.app-brand { display: flex; min-width: 0; max-width: calc(100% - 112px); align-items: center; gap: 10px; text-decoration: none; }
.app-brand img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: #fff; object-fit: cover; filter: grayscale(1) contrast(1.25); }
.app-brand span { display: grid; min-width: 0; }
.app-brand b { font: 1000 1.75rem/.9 Arial Black, Arial, sans-serif; letter-spacing: -.09em; }
.app-brand small { margin-top: 4px; overflow: visible; font: 700 .62rem/1.1 ui-monospace, monospace; letter-spacing: .02em; text-overflow: clip; white-space: normal; }
.app-topbar .global-language-switcher { top: calc(8px + env(safe-area-inset-top)); right: 12px; gap: .35rem; }
.app-topbar .global-language-switcher button { width: 1.42rem; height: .93rem; }
.app-install-links { display: contents; }
.app-platform-controls { position: absolute; top: calc(29px + env(safe-area-inset-top)); right: 12px; display: grid; grid-template-columns: repeat(3, 20px); align-items: center; justify-content: end; gap: 3px 6px; }
.app-platform-controls .platform-download-label { grid-column: 1 / -1; justify-self: end; color: rgb(255 255 255 / 62%); font: 800 .44rem/1 ui-monospace, monospace; letter-spacing: .03em; white-space: nowrap; }
.app-platform-button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; background: transparent; color: var(--white); padding: 1px; cursor: pointer; }
.app-platform-button.android { color: var(--yellow); }
.app-platform-button svg { width: 16px; height: 16px; fill: currentColor; }
.app-platform-button:hover, .app-platform-button:focus-visible, .app-install-help-button:hover, .app-install-help-button:focus-visible { color: var(--pink); outline: 1px dotted var(--yellow); outline-offset: 1px; }
.app-install-help-button { display: grid; width: 20px; height: 20px; place-items: center; border: 0; background: transparent; color: var(--yellow); padding: 0; font: 1000 .72rem/1 Arial, sans-serif; cursor: pointer; }
.app-refresh-control { position: absolute; right: 12px; bottom: 5px; display: grid; justify-items: end; gap: 2px; }
.app-refresh-button { min-width: 62px; border: 2px solid var(--white); border-radius: 0; background: var(--yellow); color: var(--black); padding: 4px 7px; font: 1000 .58rem/1 Arial, sans-serif; letter-spacing: .04em; text-align: center; box-shadow: 2px 2px 0 var(--white); cursor: pointer; }
.app-refresh-control small { position: relative; top: 3px; color: rgb(255 255 255 / 58%); font: 800 .44rem/1 ui-monospace, monospace; letter-spacing: 0; white-space: nowrap; }
.app-refresh-button:hover, .app-refresh-button:focus-visible { background: var(--pink); outline: 2px solid var(--yellow); outline-offset: 2px; }
.app-refresh-button:active { transform: translateY(1px); }

.app-masthead { position: relative; display: grid; min-height: 284px; overflow: hidden; background: var(--black); color: var(--white); }
.app-masthead-copy { position: relative; z-index: 2; align-self: end; padding: 28px 18px 24px; }
.app-masthead-copy > p, .app-submit-intro > p { margin: 0 0 8px; font: 800 .72rem/1 ui-monospace, monospace; letter-spacing: .09em; }
.app-masthead h1, .app-submit-intro h1 { margin: 0; font: 1000 clamp(3rem, 15vw, 5.8rem)/.8 Arial Black, Arial, sans-serif; letter-spacing: -.1em; }
.app-masthead h1 { word-spacing: .14em; }
.app-masthead-copy > span { display: block; max-width: 29rem; margin-top: 16px; font: 800 .92rem/1.2 Arial, sans-serif; }
.app-masthead > img { position: absolute; z-index: 1; top: -5px; right: -62px; width: 76%; height: auto; opacity: .24; transform: rotate(-5deg); }

.app-quick-links { display: grid; grid-template-columns: 1fr 1.25fr; border-bottom: 2px solid var(--black); background: var(--yellow); }
.app-quick-links a { min-height: 48px; display: grid; place-items: center; padding: 7px 10px; border-right: 2px solid var(--black); font: 900 .75rem/1.05 Arial, sans-serif; text-align: center; text-decoration: none; }
.app-quick-links a:last-child { border-right: 0; }

.app-success, .app-error { margin: 14px; border: 2px solid var(--black); padding: 12px; font-weight: 900; }
.app-success { background: var(--yellow); }
.app-error { background: #ffb8b8; }
.app-search { padding: 6px 14px 8px; }
.app-search-box { display: flex; height: 52px; align-items: center; border: 3px solid var(--black); background: var(--white); }
.app-search-box span { padding-left: 13px; font-size: 1.7rem; font-weight: 900; }
.app-search-box input { width: 100%; height: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font-size: 1rem; }
.app-filter-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; padding-top: 7px; }
.app-filter-row select, .app-filter-row button { min-width: 0; min-height: 43px; border: 2px solid var(--black); border-radius: 0; background: var(--white); padding: 7px; font: 800 .69rem/1 Arial, sans-serif; }
.app-filter-row button { background: var(--black); color: var(--white); padding-inline: 12px; cursor: pointer; }

.tag-filter { display: flex; gap: 6px; overflow-x: auto; padding: 5px 14px 14px; scrollbar-width: none; }
.tag-filter::-webkit-scrollbar { display: none; }
.tag-filter a { flex: 0 0 auto; border: 2px solid var(--black); background: var(--white); padding: 7px 9px; font: 900 .69rem/1 Arial, sans-serif; text-decoration: none; text-transform: uppercase; }
.tag-filter a.active { background: var(--pink); }
.app-results-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-block: 2px solid var(--black); background: var(--black); color: var(--white); font: 800 .78rem/1 ui-monospace, monospace; }
.app-results-heading a { color: var(--yellow); text-decoration: none; }
.app-results { display: grid; gap: 0; }
.app-place-card { padding: 18px 15px 20px; border-bottom: 3px solid var(--black); background: var(--white); }
.app-place-card:nth-child(even) { background: var(--yellow); }
.app-place-meta { display: flex; justify-content: space-between; gap: 8px; font: 800 .69rem/1.2 ui-monospace, monospace; text-transform: uppercase; }
.app-place-meta span:last-child { text-align: right; }
.app-place-card h2 { margin: 12px 0 8px; font: 1000 clamp(1.65rem, 8vw, 2.5rem)/.9 Arial Black, Arial, sans-serif; letter-spacing: -.06em; text-transform: uppercase; overflow-wrap: anywhere; }
.app-place-card p { margin: 7px 0; line-height: 1.38; }
.app-address { font: 700 .82rem/1.3 ui-monospace, monospace; text-transform: uppercase; }
.app-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.app-tags span { border: 1.5px solid var(--black); background: #fff; padding: 4px 6px; font: 800 .65rem/1 ui-monospace, monospace; text-transform: uppercase; }
.app-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.app-card-actions a { min-height: 40px; display: inline-grid; place-items: center; border: 2px solid var(--black); background: var(--black); color: var(--white); padding: 8px 11px; font: 900 .72rem/1 Arial, sans-serif; text-decoration: none; }
.app-contact-note { margin-top: 14px !important; font: 800 .7rem/1.35 ui-monospace, monospace; text-transform: uppercase; }
.app-empty { margin: 14px; border: 3px solid var(--black); background: var(--white); padding: 34px 18px; text-align: center; }
.app-empty b { font-size: 1.3rem; }
.app-empty a { font-weight: 900; }

.app-nav { position: fixed; z-index: 30; bottom: 0; left: 50%; display: grid; width: min(100%, 760px); grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 3px solid var(--white); background: var(--black); color: var(--white); transform: translateX(-50%); }
.app-nav a { display: grid; min-width: 0; min-height: 66px; place-items: center; align-content: center; gap: 2px; border-right: 1px solid #ffffff45; text-decoration: none; }
.app-nav a:last-child { border-right: 0; }
.app-nav a.active { background: var(--yellow); color: var(--black); }
.app-nav b { font-size: 1.2rem; line-height: 1; }
.app-nav span { font: 800 .61rem/1 Arial, sans-serif; }

.app-submit-main { padding: 0 14px 30px; }
.app-back { display: inline-block; padding: 16px 0 12px; font: 900 .72rem/1 Arial, sans-serif; }
.app-submit-intro { margin: 0 -14px 18px; padding: 25px 18px; border-block: 3px solid var(--black); background: var(--yellow); }
.app-submit-intro > span { display: block; margin-top: 14px; max-width: 34rem; font-weight: 700; line-height: 1.35; }
.app-submit-form { display: grid; gap: 14px; }
.app-submit-form > label { display: grid; gap: 6px; font: 900 .74rem/1.2 Arial, sans-serif; }
.app-submit-form input, .app-submit-form select, .app-submit-form textarea { width: 100%; min-height: 48px; border: 2px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); padding: 10px; font-size: 1rem; }
.app-submit-form textarea { min-height: 118px; resize: vertical; }
.app-submit-form fieldset { margin: 0; border: 3px solid var(--black); padding: 10px; }
.app-submit-form legend { padding: 0 6px; font: 900 .75rem/1 Arial, sans-serif; }
.app-tag-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-tag-checks label { display: flex; min-height: 44px; align-items: center; gap: 7px; border: 1.5px solid var(--black); background: var(--white); padding: 7px; font-size: .76rem; font-weight: 800; }
.app-tag-checks input { width: auto; min-height: auto; }
.app-publish { min-height: 56px; border: 3px solid var(--black); border-radius: 0; background: var(--black); color: var(--white); font: 1000 1rem/1 Arial Black, Arial, sans-serif; box-shadow: 5px 5px 0 var(--yellow); cursor: pointer; }
.trap-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.install-help { width: min(90vw, 390px); border: 3px solid var(--white); border-radius: 0; background: var(--black); color: var(--white); padding: 27px 20px 20px; box-shadow: 8px 8px 0 var(--yellow); }
.install-help::backdrop { background: #000b; }
.install-help strong { font: 1000 1.6rem/1 Arial Black, Arial, sans-serif; }
.install-help p { margin: 14px 0; line-height: 1.4; }
.install-help .install-note { color: #ddd; font-size: .88rem; }
.install-steps { display: grid; gap: 9px; margin: 18px 0; padding-left: 25px; line-height: 1.35; }
.install-steps li::marker { color: var(--yellow); font-weight: 900; }
.apk-text-link { color: var(--yellow); font-weight: 900; text-underline-offset: 3px; }
.install-close { position: absolute; top: 5px; right: 7px; border: 0; background: transparent; color: var(--white); font-size: 1.8rem; cursor: pointer; }

@media (min-width: 640px) {
  .app-results { grid-template-columns: 1fr 1fr; }
  .app-place-card:nth-child(even) { background: var(--white); }
  .app-place-card:nth-child(4n+2), .app-place-card:nth-child(4n+3) { background: var(--yellow); }
  .app-place-card:nth-child(odd) { border-right: 3px solid var(--black); }
  .app-submit-form { grid-template-columns: 1fr 1fr; }
  .app-submit-form > label:nth-child(2), .app-submit-form > label:nth-child(7), .app-submit-form > label:nth-child(14), .app-submit-form fieldset, .app-submit-form .app-publish { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .app-filter-row { grid-template-columns: 1fr 1fr; }
  .app-filter-row button { grid-column: 1 / -1; }
  .app-masthead h1, .app-submit-intro h1 { font-size: 3.35rem; }
}

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