/* ==========================================================================
   Experiment 01 · Designing the wrong answer (experiments/wrong-answer/).
   Eight failure states, eight visual languages. The grid and labels are
   Sumi (experiments.css); every .wa-screen below is its own small world and
   sets its own colour, type and corners. System font stacks only: the site
   loads no third-party font. Motion is transform/opacity and respects
   prefers-reduced-motion (final states shown, nothing plays).
   ========================================================================== */

.wa-grid { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
.wa-card { min-width: 0; position: relative; padding: var(--sp-4); border: 1px solid var(--line); background: rgba(10,11,13,.5); }
.wa-label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--sp-4); align-items: baseline; margin: 0 0 var(--sp-4); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.wa-label .n { color: var(--amb); white-space: nowrap; }
.wa-label i { font-style: normal; white-space: nowrap; text-align: right; }
.wa-label b { font-family: var(--display); font-weight: 500; font-size: var(--t-h4); letter-spacing: -.015em; text-transform: none; color: var(--ink); line-height: 1.15; }
.wa-label .h { color: var(--shu-text); white-space: nowrap; text-align: right; }
.wa-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; isolation: isolate; border: 1px solid rgba(245,242,235,.10); display: grid; }
.wa-screen > .wa-inner { padding: clamp(22px, 4.5%, 36px); display: flex; flex-direction: column; min-height: 0; }
.wa-why { margin: var(--sp-4) 0 0; color: var(--gray); font-size: var(--t-small); line-height: 1.55; }
.wa-why b { color: var(--ink); font-weight: 500; }

