/* /score/ — SNS映えスコア投稿（docs/photo-score-mock.html）。色は ui.css の変数を使う */

/* full width of the site's content column, like /maplist/ (1040px on PC) */
.ra-page.score-page { max-width: none; padding: 0 16px 32px; }
@media (min-width: 1072px) {
  .ra-page.score-page { padding-left: 0; padding-right: 0; }
  .ra-page.score-page .score-hero { margin-left: 0; margin-right: 0; }
}
.score-form { padding: 16px; margin: 0 0 16px; }

.score-field { margin: 0 0 18px; }
.score-field > label, .score-label, .score-biz > label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.score-field label small, .score-label small { color: var(--c-accent); margin-left: 6px; font-weight: 700; }
.score-form input[type="text"], .score-form input[type="email"], .score-form input[type="url"],
.score-form input[type="search"], .score-form textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: var(--radius); font-size: 16px; background: #fff;
}
.score-form textarea { min-height: 96px; line-height: 1.6; resize: vertical; }
.score-note { font-size: 12px; color: var(--c-muted); line-height: 1.6; margin: 6px 0 0; }
/* /score/: links to みんなの採点フォト above the form, and the newest posts below it */
.score-form-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 14px; font-size: 13px; }
.score-form-links a { color: var(--c-accent); font-weight: 700; text-decoration: none; }
.score-form-links a i { margin-right: 5px; }
.score-form-photos { margin-top: 28px; }
.score-form-photos .score-top-row { margin-bottom: 14px; }
.score-count { font-size: 11px; color: var(--c-muted); text-align: right; margin: 4px 0 0; }

