@font-face { font-family: "ChosunGs"; src: url("/fonts/ChosunGs.woff") format("woff"); font-display: swap; }

:root {
  --ink: #171515;
  --cream: #fff9df;
  --paper: #fffef8;
  --yellow: #ffe246;
  --pink: #ff4f9a;
  --blue: #2367ff;
  --cyan: #7de8f4;
  --lime: #a7ed46;
  --muted: #655d55;
  --pass: #008d65;
  --partial: #a75400;
  --fail: #d9003f;
  --unknown: #67606a;
  --line: #171515;
  --shadow: 8px 8px 0 var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; background: var(--cream); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, rgba(23,21,21,.10) 1.25px, transparent 1.25px),
    linear-gradient(135deg, rgba(255,79,154,.08), transparent 34%, rgba(35,103,255,.08));
  background-size: 18px 18px, 100% 100%;
  padding-bottom: 88px;
}
.public-nav { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px max(18px,calc((100vw - 1200px)/2)); border-bottom:4px solid var(--ink); background:var(--yellow); }
.public-brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-weight:950; text-decoration:none; }
.public-brand b { padding:5px 8px; background:var(--ink); color:var(--lime); letter-spacing:.08em; }
.public-nav nav { display:flex; gap:8px; flex-wrap:wrap; }
.public-nav nav a { padding:5px 9px; border:2px solid transparent; border-radius:999px; color:var(--ink); font-size:12px; font-weight:900; text-decoration:none; }
.public-nav nav a:hover,.public-nav nav a:focus-visible { border-color:var(--ink); background:#fff; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.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; }

.judge-main { width: min(1200px, calc(100% - 36px)); margin: 0 auto; padding: clamp(18px, 3vw, 32px) 0 88px; }
.judge-hero {
  position: relative;
  max-width: 1100px;
  padding: clamp(14px, 2.2vw, 24px);
  border: 4px solid var(--ink);
  border-radius: 28px 52px 25px 48px;
  background: var(--yellow);
  box-shadow: var(--shadow);
  transform: rotate(-.25deg);
}
.judge-hero::before {
  content: "속보";
  position: absolute;
  top: -20px;
  left: clamp(20px, 5vw, 58px);
  padding: 8px 17px;
  border: 3px solid var(--ink);
  background: var(--pink);
  color: #fff;
  font-weight: 950;
  letter-spacing: .12em;
  transform: rotate(-3deg);
}
.judge-kicker { margin: 0 0 13px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.judge-hero .judge-kicker { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.judge-hero h1 { max-width: 870px; margin: 0; font-size: clamp(30px, 4.5vw, 52px); line-height: .98; letter-spacing: -.06em; font-weight: 950; }
.judge-hero h1 em {
  color: var(--pink);
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}
.judge-hero > p:nth-of-type(2) { max-width: 760px; margin: 12px 0 0; font-size: clamp(13px, 1.5vw, 16px); font-weight: 720; line-height: 1.5; }
.hero-sticker {
  position: absolute;
  right: -20px;
  bottom: -25px;
  display: grid;
  place-items: center;
  width: 126px;
  min-height: 76px;
  padding: 11px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transform: rotate(7deg);
}
.hero-sticker b { font-size: 14px; }

.gallery-main { width: min(1200px, calc(100% - 36px)); margin: 0 auto; min-height: 80dvh; padding: 28px 0 90px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 22px 24px; border: 4px solid var(--ink); border-radius: 22px; background: var(--yellow); box-shadow: var(--shadow); }
.gallery-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.045em; }
.gallery-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 750; line-height: 1.55; }
.gallery-status { margin: 26px 0 14px; color: var(--muted); font-size: 12px; font-weight: 800; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(7px, 1.4vw, 14px); }
.gallery-card { position: relative; min-width: 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 13px; background: #fff; box-shadow: 4px 4px 0 var(--ink); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gallery-card:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.gallery-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: conic-gradient(var(--pink) var(--press-progress, 0%), transparent 0); opacity: 0; mix-blend-mode: multiply; }
.gallery-card.is-pressing::after { opacity: .42; animation: gallery-hold 550ms linear forwards; }
.gallery-card.is-liked { background: #fff0f7; }
.gallery-card-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 3px solid var(--ink); background: #101827; }
.gallery-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-score { position: absolute; left: 7px; bottom: 7px; padding: 4px 7px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: clamp(11px, 1.8vw, 17px); font-weight: 950; box-shadow: 2px 2px 0 var(--ink); }
.gallery-card-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 5px; min-height: 48px; padding: 7px 8px; }
.gallery-card-name { overflow: hidden; color: var(--ink); font-size: clamp(10px, 1.4vw, 13px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.gallery-like { display: inline-flex; align-items: center; gap: 3px; min-width: 34px; min-height: 30px; justify-content: center; padding: 3px 5px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 900; }
.gallery-card.is-liked .gallery-like { background: var(--pink); color: #fff; }
.gallery-like svg { width: 14px; height: 14px; fill: currentColor; }
.content-report { min-height:28px; padding:3px 6px; border:2px solid var(--ink); border-radius:999px; background:#fff; color:var(--muted); font-size:9px; font-weight:900; }
.content-report:disabled { background:#ddd; cursor:default; }
.gallery-sentinel { height: 40px; }
.gallery-empty { grid-column: 1 / -1; padding: 50px 18px; border: 3px dashed var(--ink); border-radius: 15px; background: #fff; color: var(--muted); font-weight: 800; text-align: center; }

.judge-tabbar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: 1fr 1fr; width: min(390px, calc(100% - 24px)); padding: 6px; border: 4px solid var(--ink); border-radius: 19px; background: #fff; box-shadow: 6px 6px 0 var(--ink); transform: translateX(-50%); }
.judge-tabbar button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 900; }
.judge-tabbar button[aria-current="page"] { background: var(--blue); color: #fff; }
.judge-tabbar svg { width: 20px; height: 20px; fill: currentColor; }
@keyframes gallery-hold { to { --press-progress: 100%; } }

.ranking-section { margin: 54px 0 34px; padding: 24px; border: 4px solid var(--ink); border-radius: 22px; background: #dce8ff; box-shadow: var(--shadow); }
.ranking-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.ranking-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 43px); line-height: 1; }
.ranking-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 750; line-height: 1.5; text-align: right; }
.ranking-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 13px; overflow-x: auto; padding: 3px 3px 12px; scroll-snap-type: x proximity; }
.ranking-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 3px dashed var(--ink); border-radius: 12px; background: var(--paper); color: var(--muted); font-weight: 750; text-align: center; }
.ranking-card { position: relative; min-width: 190px; overflow: hidden; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); scroll-snap-align: start; }
.ranking-card:first-child { background: var(--yellow); }
.ranking-photo { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 3px solid var(--ink); background: #111; }
.ranking-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ranking-copy { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 12px; }
.ranking-position { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--pink); color: #fff; font-size: 17px; font-weight: 950; }
.ranking-card:first-child .ranking-position { background: var(--blue); }
.ranking-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ranking-copy .content-report { grid-column:2; justify-self:end; }
.ranking-score { color: var(--blue); font-size: 20px; font-weight: 950; }
.low-ranking-section { margin-top: 24px; background: #ffd7e7; transform: rotate(.12deg); }
.low-ranking-section .judge-kicker { color: var(--fail); }
.low-ranking-section .ranking-card { background: #fff4bc; }
.low-ranking-section .ranking-card:first-child { background: var(--pink); color: #fff; }
.low-ranking-section .ranking-card:first-child .ranking-score { color: #fff; }
.low-ranking-section .ranking-position { background: var(--yellow); color: var(--ink); }
.low-ranking-section .ranking-card:first-child .ranking-position { background: #fff; color: var(--fail); }
.low-ranking-section .ranking-score { color: var(--fail); }

.judge-upload { margin: 68px 0 34px; padding: clamp(14px, 2.5vw, 26px); border: 4px solid var(--ink); border-radius: 24px; background: var(--cyan); box-shadow: var(--shadow); transform: rotate(.15deg); }
.judge-drop { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; border: 4px dashed var(--ink); border-radius: 16px; background: var(--paper); transition: background .15s, transform .15s; cursor: pointer; }
.judge-drop:hover, .judge-drop.drag { background: #fff4a4; transform: translateY(-2px); }
.judge-drop input { position: absolute; opacity: 0; pointer-events: none; }
.judge-drop img { display: none; width: 100%; max-height: 700px; object-fit: contain; }
.judge-drop.has-preview img { display: block; }
.judge-drop.has-preview .judge-drop-copy { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 11px 14px; border: 3px solid var(--ink); border-radius: 8px; background: rgba(255,226,70,.94); box-shadow: 4px 4px 0 var(--ink); }
.judge-drop-copy { display: grid; gap: 9px; padding: 30px; text-align: center; }
.judge-drop-copy b { font-size: clamp(21px, 3vw, 30px); font-weight: 950; }
.judge-drop-copy small { color: var(--muted); font-weight: 700; line-height: 1.5; }
.ranking-name-field { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 16px 18px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.ranking-name-field span { display: grid; gap: 5px; }
.ranking-name-field b { font-size: 15px; }
.ranking-name-field small { color: var(--muted); font-weight: 700; line-height: 1.4; }
.ranking-name-field input { width: min(310px, 44%); min-height: 48px; padding: 10px 13px; border: 3px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 850; }
.judge-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 2px 2px; }
.judge-submit-row > div { display: grid; gap: 6px; }
.judge-submit-row strong { font-size: 14px; line-height: 1.45; }
.judge-submit-row small { color: var(--muted); }
.judge-submit-row button, .result-actions button {
  min-height: 50px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 13px 22px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--ink);
}
.judge-submit-row button:hover:not(:disabled), .result-actions button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.judge-notice { margin: 14px 2px 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.6; }
.judge-notice.error { color: var(--fail); }

.judge-progress { margin: 34px 0; padding: clamp(22px, 4vw, 38px); border: 4px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.progress-head > div:first-child { display: grid; gap: 12px; }
.status-chip { width: fit-content; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--yellow); font-size: 12px; font-weight: 900; }
.progress-head strong { font-size: clamp(20px, 3vw, 30px); line-height: 1.25; }
.progress-count { display: grid; justify-items: end; gap: 4px; font-variant-numeric: tabular-nums; }
.progress-count b { color: var(--blue); font-size: 28px; }.progress-count span { color: var(--muted); font-size: 13px; }
.judge-progress > p { color: var(--muted); line-height: 1.6; }
.progress-list { max-height: 310px; overflow: auto; margin: 24px 0 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.progress-list li { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; min-height: 66px; border-bottom: 2px solid var(--ink); }
.progress-list .step { color: var(--blue); font-weight: 950; font-variant-numeric: tabular-nums; }
.progress-list strong { font-size: 14px; }.progress-list small { display: block; margin-top: 4px; color: var(--muted); }
.progress-list .points { color: var(--partial); font-size: 13px; font-weight: 850; }
.progress-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.quiet-button { min-height: 44px; border: 3px solid var(--ink) !important; color: var(--ink) !important; background: #fff !important; box-shadow: 4px 4px 0 var(--ink) !important; }

.judge-result { margin-top: 46px; }
.result-dashboard { display: grid; grid-template-columns: minmax(310px, .85fr) minmax(390px, 1.15fr); gap: 18px; align-items: stretch; }
.score-panel, .radar-panel { min-height: 330px; border: 4px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.score-panel { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 44px); background: var(--yellow); }
.score-line { display: flex; align-items: flex-end; gap: 22px; }
.score-line h2 { margin: 0; font-size: clamp(76px, 11vw, 126px); line-height: .86; font-variant-numeric: tabular-nums; }
.score-line h2.precise-score { font-size: clamp(58px, 8.5vw, 94px); }
.score-line h2 small { margin-left: 4px; color: var(--blue); font-size: .22em; }
.grade-badge { min-width: 64px; margin-bottom: 7px; padding: 8px 13px; border: 3px solid var(--ink); border-radius: 8px; color: #fff; background: var(--pink); font-size: 25px; font-weight: 950; text-align: center; box-shadow: 3px 3px 0 var(--ink); }
.score-panel > strong { margin-top: 23px; font-size: clamp(23px, 3vw, 34px); }.score-panel > p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.radar-panel { grid-column: 2; grid-row: 1; display: grid; place-items: center; padding: 8px 12px; background: #dce8ff; }.radar-panel svg { width: min(100%, 500px); height: 100%; min-height: 310px; }
.result-share-quick { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: 22px; align-items: center; padding: 22px; border: 4px solid var(--ink); border-radius: 18px; background: var(--pink); box-shadow: 6px 6px 0 var(--ink); }
.result-share-heading .judge-kicker { margin-bottom: 5px; color: var(--ink); }
.result-share-heading h2 { margin: 0; color: #fff; font-size: clamp(22px, 3vw, 31px); line-height: 1.15; text-shadow: 2px 2px 0 var(--ink); }
.result-share-quick .result-actions { margin: 0; }
.result-share-quick .judge-notice { margin-top: 12px; color: #241d20; font-weight: 750; }
.result-summary { margin: 29px 0; padding: 18px 22px; border: 4px solid var(--ink); border-radius: 11px; color: var(--ink); background: var(--lime); box-shadow: 5px 5px 0 var(--ink); font-size: clamp(17px, 2.2vw, 22px); font-weight: 800; line-height: 1.65; }

.result-workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.annotated-photo { position: relative; overflow: hidden; border: 4px solid var(--ink); border-radius: 16px; background: #111; box-shadow: var(--shadow); }
.annotated-photo img { display: block; width: 100%; height: auto; }
.annotated-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.annotation.active { filter: drop-shadow(0 0 7px rgba(255,255,255,.75)); }
.annotation-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.annotation-toolbar button { min-height: 44px; padding: 9px 12px; border: 3px solid var(--ink); border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 850; box-shadow: 3px 3px 0 var(--ink); }
.annotation-toolbar button[aria-pressed="true"] { color: #fff; background: var(--blue); }
.annotation-panel { max-height: 720px; overflow: hidden; border: 4px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.annotation-panel > p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 18px 14px; }
.panel-heading h2 { margin: 0; font-size: 24px; }.panel-heading .judge-kicker { margin-bottom: 7px; }.panel-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.annotation-list { max-height: 574px; overflow: auto; border-top: 3px solid var(--ink); }
.annotation-choice { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: start; padding: 14px 16px; border-bottom: 2px solid var(--ink); cursor: pointer; }
.annotation-choice:hover, .annotation-choice.active { background: #dce8ff; }
.annotation-choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.annotation-number { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 950; }
.annotation-copy { min-width: 0; }.annotation-copy strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.4; }.annotation-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.criteria-section { margin-top: 46px; }
.criteria-section > .panel-heading { padding-left: 0; padding-right: 0; }
.criteria-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.criterion { min-width: 0; min-height: 178px; display: flex; flex-direction: column; padding: 16px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.criterion.pass { background: #d8ffe8; }.criterion.partial { background: #fff1be; }.criterion.fail { background: #ffdbe5; }
.criterion-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.criterion-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 950; }
.criterion.pass { color: var(--pass); }.criterion.partial { color: var(--partial); }.criterion.fail { color: var(--fail); }.criterion.unknown, .criterion.not_applicable { color: var(--unknown); }
.criterion-score { font-weight: 950; font-variant-numeric: tabular-nums; }
.criterion h3 { margin: 13px 0 7px; color: var(--ink); font-size: 14px; line-height: 1.4; }
.criterion p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.criterion .criterion-group { margin-top: auto; padding-top: 12px; color: currentColor; font-size: 11px; font-weight: 850; }
.criterion.duplicate { opacity: .74; }

.result-actions { display: flex; flex-wrap: wrap; gap: 13px; }.result-actions button:nth-child(2) { color: var(--ink); background: var(--yellow); }
.share-preview-card { margin-top: 18px; border: 4px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.share-preview-card summary { padding: 14px 16px; color: var(--ink); font-size: 13px; font-weight: 850; cursor: pointer; }
.share-preview-card img { display: block; width: 100%; height: auto; border-top: 3px solid var(--ink); border-radius: 0 0 8px 8px; }
.rubric-section { margin-top: 60px; border: 4px solid var(--ink); border-radius: 14px; background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); }
.rubric-section summary { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); cursor: pointer; list-style-position: inside; }
.rubric-section summary b { font-size: 14px; }.rubric-section summary span { color: var(--muted); font-size: 12px; }
.rubric-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 12px 12px; }
.rubric-list span { display: flex; justify-content: space-between; gap: 7px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 8px; color: var(--muted); background: var(--paper); font-size: 12px; }.rubric-list b { color: var(--ink); }
.judge-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 24px clamp(18px, 4vw, 64px); border-top: 5px solid var(--ink); color: var(--ink); background: var(--yellow); font-size: 12px; font-weight: 750; }
.judge-footer p { margin: 0; }.judge-footer a { color: var(--ink); font-weight: 900; }.judge-footer nav { display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.public-guide { margin:34px 0 10px; padding:clamp(20px,4vw,36px); border:4px solid var(--ink); border-radius:22px; background:#fff; box-shadow:var(--shadow); }
.public-guide h2 { margin:0; font-size:clamp(25px,4vw,42px); letter-spacing:-.04em; }
.public-guide ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:22px 0; padding:0; list-style:none; counter-reset:guide; }
.public-guide li { counter-increment:guide; min-width:0; padding:16px; border:3px solid var(--ink); border-radius:14px; background:#eef4ff; box-shadow:4px 4px 0 var(--ink); }
.public-guide li::before { content:"0" counter(guide); display:block; color:var(--blue); font-size:12px; font-weight:950; }
.public-guide li b,.public-guide li span { display:block; }.public-guide li span { margin-top:7px; color:var(--muted); font-size:13px; line-height:1.55; }
.public-guide nav { display:flex; gap:8px; flex-wrap:wrap; }.public-guide nav a { padding:8px 11px; border:2px solid var(--ink); border-radius:999px; background:var(--yellow); color:var(--ink); font-size:12px; font-weight:900; text-decoration:none; }
.public-guide>p:last-child { margin:18px 0 0; color:var(--muted); font-size:12px; font-weight:750; }
.site-metrics { color: rgba(23, 21, 21, .62); font-size: 9px; font-weight: 700; letter-spacing: .02em; text-align: center; font-variant-numeric: tabular-nums; }

.result-modal { width: min(760px, calc(100% - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--ink); }
.result-modal::backdrop { background: rgba(12, 15, 24, .82); backdrop-filter: blur(5px); }
.result-modal-card { position: relative; max-height: calc(100dvh - 28px); overflow: auto; padding: clamp(20px, 4vw, 34px); border: 4px solid var(--ink); border-radius: 22px; background: var(--pink); box-shadow: 9px 9px 0 #fff; }
.result-modal-card h2 { margin: 0 42px 18px 0; color: #fff; font-size: clamp(29px, 5vw, 48px); line-height: 1.08; text-shadow: 3px 3px 0 var(--ink); }
.result-modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 29px; font-weight: 950; line-height: 1; box-shadow: 3px 3px 0 var(--ink); }
.result-modal-preview { max-height: 57dvh; overflow: auto; border: 4px solid var(--ink); border-radius: 14px; background: #101827; }
.result-modal-preview img { display: block; width: 100%; height: auto; }
.result-modal-ranking { min-height: 22px; margin: 14px 0 0; color: #1b1015; font-weight: 850; line-height: 1.45; }
.result-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.result-modal-actions button { min-height: 52px; padding: 12px; border: 3px solid var(--ink); border-radius: 9px; background: var(--blue); color: #fff; font-weight: 950; box-shadow: 4px 4px 0 var(--ink); }
.result-modal-actions button:nth-child(2) { background: var(--yellow); color: var(--ink); }
.result-modal-actions .quiet-button { grid-column: 1 / -1; }
body:has(.result-modal[open]) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

@media (max-width: 980px) {
  .hero-sticker { right: 14px; }
  .result-dashboard { grid-template-columns: 1fr 1fr; }
  .result-share-quick { grid-template-columns: 1fr; gap: 14px; }
  .result-workspace { grid-template-columns: 1fr; }
  .annotation-panel { max-height: none; }.annotation-list { max-height: 430px; }
  .criteria-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rubric-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .public-nav { align-items:flex-start; flex-direction:column; padding:10px 12px; }.public-nav nav { gap:1px; }.public-nav nav a { padding:3px 6px; font-size:10px; }
  :root { --shadow: 5px 5px 0 var(--ink); }
  .judge-main { width: min(100% - 24px, 1200px); padding-top: 18px; padding-bottom: 56px; }
  .judge-hero { padding: 19px 16px 15px; border-width: 3px; border-radius: 21px 29px 19px 25px; transform: none; }
  .judge-hero::before { top: -17px; padding: 6px 12px; font-size: 12px; }
  .judge-hero h1 { font-size: clamp(29px, 8.4vw, 42px); }
  .judge-hero h1 em { -webkit-text-stroke-width: 1.5px; text-shadow: 4px 4px 0 var(--ink); }
  .judge-hero > p:nth-of-type(2) { margin-top: 10px; max-width: calc(100% - 90px); font-size: 12px; line-height: 1.45; }
  .hero-sticker { right: 8px; bottom: -12px; width: 94px; min-height: 54px; padding: 6px 8px; border-width: 3px; border-radius: 999px; font-size: 9px; transform: rotate(2deg); }
  .hero-sticker br { display: none; }.hero-sticker b { margin-left: 5px; font-size: 13px; }
  .ranking-section { margin-top: 38px; padding: 17px 13px; border-width: 3px; }
  .ranking-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .ranking-heading > p { max-width: none; text-align: left; }
  .ranking-list { grid-auto-columns: minmax(172px, 70vw); }
  .judge-upload { margin-top: 34px; border-width: 3px; transform: none; }
  .judge-drop { min-height: 250px; border-width: 3px; }
  .ranking-name-field { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .ranking-name-field input { width: 100%; }
  .judge-submit-row { align-items: stretch; flex-direction: column; }.judge-submit-row button { width: 100%; }
  .progress-head { align-items: stretch; flex-direction: column; }.progress-count { grid-auto-flow: column; justify-content: space-between; justify-items: start; }
  .progress-list li { grid-template-columns: 54px 1fr; }.progress-list .points { grid-column: 2; padding-bottom: 10px; }
  .progress-footer { align-items: stretch; flex-direction: column; }.progress-footer button { width: 100%; }
  .result-dashboard { grid-template-columns: 1fr; }
  .score-panel, .result-share-quick, .radar-panel { grid-column: 1; grid-row: auto; }
  .score-panel, .radar-panel { min-height: 285px; }
  .result-share-quick { gap: 16px; padding: 19px 16px; border-width: 3px; }
  .result-share-heading h2 { font-size: 25px; }
  .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.criterion { min-height: 194px; padding: 14px; }
  .rubric-section { margin-top: 42px; }
  .rubric-section summary { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
  .rubric-list { grid-template-columns: repeat(3, 1fr); }
  .result-actions button { width: 100%; }.judge-footer { grid-template-columns: 1fr; justify-items: start; gap: 8px; }.judge-footer nav { justify-content:flex-start; }.site-metrics { text-align: left; }.public-guide { border-width:3px; }.public-guide ol { grid-template-columns:1fr; }
  .result-modal-card { padding: 20px 14px 18px; border-width: 3px; }
  .result-modal-card h2 { font-size: 30px; }
  .result-modal-preview { max-height: 54dvh; border-width: 3px; }
  .result-modal-actions { grid-template-columns: 1fr; }
  .result-modal-actions .quiet-button { grid-column: auto; }
  .gallery-main { width: min(100% - 20px, 1200px); padding-top: 18px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; gap: 10px; padding: 17px 15px; border-width: 3px; }
  .gallery-heading h1 { font-size: 29px; }
  .gallery-heading > p { font-size: 12px; }
  .gallery-grid { gap: 7px; }
  .gallery-card { border-width: 2px; border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); }
  .gallery-card-image { border-bottom-width: 2px; }
  .gallery-card-copy { grid-template-columns: 1fr; min-height: 62px; padding: 6px; }
  .gallery-like { width: 100%; min-height: 25px; padding: 2px 4px; }
  .gallery-score { left: 4px; bottom: 4px; padding: 3px 5px; border-width: 1.5px; }
}

@media (max-width: 390px) {
  .judge-main { width: min(100% - 20px, 1200px); }
  .criteria-grid { gap: 8px; }.criterion { padding: 12px; }.criterion h3 { font-size: 13px; }
  .rubric-list { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-contrast: more) {
  .judge-notice, .criterion p, .annotation-copy small { color: #342f2b; }
}
