@charset "UTF-8";
:root {
    --ink:#2b251f;
    --muted:#79746e;
    --blue:#f09e13;
    --line:#eceae6;
    --paper:#fff;
    --surface:#f9f9f8;
    --radius:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;
    color:var(--ink);
    background:var(--surface);
    font-synthesis:none;
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
}
a {
    color:inherit;
    text-decoration:none;
}
button,input,select {
    font:inherit;
}
button,a,input,select {
    -webkit-tap-highlight-color:transparent;
}
button {
    cursor:pointer;
}
button:disabled {
    cursor:default;
    opacity:.45;
}
button,input,select {
    border-radius:0;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
    outline:3px solid #f0a119;
    outline-offset:3px;
}
[hidden] {
    display:none!important;
}
h1,h2,h3,p {
    margin-top:0;
}
h1 {
    font-size:clamp(28px,3vw,42px);
    line-height:1.28;
    letter-spacing:-1.6px;
    margin-bottom:14px;
}
h2 {
    font-size:19px;
    letter-spacing:-.5px;
    margin-bottom:20px;
}
h3 {
    font-size:16px;
    margin-bottom:8px;
}
.accent {
    color:var(--blue);
}
.muted,.hint {
    color:var(--muted);
    line-height:1.7;
}
.muted {
    font-size:14px;
}
.hint {
    font-size:12px;
}
.eyebrow {
    font-size:11px;
    letter-spacing:1.3px;
    font-weight:800;
    color:var(--blue);
    margin-bottom:14px;
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.skip-link {
    position:fixed;
    top:-60px;
    left:16px;
    z-index:999;
    background:var(--blue);
    color:white;
    padding:12px;
}
.skip-link:focus {
    top:10px;
}
.site-header {
    height:78px;
    padding:0 40px;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:21px;
    font-weight:850;
    white-space:nowrap;
    letter-spacing:-.8px;
}
.brand-mark {
    display:grid;
    place-items:center;
    background:var(--blue);
    width:33px;
    height:33px;
    border-radius:0;
    color:white;
    font-weight:900;
    transform:rotate(-8deg);
}
.brand-caption {
    font-size:10px;
    letter-spacing:1.5px;
    color:#95908b;
    margin-left:8px;
}
.main-nav {
    display:flex;
    gap:8px;
}
.main-nav a {
    font-size:14px;
    font-weight:700;
    color:var(--muted);
    padding:12px 18px;
    border-radius:0;
}
.main-nav a[aria-current=page] {
    color:var(--blue);
    background:#fbf8f3;
}
.main-nav a:hover {
    background:var(--surface);
}
.button {
    border-radius:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:1px solid transparent;
    min-height:44px;
    padding:10px 17px;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    line-height:1.4;
}
.primary {
    background:var(--blue);
    color:white;
}
.primary:hover {
    background:#c8830d;
}
.secondary {
    background:white;
    color:var(--ink);
    border-color:var(--line);
}
.secondary:hover {
    background:#f7f5f2;
}
.full-width {
    width:100%;
}
.explore {
    display:grid;
    grid-template-columns:390px 1fr;
    height:calc(100dvh - 78px);
    min-height:560px;
}
.search-panel {
    padding:32px 24px 20px;
    background:white;
    overflow-y:auto;
    border-right:1px solid var(--line);
}
.panel-intro h1 {
    font-size:32px;
}
.panel-intro .eyebrow {
    font-size:10px;
}
.search-form {
    display:flex;
    gap:8px;
    margin-top:24px;
}
.search-form input {
    min-width:0;
    flex:1;
    border:1px solid var(--line);
    padding:12px;
    font-size:14px;
    background:var(--surface);
}
.search-tools {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:12px 0;
}
.radius-label {
    color:var(--muted);
    font-size:12px;
    white-space:nowrap;
}
.radius-label select {
    padding:10px 8px;
    border:1px solid var(--line);
    background:white;
    color:var(--ink);
}
.results-heading,.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}
.results-heading {
    margin-top:25px;
    padding-bottom:14px;
    border-bottom:1px solid var(--line);
}
.results-heading h2,.section-heading h2 {
    margin:0;
}
.count {
    font-size:12px;
    font-weight:700;
    color:var(--blue);
}
.store-card {
    padding:20px 0;
    border-bottom:1px solid var(--line);
}
.store-card-top {
    display:flex;
    gap:12px;
    align-items:flex-start;
}
.store-symbol {
    flex:none;
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:0;
    background:#fbf8f2;
    color:var(--blue);
    font-size:16px;
    font-weight:800;
}
.store-info {
    min-width:0;
    flex:1;
}
.store-info p {
    font-size:12px;
    line-height:1.6;
    color:var(--muted);
    margin-bottom:10px;
    word-break:keep-all;
    overflow-wrap:anywhere;
}
.store-title:hover {
    color:var(--blue);
    text-decoration:underline;
}
.record-row {
    display:flex;
    gap:10px;
    align-items:center;
    font-size:12px;
    flex-wrap:wrap;
}
.record-row strong {
    color:var(--blue);
}
.card-actions {
    display:flex;
    gap:8px;
    margin-top:13px;
    align-items:center;
    flex-wrap:wrap;
}
.card-actions .button {
    font-size:12px;
    min-height:36px;
    padding:7px 11px;
}
.distance {
    margin-left:auto;
    font-size:11px;
    color:var(--muted);
}
.panel-footnote {
    color:#95908b;
    font-size:11px;
    line-height:1.8;
    margin:20px 0 0;
}
.map-section {
    position:relative;
    min-width:0;
    background:#efeeeb;
}
.explore-map {
    height:100%;
    width:100%;
}
.map-status {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:24px;
    gap:10px;
    color:var(--muted);
    font-size:13px;
    background:#f2f1ef;
    z-index:2;
    line-height:1.8;
}
.map-status strong {
    color:var(--ink);
    font-size:17px;
}
.map-status p {
    margin:0;
    max-width:290px;
}
.latest-draw {
    position:absolute;
    top:24px;
    left:24px;
    z-index:3;
    display:flex;
    flex-direction:column;
    gap:8px;
    max-width:calc(100% - 48px);
    padding:20px 24px;
    background:white;
    border:1px solid var(--line);
    border-radius:0;
    box-shadow:0 6px 22px #1529400d;
    font-size:13px;
    font-weight:700;
}
.latest-draw .eyebrow {
    margin:0;
}
.map-search {
    position:absolute;
    top:150px;
    left:50%;
    transform:translateX(-50%);
    z-index:3;
    box-shadow:0 4px 18px #172b4822;
    background:var(--blue);
    color:white;
}
.selected-store {
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    z-index:3;
    background:white;
    border:1px solid var(--line);
    border-radius:0;
    padding:22px;
    box-shadow:0 8px 32px #172b4822;
    width:340px;
    max-width:calc(100% - 32px);
}
.selected-store h3 {
    padding-right:24px;
}
.selected-store p {
    font-size:13px;
    color:var(--muted);
    line-height:1.6;
}
.close-selection {
    position:absolute;
    right:10px;
    top:10px;
    border:0;
    background:var(--surface);
    width:32px;
    height:32px;
    font-size:20px;
}
.content-page {
    max-width:1050px;
    margin:0 auto;
    padding:32px 28px 70px;
}
.back-link {
    display:inline-block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:28px;
}
.page-intro {
    margin-bottom:30px;
}
.page-intro h1 {
    overflow-wrap:anywhere;
}
.card {
    background:white;
    border:1px solid var(--line);
    border-radius:0;
    padding:28px;
}
.detail-grid {
    display:grid;
    grid-template-columns:1fr 1.25fr;
    gap:20px;
    align-items:start;
}
.stat-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    margin:24px 0;
}
.stat {
    min-width:0;
}
.stat-label {
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:10px;
}
.stat-value {
    display:block;
    font-size:clamp(20px,2.3vw,30px);
    font-weight:800;
    letter-spacing:-1px;
    overflow-wrap:anywhere;
}
.stat-value small {
    font-size:14px;
    font-weight:500;
    margin-left:4px;
}
.detail-map-wrap {
    position:relative;
}
.detail-map {
    height:250px;
    border-radius:0;
    overflow:hidden;
}
.detail-map-wrap .map-status {
    border-radius:0;
}
.action-row {
    display:flex;
    gap:10px;
    margin-top:18px;
    flex-wrap:wrap;
}
.history-card {
    margin-top:24px;
}
.history-card .section-heading {
    margin-bottom:24px;
}
.pill {
    color:var(--blue);
    font-size:11px;
    background:#fbf8f2;
    padding:7px 10px;
    border-radius:0;
    font-weight:700;
}
.table-wrap {
    overflow:auto;
}
table {
    border-collapse:collapse;
    width:100%;
    font-size:13px;
    text-align:left;
    white-space:nowrap;
}
th {
    font-size:12px;
    color:var(--muted);
    font-weight:500;
    background:var(--surface);
}
th,td {
    padding:14px;
    border-bottom:1px solid var(--line);
}
td a {
    color:var(--blue);
    font-weight:700;
}
.empty {
    text-align:center;
    color:var(--muted);
    line-height:1.8;
    font-size:13px;
    padding:32px 12px;
    margin:0;
}
.empty .button {
    margin-top:12px;
}
.draw-page {
    max-width:900px;
}
.draw-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}
.draw-toolbar form {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
}
.draw-toolbar input {
    width:88px;
    padding:11px 8px;
    border:1px solid var(--line);
    text-align:center;
}
.draw-result {
    text-align:center;
    padding:38px 28px;
}
.draw-result h2 {
    font-size:28px;
    margin-bottom:28px;
}
.ball-row {
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}
.ball {
    width:48px;
    height:48px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border-radius:0;
    color:white;
    font-size:19px;
    font-weight:800;
    background:#8a99a7;
    box-shadow:inset 0 -3px 0 #00000010;
}
.ball[data-color=yellow] {
    background:#d99a20;
}
.ball[data-color=blue] {
    background:#4389d5;
}
.ball[data-color=red] {
    background:#d85d62;
}
.ball[data-color=gray] {
    background:#78838d;
}
.ball[data-color=green] {
    background:#5e9b67;
}
.ball.small {
    height:29px;
    width:29px;
    font-size:12px;
    box-shadow:none;
}
.ball-row.compact {
    gap:6px;
    justify-content:flex-start;
}
.ball-plus {
    color:#9aa6b0;
    padding:0 4px;
}
.draw-result .stat-grid {
    margin-top:36px;
    border-top:1px solid var(--line);
    padding-top:28px;
    margin-bottom:0;
}
.winning-stores {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.winner-card {
    padding:18px;
    border:1px solid var(--line);
    border-radius:0;
}
.winner-card h3 {
    line-height:1.5;
}
.winner-card p {
    font-size:12px;
    color:var(--muted);
    line-height:1.6;
    margin-bottom:10px;
}
.winner-card:hover {
    border-color:#f0a119;
    background:#fefdfb;
}
.winner-card .pill {
    display:inline-block;
}
.winning-stores>.empty {
    grid-column:1/-1;
}
.error {
    color:#a33e3e;
}
.selected {
    background:#fdfbf7;
}
@media(min-width:1500px) {
    .explore {
        grid-template-columns:430px 1fr;
    }
    .search-panel {
        padding:38px 32px;
    }
    .panel-intro h1 {
        font-size:36px;
    }
}
@media(max-width:760px) {
    .site-header {
        height:68px;
        padding:0 16px;
        gap:8px;
    }
    .brand {
        font-size:18px;
        gap:8px;
    }
    .brand-caption {
        display:none;
    }
    .brand-mark {
        width:29px;
        height:29px;
    }
    .main-nav {
        gap:0;
    }
    .main-nav a {
        font-size:12px;
        padding:10px;
    }
    .explore {
        display:flex;
        flex-direction:column;
        height:auto;
        min-height:0;
    }
    .search-panel {
        display:contents;
    }
    .panel-intro {
        order:0;
        padding:24px 20px 0;
        background:white;
    }
    .panel-intro h1 {
        font-size:27px;
    }
    .panel-intro h1 br {
        display:none;
    }
    .panel-intro .muted {
        margin-bottom:0;
        font-size:13px;
    }
    .search-form {
        order:1;
        margin:0;
        padding:20px 20px 0;
        background:white;
    }
    .search-tools {
        order:2;
        margin:0;
        padding:12px 20px 0;
        background:white;
    }
    .search-panel>#location-status {
        order:3;
        margin:0;
        padding:8px 20px 16px;
        background:white;
    }
    .map-section {
        order:4;
        height:390px;
        flex-shrink:0;
    }
    .latest-draw {
        top:14px;
        left:14px;
        padding:13px 16px;
        max-width:calc(100% - 28px);
        gap:7px;
    }
    .latest-draw .eyebrow {
        font-size:9px;
    }
    .map-search {
        top:115px;
        font-size:12px;
    }
    .selected-store {
        bottom:35px;
        padding:15px;
    }
    .results-heading {
        order:5;
        margin:0;
        padding:22px 20px 16px;
        background:white;
    }
    .store-list {
        order:6;
        padding:0 20px;
        background:white;
    }
    .search-panel>#load-more {
        order:7;
        width:calc(100% - 40px);
        margin:12px 20px;
    }
    .panel-footnote {
        order:8;
        margin:0;
        padding:20px;
    }
    .content-page {
        padding:24px 18px 50px;
    }
    .detail-grid {
        grid-template-columns:1fr;
    }
    .card {
        padding:22px;
    }
    .page-intro h1 {
        font-size:30px;
    }
    .history-card {
        margin-top:18px;
    }
    .draw-toolbar {
        gap:6px;
        flex-wrap:wrap;
    }
    .draw-toolbar .button {
        font-size:12px;
        padding:9px 10px;
    }
    .draw-toolbar input {
        width:70px;
    }
    .draw-result {
        padding:28px 16px;
    }
    .ball {
        width:35px;
        height:35px;
        font-size:16px;
    }
    .ball-row {
        gap:7px;
    }
    .ball-plus {
        padding:0;
    }
    .draw-result h2 {
        font-size:24px;
    }
    .winning-stores {
        grid-template-columns:1fr;
    }
    .draw-result .stat-value {
        font-size:21px;
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior:auto!important;
    }
}

