:root {
  --bg: #f4f8f5;
  --card: #ffffff;
  --main: #1f6f43;
  --main-dark: #155233;
  --accent: #7dbb91;
  --text: #1f2937;
  --sub: #6b7280;
  --border: #dbe5dd;
  --danger: #c0392b;

  --error-main: #e03131;
  --error-dark: #c92a2a;
  --error-bg: #fff5f5;
  --error-bg-soft: #ffe3e3;
  --error-line: #e99a9a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: linear-gradient(180deg, #edf7ef 0%, #f7faf7 100%);
  color: var(--text);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero {
  background: linear-gradient(180deg, #0d5f5c 0%, #156f68 100%);
  color: #fff;
  padding: 20px 18px 24px;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-banner-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.hero-banner {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 14px;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  background: transparent;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 0 0;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.96);
}

.hero-sub {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.form-body,
.result {
  padding: 18px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--main-dark);
  border-left: 5px solid var(--accent);
  padding-left: 10px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.required {
  color: var(--danger);
  margin-left: 6px;
  font-size: 12px;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #cfd8d3;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
}

.hint {
  font-size: 12px;
  color: var(--sub);
  margin-top: 5px;
  line-height: 1.6;
}

.notice-box {
  background: #f8fbf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--sub);
  margin: 14px 0 20px;
}

.question-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafdfb;
}

.question-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.question-meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
}

.question-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #5f6b63;
  white-space: normal;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.radio-option {
  flex: 1 1 140px;
}

.radio-option input {
  display: none;
}

.radio-option label {
  margin: 0;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid #cfd8d3;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.radio-option input:checked + label {
  background: #e6f4ea;
  border-color: var(--main);
  color: var(--main-dark);
}

.actions {
  margin-top: 24px;
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: var(--main);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.submit-btn.error {
  background: var(--error-main) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(224, 49, 49, 0.45) !important;
}

.submit-btn.error:hover {
  background: var(--error-dark) !important;
  color: #fff !important;
}

.message {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.message-info-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #b7d7c0;
  background: #f4fbf6;
  color: #1f6f43;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  white-space: pre-line;
}

.message-error-box {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 3px solid var(--error-main);
  background: linear-gradient(
    180deg,
    var(--error-bg) 0%,
    var(--error-bg-soft) 100%
  );
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  animation: shakeFadeIn 0.25s ease;
}

.message-error-box .error-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--error-dark);
  margin-bottom: 10px;
}

.message-error-box .error-body {
  font-size: 18px;
  font-weight: 800;
  color: var(--error-dark);
  line-height: 1.9;
  margin-bottom: 10px;
}

.message-error-box .error-detail {
  font-size: 14px;
  font-weight: 700;
  color: #a61e1e;
  border-top: 1px dashed var(--error-line);
  padding-top: 10px;
  line-height: 1.8;
}

.result {
  display: none;
}

.result.show {
  display: block;
}

.result-card {
  background: #f7fcf8;
  border: 1px solid #d9eadf;
  border-radius: 16px;
  padding: 18px;
}

.result h2 {
  margin-top: 0;
  color: var(--main-dark);
  font-size: 22px;
}

.score {
  font-size: 34px;
  font-weight: 800;
  color: var(--main);
  margin: 14px 0;
  line-height: 1.2;
}

.detail-list {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.8;
  font-size: 14px;
}

.subtext {
  color: var(--sub);
  font-size: 13px;
  line-height: 1.7;
}

.status-chip {
  display: inline-block;
  background: #e6f4ea;
  color: var(--main-dark);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 12px;
}

.result-video-wrap {
  margin-top: 22px;
  margin-bottom: 18px;
  width: 100%;
  clear: both;
}

.result-video-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--main-dark);
  margin-bottom: 10px;
}

.result-video {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: #000;
}

.result-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.action-link-btn,
.result-actions button.action-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--main);
  background: #fff;
  color: var(--main-dark);
  min-height: 52px;
  min-width: 180px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.action-link-btn.primary {
  background: var(--main);
  color: #fff;
}

@keyframes shakeFadeIn {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 16px 14px 20px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-sub {
    font-size: 11px;
  }

  .hero-banner {
    max-width: 100%;
    border-radius: 12px;
  }

  .score {
    font-size: 30px;
  }

  .form-body,
  .result {
    padding: 14px;
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .action-link-btn,
  .result-actions button.action-link-btn {
    width: 100%;
    min-width: 0;
  }

  .message-error-box .error-title {
    font-size: 26px;
  }

  .message-error-box .error-body {
    font-size: 16px;
  }

  .message-error-box .error-detail {
    font-size: 13px;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dash-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafdfb;
  padding: 14px;
}

.dash-label {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px;
}

.dash-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--main-dark);
}

.table-wrap {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
}

.dash-table th,
.dash-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.dash-table th {
  background: #f4fbf6;
}

.json-box {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
  min-height: 160px;
}

.big-textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px 12px;
  border: 1px solid #cfd8d3;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  font-family: monospace;
}