/* a shared rule: every screen has a user line, a reply, and one or two actions. Each skin styles them. */
.wa-user { margin: 0; }
.wa-reply { margin: 0; }
.wa-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.wa-btn { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
.wa-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wa-screen [hidden] { display: none !important; }

/* -------- 01 The refusal · Sumi -------- */
.skin-sumi { background: #080809; color: #F5F2EB; font-family: var(--sans); }
.skin-sumi::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.skin-sumi .wa-inner { justify-content: center; gap: 22px; }
.skin-sumi .wa-user { font-size: var(--t-caption); color: #8A8A85; letter-spacing: .02em; max-width: 36ch; }
.skin-sumi .wa-reply { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.22; letter-spacing: -.02em; max-width: 20ch; }
.skin-sumi .wa-reply em { font-family: var(--serif, "Instrument Serif"), Georgia, serif; font-style: italic; font-weight: 400; color: #F7225B; }
.skin-sumi .wa-dot { width: 10px; height: 10px; border-radius: 50%; background: #C31537; box-shadow: 0 0 0 6px rgba(195,21,55,.12); }
.skin-sumi .wa-actions { margin-top: 0; padding-top: 6px; }
.skin-sumi .wa-btn { border: 1px solid rgba(245,242,235,.18); border-radius: 999px; padding: 10px 18px; font-size: var(--t-caption); letter-spacing: .04em; background: rgba(245,242,235,.03); transition: background .3s, transform .3s; }
.skin-sumi .wa-btn:hover { background: rgba(245,242,235,.09); transform: translateY(-1px); }
.skin-sumi .wa-draft { font-size: var(--t-small); line-height: 1.5; color: #F5F2EB; border-left: 1px solid #C31537; padding-left: 16px; margin: 0; }
.skin-sumi .wa-draft small { display: block; color: #8A8A85; font-size: var(--t-label); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; }

/* -------- 02 Not sure · Editorial -------- */
.skin-paper { background: #F2EADB; color: #1E1A14; font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  background-image: linear-gradient(rgba(30,26,20,.045) 1px, transparent 1px); background-size: 100% 29px; background-position: 0 14px; }
.skin-paper .wa-inner { justify-content: center; gap: 16px; }
.skin-paper .wa-kick { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #8B7A5E; margin: 0; }
.skin-paper .wa-user { font-style: italic; font-size: 17px; color: #5B5042; max-width: 38ch; }
.skin-paper .wa-reply { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.01em; max-width: 22ch; }
.skin-paper .wa-reply .shaky { text-decoration: none; transition: background .4s; }
.skin-paper.is-doubt .wa-reply .shaky { text-decoration: underline wavy #B8431E; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.skin-paper .wa-sure { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 13px; color: #5B5042; }
.skin-paper .wa-sure i { flex: 0 0 120px; height: 3px; background: rgba(30,26,20,.14); position: relative; }
.skin-paper .wa-sure i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 66%; background: #1E1A14; }
.skin-paper .wa-foot { font-size: 14px; line-height: 1.5; color: #3B3328; border-top: 1px solid rgba(30,26,20,.25); padding-top: 10px; max-width: 46ch; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
.skin-paper.is-doubt .wa-foot { opacity: 1; transform: none; }
.skin-paper .wa-foot sup { color: #B8431E; font-family: var(--sans); margin-right: 4px; }
.skin-paper .wa-actions { margin-top: 0; padding-top: 4px; }
.skin-paper .wa-btn { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; color: #1E1A14; border-bottom: 1px solid #1E1A14; padding-bottom: 2px; }
.skin-paper .wa-btn:hover { color: #B8431E; border-color: #B8431E; }

/* -------- 03 Hallucination caught · Enterprise light -------- */
.skin-ent { background: #F4F6F9; color: #161616; font-family: var(--sans); font-size: 14px; }
.skin-ent .wa-inner { gap: 12px; padding: 0; }
.skin-ent .wa-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border-bottom: 1px solid #E0E4EA; font-size: 12px; color: #525252; }
.skin-ent .wa-bar b { font-weight: 600; color: #161616; }
.skin-ent .wa-bar i { width: 8px; height: 8px; border-radius: 50%; background: #24A148; margin-left: auto; }
.skin-ent .wa-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.skin-ent .wa-user { align-self: flex-end; background: #0F62FE; color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; max-width: 80%; line-height: 1.45; }
.skin-ent .wa-reply { background: #fff; border: 1px solid #E0E4EA; border-radius: 14px 14px 14px 4px; padding: 12px 14px; line-height: 1.5; max-width: 92%; min-height: 3.5em; }
.skin-ent .wa-reply .cite { color: #0F62FE; text-decoration: underline; text-decoration-color: rgba(15,98,254,.4); text-underline-offset: 3px; }
.skin-ent .wa-reply .cite.is-bad { color: #DA1E28; text-decoration: line-through; text-decoration-color: #DA1E28; }
.skin-ent .wa-reply .fix { display: block; margin-top: 8px; }
.skin-ent .wa-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: #EDF5FF; color: #0043CE; border: 1px solid #D0E2FF; align-self: flex-start; min-height: 28px; }
.skin-ent .wa-chip i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #0F62FE; border-right-color: transparent; }
.skin-ent .wa-chip.is-bad { background: #FFF1F1; color: #A2191F; border-color: #FFD7D9; }
.skin-ent .wa-chip.is-bad i { border: 0; width: 8px; height: 8px; border-radius: 50%; background: #DA1E28; }
.skin-ent .wa-chip.is-ok { background: #DEFBE6; color: #0E6027; border-color: #A7F0BA; }
.skin-ent .wa-chip.is-ok i { border: 0; width: 8px; height: 8px; border-radius: 50%; background: #24A148; }
.skin-ent .wa-actions { padding: 0 18px 18px; margin-top: 0; }
.skin-ent .wa-btn { font-size: 13px; font-weight: 500; color: #0F62FE; padding: 8px 12px; border-radius: 4px; border: 1px solid #0F62FE; background: #fff; }
.skin-ent .wa-btn:hover { background: #EDF5FF; }
.skin-ent .wa-btn.is-quiet { border-color: #C6C6C6; color: #393939; }
.skin-ent .wa-cursor::after { content: "▍"; color: #0F62FE; animation: wa-blink 1s steps(2) infinite; }
.skin-ent.is-live .wa-chip i { animation: wa-spin .9s linear infinite; }

/* -------- 04 Bad tool call · Terminal -------- */
.skin-term { background: #07100A; color: #8DF2A6; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.5px; }
.skin-term::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); opacity: .55; }
.skin-term .wa-inner { padding: 20px 22px; }
.skin-term .wa-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; line-height: 1.5; }
.skin-term .wa-log li { opacity: 0; transform: translateY(3px); white-space: pre-wrap; }
.skin-term .wa-log li.is-on { opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
.skin-term .wa-log .err { color: #FF7A6B; }
.skin-term .wa-log .dim { color: #4E8C60; }
.skin-term .wa-log .me { color: #E8FFEE; }
.skin-term .wa-actions { padding-top: 14px; gap: 14px; }
.skin-term .wa-btn { color: #8DF2A6; border: 1px solid #2E6B40; padding: 6px 12px; font-family: inherit; font-size: inherit; }
.skin-term .wa-btn:hover { background: rgba(141,242,166,.12); }
.skin-term .wa-btn.is-run { border-color: #8DF2A6; }
.skin-term .wa-cur { display: inline-block; width: .6em; height: 1.05em; background: #8DF2A6; vertical-align: -2px; animation: wa-blink 1s steps(2) infinite; }

/* -------- 05 Limit reached · Pop -------- */
.skin-pop { background: #FFD83D; color: #141414; font-family: var(--sans); }
.skin-pop .wa-inner { justify-content: center; }
.skin-pop .wa-box { background: #fff; border: 3px solid #141414; border-radius: 22px; box-shadow: 8px 8px 0 #141414; padding: 22px 24px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center; }
.skin-pop .wa-ring { width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#FF4F79 var(--p, 100%), #F0F0F0 0); display: grid; place-items: center; position: relative; }
.skin-pop .wa-ring::before { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.skin-pop .wa-ring b { position: relative; font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.skin-pop .wa-reply { font-weight: 600; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; letter-spacing: -.02em; }
.skin-pop .wa-sub { margin: 8px 0 0; font-size: 14px; color: #3A3A3A; line-height: 1.45; }
.skin-pop .wa-sub b { font-weight: 600; color: #141414; font-variant-numeric: tabular-nums; }
.skin-pop .wa-actions { margin-top: 18px; padding-top: 0; }
.skin-pop .wa-btn { background: #141414; color: #fff; font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 999px; border: 3px solid #141414; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.skin-pop .wa-btn:hover { transform: translateY(-2px) rotate(-1.5deg); }
.skin-pop .wa-btn:active { transform: translateY(1px) scale(.98); }
.skin-pop .wa-btn.is-quiet { background: #fff; color: #141414; }
.skin-pop .wa-btn.is-done { background: #2BB673; border-color: #141414; }

/* -------- 06 Ambiguous · Brutalist -------- */
.skin-brut { background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; }
.skin-brut .wa-inner { padding: 0; }
.skin-brut .wa-user { padding: 16px 20px; border-bottom: 3px solid #000; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.skin-brut .wa-user b { font-weight: 700; }
.skin-brut .wa-reply { padding: 18px 20px 12px; font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.skin-brut .wa-hint { padding: 0 20px 16px; margin: auto 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.skin-brut .wa-opts { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid #000; margin-top: auto; }
.skin-brut .wa-btn { text-align: left; padding: 16px 18px 18px; font-weight: 700; font-size: 15px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; border-right: 3px solid #000; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: background .12s, color .12s; }
.skin-brut .wa-btn:last-child { border-right: 0; }
.skin-brut .wa-btn small { font-weight: 400; font-size: 12px; letter-spacing: .08em; }
.skin-brut .wa-btn:hover { background: #000; color: #fff; }
.skin-brut .wa-btn.is-picked { background: #000; color: #fff; }
.skin-brut .wa-btn.is-picked small::after { content: "  ✓ DOING THAT"; }
.skin-brut .wa-btn:focus-visible { outline-offset: -6px; }

/* -------- 07 Corrected · Swiss -------- */
.skin-swiss { background: #fff; color: #111; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; }
.skin-swiss .wa-inner { gap: 14px; }
.skin-swiss .wa-user { font-size: 13px; color: #555; letter-spacing: .01em; border-bottom: 2px solid #E30613; padding-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.skin-swiss .wa-user b { color: #111; font-weight: 700; }
.skin-swiss .wa-tot { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; }
.skin-swiss .wa-tot span { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #555; }
.skin-swiss .wa-tot b { font-weight: 700; font-size: clamp(30px, 3vw, 40px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.skin-swiss .wa-tot b s { color: #999; font-weight: 400; margin-right: 10px; font-size: .6em; vertical-align: 6px; text-decoration-color: #E30613; }
.skin-swiss .wa-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 14px; font-size: 12px; font-variant-numeric: tabular-nums; }
.skin-swiss .wa-rows li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #DADADA; padding: 4px 0; color: #444; }
.skin-swiss .wa-rows li.is-new { color: #E30613; font-weight: 700; border-bottom-color: #E30613; opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s; }
.skin-swiss.is-shown .wa-rows li.is-new { opacity: 1; transform: none; }
.skin-swiss .wa-reply { font-size: 14px; line-height: 1.45; color: #111; max-width: 46ch; }
.skin-swiss .wa-reply b { color: #E30613; font-weight: 700; }
.skin-swiss .wa-actions { padding-top: 10px; }
.skin-swiss .wa-btn { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: #111; border-bottom: 2px solid #111; padding-bottom: 3px; }
.skin-swiss .wa-btn:hover { color: #E30613; border-color: #E30613; }

/* -------- 08 Out of date · Receipt -------- */
.skin-rcpt { background: #CFCBC2; color: #2B2B2B; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace; }
.skin-rcpt .wa-inner { align-items: center; justify-content: center; padding: 18px; }
.skin-rcpt .wa-paper { width: min(100%, 330px); background: #FBF9F3; color: #262626; padding: 22px 20px 26px; font-size: 12.5px; line-height: 1.6; letter-spacing: .01em; position: relative; box-shadow: 0 12px 28px rgba(0,0,0,.18);
  -webkit-mask: linear-gradient(#000, #000) padding-box, radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) bottom / 12px 12px repeat-x; }
.skin-rcpt .wa-paper { mask-composite: exclude; -webkit-mask-composite: xor; }
.skin-rcpt .wa-paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.skin-rcpt .wa-paper p { margin: 0; white-space: pre-wrap; }
.skin-rcpt .wa-paper .c { text-align: center; }
.skin-rcpt .wa-paper .rule { border: 0; border-top: 1px dashed #7A7872; margin: 8px 0; }
.skin-rcpt .wa-paper .stamp { display: inline-block; border: 2px solid #B8431E; color: #B8431E; padding: 2px 8px; font-weight: 700; letter-spacing: .14em; transform: rotate(-3deg); margin: 6px 0 4px; }
.skin-rcpt .wa-paper .faint { color: #5A5853; }
.skin-rcpt .wa-live { overflow: hidden; max-height: 0; transition: max-height .8s ease; }
.skin-rcpt.is-live .wa-live { max-height: 120px; }
.skin-rcpt .wa-actions { margin-top: 10px; padding-top: 0; width: min(100%, 330px); justify-content: center; }
.skin-rcpt .wa-btn { font-family: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #262626; border: 1px solid #262626; padding: 8px 12px; background: #FBF9F3; }
.skin-rcpt .wa-btn:hover { background: #262626; color: #FBF9F3; }

@keyframes wa-blink { to { opacity: 0; } }
@keyframes wa-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .wa-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .wa-screen { aspect-ratio: auto; min-height: 400px; }
}
@media (max-width: 480px) {
  .skin-brut .wa-hint { padding: 0 20px 16px; margin: auto 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.skin-brut .wa-opts { grid-template-columns: 1fr; }
  .skin-brut .wa-btn { border-right: 0; border-bottom: 3px solid #000; min-height: 0; }
  .skin-brut .wa-btn:last-child { border-bottom: 0; }
  .skin-swiss .wa-rows { grid-template-columns: repeat(2, 1fr); }
  .skin-pop .wa-box { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-screen, .wa-screen * { animation: none !important; transition: none !important; }
  .skin-ent .wa-cursor::after, .skin-term .wa-cur { display: none; }
}
