/* Shared landing sections. Legacy colors and dimensions are intentional. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.search-index .crumb { padding-bottom: 12px; }

/* Map and the two search forms. The current-location feature is retired. */
.search-entrances { display: grid; grid-template-columns: 358px 1fr; height: 320px; border: 4px solid white; border-radius: 15px; background: linear-gradient(#e6effe, #ccdef9); box-shadow: 0 0 7px #aaa; margin-bottom: 12px; color: #003394; text-shadow: 1px 1px white; }
.search-map-panel { border-right: 1px solid #a8c7e4; padding: 12px 16px; }
.search-map-panel h1 { font-size: 14px; line-height: 34px; white-space: nowrap; }
.search-entrances i { color: #006cff; font-size: 24px; vertical-align: baseline; }
.search-map-panel h1 .icon-map { font-size: 30px; }
.search-map-panel h1 strong { color: #006cff; font-size: 26px; }
.search-entrances h2 { font-size: 14px; line-height: 26px; }
.search-entrances h2 strong { color: #006cff; font-size: 18px; }
.japan-map { position: relative; width: 300px; height: 235px; margin: 5px auto 0; }
.japan-map img { display: block; width: 100%; height: 100%; }
.japan-map button { position: absolute; background: transparent; border: 0; cursor: pointer; padding: 0; border-radius: 2px; }
.japan-map button:hover { background: #fff5; box-shadow: 0 0 0 2px #0073d5; }
.search-other-panels { display: grid; grid-template-rows: repeat(2, 1fr); }
.search-other-panels > section { padding: 12px 10px; border-bottom: 1px solid #a8c7e4; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.search-other-panels > section:last-child { border: 0; }
.landing-search-form { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.landing-search-form .search-input { height: 32px; padding: 0 5px; }
.landing-search-form input { font-size: 12px; }
.landing-search-form .search-submit { padding: 2px 10px; }

/* Legacy blue headings, compact price form and rounded panel bottoms. */
.landing-mobile-search, .landing-mobile-counts, .landing-mobile-widgets { display: none; }
.landing-banner-pair { display: flex; justify-content: space-around; gap: 20px; margin: 10px 16px; }
.landing-banner-pair > a { display: block; width: 300px; }
.landing-banner-pair img { width: 300px; height: auto; }
.landing-panel { margin-bottom: 12px; background: white; }
.landing-title { height: 32px; padding: 0 10px; border: 0; border-radius: 5px 5px 0 0; background: linear-gradient(#0090ff, #40acff); color: white; text-shadow: 1px 1px #333; font-size: 14px; font-weight: bold; line-height: 32px; }
.landing-title > a { float: right; font-size: 12px; color: white; }
.game-price-search form { display: flex; align-items: center; gap: 6px; height: 49px; background: linear-gradient(white, #d6e5ff); border: 1px solid #666; border-top: 0; border-radius: 0 0 5px 5px; padding: 0 10px 0 6px; text-shadow: 1px 1px white; }
.game-price-search h3 { display: flex; align-items: baseline; flex: 1; white-space: nowrap; color: #003394; font-size: 14px; font-weight: normal; line-height: 48px; }
.game-price-search h3 strong { font-size: 16px; }
.game-price-search h3 i { font-size: 34px; color: #006cff; line-height: 48px; margin-right: 8px; }
.game-price-controls { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: normal; }
.game-price-controls label { white-space: nowrap; }
.game-price-controls input { margin: 0 3px 0 0; vertical-align: middle; }
.game-price-controls select { width: 76px; min-width: 0; height: 19px; border: 1px solid #767676; border-radius: 0; background: white; padding: 0; font-size: 13px; line-height: normal; }
.game-price-search .search-submit { height: 30px; min-height: 30px; padding: 6px 15px; border: 1px solid #ff7400; border-radius: 3px; background: linear-gradient(#ff9740, #ff7400); font-size: 16px; line-height: 16px; text-shadow: 0 -1px #401d00; }

/* Legacy tabs: blue top edge for the selected tab, gray for the other tab. */
.landing-tabs { display: flex; align-items: end; gap: 6px; padding: 0 3px; height: 36px; border-bottom: 1px solid #666; }
.landing-tabs > button { flex: 1; position: relative; bottom: -1px; height: 35px; padding: 2px 0 0; border: 1px solid #666; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#f4f4f0, #b8b8b8); color: #666; font-size: 14px; font-weight: bold; line-height: 32px; text-shadow: 1px 1px white; }
.landing-tabs > button[aria-selected=true] { padding-top: 0; border-top: 3px solid #006cff; background: linear-gradient(#ededed, white); color: #474747; text-shadow: none; }
.landing-events ul { list-style: none; padding: 0; margin: 0; }
.landing-events li { border: 1px solid #666; border-top: 0; background: white; }
.landing-events li:nth-child(even) { background: #f4f4f0; }
/* Paid pickup highlighting must override the alternating row color. */
.landing-events li.is-pickup { background: #fffee3; }
.landing-events li > a { display: block; padding: 10px; color: #006cff; line-height: normal; text-decoration: none; }
.landing-events .event-upper { margin: 0 0 10px; font-size: 12px; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-events small { color: #209b00; margin: 0; padding-right: 10px; font-size: 12px; }
.landing-events strong { color: #333; font-size: 12px; }
.landing-events .event-lower { margin: 0; font-size: 14px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-events a:hover .event-lower { text-decoration: underline; }
.landing-events .event-pickup { background: #24ae00; color: white; padding: 2px 4px; margin-right: 5px; font-size: 12px; line-height: 12px; }
.landing-more { display: block; width: 100%; height: 35px; padding: 0; border: 1px solid #666; border-top: 0; border-radius: 0 0 5px 5px; color: #006cff; font-size: 12px; font-weight: bold; line-height: 34px; background: linear-gradient(#d6e5ff, white); }
.landing-empty { padding: 15px; }
.landing-events [data-expandable]:not(.is-expanded) li:nth-child(n+12) { display: none; }

/* The main review list shares data/markup with the sidebar, retaining the old two-line row. */
.landing-reviews .latest-reviews-list { padding: 0; list-style: none; margin: 0; border: 0; }
.landing-reviews .latest-reviews-list > li { border: 1px solid #666; border-top: 0; background: white; }
.landing-reviews .latest-reviews-list > li:nth-child(even) { background: #f4f4f0; }
.landing-reviews .latest-reviews-list > li > a { display: block; position: relative; height: 60px; padding: 10px; color: #006cff; font-size: 12px; line-height: normal; text-decoration: none; }
.landing-reviews .latest-review-meta { position: static; width: 85%; height: 16px; padding: 0; margin-bottom: 10px; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-reviews .latest-review-meta > strong { display: inline; padding-right: 10px; font-size: 12px; color: #333; }
.landing-reviews .latest-review-meta > small { display: inline; padding-right: 10px; margin: 0; font-size: 12px; color: #209b00; }
.landing-reviews .latest-review-author { display: inline; padding-right: 10px; margin: 0; font-size: 12px; color: #333; }
.landing-reviews .latest-review-date { display: inline; position: static; font-size: 10px; color: #9c9c9c; text-align: left; line-height: 12px; }
.landing-reviews .latest-review-date > b { padding-right: 10px; }
.landing-reviews .latest-review-date > span { display: inline; }
.landing-reviews .latest-review-rating { display: flex; flex-direction: column; align-items: center; position: absolute; top: 10px; right: 0; width: 80px; }
.landing-reviews .latest-review-rating > b { position: relative; left: -3px; width: 70px; height: 16px; margin: 3px 5px; padding: 2px 5px; border-radius: 2px; background: #333; color: white; font-size: 10px; line-height: 12px; text-align: center; }
.landing-reviews .latest-review-rating .stars { padding-right: 10px; color: #ffa500; font-size: 17px; line-height: 17px; letter-spacing: 0; }
.landing-reviews .latest-reviews-list > li > a > p { width: 85%; height: 14px; padding: 0; margin: 0; font-size: 13px; line-height: 14px; color: #006cff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-reviews .latest-reviews-list > li > a:hover > p { text-decoration: underline; }
.landing-reviews:not(.is-expanded) li:nth-child(n+11) { display: none; }
.landing-reviews.is-expanded li[hidden] { display: list-item !important; }

.landing-feature-groups { padding: 10px; border: 1px solid #aaa; border-top: 0; }
.landing-feature-groups h3 { font-size: 14px; border-left: 6px solid #1880d7; background: linear-gradient(#edf7ff, #d3e9fd); padding: 3px 8px; }
.landing-feature-groups .sidebar-feature-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 9px; padding: 10px 0 14px; border: 0; }
.landing-feature-groups .sidebar-feature-grid > a { width: auto; font-size: 11px; }
.landing-feature-groups img, .landing-feature-groups .feature-area-icon { width: 64px; height: 64px; }
.landing-feature-groups .feature-title { font-size: 11px; }
.region-dialog { width: 600px; padding: 0 0 15px; max-width: 94vw; }
.region-prefectures { display: grid; grid-template-columns: repeat(3,1fr); padding: 15px; gap: 10px; }
.region-prefectures > button { display: flex; justify-content: space-between; padding: 10px; color: #004992; border: 1px solid #bdd0e2; background: linear-gradient(white,#e4f1fd); font-size: 16px; font-weight: bold; }
.region-prefectures > button[aria-pressed=true] { background: #005eca; color: white; }
.region-status { padding: 0 15px; }
.search-preview-status:not(:empty) { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: 6px; background: #003a80; color: white; z-index: 10000; white-space: nowrap; box-shadow: 0 2px 8px #5556; }
.dialog-preview-status:not(:empty) { padding: 8px; color: #003b86; font-weight: bold; }
.landing-premium { width: 300px; margin: 10px auto; }
.landing-premium img { width: 300px; height: auto; }
.landing-premium:not([hidden]) { display: none; }
@media(min-width:768px) { .search-index .mobile-header-content { display: none; } }
@media(min-width:768px) and (max-width:1020px) {
    .search-entrances { grid-template-columns: 52% 48%; }
    .search-map-panel { padding: 12px 6px; }
    .japan-map { max-width: 100%; height: auto; aspect-ratio: 300/235; }
    .search-map-panel h1 strong { font-size: 21px; }
    .search-map-panel h1 { font-size: 12px; }
    .search-other-panels > section { padding: 10px 5px; }
    .game-price-search h3 span { display: none; }
    .landing-banner-pair { margin: 10px 0; gap: 10px; }
    .landing-feature-groups .sidebar-feature-grid { grid-template-columns: repeat(4,1fr); }
}
@media(max-width:767px) {
    .search-index .crumb { display: none; }
    .search-index .search-bar { display: flex; margin: 0; border-radius: 0; }
    .search-index .mobile-header-content { margin-top: 45px; }
    .search-index > .search-bar.wrap { position: absolute; top: 54px; left: 0; right: 0; min-height: 45px; padding: 6px 25px; z-index: 2; }
    .search-index > .search-bar > .search-links { display: none; }
    .search-entrances { display: block; height: auto; border: 0; border-radius: 0; margin: 0; background: linear-gradient(#e8f2ff,#cadbf8); box-shadow: 0 2px 2px #bbb; }
    .landing-mobile-search { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; padding: 7px; }
    .landing-mobile-search a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 5px 0; color: white; border: 3px solid #ffffff65; box-shadow: 0 0 3px #aaa; text-shadow: 1px 1px #666; font-size: 11px; }
    .landing-mobile-search .search-area { background: linear-gradient(#a4e19b,#00a31a); }
    .landing-mobile-search .search-station { background: linear-gradient(#ffc5d2,#ef6492); }
    .landing-mobile-search i { font-size: 24px; line-height: 28px; color: white; }
    .search-map-panel { border: 0; padding: 0 0 13px; }
    .search-map-panel h1, .search-other-panels { display: none; }
    .japan-map { margin: 3px auto 0; }
    .landing-mobile-counts { display: block; margin: 10px; padding: 4px; border: 1px solid #ccc; background: linear-gradient(white,#fffcd9); text-align: center; }
    .landing-mobile-counts .store-counts { display: block; margin: auto; font-size: 11px; line-height: 1.6; color: #003394; font-weight: bold; }
    .landing-mobile-counts .store-counts b { color: #ff7900; }
    .landing-banner-pair { display: block; margin: 10px; text-align: center; }
    .landing-banner-pair > a { width: 100%; margin: 10px 0; }
    .landing-banner-pair img { display: block; width: 100%; height: auto; }
    .landing-premium { width: calc(100% - 20px); margin: 10px; }
    .landing-premium img { display: block; width: 100%; height: auto; }
    .search-index .ad-main-bottom { width: calc(100% - 20px); max-width: none; margin: 10px; }
    .search-index .ad-main-bottom img { display: block; width: 100%; height: auto; }
    .landing-title { font-size: 14px; }
    .game-price-search { margin: 8px 10px 10px; box-shadow: 0 2px 2px #bbb; }
    .game-price-search .landing-title, .landing-features .landing-title { height: 24px; padding: 0 10px; border-radius: 0; background: #39f; font-size: 12px; line-height: 24px; text-shadow: none; }
    .game-price-search form { height: 43px; padding: 0 8px; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; }
    .game-price-search h3 { align-items: center; line-height: 42px; }
    .game-price-search h3 strong { font-size: 14px; }
    .game-price-search h3 span { display: none; }
    .game-price-search h3 i { font-size: 26px; line-height: 42px; margin-right: 8px; }
    .game-price-controls { display: block; width: 94px; font-size: 10px; line-height: 16px; }
    .game-price-controls > div { height: 16px; white-space: nowrap; }
    .game-price-controls input { width: 12px; height: 12px; margin-right: 2px; }
    .game-price-controls select { display: block; height: 17px; width: 64px; font-size: 11px; }
    .game-price-search .search-submit { width: 56px; height: 26px; min-height: 26px; padding: 5px 12px; font-size: 14px; line-height: 14px; }
    .landing-mobile-widgets:not([hidden]) { display: block; margin: 10px; }
    .landing-mobile-widgets .sidebar-recent { margin: 10px 0; }
    .landing-mobile-widgets .sidebar-recent h2 { display: flex; }
    .landing-events { margin: 10px; }
    .landing-events [data-expandable]:not(.is-expanded) li:nth-child(n+4) { display: none; }
    .landing-reviews { margin: 10px; }
    .landing-reviews:not(.is-expanded) li:nth-child(n+4) { display: none; }
    .landing-reviews .latest-reviews-list > li > a { height: auto; min-height: 96px; padding: 8px; }
    .landing-reviews .latest-review-meta { width: 72%; height: auto; margin: 0; }
    .landing-reviews .latest-review-meta > strong, .landing-reviews .latest-review-meta > small, .landing-reviews .latest-review-author { display: block; margin: 0 0 7px; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .landing-reviews .latest-review-meta > small, .landing-reviews .latest-review-author { width: 72%; }
    .landing-reviews .latest-review-date { position: absolute; top: 8px; right: 8px; text-align: right; }
    .landing-reviews .latest-review-date > b, .landing-reviews .latest-review-date > span { display: block; padding: 0 0 5px; }
    .landing-reviews .latest-review-rating { top: 44px; }
    .landing-reviews .latest-reviews-list > li > a > p { width: 72%; height: auto; line-height: 18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
    .landing-feature-groups { padding: 8px 5px 0; border: 0; }
    .landing-feature-groups h3 { height: 24px; padding: 0 8px; border: 1px solid #b2cfff; border-radius: 2px; background: linear-gradient(white 50%, #e0ecff 50%); font-size: 13px; line-height: 22px; }
    .landing-feature-groups h3 a { color: #336dff; }
    .landing-feature-groups .sidebar-feature-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px 0; padding: 8px 0 15px; }
    .landing-feature-groups .sidebar-feature-grid > a { display: flex; flex-direction: column; align-items: center; padding: 0; }
    .landing-feature-groups img, .landing-feature-groups .feature-area-icon { width: 70px; max-width: 100%; height: auto; aspect-ratio: 1; }
    .landing-feature-groups .feature-area-icon { margin: 0 auto; }
    .landing-feature-groups .feature-area-icon > b, .landing-feature-groups .feature-area-icon > small { font-size: 18px; line-height: 20px; }
    .landing-feature-groups .feature-title { min-height: 14px; margin-top: 4px; font-size: 11px; line-height: 14px; }
    .landing-features { margin: 10px; }
    .landing-features .landing-title { margin: 0; }
    .region-prefectures { grid-template-columns: repeat(2,1fr); }
    .search-index .common-sidebar { display: none; }
    .landing-premium:not([hidden]) { display: block; }
}