.detail-btn {
  border: 1px solid var(--main);
  background: #fff;
  color: var(--main-dark);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.ranking-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafdfb;
  padding: 14px;
}

.ranking-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--main-dark);
}

.ranking-table td:first-child,
.ranking-table th:first-child {
  width: 60px;
}

.lom-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.lom-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--main-dark);
}

@media (min-width: 960px) {
  .ranking-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.submit-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
  transform: scale(0.99);
}

/* ========================================
   dashboard / admin 追加
======================================== */

.dashboard-container {
  max-width: 1280px;
}

.dashboard-page .form-body,
.admin-page .form-body {
  padding: 22px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px 18px;
  align-items: start;
}

.table-switch-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dash-table-wide {
  width: 100%;
  min-width: 980px;
}

.dash-table th,
.dash-table td {
  vertical-align: top;
  font-size: 13px;
}

.nowrap {
  white-space: nowrap;
}

.num-col {
  text-align: right;
  white-space: nowrap;
}

.detail-card-wrap {
  margin-top: 8px;
}

.detail-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafdfb;
  padding: 16px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.detail-answer-table-wrap {
  overflow-x: auto;
}

.detail-answer-table {
  min-width: 420px;
}

.json-details {
  margin-top: 14px;
}

.json-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--main-dark);
}

.json-box {
  margin-top: 10px;
  background: #f8fbf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.ranking-card h3 {
  margin-top: 0;
}

.lom-details summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 900px) {
  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    max-width: 100%;
  }
}

.daily-filter-wrap {
  margin: 12px 0 18px;
}

.daily-filter-wrap {
  margin: 12px 0 18px;
}

#snapshotUpdatedAt {
  color: #6b7280;
  font-size: 12px;
}

/* ===== dashboard responsive tuning ===== */

.dashboard-container {
  max-width: 1280px;
}

.dashboard-page .form-body {
  padding: 22px 18px 26px;
}

.dashboard-page .result-actions {
  gap: 10px;
}

.dashboard-page .action-link-btn,
.dashboard-page .result-actions button.action-link-btn {
  min-width: 160px;
}

.dashboard-page .dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.dashboard-page .dash-card {
  min-height: 92px;
}

.dashboard-page .dash-value {
  font-size: 20px;
  line-height: 1.25;
}

.dashboard-page .table-switch-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dashboard-page .daily-filter-wrap {
  margin: 10px 0 18px;
}

.dashboard-page .ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-page .ranking-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafdfb;
  padding: 14px;
}

.dashboard-page .ranking-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--main-dark);
}

#snapshotUpdatedAt {
  color: var(--sub);
  font-size: 12px;
  margin: 6px 0 14px;
}

@media (max-width: 900px) {
  .dashboard-page .ranking-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page .dash-value {
    font-size: 18px;
  }

  .dashboard-page .action-link-btn,
  .dashboard-page .result-actions button.action-link-btn {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-page .form-body {
    padding: 14px;
  }

  .dashboard-page .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dashboard-page .dash-card {
    padding: 12px;
    min-height: 84px;
  }

  .dashboard-page .dash-label {
    font-size: 12px;
  }

  .dashboard-page .dash-value {
    font-size: 16px;
  }

  .dashboard-page .table-switch-row {
    gap: 8px;
  }

  .dashboard-page .table-switch-row .action-link-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .dashboard-page .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-page .result-actions .action-link-btn,
  .dashboard-page .result-actions button.action-link-btn {
    width: 100%;
  }

  .dashboard-page .notice-box {
    font-size: 12px;
    line-height: 1.7;
  }

  .dashboard-page .lom-details summary {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .dashboard-page .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-page .dash-card {
    min-height: auto;
    padding: 12px;
  }

  .dashboard-page .dash-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .dashboard-page .dash-value {
    font-size: 16px;
    line-height: 1.3;
  }

  .dashboard-page .result-actions {
    gap: 8px;
  }

  .dashboard-page .result-actions .action-link-btn,
  .dashboard-page .result-actions button.action-link-btn {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .dashboard-page .ranking-card {
    padding: 10px;
  }

  .dashboard-page .ranking-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .dashboard-page .dash-table {
    font-size: 12px;
  }

  .dashboard-page .dash-table th,
  .dashboard-page .dash-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .dashboard-page .notice-box {
    font-size: 12px;
    line-height: 1.7;
    padding: 10px 12px;
  }

  #snapshotUpdatedAt {
    font-size: 11px;
    line-height: 1.6;
  }
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.mobile-stat-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--main-dark);
  margin-bottom: 6px;
}

.mobile-stat-meta {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}

.mobile-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}

.mobile-rank-card {
  background: #fafdfb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.mobile-rank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mobile-rank-no {
  font-size: 12px;
  font-weight: 900;
  color: var(--main);
}

.mobile-rank-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--main-dark);
}

.mobile-rank-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.mobile-rank-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5;
}

