/* TINUILU whitelist checker (prototype 20261008).
   Card/loket + verdict styles reused verbatim from the apply-page prototype (website-v2 styles.css, APPLY / LOKET + roast-card blocks).
   Self-contained: load after ./styles.css. */

.loket {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px; align-items: start; padding: 28px 0 0; max-width: 980px;
}
.loket-card { box-shadow: 0 4px 0 rgba(26,20,24,.22); }
.loket-body { padding: 18px 20px 22px; color: #f0e2d0; }
.loket-lede { margin: 0 0 16px; font-size: 1rem; line-height: 1.4; }
.loket-lede strong { color: #f0c44c; }
.loket-field { margin-bottom: 14px; }
.loket-field label {
  display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: .72rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f0c44c;
}
.loket-field input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 10px;
  background: #fffef8; color: var(--ink); font-family: var(--font-mono); font-size: .92rem;
}
.loket-field input:focus-visible { outline: 2px solid var(--pink-hot); outline-offset: 2px; }
.loket-prefix { display: grid; grid-template-columns: 44px 1fr; }
.loket-prefix span {
  display: grid; place-items: center; border: 3px solid var(--ink); border-right: 0;
  border-radius: 10px 0 0 10px; background: #ef85b4; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
}
.loket-prefix input { border-radius: 0 10px 10px 0; }
.loket-hint { margin: 6px 0 0; font-family: var(--font-mono); font-size: .7rem; opacity: .75; }
.loket-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.loket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.loket-submit { width: auto; margin: 0; padding: 12px 20px; font-size: 1.15rem; min-height: 52px; }
.loket-check {
  border: 0; background: transparent; color: #f0e2d0; padding: 8px 0; min-height: 44px; cursor: pointer;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px;
}
.loket-check:hover { color: #f0c44c; }
.loket-check:disabled { opacity: .5; cursor: wait; }
.loket-msg { min-height: 1.3em; margin: 12px 0 0; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; }
.loket-msg[data-tone="error"] { color: #ff9b84; }
.loket-msg[data-tone="success"] { color: #9fe0b8; }

.loket-result { position: relative; }
.loket-empty { margin: 8px 0; font-family: var(--font-mono); font-size: .8rem; opacity: .8; }
.loket-who { padding-right: 112px; margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.loket-who code { font-family: var(--font-mono); font-size: .76rem; font-weight: 500; opacity: .8; }
.loket-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 16px; }
.loket-stats dt {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #f0e2d0;
}
.loket-stats dd {
  margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.35rem, 3.4vw, 2rem); line-height: 1; color: #f0c44c;
}
.loket-meter { height: 18px; border: 3px solid var(--ink); border-radius: 999px; background: #f0e2d0; overflow: hidden; }
.loket-meter span { display: block; height: 100%; width: 0; background: #e9c661; transition: width .5s cubic-bezier(.2,1,.3,1); }
.loket-result[data-state="yes"] .loket-meter span { background: #8fd3a8; }
.loket-result[data-state="no"] .loket-meter span { background: #ef85b4; }
.loket-meter-label { margin: 8px 0 0; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; }
.loket-stamp {
  position: absolute; right: 16px; top: 62px; padding: 6px 12px; border: 4px solid currentColor; border-radius: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: .02em; transform: rotate(9deg); pointer-events: none; opacity: .92;
}
.loket-result[data-state="yes"] .loket-stamp { color: #8fd3a8; }
.loket-result[data-state="no"] .loket-stamp { color: #ff8f78; transform: rotate(-7deg); }
.loket-notes { margin: 14px 0 0; padding-left: 18px; font-size: .84rem; line-height: 1.35; }
.loket-notes:empty { display: none; }
.loket-notes li { margin-bottom: 4px; }
.loket-source { margin: 12px 0 0; font-family: var(--font-mono); font-size: .66rem; opacity: .65; }
.loket-chain-note { margin: -8px 0 14px; font-family: var(--font-mono); font-size: .7rem; opacity: .7; }
.loket-fine {
  grid-column: 1 / -1; margin: 4px 0 0; max-width: 70ch; font-family: var(--font-mono);
  font-size: .7rem; line-height: 1.5; color: rgba(26,20,24,.72);
}
@media (max-width: 760px) {
  .loket { grid-template-columns: 1fr; padding-top: 18px; }
  .loket-stamp { top: 58px; font-size: 1rem; }
}

/* roast-card apply v2 */
.roast-card {
  margin-top: 18px; padding: 16px 16px 18px; border: 3px solid var(--ink);
  border-radius: 12px; background: #fffef8; color: var(--ink); position: relative;
  box-shadow: 0 3px 0 rgba(26,20,24,.18);
}
.roast-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; padding-right: 8px;
}
.roast-card-label {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #8a6b3a;
}
.roast-stamp {
  position: static; transform: rotate(8deg); font-size: .95rem; padding: 4px 10px;
  flex-shrink: 0;
}
.loket-result[data-state="yes"] .roast-stamp { color: #2f7a4a; border-color: #2f7a4a; }
.loket-result[data-state="no"] .roast-stamp { color: #c44a32; border-color: #c44a32; transform: rotate(-6deg); }
.roast-text {
  margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.25; letter-spacing: -.02em; color: var(--ink);
}
.roast-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; color: #5a4a3a;
}
.roast-claim-note {
  margin: 14px 0 0; font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  line-height: 1.35; color: #5a3a18;
}
.roast-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center;
}
.roast-copy, .roast-share {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  box-shadow: 0 3px 0 rgba(26,20,24,.25); cursor: pointer;
}
.roast-copy {
  background: #fffef8; color: var(--ink); margin-top: 0;
}
.roast-copy:hover { filter: brightness(0.98); }
.roast-copy:disabled { opacity: .55; cursor: wait; }
.roast-share {
  margin-top: 0; background: #1da1f2; color: #fff; text-decoration: none;
}
.roast-share:hover { filter: brightness(1.06); color: #fff; }
.roast-share[hidden] { display: none; }
.roast-copy-msg {
  margin: 8px 0 0; font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
}
.roast-copy-msg[data-tone="success"] { color: #2f7a4a; }
.roast-copy-msg[data-tone="error"] { color: #c44a32; }
.roast-card-body { /* capture target: verdict + mascot */ }
.roast-card-main {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 4px;
}
.roast-mascot {
  flex: 0 0 auto; width: 118px; height: 118px; object-fit: contain;
  border: 3px solid var(--ink); border-radius: 14px; background: #f3ead8;
  image-rendering: auto;
}
.roast-mascot[hidden] { display: none; }
.roast-card-copy { flex: 1 1 auto; min-width: 0; }
@media (max-width: 520px) {
  .roast-card-main { flex-direction: column; align-items: center; text-align: center; }
  .roast-meta { justify-content: center; }
  .roast-mascot { width: 140px; height: 140px; }
}

/* ——— checker additions ——— */
.checker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 8px; }
.checker-rules { grid-column: 1 / -1; }
.checker .loket-field input { letter-spacing: .01em; }
.checker .loket-field input[aria-invalid="true"] { border-color: #c44a32; box-shadow: 0 0 0 3px rgba(255,155,132,.45); }
.checker-rule-list a, .checker-fine a { color: #f0c44c; text-underline-offset: 3px; }
.checker-credit {
  display: inline-block; margin: 14px 0 0; padding: 4px 10px;
  border: 2px solid #f0e2d0; border-radius: 999px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #f0e2d0; opacity: .8;
  transform: rotate(-2deg);
}
.checker-credit strong { color: #f0c44c; font-weight: 700; }

.checker .loket-result .loket-body { min-height: 100%; }
.checker .loket-empty { margin: 4px 0 0; }
.checker-verdict { margin-top: 0; }
.checker-verdict[hidden] { display: none; }
.checker-verdict .roast-stamp { position: static; }
.checker-sub {
  margin: 8px 0 0; font-family: var(--font-body); font-size: .92rem; line-height: 1.35; color: #3a2a30;
}
.checker-verdict .roast-meta code {
  font-family: var(--font-mono); font-size: .7rem; word-break: break-all; color: #5a4a3a;
}
.loket-result[data-state="yes"] .checker-verdict { background: #f3f8ec; }
.loket-result[data-state="no"] .checker-verdict { background: #fff4ee; }
.checker-verdict.is-in { animation: verdict-pop .26s cubic-bezier(.2,1.4,.4,1); }
@keyframes verdict-pop { from { transform: scale(.94) rotate(-1deg); opacity: .4; } to { transform: none; opacity: 1; } }

.checker-rule-list {
  margin: 0; padding: 0; list-style: none; counter-reset: rule;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px;
}
.checker-rule-list li {
  counter-increment: rule; position: relative; padding-left: 36px;
  font-size: .95rem; line-height: 1.4;
}
.checker-rule-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--ink);
  background: #e3b76c; border: 2px solid var(--ink); border-radius: 6px; padding: 1px 4px;
}
.checker-rule-list strong { color: #f0c44c; font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.checker-fine {
  margin: 18px 0 0; padding-top: 12px; border-top: 1px dashed rgba(240,226,208,.3);
  font-family: var(--font-mono); font-size: .72rem; opacity: .8;
}
@media (max-width: 760px) {
  .checker { grid-template-columns: 1fr; }
  .checker-rule-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .checker-verdict.is-in { animation: none; }
}

/* ——— share + save card (20261009) ——— */
.checker-share { margin-top: 16px; }
.checker-share[hidden] { display: none; }
.checker-share .roast-actions { margin-top: 0; }
.checker-share-x { gap: 8px; background: var(--ink); color: #f0e2d0; border-color: var(--ink); }
.checker-share-x:hover { color: #fff; filter: none; background: #000; }
.checker-share-x svg { display: block; }
.checker-share .roast-share:focus-visible, .checker-share .roast-copy:focus-visible,
.card-viewer .roast-copy:focus-visible { outline: 2px solid var(--pink-hot); outline-offset: 3px; }
.checker-share .roast-copy { border-color: var(--ink); }
.checker-share-tip {
  margin: 10px 0 0; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; opacity: .8;
}
.checker-share-tip[data-tone="error"] { color: #ff9b84; opacity: 1; }
.card-viewer {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px;
  background: rgba(26,20,24,.82);
}
.card-viewer[hidden] { display: none; }
.card-viewer-box { width: min(720px, 100%); text-align: center; }
.card-viewer-box img {
  width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; background: #f3ead8;
  -webkit-user-select: auto; user-select: auto; -webkit-touch-callout: default; pointer-events: auto;
}
.card-viewer-tip { margin: 12px 0; color: #f0e2d0; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; }