.score-field-error { color: #c62828; font-size: 12px; font-weight: 700; margin: 6px 0 0; }
.score-error-box, .score-info-box { border-radius: var(--radius); padding: 10px 12px; font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.score-error-box { background: #fdecea; color: #b71c1c; }
.score-info-box { background: #f1faf4; color: #2e7d4f; }
[hidden] { display: none !important; }

.score-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* photo */
.score-drop {
  display: block; border: 2px dashed #d8a3b3; background: #fff7f9; border-radius: var(--radius);
  padding: 22px 12px; text-align: center; color: var(--c-accent); font-size: 14px; font-weight: 700; cursor: pointer;
}
.score-drop i { display: block; font-size: 30px; margin-bottom: 6px; }
.score-drop span { font-size: 11px; font-weight: normal; color: var(--c-muted); }
.score-preview { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.score-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.score-preview .chg {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}

/* map */
.score-map-wrap { position: relative; }
.score-map-search { display: flex; gap: 8px; margin: 0 0 8px; }
.score-map-search input { flex: 1; }
.score-map-search .ui-btn { min-height: 44px; }
.score-map { aspect-ratio: 16 / 10; border-radius: var(--radius); background: #dfeee4; overflow: hidden; }
.score-map-hint { font-size: 12px; color: var(--c-muted); margin: 6px 0 0; }
.score-loc-exif { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.score-loc-exif p { margin: 0; font-size: 13px; font-weight: 700; color: #2e7d4f; }
.score-page form .score-loc-exif .ui-btn { margin: 0; }
.score-loc-note { background: #fff8e1; color: #6d4c00; border-radius: var(--radius); padding: 8px 10px; font-size: 12px; line-height: 1.6; margin: 0 0 8px; }
.score-page form .score-here { margin: 0 0 8px; }

/* category chips */
.score-chips { display: flex; gap: 8px; }
.score-chip { flex: 1; }
.score-chip input { position: absolute; opacity: 0; pointer-events: none; }
.score-chip span {
  display: block; text-align: center; border: 1px solid #ccc; border-radius: 999px;
  padding: 10px 0; font-size: 13px; font-weight: 700; color: #444; cursor: pointer;
}
.score-chip input:checked + span { background: #555; border-color: #555; color: #fff; }
.score-chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* checkboxes */
.score-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.6; font-weight: normal !important; cursor: pointer; }
.score-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--c-accent); }
.score-biz { margin: 10px 0 0 26px; }
.score-biz input { margin-bottom: 10px; }

.score-hp { position: absolute; left: -9999px; }
.score-submit { min-height: 52px; font-size: 16px; margin: 4px 0 0; }
.score-submit:disabled { opacity: .6; }

/* sent / result / message */
.score-center { text-align: center; padding: 28px 0 16px; }
.score-center > i { font-size: 46px; color: var(--c-accent); }
.score-center h1, .score-center h2 { font-size: 19px; margin: 12px 0 8px; }
.score-center p { font-size: 14px; color: #444; line-height: 1.8; margin: 0; }
.score-page > .ui-btn, .score-page form .ui-btn { margin: 0 0 10px; }
.score-hero { margin: 0 -16px; background: #eee; }
.score-hero img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.score-hero + .page-h1 { margin-top: 14px; }
.score-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #555; border-radius: 999px; padding: 2px 9px; }
.score-waiting { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 16px; margin: 8px 0 16px; }

/* result: scores (docs/photo-score-mock.html ③) */
.score-hero { position: relative; }
.score-rank {
  position: absolute; left: 12px; top: 12px; background: var(--c-accent); color: #fff; font-weight: 900; font-size: 13px;
  border-radius: 999px; padding: 6px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: inline-block; line-height: 1; /* text only (no icon): nothing to align, and the theme's line-height left extra space under the text */
}
.score-spin { animation: score-pulse 1.4s ease-in-out infinite; }
@keyframes score-pulse { 50% { opacity: .35; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .score-spin { animation: none; } }

.score-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.score-total { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 10px; text-align: center; background: #fff; }
.score-total .t { font-size: 12px; color: var(--c-muted); font-weight: 700; }
.score-total .t i, .score-x-mark { margin-right: 4px; }
.score-total-instagram { --c: #e1306c; }
.score-total-x { --c: #222; }
.score-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 8px auto 2px; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #eee 0);
}
.score-ring > span {
  width: 76px; height: 76px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; /* a grid gave the number and 点 a row each, pushing them apart */
  font-size: 28px; font-weight: 900; color: var(--c); line-height: 1;
}
.score-ring small { font-size: 10px; color: var(--c-muted); font-weight: 700; line-height: 1; }

.score-bars { margin: 0 0 16px; }
.score-bars-head, .score-bar { display: grid; grid-template-columns: 6.5em 1fr 1fr; gap: 8px; align-items: center; font-size: 12px; }
.score-bars-head b { text-align: center; color: var(--c-muted); }
.score-bar { margin: 6px 0; }
.score-bar .tr { position: relative; height: 16px; background: #eee; border-radius: 999px; overflow: hidden; }
.score-bar .tr i { display: block; height: 100%; }
.score-bar .tr-instagram i { background: #e1306c; opacity: .8; }
.score-bar .tr-x i { background: #555; }
.score-bar .tr em { position: absolute; right: 6px; top: 0; font-style: normal; font-size: 11px; line-height: 16px; font-weight: 700; color: #333; }
.score-bar .tr em small { font-size: 9px; font-weight: normal; color: #777; }
.score-bars h2 { font-size: 14px; margin: 0 0 6px; }
.score-bars-group { font-size: 12px; font-weight: 700; color: var(--c-accent); margin: 12px 0 2px; }
.score-bars-group small { font-weight: normal; color: var(--c-muted); margin-left: 6px; }
.score-bars-head b { font-size: 11px; }

.score-ai { background: #fff7f9; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.score-ai h2 { font-size: 13px; color: var(--c-accent); margin: 0 0 4px; }
.score-ai h2 i { margin-right: 4px; }
.score-ai h3 { font-size: 13px; margin: 10px 0 2px; }
.score-ai p { margin: 0 0 4px; }
.score-ai .score-ai-more { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed #f1c6d2; font-size: 12px; line-height: 1.4; }
.score-ai-more a { display: inline-flex; align-items: center; gap: 5px; color: var(--c-accent); font-weight: 700; text-decoration: none; }
.score-ai-more a:hover { text-decoration: underline; }
.score-ai-more a .fa-chevron-right { font-size: 9px; }
.score-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.score-tags span { font-size: 12px; color: var(--c-accent); background: #fff; border-radius: 999px; padding: 2px 10px; }

.score-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 6px; }
.score-share a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #444; text-decoration: none; }
.score-share a > i {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: #fff; font-style: normal; font-weight: 700;
}
.score-share .s-x { background: #000; }
.score-share .s-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.score-share .s-line { background: #06c755; }
.score-share .s-url { background: #555; }
.score-share + .score-note { text-align: center; margin: 0 0 16px; }
.score-share-user { grid-template-columns: repeat(3, 1fr); max-width: 360px; margin: 0 auto 6px; }

.score-delete { margin: 18px 0 0; font-size: 13px; }
.score-delete summary { color: var(--c-muted); cursor: pointer; text-decoration: underline; }
.score-delete form { margin: 10px 0 0; }
.score-delete input[type="email"], .score-nick input[type="email"] {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid #ccc;
  border-radius: var(--radius); font-size: 16px; margin: 0 0 10px;
}

/* /score/u/: nickname (details styled as a small button) and the share block at the bottom */
.score-nick { margin: 0 0 16px; font-size: 13px; }
.score-nick summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid #ccc; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--c-text);
  cursor: pointer; list-style: none; user-select: none;
}
.score-nick summary::-webkit-details-marker { display: none; }
.score-nick summary i { color: var(--c-accent); }
.score-nick[open] summary { border-color: var(--c-accent); color: var(--c-accent); }
.score-nick-body { margin: 10px 0 0; padding: 12px 14px; background: #f7f7f7; border-radius: var(--radius); }
.score-nick-body .score-note { margin: 0 0 10px; }
.score-nick-body form { margin: 0; }
.score-share-foot { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--c-line); }
.score-share-title { text-align: center; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.score-share-title i { color: var(--c-accent); margin-right: 4px; }

/* /score/photos/: CTA that follows the scroll (hidden while the in-page one is visible) */
.score-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); box-shadow: 0 -2px 12px rgba(0,0,0,.12); }
.score-sticky-cta[hidden] { display: none; }
.score-sticky-cta .ui-btn { display: flex; width: 100%; max-width: 480px; margin: 0 auto; }

/* /score/map/ (layout, sheet and list come from ui.css .map-*; this is what differs) */
.score-map-filters { justify-content: flex-start; }
.score-map-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } /* the SNS pair and the rank chips wrap as units on SP */
.score-map-group-label { font-size: 12px; font-weight: 700; color: var(--c-muted); }
.score-map-filters .chip[id^="rank-"] { min-width: 44px; justify-content: center; padding: 0 12px; }
@media (max-width: 767px) { .score-map-filters .map-filters-x { display: none; } }
.score-map-filters .chip.on.sns-instagram { background: #e1306c; }
.score-map-filters .chip.on.sns-x { background: #222; }
.score-map-filters .chip.on.rank-S { background: #e16980; }
.score-map-filters .chip.on.rank-A { background: #f2993a; }
.score-map-filters .chip.on.rank-B { background: #3f8fd6; }
.score-map-filters .chip.on.rank-C { background: #9b9b9b; }
.score-map-sc { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: #fff; border-radius: 999px; padding: 1px 7px; margin: 0 4px 2px 0; opacity: .55; }
.score-map-sc.on, .score-map-sc.rank { opacity: 1; }
.score-map-sc.ig { background: #e1306c; }
.score-map-sc.x { background: #222; }
.score-map-sc.rank-S { background: #e16980; }
.score-map-sc.rank-A { background: #f2993a; }
.score-map-sc.rank-B { background: #3f8fd6; }
.score-map-sc.rank-C { background: #9b9b9b; }
.score-map-page .score-note { margin: 10px 0 14px; }
.score-map-page .ui-btn.block + .ui-btn.block { margin-top: 8px; }

/* terms */
.score-terms h2 { font-size: 16px; margin: 24px 0 8px; }
.score-terms p, .score-terms li { font-size: 14px; line-height: 1.8; }
.score-terms ul { padding-left: 1.4em; margin: 0 0 8px; }
.score-terms ul ul { margin: 4px 0; }

/* poster's comment and shop on the result page */
.score-comment { font-size: 14px; line-height: 1.8; margin: 0 0 12px; overflow-wrap: anywhere; }
.score-biz-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; background: #f6f6f6; border-radius: var(--radius); padding: 8px 12px; margin: 0 0 16px; }
.score-biz-info i.fa-store { color: var(--c-accent); }
.score-biz-info a { color: var(--c-accent); font-weight: 700; overflow-wrap: anywhere; }
.score-biz-info a i { font-size: 11px; }

/* 今週の高得点フォト (top page block, /score/top/) */
.score-top-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.score-top-head .ui-section-title small { font-size: 11px; font-weight: normal; color: var(--c-muted); margin-left: 8px; }
.score-top-head > a { font-size: 12px; color: var(--c-accent); white-space: nowrap; padding-right: 10px; }
/* the top page's columns bleed a few px past the screen; pad like .ui-section-title does */
.score-top-row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 10px; padding: 0 10px 6px; margin-bottom: 8px; }
.score-top-row > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .score-top-row { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; }
}
.score-top-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 20px; }
@media (min-width: 600px) { .score-top-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .score-top-grid { grid-template-columns: repeat(4, 1fr); } }
.score-top-card { position: relative; display: block; min-width: 0; color: inherit !important; text-decoration: none; }
.score-top-card .img { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #eee; }
.score-top-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.score-top-card .scs { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.score-top-card .sc {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.72); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 9px;
}
.score-top-card .sc b { font-weight: 700; }
.score-top-card .sc-instagram i { color: #ff8fb1; }
.score-top-card .b { display: block; font-size: 13px; font-weight: 700; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; }
.score-top-card .b small { display: block; font-size: 11px; font-weight: normal; color: var(--c-muted); margin-top: 2px; }
.score-top-card .b em { font-style: normal; color: var(--c-accent); font-weight: 700; }
.score-top-cta { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 2px dashed #d8a3b3; background: #fff7f9; border-radius: var(--radius); text-align: center; font-size: 12px; font-weight: 700; color: var(--c-accent) !important; }
.score-top-cta i { display: block; font-size: 24px; margin-bottom: 6px; }
@media (max-width: 599px) { .score-top-head .ui-section-title small { display: none; } }

/* みんなの採点フォト: sort chips and pager */
.score-sorts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.score-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 20px; font-size: 13px; }