.more-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbf8;
  color: var(--main-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.mobile-rank-tabs {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .dashboard-page .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-page .dash-card {
    min-height: auto;
    padding: 12px;
  }

  .dashboard-page .dash-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .dashboard-page .dash-value {
    font-size: 16px;
    line-height: 1.3;
  }

  .dashboard-page .result-actions {
    gap: 8px;
  }

  .dashboard-page .result-actions .action-link-btn,
  .dashboard-page .result-actions button.action-link-btn {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .dashboard-page .notice-box {
    font-size: 12px;
    line-height: 1.7;
    padding: 10px 12px;
  }

  #snapshotUpdatedAt {
    font-size: 11px;
    line-height: 1.6;
  }
}

.dashboard-pending-box {
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.8;
}

.cta-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e6f7ec, #f0fff5);
  border: 2px solid #1f6f43;
  text-align: center;
}

.cta-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #1f6f43;
}

.cta-body {
  font-size: 14px;
  margin-bottom: 14px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 20px;
  background: #e03131;
  color: #fff;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(224, 49, 49, 0.4);
}

.cta-btn:hover {
  background: #c92a2a;
}

/* =========================
   result CTA / logo
========================= */

.sponsor-mini-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.sponsor-mini-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.88;
}

.post-submit-cta-card {
  margin: 18px 0 20px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 2px solid #f0c36d;
  background: linear-gradient(180deg, #fffaf0 0%, #fff5db 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.post-submit-cta-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #efc56a;
  font-size: 12px;
  font-weight: 800;
  color: #9a6700;
}

.post-submit-cta-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.5;
  color: #5a3b00;
}

.post-submit-cta-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.post-submit-cta-btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #d94841 0%, #c92a2a 100%);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(201, 42, 42, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.post-submit-cta-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .sponsor-mini-logo {
    width: 48px;
    height: 48px;
  }

  .post-submit-cta-title {
    font-size: 18px;
  }

  .post-submit-cta-btn {
    font-size: 15px;
    padding: 14px 16px;
  }
}

/* =========================
   result CTA / logo
========================= */

.sponsor-mini-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.sponsor-mini-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.88;
}

.post-submit-cta-card {
  margin: 18px 0 20px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 2px solid #f0c36d;
  background: linear-gradient(180deg, #fffaf0 0%, #fff5db 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.post-submit-cta-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #efc56a;
  font-size: 12px;
  font-weight: 800;
  color: #9a6700;
}

.post-submit-cta-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.5;
  color: #5a3b00;
}

.post-submit-cta-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.post-submit-cta-btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #d94841 0%, #c92a2a 100%);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(201, 42, 42, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.post-submit-cta-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .sponsor-mini-logo {
    width: 48px;
    height: 48px;
  }

  .post-submit-cta-title {
    font-size: 18px;
  }

  .post-submit-cta-btn {
    font-size: 15px;
    padding: 14px 16px;
  }
}

.admin-summary-actions {
  margin-bottom: 16px;
}

#aggregateViewWrap {
  margin-bottom: 22px;
}

.aggregate-detail-btn {
  min-width: 104px;
}

/* =========================
   Post Submit Competition
========================= */

.competition-card {
  margin: 18px 0 20px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid #d6e3da;
  background: linear-gradient(180deg, #f8fcf9 0%, #f1f8f3 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.competition-card-header {
  margin-bottom: 14px;
}

.competition-card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--main-dark);
  line-height: 1.4;
}

.competition-card-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--sub);
}

.competition-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.competition-summary-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.competition-summary-label {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 6px;
}

.competition-summary-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--main-dark);
  line-height: 1.3;
}

.competition-summary-foot {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.competition-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.competition-panel-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--main-dark);
  margin-bottom: 10px;
}

.competition-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.competition-rank-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #eef3ef;
}

.competition-rank-item:first-child {
  border-top: none;
  padding-top: 0;
}

.competition-rank-no {
  font-size: 18px;
  font-weight: 900;
  color: var(--main);
}

.competition-rank-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.competition-rank-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4;
}

.competition-rank-value {
  font-size: 16px;
  font-weight: 900;
  color: var(--main-dark);
  white-space: nowrap;
}

.competition-empty {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .competition-summary-grid,
  .competition-grid {
    grid-template-columns: 1fr;
  }

  .competition-card-title {
    font-size: 18px;
  }

  .competition-summary-value {
    font-size: 20px;
  }

  .competition-rank-item {
    grid-template-columns: 34px 1fr auto;
  }
}

.competition-rank-highlight {
  font-size: 28px;
  font-weight: 900;
  color: #0b6b3a;
  line-height: 1.2;
  margin-top: 6px;
}

.competition-rank-total {
  font-size: 14px;
  font-weight: 700;
  color: #6b7c74;
  margin-left: 4px;
}

.competition-note {
  margin-top: 6px;
  font-size: 11px;
  color: #7a8a83;
  line-height: 1.4;
}

.logo-header {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .logo-header {
    width: 40px;
    height: 40px;
  }
}