/* Lucky-pouch identity and local illustration assets. */
.ui-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.brand { gap: 8px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-wordmark { display: flex; flex-direction: column; gap: 3px; }
.brand-caption { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .2px; }
.main-nav a { display: inline-flex; align-items: center; gap: 7px; }
.eyebrow { display: flex; align-items: center; gap: 5px; }
.eyebrow .ui-icon { width: 15px; height: 15px; }
.panel-intro { position: relative; padding-right: 82px; min-height: 206px; }
.panel-intro h1 { font-size: 29px; position: relative; z-index: 1; }
.panel-intro .eyebrow { white-space: nowrap; position: relative; z-index: 1; letter-spacing: .5px; }
.panel-intro .muted { position: relative; z-index: 1; }
.home-hero-art { position: absolute; width: 143px; height: 143px; right: -14px; top: 48px; object-fit: contain; }
.quick-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 1px solid #f4f1ec; border-radius:0; background: #fdfcf9; padding: 12px 5px; margin: 0 0 20px; }
.quick-guide > span { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #766e65; }
.guide-icon, .heading-icon { background: #faf6ef; color: var(--blue); border-radius:0; width: 32px; height: 32px; flex: 0 0 auto; }
.gold { color: #ad751b; background: #fff4d9; }
.mint { color: #278471; background: #e7f5ef; }
.card h2, .results-heading h2 { display: flex; align-items: center; gap: 9px; }
.results-heading h2 > [data-icon] { color: var(--blue); }
.store-symbol { width: 58px; height: 62px; position: relative; background: #faf8f4; border: 1px solid #f3f0eb; }
.store-thumbnail { width: 55px; height: 55px; object-fit: contain; }
.store-index { position: absolute; left: -4px; bottom: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius:0; background: white; border: 1px solid #f1ece2; font-size: 10px; }
.record-row strong, .record-row > span, .distance, .stat-label, .back-link { display: inline-flex; align-items: center; gap: 5px; }
.record-row .ui-icon, .distance .ui-icon { width: 14px; height: 14px; }
.record-row strong { color: #aa761d; }
.card-actions .ui-icon { width: 15px; height: 15px; }
.selection-art { float: left; margin: 0 12px 10px 0; width: 62px; height: 62px; object-fit: contain; }
.selected-store .record-row, .selected-store .card-actions { clear: both; }
.close-selection { display: grid; place-items: center; }
.latest-draw { flex-direction: row; align-items: center; gap: 14px; padding: 14px 20px 14px 10px; }
.latest-art { display: flex; align-items: center; }
.latest-art-image { width: 66px; height: 66px; object-fit: contain; }
.latest-content { display: flex; flex-direction: column; gap: 9px; }
.map-status { background: radial-gradient(ellipse at 45% 50%, #ffffff 0%, #f9f6f0 48%, #f5f1ea 100%); padding-top: 126px; gap: 12px; }
.map-empty-art { width: 230px; height: 230px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 18px 22px #5480b719); }
.detail-map-wrap .map-status { padding: 14px; gap: 5px; }
.detail-map-wrap .map-empty-art { width: 100px; height: 100px; }
.detail-map-wrap .map-status strong { font-size: 14px; }
.detail-map-wrap .map-status p { font-size: 11px; }
.empty-art { display: block; width: 106px; height: 106px; object-fit: contain; margin: 0 auto 12px; }
.illustrated-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 190px; border-radius:0; background: linear-gradient(120deg, #fbf8f1, #fdfbf8 65%, #fff5df); padding: 28px 32px; border: 1px solid #f4f0e9; }
.illustrated-intro > div { min-width: 0; position: relative; z-index: 1; }
.illustrated-intro h1 { margin-bottom: 12px; }
.illustrated-intro .muted { margin-bottom: 0; }
.page-hero-art { width: 180px; height: 180px; object-fit: contain; flex-shrink: 0; }
.draw-intro .page-hero-art { width: 240px; height: 210px; }
.draw-intro h1 { font-size: 38px; }
.mobile-break { display: none; }
.record-art-banner { display: flex; align-items: center; gap: 8px; background: #fdfbf8; border-radius:0; margin: 18px 0; padding: 6px 12px 6px 0; }
.record-art-banner img { width: 80px; height: 80px; object-fit: contain; flex-shrink: 0; }
.record-art-banner p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.7; }
.record-art-banner p span { color: var(--muted); font-weight: 400; font-size: 11px; }
.stat-label { font-size: 12px; }
.stat-label .ui-icon { width: 17px; height: 17px; color: #ac7a23; }
.draw-result { position: relative; border-top: 3px solid #efc777; background: linear-gradient(#fffdf7, white 130px); }
.draw-result .eyebrow { justify-content: center; }
.draw-result .stat-label { justify-content: center; }
.draw-emblem { width: 46px; height: 46px; color: #b68026; background: #fff0cc; border-radius:0; margin-bottom: 17px; transform: rotate(-8deg); }
.draw-emblem .ui-icon { width: 26px; height: 26px; }
.winner-card { display: flex; align-items: flex-start; gap: 13px; }
.winner-art { width: 60px; height: 64px; object-fit: contain; flex-shrink: 0; }
.winner-info { min-width: 0; }
.winner-info .pill { display: inline-flex; align-items: center; gap: 5px; }
.winner-info .pill .ui-icon { width: 14px; height: 14px; }
@media (min-width: 1500px) {
    .panel-intro h1 { font-size: 31px; }
}
@media (max-width: 760px) {
    .site-header { gap: 5px; }
    .brand-logo { width: 40px; height: 40px; }
    .brand { gap: 4px; font-size: 18px; }
    .brand-caption { display: none; }
    .main-nav a { gap: 4px; padding: 10px 8px; }
    .main-nav .ui-icon { width: 16px; height: 16px; }
    .panel-intro { padding: 24px 110px 10px 20px; min-height: 210px; }
    .panel-intro h1 { font-size: 28px; }
    .panel-intro h1 br { display: initial; }
    .panel-intro .muted { font-size: 12px; }
    .home-hero-art { right: 3px; top: 64px; width: 145px; height: 145px; }
    .quick-guide { order: 1; margin: 0; padding: 12px 20px; border-radius:0; border-left: 0; border-right: 0; }
    .quick-guide > span { flex-direction: row; justify-content: center; gap: 5px; font-size: 10px; }
    .guide-icon { width: 26px; height: 26px; border-radius:0; }
    .guide-icon .ui-icon { width: 16px; height: 16px; }
    .latest-draw { gap: 7px; padding: 10px 12px 10px 6px; }
    .latest-art-image { width: 47px; height: 47px; }
    .latest-content { gap: 7px; }
    .latest-draw .ball.small { width: 26px; height: 26px; font-size: 11px; }
    .latest-draw .ball-row.compact { gap: 4px; }
    .map-section { height: 425px; }
    .map-status { padding: 115px 18px 18px; gap: 8px; }
    .map-empty-art { width: 164px; height: 164px; }
    .map-status strong { font-size: 15px; }
    .map-status p { font-size: 12px; max-width: 260px; }
    .illustrated-intro { padding: 22px 18px; gap: 8px; min-height: 180px; }
    .illustrated-intro h1 { font-size: 28px; }
    .illustrated-intro .eyebrow { font-size: 9px; letter-spacing: .8px; }
    .illustrated-intro .muted { font-size: 12px; }
    .page-hero-art { width: 112px; height: 122px; }
    .draw-intro .page-hero-art { width: 128px; height: 145px; }
    .mobile-break { display: initial; }
    .store-intro h1 { font-size: 26px; }
    .draw-toolbar { justify-content: flex-start; }
    .draw-toolbar .ui-icon { width: 14px; height: 14px; }
    .draw-toolbar .button { gap: 4px; }
    .draw-toolbar form { margin-left: auto; }
    .section-heading h2 { font-size: 17px; gap: 7px; }
    .heading-icon { width: 29px; height: 29px; border-radius:0; }
    .heading-icon .ui-icon { width: 17px; height: 17px; }
    .winner-card { padding: 15px; }
    .winner-art { width: 54px; height: 58px; }
}
@media (max-width: 360px) {
    .site-header { padding: 0 10px; }
    .brand-logo { width: 32px; height: 36px; }
    .brand { font-size: 16px; }
    .main-nav a { padding: 9px 5px; font-size: 11px; gap: 3px; }
    .panel-intro { padding-right: 88px; }
    .panel-intro h1 { font-size: 24px; }
    .home-hero-art { width: 112px; height: 130px; top: 74px; right: 0; }
    .panel-intro .eyebrow { font-size: 9px; }
    .latest-art-image { width: 32px; height: 40px; }
    .latest-draw .ball.small { width: 24px; height: 24px; }
    .illustrated-intro { padding: 20px 14px; }
    .illustrated-intro h1 { font-size: 23px; }
    .draw-intro .page-hero-art, .page-hero-art { width: 88px; height: 110px; }
    .illustrated-intro .muted { font-size: 11px; }
    .draw-result .ball { width: 29px; height: 29px; font-size: 14px; }
    .draw-result .ball-row { gap: 4px; }
    .card .section-heading h2 { font-size: 15px; }
    .stat-label { font-size: 10px; gap: 3px; }
    .stat-label .ui-icon { width: 14px; height: 14px; }
}

/* The finder starts with cards; the map is an optional second view. */
.finder { max-width: 1280px; margin: 0 auto; padding: 32px 32px 56px; }
.finder-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; border: 1px solid #f4f0e9; border-radius:0; background: linear-gradient(115deg, #fbf8f1, #fefdfa 65%, #fff6e3); }
.finder .panel-intro { flex: 1; min-height: 175px; padding: 0 165px 0 0; background: transparent; }
.finder .panel-intro h1 { font-size: 34px; }
.finder .panel-intro h1 br { display: none; }
.finder .panel-intro .muted { margin-bottom: 0; }
.finder .home-hero-art { width: 175px; height: 175px; top: 0; right: 0; }
.finder .latest-draw { position: static; flex-shrink: 0; max-width: 100%; margin: 0; box-shadow: none; }
.finder-search { margin-top: 24px; padding: 22px 24px 16px; border: 1px solid var(--line); border-radius:0; background: white; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
.finder .search-form { margin: 0; padding: 0; }
.finder .search-tools { margin: 0; padding: 0; gap: 18px; }
.finder #location-status { grid-column: 1 / -1; margin: 10px 0 0; }
.finder-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 18px; }
.finder .results-heading { order: 0; justify-content: flex-start; margin: 0; padding: 0; border: 0; background: transparent; flex-wrap: wrap; }
.view-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius:0; background: #f2f1ef; flex-shrink: 0; }
.view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 14px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.view-switch button[aria-pressed="true"] { color: var(--blue); background: white; box-shadow: 0 2px 6px #1e375b10; }
.view-switch .ui-icon { width: 17px; height: 17px; }
.finder-results, .finder-list { min-width: 0; }
.finder .store-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; background: transparent; }
.finder .store-list > .empty { grid-column: 1 / -1; }
.finder .store-card { padding: 22px 18px; border: 1px solid var(--line); border-radius:0; background: white; }
.finder .store-card:hover { border-color: #f0a119; }
.finder .store-card-top { height: 100%; }
.finder .store-info { align-self: stretch; display: flex; flex-direction: column; }
.finder .store-info .card-actions { margin-top: auto; padding-top: 16px; }
.finder .card-actions { gap: 6px; }
.finder .card-actions .button { padding: 7px 9px; }
.finder .distance { width: 100%; margin: 4px 0 0; }
.finder #load-more { display: flex; width: auto; min-width: 220px; margin: 22px auto 0; }
.finder .panel-footnote { margin: 20px 0 0; padding: 0; }
.finder .map-section { border: 1px solid var(--line); border-radius:0; height: 640px; overflow: hidden; }
.finder .map-status { padding: 24px; }
.finder .map-search { top: 18px; }
.finder-page[data-view="map"] .finder-results { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 20px; align-items: start; }
.finder-page[data-view="map"] .finder-list { max-height: 640px; overflow-y: auto; padding-right: 4px; }
.finder-page[data-view="map"] .store-list { grid-template-columns: 1fr; }
@media (max-width: 1100px) {
    .finder .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .finder-intro { gap: 12px; padding: 24px; flex-wrap: wrap; }
    .finder .panel-intro { flex-basis: 100%; }
    .finder .panel-intro { padding-right: 130px; }
    .finder .panel-intro h1 { font-size: 28px; }
    .finder .panel-intro h1 br { display: initial; }
    .finder .home-hero-art { width: 140px; height: 155px; top: 24px; }
}
@media (max-width: 760px) {
    .finder { padding: 18px 16px 36px; }
    .finder-intro { display: block; padding: 22px 18px 18px; border-radius:0; }
    .finder .panel-intro { min-height: 180px; padding-right: 84px; }
    .finder .panel-intro h1 { font-size: 27px; }
    .finder .panel-intro .eyebrow { font-size: 9px; }
    .finder .home-hero-art { width: 120px; height: 140px; right: -8px; top: 30px; }
    .finder .latest-draw { width: 100%; gap: 6px; padding: 10px 8px; }
    .finder .latest-art-image { width: 36px; height: 42px; }
    .finder .latest-draw .ball.small { width: 24px; height: 24px; }
    .finder .latest-draw .ball-row.compact { gap: 3px; }
    .finder-search { display: block; padding: 16px; margin-top: 16px; }
    .finder .search-tools { margin-top: 12px; gap: 8px; }
    .finder-toolbar { flex-wrap: wrap; margin: 24px 0 16px; gap: 14px; }
    .view-switch { width: 100%; }
    .view-switch button { flex: 1; }
    .finder .store-list { grid-template-columns: 1fr; gap: 12px; }
    .finder .store-card { padding: 20px 16px; }
    .finder .results-heading h2 { font-size: 18px; }
    .finder-page[data-view="map"] .finder-results { display: flex; flex-direction: column; gap: 16px; }
    .finder-page[data-view="map"] .finder-list { order: 1; max-height: none; overflow: visible; padding: 0; width: 100%; }
    .finder .map-section { order: 0; width: 100%; height: 480px; }
    .finder .map-status { padding: 20px 14px; }
    .finder .selected-store { bottom: 14px; }
}
@media (max-width: 360px) {
    .finder { padding-right: 12px; padding-left: 12px; }
    .finder-intro { padding-right: 14px; padding-left: 14px; }
    .finder .panel-intro h1 { font-size: 24px; }
    .finder .panel-intro .muted { font-size: 11px; }
    .finder .home-hero-art { width: 100px; top: 35px; }
    .finder .latest-art-image { width: 27px; }
    .finder .latest-draw .ball.small { width: 22px; height: 22px; }
    .finder .search-form .button { padding: 10px 12px; gap: 4px; }
    .finder .search-form input { font-size: 12px; padding: 10px; }
}

/* Regional rankings share the existing list and map views. */
.region-browser { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.region-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.region-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.region-heading h2 .ui-icon { color: #ae7a24; }
.region-heading .button { min-height: 36px; padding: 6px 12px; font-size: 12px; }
.region-selects { display: flex; flex-wrap: wrap; gap: 12px; }
.region-selects label { flex: 1 1 150px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.region-selects select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); background: #fcfbf8; color: var(--ink); font-size: 14px; }
.region-selects select:disabled { color: #a19d98; background: #f8f7f6; }
.region-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.region-status .hint { margin: 12px 0 0; }
.ranking-guide { border: 1px solid #e9e2d5; background: #fffcf6; border-radius:0; padding: 16px 20px; margin-bottom: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.ranking-guide p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0; }
.medal-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; border: 1px solid transparent; border-radius:0; padding: 6px 9px; font-size: 11px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.rank-badge .ui-icon { width: 17px; height: 17px; }
.rank-gold { background: #fff1c6; color: #8b5e0b; border-color: #efd181; }
.rank-silver { background: #f5f3f0; color: #706a62; border-color: #dad6d2; }
.rank-bronze { background: #f9e9dc; color: #92552f; border-color: #e6b99a; }
.rank-other { background: #f9f8f5; color: #787168; }
.finder .store-card { display: flex; flex-direction: column; gap: 14px; }
.finder .store-card-top { height: auto; flex: 1; }
.finder .store-card[data-rank="gold"] { border-color: #e6c46b; background: linear-gradient(#fffdf4, white 110px); }
.finder .store-card[data-rank="silver"] { border-color: #d7d2cd; background: linear-gradient(#fbfaf7, white 110px); }
.finder .store-card[data-rank="bronze"] { border-color: #dfb89b; background: linear-gradient(#fff8f1, white 110px); }
@media (max-width: 760px) {
    .region-selects { gap: 10px; }
    .region-selects label { flex-basis: calc(50% - 10px); }
    .region-heading h2 { font-size: 15px; }
    .ranking-guide { padding: 14px; gap: 10px; }
    .rank-badge { padding: 5px 7px; }
    .finder .results-heading h2 { line-height: 1.6; }
}

.period-browser { grid-column: 1 / -1; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.period-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.period-heading > .ui-icon { color: var(--blue); width: 18px; height: 18px; }
.period-heading .hint { margin-left: 4px; font-weight: 400; }
.period-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.period-presets button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: 12px; font-weight: 650; }
.period-presets button[aria-pressed="true"] { background: #fbf8f1; border-color: #f0a119; color: var(--blue); }
.period-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.period-form label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; min-width: 0; }
.period-form input { border: 1px solid var(--line); background: #fcfbf8; color: var(--ink); padding: 10px 12px; min-height: 44px; width: 175px; max-width: 100%; font-size: 14px; }
#period-summary { margin: 12px 0 0; }
#period-error { margin: 12px 0 0; }
#period-result-note { flex-basis: 100%; border-top: 1px solid #ece3d1; padding-top: 10px; }
@media (max-width: 760px) {
    .period-presets { gap: 6px; }
    .period-presets button { padding: 8px 11px; }
    .period-form { gap: 10px; }
    .period-form label { flex: 1 1 calc(50% - 10px); }
    .period-form input { width: 100%; min-width: 0; padding: 10px 6px; font-size: 12px; }
    .period-form .button { width: 100%; }
}

/* In-flow advertising; no overlays on maps or navigation. */
.ad-placement { min-width: 0; width: 100%; margin: 32px 0; padding-top: 12px; border-top: 1px solid var(--line); min-height: 180px; }
.ad-label { margin: 0 0 12px; color: var(--muted); font-size: 11px; text-align: center; letter-spacing: .08em; }
.ad-placement ins { width: 100%; }
.ad-placement[hidden] { display: none !important; }
.site-footer { max-width: 1240px; margin: 16px auto 0; padding: 28px 24px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 8px 0 0; }
.information-page { max-width: 860px; line-height: 1.9; overflow-wrap: anywhere; }
.information-page .card { margin-top: 24px; padding: 24px; }
.information-page h1 { font-size: clamp(24px, 5vw, 36px); line-height: 1.4; }
.information-page h2 { font-size: 20px; }
.information-page a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.information-page li { margin-bottom: 8px; }
@media (max-width: 760px) {
    .ad-placement { min-height: 280px; }
    .site-footer { padding: 20px 20px 28px; }
    .information-page .card { padding: 20px; }
}

/* Preview uses the actual placement and never contains an AdSense unit. */
.ad-preview { scroll-margin-top: 24px; }
.ad-preview-frame { height: 180px; padding: 20px; border: 2px dashed #f0a119; border-radius:0; background: #fcf9f3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: #6b5e4e; }
.ad-preview-frame strong { font-size: 17px; }
.ad-preview-frame > span:not(.ad-preview-badge) { font-size: 13px; }
.ad-preview-frame small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.ad-preview-badge { padding: 3px 10px; border: 1px solid #f0a119; border-radius:0; font-size: 11px; font-weight: 700; }
.preview-mobile-size { display: none; }
.ad-preview-notice { max-width: 1240px; margin: 20px auto 0; width: calc(100% - 40px); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #f0a119; border-radius:0; background: #fbf8f1; color: #6b5e4e; font-size: 13px; }
.ad-preview-notice p { margin: 5px 0 0; line-height: 1.6; }
.ad-preview-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.ad-preview-actions a { padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
    .ad-preview-frame { height: 250px; padding: 16px; }
    .ad-preview-frame strong { font-size: 16px; }
    .preview-desktop-size { display: none; }
    .preview-mobile-size { display: inline; }
    .ad-preview-notice { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
    .ad-preview-actions { gap: 20px; }
}

/* Table breaks span the content; card feeds use one ordinary grid cell. */
.store-list > .ad-inline, .winning-stores > .ad-inline { grid-column: 1 / -1; margin: 8px 0; }
#winning-history > .ad-inline { margin: 24px 0; }
.ad-inline .ad-label { margin-bottom: 12px; }
.store-list > .ad-inline.ad-card, .winning-stores > .ad-inline.ad-card {
    grid-column: auto;
    margin: 0;
    min-height: 0;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius:0;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
}
.winning-stores > .ad-inline.ad-card { padding: 18px; border-radius:0; gap: 12px; }
.store-list > .ad-card.ad-preview, .winning-stores > .ad-card.ad-preview { background: linear-gradient(145deg, #fdfbf8, white); border-color: #f0a119; }
.ad-card .ad-label { align-self: flex-start; margin: 0; padding: 4px 8px; border: 1px solid #dfdad5; border-radius:0; background: #faf9f7; color: #6c655d; font-size: 10px; letter-spacing: 0; }
.ad-card-layout { display: flex; align-items: flex-start; gap: 13px; }
.ad-card-media { flex: 0 0 58px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius:0; background: linear-gradient(135deg, #f7f3ea, #fcfaf6); color: #a79b8c; }
.ad-card-media .ui-icon { width: 26px; height: 26px; }
.ad-card-media span { font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.ad-card-copy { min-width: 0; }
.ad-card-copy strong { font-size: 16px; line-height: 1.6; }
.ad-card-copy p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ad-card-note { margin: auto 0 0; padding-top: 8px; font-size: 10px; line-height: 1.7; color: var(--muted); }
@media (max-width: 760px) {
    .store-list > .ad-inline.ad-card { padding: 20px 16px; }
    .winning-stores > .ad-inline.ad-card { padding: 15px; }
}

/* Shared regional and radius ranking badges. */
.store-badges { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.store-badges .rank-badge { display:inline-flex; align-items:center; gap:7px; margin:0; padding:5px 10px 5px 5px; line-height:1.5; max-width:100%; white-space:normal; }
.rank-art { width:33px; height:35px; object-fit:contain; flex-shrink:0; }
.legend-rank-art { width:25px; height:27px; object-fit:contain; }
.hotspot-badge { display:inline-flex; align-items:center; gap:5px; color:#9e670a; background:#fbf8f1; border:1px solid #f6efe1; border-radius:0; padding:5px 9px; font-size:11px; font-weight:700; }
.hotspot-badge .ui-icon { width:14px; height:14px; }
.rank-hotspot { color:#9e670a; background:#fbf8f1; border:1px solid #f6efe1; }
.medal-legend { flex-wrap:wrap; }
.selected-store .store-badges { padding-right:22px; }
#nearby-sort-field { display:flex; align-items:center; gap:8px; }
#nearby-sort-field[hidden] { display:none; }
@media(max-width:480px) { .store-badges { gap:6px; } .store-badges .rank-badge { font-size:11px; } .search-tools { flex-wrap:wrap; } .rank-art { width:28px; height:30px; } }

/* Shop illustrations share the medal palette; color is always paired with text. */
.finder .store-symbol { width:70px; height:76px; flex-shrink:0; border-radius:0; background:#fcfaf5; border-color:#f3eee3; }
.finder .store-thumbnail { width:70px; height:77px; object-fit:contain; }
.finder .store-card[data-rank="gold"] .store-symbol { background:#fff3cb; border-color:#f1d485; }
.finder .store-card[data-rank="silver"] .store-symbol { background:#f5f3ef; border-color:#dbd6d1; }
.finder .store-card[data-rank="bronze"] .store-symbol { background:#fff0e5; border-color:#ecc4a5; }
.finder .store-card[data-rank="store"] .store-symbol { background:#eaf8f1; border-color:#c4e4d7; }
.finder .store-card[data-rank="hotspot"] { background:linear-gradient(#fdfcfa,white 110px); }
.finder .store-card[data-rank="store"] { background:linear-gradient(#f5fbf8,white 110px); }
@media(max-width:480px) { .finder .store-symbol { width:58px; height:66px; } .finder .store-thumbnail { width:60px; height:66px; } }
/* Place names stay with visible individual map pins. */
.poi-label { display:block; max-width:190px; padding:7px 10px; border:1px solid #d3ccc3; background:white; color:#41392f; font-family:inherit; font-size:12px; line-height:1.4; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-shadow:0 2px 7px #20395826; }
button.poi-label { cursor:pointer; }
.poi-label:focus-visible { outline:3px solid #f0a119; outline-offset:2px; }
.poi-gold { background:#fff4cf; border-color:#c59020; color:#805300; }
.poi-silver { background:#f6f4f0; border-color:#a29a91; color:#665c51; }
.poi-bronze { background:#fff0e5; border-color:#bc7d50; color:#87452c; }
.store-detail-grid { grid-template-columns:minmax(250px,.72fr) minmax(0,1.8fr); }
.store-detail-grid > *, .location-views > * { min-width:0; }
.location-views { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.location-views .detail-map, .detail-roadview { height:330px; overflow:hidden; }
.view-caption { font-size:13px; margin:16px 0 10px; }
.detail-map-wrap .map-status { font-size:13px; text-align:center; }
.nearby-controls { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; }
.nearby-controls select { padding:8px; border:1px solid var(--line); background:white; }
.nearby-card .rank-badge { margin-bottom:10px; }
#store-illustration { flex-shrink:0; }
#store-content[data-rank="gold"] .store-intro { background:linear-gradient(115deg,#fff7dc,#fffdfa); border-color:#e6c46b; }
#store-content[data-rank="silver"] .store-intro { background:linear-gradient(115deg,#f5f2ed,#fff); border-color:#d0cac2; }
#store-content[data-rank="bronze"] .store-intro { background:linear-gradient(115deg,#ffeddf,#fffcfa); border-color:#dfb89b; }
#store-content[data-rank="store"] .store-intro { background:linear-gradient(115deg,#eaf8f0,#fff); }
#store-badges { margin-top:14px; }
.winner-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.winner-tabs button { border:1px solid var(--line); padding:10px 16px; background:#fff; color:var(--muted); cursor:pointer; font:inherit; font-size:13px; }
.winner-tabs button[aria-pressed="true"] { border-color:#f0a119; color:#9e670a; background:#fbf8f1; font-weight:700; }
.money-reading { display:block; margin-top:8px; color:#726b62; font-size:13px; font-weight:600; line-height:1.7; overflow-wrap:anywhere; }
#draw-stats { text-align:left; gap:0; border:1px solid var(--line); }
.prize-stat { padding:22px; border-bottom:1px solid var(--line); }
.prize-stat:first-child { grid-column:1/-1; background:#fffbef; }
.prize-stat .stat-value { font-size:24px; }
.prize-stat:first-child .stat-value { color:#986700; font-size:32px; }
@media(max-width:1100px) { .store-detail-grid { grid-template-columns:1fr; } }
@media(max-width:760px) { .location-views { grid-template-columns:1fr; } .location-views .detail-map { height:280px; } .location-card .section-heading, #nearby-section .section-heading { align-items:flex-start; gap:14px; flex-wrap:wrap; } }
@media(max-width:480px) { .prize-stat { padding:16px 12px; } .prize-stat .stat-value { font-size:19px; } .prize-stat:first-child .stat-value { font-size:27px; } .poi-label { max-width:150px; font-size:11px; } }

/* Number balls retain their circular shape; bordered UI panels use square corners. */
.ball { border-radius:50%; }
/* Regional browsing comes before optional filters and explanatory content. */
.finder { padding-top:20px; }
.finder-intro { padding:18px 22px; gap:24px; }
.finder .panel-intro { min-height:78px; padding-right:100px; }
.finder .panel-intro h1 { margin-bottom:6px; font-size:28px; }
.finder .panel-intro .eyebrow { margin-bottom:6px; }
.finder .home-hero-art { width:88px; height:88px; top:0; right:0; }
.finder .panel-intro .muted { font-size:12px; }
.finder-search { display:block; margin-top:16px; padding:18px 22px 12px; }
.region-browser { margin-bottom:12px; padding-bottom:12px; }
.region-heading { margin-bottom:12px; }
.region-shortcuts { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:6px; margin-bottom:14px; }
.region-shortcuts button { border:1px solid var(--line); background:#fff; min-height:36px; padding:6px 4px; font-size:13px; font-weight:650; color:#726960; }
.region-shortcuts button:hover { border-color:#f0a119; background:#fdfbf7; }
.region-shortcuts button[aria-pressed="true"] { background:#f09e13; color:white; border-color:#f09e13; }
.region-selects { gap:10px; }
.region-selects label { gap:5px; }
.region-selects select { min-height:38px; padding:7px 10px; font-size:13px; }
.region-status .hint { margin-top:8px; font-size:11px; }
.finder .ranking-controls { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:0; }
.ranking-controls .radius-label { display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-weight:650; }
.ranking-controls select { border:1px solid var(--line); background:#fdfcfa; padding:8px; font-size:13px; }
.ranking-controls .button { padding:8px 12px; font-size:12px; }
.nearby-tools { display:flex; gap:18px; flex-wrap:wrap; margin-top:12px; }
.search-options { border-top:1px solid var(--line); margin-top:12px; }
.search-options summary, .ranking-guide summary { cursor:pointer; padding:10px 0; font-size:12px; font-weight:650; color:#655b50; }
summary:focus-visible { outline:3px solid #f0a119; outline-offset:3px; }
#active-filters { margin-left:10px; color:var(--muted); font-weight:400; overflow-wrap:anywhere; }
.search-options-body { padding:8px 0 12px; }
.search-options .period-browser { margin-bottom:12px; padding-bottom:12px; }
.search-options .search-form { max-width:650px; }
.finder #location-status { font-size:11px; margin-top:0; }
.finder-toolbar { margin:18px 0 10px; }
.ranking-guide { display:block; padding:0 14px; margin-bottom:12px; background:#fff; border-color:var(--line); }
.ranking-guide-body { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; padding:4px 0 14px; }
#period-result-note { border:0; padding:0; margin:0 0 12px; font-size:12px; }
.regional-leader { display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; border:1px solid #e2c47f; border-left:4px solid #c79325; background:#fffcf3; padding:16px 20px; margin-top:16px; }
.leader-title { display:flex; align-items:center; gap:10px; min-width:0; }
.leader-title .rank-art { width:36px; height:40px; }
.leader-title strong { display:block; font-size:17px; }
.leader-title span { display:block; font-size:11px; color:#7f6a3b; margin-top:4px; }
.leader-stores { display:flex; flex-wrap:wrap; gap:10px 24px; flex:1; }
.leader-stores a { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:8px 0; }
.leader-stores strong { font-size:17px; }
.leader-stores span { font-size:12px; color:#96680a; }
.leader-stores .ui-icon { width:18px; height:18px; }
.regional-leader > p { width:100%; font-size:11px; color:#7f6a3b; margin:0; }
@media(max-width:1100px) { .finder-intro { flex-wrap:nowrap; } .finder .panel-intro { flex-basis:auto; padding-right:90px; } .finder .panel-intro h1 { font-size:25px; } }
@media(max-width:760px) {
 .finder-intro { display:block; padding:14px 16px; }
 .finder .panel-intro { min-height:68px; padding-right:72px; }
 .finder .panel-intro h1 { font-size:24px; }
 .finder .home-hero-art { width:70px; height:70px; top:0; right:0; }
 .finder .latest-draw { margin-top:10px; padding:8px; }
 .finder .latest-art { display:none; }
 .finder .latest-content { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; }
 .finder .latest-draw .eyebrow { margin:0; font-size:10px; }
 .finder .latest-draw .ball.small { width:21px; height:21px; font-size:10px; }
 .finder-search { padding:14px 12px 10px; }
 .region-shortcuts { grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; }
 .region-shortcuts button { font-size:12px; }
 .region-selects label { flex-basis:calc(50% - 10px); }
 .ranking-controls .radius-label { font-size:12px; gap:6px; }
 .regional-leader { padding:12px; gap:8px; }
 .leader-title, .leader-stores { width:100%; flex-basis:100%; }
 .leader-stores a { padding:3px 0; }
 .finder-toolbar { gap:10px; }
 .view-switch button { min-height:34px; padding:6px 10px; }
}
.finder-latest { margin-top:28px; border-top:1px solid var(--line); padding-top:20px; }
.finder-latest .latest-draw { display:inline-flex; }
.finder .ranking-controls { gap:8px; }
.ranking-controls .radius-label { font-size:12px; }
@media(max-width:760px) {
 .finder .panel-intro { min-height:54px; }
 .finder .panel-intro .muted { display:none; }
 .finder .home-hero-art { width:56px; height:56px; }
 .ranking-controls select { max-width:185px; font-size:12px; padding:8px 6px; }
 .ranking-controls .button { padding:8px; }
}

/* Keep all three navigation links visible on narrow screens. */
@media(max-width:480px) {
 .main-nav .ui-icon { display:none; }
 .main-nav a { white-space:nowrap; }
}

/* Store discovery: filters and results share one continuous workspace. */
.finder .finder-intro { padding:12px 0 20px; border:0; background:none; }
.finder .panel-intro { min-height:0; padding-right:0; }
.finder .panel-intro .eyebrow { font-size:10px; letter-spacing:.14em; color:#887f75; }
.finder .panel-intro h1 { font-size:28px; letter-spacing:-.04em; }
.finder-workspace { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.finder-workspace .finder-search { margin:0; padding:20px 24px 12px; border:0; border-radius:0; background:#fdfcfa; }
.finder-workspace .search-form { display:flex; gap:8px; max-width:none; margin:0 0 18px; }
.finder-workspace .search-form input { flex:1; min-width:0; background:#fff; min-height:44px; }
.finder-workspace .region-heading { margin-bottom:10px; }
.region-actions { display:flex; gap:8px; align-items:center; }
.region-actions .button { min-height:32px; padding:6px 10px; font-size:12px; }
.finder-workspace .region-browser { padding:0; margin:0; border:0; }
.finder-workspace .region-shortcuts { gap:5px; margin-bottom:12px; }
.finder-workspace .region-shortcuts button { min-height:32px; border-color:transparent; background:transparent; }
.finder-workspace .region-shortcuts button:hover { background:#f6f3ee; }
.finder-workspace .region-shortcuts button[aria-pressed="true"] { background:var(--blue); color:#fff; }
.finder-workspace .region-selects { display:flex; gap:12px; }
.finder-workspace .region-selects label { flex:1 1 0; min-width:0; }
.finder-workspace .region-selects select { background:#fff; }
.finder-workspace .search-options { margin-top:12px; border-top:1px solid #efece7; }
.finder-workspace .search-options summary { padding:10px 0 6px; }
.finder-workspace #location-status { margin:4px 0 0; color:#887f75; }
.finder-workspace .finder-toolbar { margin:0; padding:20px 24px 14px; border-top:1px solid var(--line); }
.finder-workspace .results-heading { gap:8px 12px; }
.finder-workspace .regional-leader { margin:0 24px 14px; padding:10px 14px; gap:8px 24px; border:0; border-radius:8px; background:#fff9e9; }
.finder-workspace .leader-title .rank-art { width:28px; height:32px; }
.finder-workspace .leader-title strong, .finder-workspace .leader-stores strong { font-size:14px; }
.finder-workspace .leader-stores a { padding:2px 0; }
.finder-workspace .finder-results { margin:0 24px; }
.finder-workspace #period-result-note { margin:0 24px 12px; }
.finder-workspace .ranking-guide { margin:8px 24px 20px; padding:0; border:0; border-top:1px solid var(--line); border-radius:0; }
@media(max-width:760px) {
 .finder .finder-intro { padding:6px 2px 16px; }
 .finder .panel-intro h1 { font-size:24px; }
 .finder-workspace { border-radius:12px; }
 .finder-workspace .finder-search { padding:16px 12px 10px; }
 .finder-workspace .region-selects { flex-wrap:wrap; gap:10px; }
 .finder-workspace .region-selects label { flex-basis:calc(50% - 10px); }
 .finder-workspace .region-selects .rank-select { flex-basis:100%; flex-direction:row; align-items:center; }
 .finder-workspace .rank-select select { flex:1; width:auto; }
 .finder-workspace .finder-toolbar { padding:16px 12px 12px; flex-wrap:wrap; }
 .finder-workspace .regional-leader { margin:0 12px 12px; }
 .finder-workspace .leader-title, .finder-workspace .leader-stores { width:auto; flex-basis:auto; }
 .finder-workspace .finder-results { margin:0 12px; }
 .finder-workspace .ranking-guide { margin:8px 12px 16px; }
 .finder-workspace #period-result-note { margin:0 12px 12px; }
}

/* Compact filters belong to the ranking list, directly below its heading. */
.finder-workspace .finder-toolbar { border-top:0; padding:20px 24px 12px; }
.finder-workspace .finder-search { margin:0 24px 16px; padding:12px 14px 10px; background:#faf9f7; border:1px solid #f0ede9; border-radius:10px; }
.finder-workspace .region-heading { float:right; margin:0 0 6px 12px; }
.finder-workspace .region-heading h2 { display:none; }
.finder-workspace .region-actions { gap:6px; }
.finder-workspace .region-actions .button { border:0; background:transparent; color:#7c766e; padding:4px 6px; min-height:28px; font-size:11px; }
.finder-workspace .region-shortcuts { display:flex; flex-wrap:wrap; gap:3px; margin:0 0 10px; }
.finder-workspace .region-shortcuts button { flex:0 0 auto; border:1px solid transparent; border-radius:6px; min-height:28px; padding:4px 9px; font-size:12px; font-weight:500; color:#706a62; }
.finder-workspace .region-shortcuts button[aria-pressed="true"] { background:#fff; border-color:#f0a119; color:#9e670a; font-weight:750; box-shadow:0 1px 2px #244b7a0a; }
.finder-workspace .filter-controls { display:flex; align-items:center; gap:8px; clear:both; }
.finder-workspace .search-form { flex:1 1 260px; margin:0; gap:0; max-width:360px; border:1px solid #e9e6e0; border-radius:6px; overflow:hidden; background:#fff; }
.finder-workspace .search-form input { min-height:34px; height:34px; padding:7px 10px; border:0; font-size:12px; width:100%; }
.finder-workspace .search-form .button { padding:6px 10px; min-height:34px; border:0; background:#fff; color:#9e670a; font-size:12px; white-space:nowrap; }
.finder-workspace .search-form .ui-icon { width:15px; height:15px; }
.finder-workspace .region-selects { flex:1 1 520px; gap:8px; }
.finder-workspace .region-selects label { flex:1 1 0; }
.finder-workspace .region-selects .rank-select { flex:1.3 1 0; }
.finder-workspace .region-selects select { min-height:36px; height:36px; padding:6px 9px; font-size:12px; border-radius:6px; border-color:#e9e6e0; font-weight:500; }
.finder-workspace .search-options { margin:7px 0 0; border:0; }
.finder-workspace .search-options summary { display:list-item; padding:3px 0; font-size:11px; color:#6d665d; }
.finder-workspace .search-options[open] { border-top:1px solid #efece7; padding-top:6px; }
.finder-workspace #location-status { margin:3px 0 0; font-size:10px; }
.finder-workspace .view-switch { border-radius:6px; padding:3px; }
.finder-workspace .view-switch button { min-height:30px; padding:5px 10px; font-size:12px; border-radius:4px; }
@media(max-width:760px) {
 .finder-workspace .finder-toolbar { padding:16px 12px 10px; gap:8px; }
 .finder-workspace .finder-search { margin:0 12px 12px; padding:10px; }
 .finder-workspace .region-heading { float:none; margin:0 0 6px; justify-content:flex-end; }
 .finder-workspace .region-shortcuts { gap:3px; }
 .finder-workspace .region-shortcuts button { padding:5px 8px; min-height:30px; }
 .finder-workspace .filter-controls { flex-wrap:wrap; gap:7px; }
 .finder-workspace .search-form { flex:1 1 100%; max-width:none; }
 .finder-workspace .region-selects { flex:1 1 100%; gap:7px; flex-wrap:wrap; }
 .finder-workspace .region-selects label { flex:1 1 calc(50% - 7px); }
 .finder-workspace .region-selects .rank-select { flex:1 1 100%; }
}

/* Period picker uses the same compact control language as the search filters. */
.finder-workspace .search-options,
.finder-workspace .search-options[open] { margin-top:8px; padding:0; border:0; }
.finder-workspace .search-options summary { display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:6px 10px; border:1px solid #e9e6e0; border-radius:6px; background:#fff; color:#52483c; font-size:12px; list-style:none; cursor:pointer; }
.finder-workspace .search-options summary::-webkit-details-marker { display:none; }
.finder-workspace .search-options summary::marker { content:""; }
.finder-workspace .search-options summary > .ui-icon { width:15px; height:15px; color:#8d867d; }
.finder-workspace .period-trigger-label { color:#8d867d; font-weight:500; }
.finder-workspace #active-filters { margin:0; color:#52483c; font-weight:600; }
.period-chevron { width:6px; height:6px; margin:0 2px 3px 6px; border-right:1.5px solid #99938c; border-bottom:1.5px solid #99938c; transform:rotate(45deg); }
.finder-workspace .search-options[open] summary { border-color:#f0a119; }
.search-options[open] .period-chevron { transform:rotate(225deg); margin-top:5px; }
.finder-workspace .search-options-body { margin-top:8px; padding:14px; border:1px solid #ece9e3; border-radius:8px; background:#fff; }
.finder-workspace .search-options .period-browser { margin:0; padding:0; border:0; }
.finder-workspace .period-heading { margin-bottom:10px; font-size:12px; gap:6px; }
.finder-workspace .period-heading > .ui-icon { display:none; }
.finder-workspace .period-heading .hint { margin:0 0 0 auto; font-size:11px; }
.finder-workspace .period-presets { display:flex; flex-wrap:wrap; gap:6px; }
.finder-workspace .period-presets button { min-height:32px; padding:6px 12px; border-radius:6px; border:1px solid #eceae5; font-size:12px; font-weight:500; color:#716b64; }
.finder-workspace .period-presets button[aria-pressed="true"] { color:#9e670a; background:#fbf8f2; border-color:#f0a119; font-weight:650; }
.finder-workspace .period-form { padding-top:12px; margin-top:12px; border-top:1px solid #f3f2ef; gap:8px; }
.finder-workspace .period-form label { gap:5px; font-size:11px; }
.finder-workspace .period-form input { min-height:36px; padding:7px 9px; border-radius:6px; background:white; font-size:12px; }
.finder-workspace .period-form .button { min-height:36px; padding:7px 12px; border-radius:6px; font-size:12px; }
.finder-workspace #period-summary { margin:10px 0 0; color:#8f8983; font-size:11px; }
.finder-workspace .region-status { margin-top:8px; }
.finder-workspace .region-status .hint { margin:0; font-size:10px; color:#9a958f; }
.finder-workspace #location-status { margin-top:7px; }
@media(max-width:760px) {
 .finder-workspace .search-options summary { max-width:100%; }
 .finder-workspace .search-options-body { padding:12px; }
 .finder-workspace .period-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
 .finder-workspace .period-presets button { padding:6px; }
}

.finder-workspace .search-options-body { max-width:540px; }
.finder-workspace .region-status:has(#region-retry[hidden]) { display:none; }

/* Store directory: navigation palette with readable, bounded content. */
.finder-page { background:#f9f9f8; }
.finder-page .finder { padding-top:28px; }
.finder-page .finder-intro { padding:0 0 24px; }
.finder-page .panel-intro .muted { font-size:14px; color:#67615b; }
.finder-page .finder-workspace { border:0; border-radius:0; overflow:visible; background:transparent; }
.finder-workspace .finder-toolbar { padding:0 0 14px; }
.finder-workspace .results-heading h2 { font-size:22px; }
.finder-workspace #result-count { color:#67615b; font-size:13px; font-weight:500; }
.finder-workspace .finder-search { margin:0 0 20px; padding:14px 16px; border:1px solid #e6e4df; border-radius:8px; background:#fff; }
.finder-workspace .finder-results { margin:0; }
.finder-workspace .region-shortcuts { gap:3px; }
.finder-workspace .region-shortcuts button { padding:7px 10px; min-height:36px; border:0; border-radius:4px; color:#615546; font-size:14px; font-weight:600; }
.finder-workspace .region-shortcuts button[aria-pressed="true"] { color:#9e670a; background:#fbf8f1; border:0; box-shadow:none; }
.finder-workspace .region-actions .button { color:#67615b; font-size:13px; min-height:36px; }
.finder-workspace .search-form { border-color:#dbd8d4; border-radius:4px; }
.finder-workspace .search-form input { height:40px; font-size:14px; }
.finder-workspace .search-form input::placeholder { color:#7a746d; opacity:1; }
.finder-workspace .search-form .button { color:#9e670a; font-size:14px; }
.finder-workspace .region-selects select { height:42px; font-size:14px; border-color:#dbd8d4; border-radius:4px; color:#3d352c; }
.finder-workspace .region-selects select:disabled { color:#87827b; background:#f7f6f5; }
.finder-workspace .search-options summary { min-height:38px; font-size:14px; border-color:#dbd8d4; border-radius:4px; }
.finder-workspace #location-status { font-size:12px; color:#67615b; margin-top:8px; }
.finder-workspace .view-switch { border:0; border-radius:4px; padding:3px; background:#f0eeeb; }
.finder-workspace .view-switch button { min-height:36px; padding:7px 12px; font-size:13px; color:#67615b; border-radius:3px; }
.finder-workspace .view-switch button[aria-pressed="true"] { color:#9e670a; background:#fff; }
.finder-workspace .store-list { gap:16px; }
.finder-workspace .store-card[data-rank] { padding:20px; border:1px solid #e6e4df; border-radius:8px; background:#fff; gap:14px; }
.finder-workspace .store-card[data-rank]:hover { background:#fff; border-color:#bfb5aa; }
.finder-workspace .store-symbol { display:grid; }
.finder-workspace .store-badges { margin:0; gap:8px; }
.finder-workspace .store-badges .rank-art { display:block; width:26px; height:28px; }
.finder-workspace .store-badges .rank-badge { background:#fbf8f1; color:#9e670a; border:0; border-radius:4px; padding:6px 9px; font-size:13px; }
.finder-workspace .store-badges .hotspot-badge { background:transparent; color:#67615b; border:0; padding:0; font-size:12px; font-weight:500; }
.finder-workspace .store-badges .hotspot-badge .ui-icon { display:inline-block; width:14px; height:14px; }
.finder-workspace .store-info h3 { margin:0 0 8px; font-size:22px; line-height:1.35; letter-spacing:-.03em; color:#2b251f; font-weight:750; }
.finder-workspace .store-info p { font-size:14px; line-height:1.65; color:#67615b; min-height:46px; margin:0 0 16px; }
.finder-workspace .record-row { padding:12px 0; border-top:1px solid #eeebe7; border-bottom:0; gap:16px; font-size:15px; color:#615546; }
.finder-workspace .record-row strong { font-size:18px; color:#9e670a; }
.finder-workspace .record-row .ui-icon { display:inline-block; width:17px; height:17px; }
.finder-workspace .store-info .card-actions { margin-top:auto; padding-top:12px; gap:8px; }
.finder-workspace .card-actions .button { min-height:38px; padding:8px 10px; border:1px solid #e6e4df; border-radius:4px; background:#fff; color:#54493d; font-size:13px; font-weight:650; }
.finder-workspace .card-actions .button:hover { color:#9e670a; background:#fcf9f4; border-color:#f0a119; }
.finder-workspace .card-actions .ui-icon { width:16px; height:16px; }
.finder-workspace .period-heading, .finder-workspace .period-presets button { font-size:13px; }
.finder-workspace .period-presets button { min-height:36px; }
.finder-workspace #period-summary { font-size:12px; color:#67615b; }
.finder-workspace .ranking-guide { margin:20px 0; background:transparent; }
.finder-workspace #period-result-note { margin-left:0; margin-right:0; }
@media(max-width:760px) {
 .finder-page .finder { padding-top:20px; }
 .finder-page .finder-intro { padding-bottom:20px; }
 .finder-workspace .finder-toolbar { padding:0 0 12px; }
 .finder-workspace .results-heading h2 { font-size:20px; }
 .finder-workspace .finder-search { margin:0 0 16px; padding:12px; }
 .finder-workspace .finder-results { margin:0; }
 .finder-workspace .region-shortcuts { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); }
 .finder-workspace .region-shortcuts button { padding:7px 3px; }
 .finder-workspace .store-card[data-rank] { padding:18px; }
 .finder-workspace .store-info p { min-height:0; }
 .finder-workspace .search-form input { font-size:16px; }
}

/* Illustrations identify stores; icons separate rank and prize information. */
.finder-workspace .store-card-top { display:grid; grid-template-columns:64px minmax(0,1fr); column-gap:14px; row-gap:0; align-content:start; }
.finder-workspace .store-info { display:contents; }
.finder-workspace .store-card[data-rank] .store-symbol { grid-column:1; grid-row:1 / span 2; width:64px; height:76px; border:0; border-radius:8px; background:#f9f8f5; align-self:start; }
.finder-workspace .store-thumbnail { width:64px; height:70px; }
.finder-workspace .store-index { display:none; }
.finder-workspace .store-info h3 { grid-column:2; align-self:end; margin:0 0 6px; }
.finder-workspace .store-info p { grid-column:2; min-height:46px; margin:0 0 14px; }
.finder-workspace .record-row { grid-column:1 / -1; }
.finder-workspace .card-actions { grid-column:1 / -1; }
.finder-workspace .record-row strong, .finder-workspace .record-row > span { display:inline-flex; align-items:center; gap:6px; }
.finder-workspace .store-badges .rank-badge { padding:4px 8px 4px 4px; }
.finder-workspace .store-card[data-rank="gold"] .rank-badge { background:#fff5db; color:#806018; }
.finder-workspace .store-card[data-rank="silver"] .rank-badge { background:#f4f2ef; color:#69635b; }
.finder-workspace .store-card[data-rank="bronze"] .rank-badge { background:#fff0e6; color:#865a3e; }
@media(max-width:760px) {
 .finder-workspace .store-card-top { grid-template-columns:58px minmax(0,1fr); column-gap:12px; }
 .finder-workspace .store-card[data-rank] .store-symbol { width:58px; height:68px; }
 .finder-workspace .store-thumbnail { width:58px; height:64px; }
 .finder-workspace .store-info h3 { font-size:22px; }
 .finder-workspace .store-info p { min-height:0; }
}

/* Search stands alone; period sits beside the remaining filter controls. */
.finder-workspace > .search-form { max-width:none; width:100%; margin:0 0 24px; border:1px solid #dbd7d2; border-radius:6px; background:#fff; }
.finder-workspace > .search-form input { height:48px; font-size:16px; padding:12px 16px; }
.finder-workspace > .search-form .button { padding:10px 20px; background:#f09e13; color:#fff; font-size:14px; }
.finder-workspace .filter-controls { align-items:flex-start; }
.finder-workspace .filter-controls .region-selects { flex:1 1 0; }
.finder-workspace .filter-controls .search-options { flex:0 1 290px; min-width:180px; margin:0; }
.finder-workspace .filter-controls .search-options summary { display:flex; min-height:42px; width:100%; }
.finder-workspace .filter-controls .period-chevron { margin-left:auto; flex-shrink:0; }
.finder-workspace .filter-controls .search-options-body { padding:12px; }
@media(max-width:760px) {
 .finder-workspace > .search-form { margin-bottom:20px; }
 .finder-workspace > .search-form input { padding:10px 12px; }
 .finder-workspace > .search-form .button { padding:10px 14px; }
 .finder-workspace .filter-controls .region-selects { flex-basis:100%; }
 .finder-workspace .filter-controls .search-options { flex:1 1 100%; }
}

/* Show only actionable location steps; keep the result list close to filters. */
.finder-workspace .region-selects label:has(select:disabled) { display:none; }
@media(max-width:760px) {
 .finder-workspace .filter-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
 .finder-workspace .filter-controls .region-selects { display:contents; }
 .finder-workspace .region-selects label { min-width:0; }
 .finder-workspace .region-selects .rank-select { display:block; }
 .finder-workspace .rank-select select { width:100%; max-width:none; font-size:13px; padding:6px; }
 .finder-workspace .filter-controls .search-options { min-width:0; }
 .finder-workspace .filter-controls .search-options summary { gap:5px; padding:6px 8px; font-size:13px; }
 .finder-workspace .filter-controls .period-trigger-label { display:none; }
 .finder-workspace .filter-controls .search-options[open] { grid-column:1 / -1; }
}

/* Applied conditions remain visible and can be removed independently. */
.finder-workspace > .search-form { margin-bottom:6px; }
.finder-workspace .search-hint { margin:0 0 20px; color:#67615b; font-size:12px; line-height:1.6; }
.finder-workspace .applied-filters { display:flex; flex-wrap:wrap; gap:6px; padding-top:12px; margin-top:12px; border-top:1px solid #eeebe7; }
.finder-workspace .applied-filters[hidden] { display:none; }
.finder-workspace .applied-filters button { padding:6px 9px; min-height:32px; border:1px solid #e8e2d6; border-radius:4px; background:#fcf9f4; color:#9e670a; font-size:12px; cursor:pointer; overflow-wrap:anywhere; }
.finder-workspace .applied-filters .clear-all-filters { border-color:transparent; background:none; color:#67615b; text-decoration:underline; }
.finder-workspace #search-error { margin:0 0 16px; }

/* Compact cascading regions replace the expanded province button grid. */
.finder-workspace #region-shortcuts { display:none; }
.finder-workspace .filter-controls { flex-wrap:wrap; gap:8px; }
.finder-workspace .nearby-filter { order:3; min-height:42px; padding:8px 12px; border:1px solid #f0a119; border-radius:4px; background:#fbf8f3; color:#9e670a; font-size:14px; white-space:nowrap; }
.finder-workspace .filter-controls .region-selects { flex:1 1 620px; }
.finder-workspace .region-selects label { min-width:130px; }
.finder-workspace .region-selects .rank-select { min-width:180px; }
.finder-workspace .filter-controls .search-options { flex:0 1 210px; }
@media(max-width:760px) {
 .finder-workspace .filter-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .finder-workspace .filter-controls .region-selects { display:contents; }
 .finder-workspace .region-selects label { min-width:0; }
 .finder-workspace .region-selects .rank-select { min-width:0; grid-column:1; grid-row:auto; }
 .finder-workspace .nearby-filter { order:0; grid-column:2; grid-row:1; }
 .finder-workspace .region-selects .sido-select { grid-column:1; grid-row:1; }
 .finder-workspace .filter-controls .search-options { min-width:0; }
}

/* Search-first browsing: compact triggers and on-demand filter panels. */
.finder-searchbox { position:relative; z-index:30; }
.finder-workspace .finder-searchbox .search-form { width:100%; max-width:none; margin:0; border:1px solid #dbd7d2; border-radius:8px; }
.finder-workspace .finder-searchbox input { height:48px; font-size:16px; padding:12px 16px; }
.finder-workspace .finder-searchbox .search-form .button { padding:10px 20px; background:#f09e13; color:white; font-size:14px; }
.finder-workspace .search-hint { margin:7px 0 14px; }
.finder-workspace .finder-search { position:relative; z-index:20; background:transparent; border:0; border-radius:0; padding:0 0 16px; margin:0 0 20px; border-bottom:1px solid #e6e4df; }
.finder-workspace .filter-controls { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.finder-workspace .filter-popover,
.finder-workspace .filter-controls .search-options { position:static; flex:0 1 auto; min-width:0; margin:0; padding:0; border:0; }
.finder-workspace .filter-popover summary { display:flex; align-items:center; gap:7px; height:40px; min-height:40px; padding:8px 12px; border:1px solid #dbd7d2; background:white; color:#54493d; border-radius:6px; font-size:14px; font-weight:600; cursor:pointer; list-style:none; max-width:340px; }
.finder-workspace .filter-popover summary::-webkit-details-marker { display:none; }
.finder-workspace .filter-popover summary > .ui-icon { width:17px; height:17px; color:#7f7569; }
.finder-workspace .filter-popover[open] summary { background:#fbf8f1; border-color:#f0a119; color:#9e670a; }
.finder-workspace .filter-popover .period-chevron { margin-left:4px; flex-shrink:0; }
.finder-workspace .filter-popover[open] .period-chevron { transform:rotate(225deg); }
.finder-workspace .filter-controls .search-options summary { width:auto; }
.finder-workspace .period-trigger-label { display:none; }
.finder-workspace .filter-panel,
.finder-workspace .search-options-body { position:absolute; top:48px; left:0; z-index:40; width:min(460px,100%); max-width:none; margin:0; padding:20px; border:1px solid #e6e2da; border-radius:10px; background:#fff; box-shadow:0 12px 32px #243a5726; }
.finder-workspace #basis-options .filter-panel { width:min(300px,100%); }
.filter-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; font-size:15px; }
.filter-panel-heading span { color:#7e776f; font-size:12px; }
.finder-workspace .filter-panel .region-selects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.finder-workspace .filter-panel .region-selects label { display:flex; flex-direction:column; min-width:0; grid-column:auto; grid-row:auto; gap:6px; color:#67615b; font-size:12px; }
.finder-workspace .filter-panel .region-selects label[hidden],
.finder-workspace .filter-panel .region-selects label:has(select:disabled) { display:none; }
.finder-workspace .filter-panel select { width:100%; height:42px; padding:8px; border:1px solid #dbd8d4; border-radius:5px; background:#fff; font-size:14px; }
.filter-panel-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; padding-top:14px; border-top:1px solid #eeebe7; }
.filter-panel-actions > button { cursor:pointer; }
#clear-region { background:none; border:0; color:#7e776f; font-size:13px; text-decoration:underline; }
.finder-workspace .filter-panel-actions .button { min-height:38px; padding:8px 18px; border-radius:5px; }
.finder-workspace .nearby-filter { order:0; height:40px; min-height:40px; padding:8px 12px; font-size:14px; border-radius:6px; }
.finder-workspace #location-status { margin-top:8px; font-size:11px; }
.finder-workspace .applied-filters { border:0; padding:0; margin-top:10px; }
.search-suggestions { position:absolute; top:calc(100% + 6px); left:0; right:0; max-height:420px; overflow-y:auto; padding:8px; border:1px solid #e6e2da; border-radius:8px; background:#fff; box-shadow:0 12px 32px #243a5726; }
.search-suggestions > p { margin:6px 10px; font-size:12px; font-weight:700; color:#7e776f; }
.search-suggestions > button, .search-suggestions > a { display:flex; flex-direction:column; align-items:flex-start; gap:4px; width:100%; padding:10px; border:0; border-radius:5px; background:white; color:#3d352c; text-align:left; cursor:pointer; }
.search-suggestions > button:hover, .search-suggestions > a:hover,
.search-suggestions > button:focus-visible, .search-suggestions > a:focus-visible { background:#fbf8f1; }
.search-suggestions strong { font-size:14px; }
.search-suggestions span { font-size:12px; color:#7e776f; }
@media(max-width:760px) {
 .finder-workspace .finder-intro { padding-bottom:16px; }
 .finder-workspace .filter-controls { gap:6px; }
 .finder-workspace .filter-popover summary, .finder-workspace .filter-controls .search-options summary,
 .finder-workspace .nearby-filter { padding:8px; gap:5px; font-size:12px; }
 .finder-workspace .filter-popover summary > .ui-icon { display:none; }
 .finder-workspace .nearby-filter .ui-icon { width:15px; height:15px; }
 .finder-workspace .filter-popover summary { max-width:100%; }
 .finder-workspace #region-options { max-width:100%; }
 .finder-workspace .filter-panel, .finder-workspace .search-options-body { top:100%; width:100%; padding:16px; }
 .finder-workspace .search-hint { font-size:11px; margin-bottom:10px; }
 .finder-workspace .filter-panel .region-selects { display:grid; }
 .finder-workspace .filter-controls .search-options[open] { grid-column:auto; }
}

@media(max-width:760px) {
 .finder-workspace .filter-controls { flex-wrap:nowrap; }
 .finder-workspace .filter-controls .filter-popover { flex:1 1 0; min-width:0; }
 .finder-workspace .filter-popover summary > [data-icon] { display:none; }
 .finder-workspace .filter-popover summary { min-width:0; padding:8px 6px; gap:3px; }
 .finder-workspace #region-filter-label, .finder-workspace #active-filters { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 .finder-workspace #basis-filter-label { white-space:nowrap; }
 .finder-workspace .nearby-filter { flex:0 0 76px; justify-content:center; padding:8px 5px; }
 .finder-workspace .filter-controls .period-chevron { width:5px; height:5px; margin-left:2px; }
}
