@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fredoka:wght@500;600;700&family=Nunito:wght@500;600;700;800&display=swap');

:root {
  --ink: #2e2630;
  --muted: #76656a;
  --paper: #fffaf0;
  --cream: #fff0ca;
  --orange: #e8a24a;
  --coral: #ed735d;
  --blue: #81cad0;
  --green: #a9d17d;
  --lavender: #b6a2d9;
  --line: #302832;
  --shadow: 0 12px 0 rgba(46,38,48,.13), 0 25px 45px rgba(88,55,36,.15);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 16%, rgba(255,255,255,.72) 0 2px, transparent 2.5px),
    radial-gradient(circle at 86% 34%, rgba(255,255,255,.58) 0 2px, transparent 2.5px),
    linear-gradient(145deg, #f5d997 0%, #ffd7c6 48%, #bee1dc 100%);
  background-size: 180px 180px, 240px 240px, auto;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
.paper-shape { position: fixed; z-index: 0; pointer-events: none; opacity: .64; }
.shape-left { width: 290px; height: 260px; left: -150px; top: 54%; background: var(--coral); border-radius: 48% 52% 60% 40%; transform: rotate(-15deg); }
.shape-right { width: 340px; height: 220px; right: -150px; top: 8%; background: var(--blue); border-radius: 48% 52% 38% 62%; transform: rotate(18deg); }
.bentham-app { position: relative; z-index: 1; width: min(100% - 30px, 1040px); margin: 0 auto; padding: 24px 0 20px; }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; padding-right: 182px; }
.home-link, .text-link { color: var(--ink); font-weight: 800; text-underline-offset: 4px; }
.home-link { font: 500 .72rem 'DM Mono', monospace; text-decoration: none; background: rgba(255,250,240,.66); border: 2px solid rgba(46,38,48,.85); padding: 8px 11px; border-radius: 999px; }
.home-link:hover { background: var(--paper); transform: rotate(-2deg); }
.privacy-chip { color: #594c50; text-align: right; font: 500 .63rem 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.screen { background: rgba(255,250,240,.87); border: 3px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; }
.intro-screen { min-height: 730px; padding: clamp(28px, 6vw, 62px); position: relative; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 620px); }
.eyebrow { margin: 0 0 10px; color: #816b6a; font: 500 .72rem 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .11em; }
.eyebrow span { color: var(--coral); font-size: 1.1em; }
h1, h2, h3, .primary-button, .dilemma-text { font-family: 'Fredoka', sans-serif; }
h1 { max-width: 690px; margin: 0; font: 700 clamp(3.1rem, 8vw, 6.5rem)/.86 'Fredoka', sans-serif; letter-spacing: -.07em; }
h1 span { display: block; color: var(--coral); text-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); transform-origin: left; }
.hero-lede { max-width: 555px; margin: 28px 0 0; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.52; font-weight: 700; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 27px; }
.round-note { color: var(--muted); font: 500 .65rem 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.hero-stage { position: absolute; right: clamp(15px, 6vw, 78px); top: 90px; width: 345px; height: 340px; transform: rotate(3deg); }
.hero-stage img { position: absolute; inset: -25px 0 0; width: 100%; height: 100%; object-fit: contain; filter: saturate(1.06) contrast(1.02) drop-shadow(7px 8px 0 rgba(46,38,48,.72)); }
.thought-cloud { position: absolute; z-index: 2; display: grid; place-items: center; width: 54px; height: 48px; border: 3px solid var(--line); border-radius: 50%; font: 700 1.7rem 'Fredoka'; box-shadow: 4px 5px 0 var(--line); }
.cloud-one { right: 4px; top: -15px; background: var(--blue); transform: rotate(9deg); }
.cloud-two { left: 26px; top: 33px; width: 42px; height: 39px; background: var(--green); transform: rotate(-11deg); }
.stage-sticker { position: absolute; z-index: 3; padding: 7px 9px; border: 2px solid var(--line); background: var(--orange); box-shadow: 3px 4px 0 var(--line); font: 700 .66rem 'DM Mono'; }
.sticker-top { left: 13px; top: 111px; transform: rotate(-11deg); }
.sticker-bottom { right: 10px; bottom: 32px; background: var(--coral); transform: rotate(10deg); }
.intro-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 17px; margin-top: 103px; }
.method-card, .how-to-card { border: 3px solid var(--line); background: var(--cream); padding: 19px 21px; }
.method-card { transform: rotate(-.7deg); }
.how-to-card { display: flex; align-items: flex-start; gap: 13px; background: rgba(129,202,208,.38); transform: rotate(1deg); }
.card-label { margin: 0 0 6px; color: #8b6e53; font: 500 .63rem 'DM Mono'; text-transform: uppercase; letter-spacing: .09em; }
.method-card h2 { margin: 0 0 4px; font-size: 1.65rem; line-height: 1; }
.method-card > p:not(.card-label) { margin: 0; font-size: .84rem; line-height: 1.4; }
.calculus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 17px; }
.calculus-grid > div { display: grid; grid-template-columns: 25px 1fr; column-gap: 6px; align-items: center; }
.calculus-grid b, .section-number { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid var(--line); border-radius: 50%; background: var(--coral); font: 700 .77rem 'Fredoka'; }
.calculus-grid > div:nth-child(2) b { background: var(--blue); }
.calculus-grid > div:nth-child(3) b { background: var(--green); }
.calculus-grid > div:nth-child(4) b { background: var(--lavender); }
.calculus-grid strong { font-size: .7rem; }
.calculus-grid small { grid-column: 2; color: var(--muted); font-size: .61rem; line-height: 1.15; }
.how-to-number { flex: 0 0 auto; font: 700 1rem 'DM Mono'; color: var(--ink); }
.how-to-card strong { display: block; font: 700 1.05rem 'Fredoka'; }
.how-to-card p { margin: 5px 0 0; color: #62545a; font-size: .82rem; line-height: 1.45; }
.primary-button, .secondary-button { border: 3px solid var(--line); color: var(--ink); border-radius: 14px 20px 13px 18px; padding: 12px 17px; font-size: 1rem; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.primary-button { background: var(--orange); box-shadow: 5px 6px 0 var(--line); }
.primary-button:hover:not(:disabled) { transform: translate(2px, 2px) rotate(-1deg); box-shadow: 3px 4px 0 var(--line); background: #f2b760; }
.primary-button:active:not(:disabled) { transform: translate(5px, 6px); box-shadow: none; }
.primary-button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.secondary-button { background: rgba(255,255,255,.45); box-shadow: 3px 4px 0 rgba(46,38,48,.75); }
.secondary-button:hover { transform: translateY(-2px); background: var(--paper); }
.big-button { min-width: 220px; }
.primary-button span { margin-left: 8px; font-size: 1.2em; }
.game-screen { padding: clamp(22px, 5vw, 50px); }
.game-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.game-topline h2 { max-width: 630px; margin: 0; font-size: clamp(1.9rem, 4.5vw, 3.5rem); line-height: .96; letter-spacing: -.04em; }
.score-box { flex: 0 0 auto; min-width: 112px; padding: 9px 12px; border: 3px solid var(--line); background: var(--green); text-align: center; transform: rotate(3deg); }
.score-box span { display: block; font: 500 .5rem 'DM Mono'; text-transform: uppercase; line-height: 1.2; }
.score-box strong { display: block; margin-top: 3px; font: 700 1.65rem 'Fredoka'; }
.progress-wrap { margin: 27px 0 18px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--muted); font: 500 .63rem 'DM Mono'; text-transform: uppercase; }
.progress-track { height: 12px; overflow: hidden; border: 2px solid var(--line); border-radius: 999px; background: #efdfc4; }
.progress-bar { width: 0; height: 100%; background: repeating-linear-gradient(135deg, var(--coral) 0 10px, #f4ac78 10px 18px); transition: width .4s ease; }
.dilemma-card { display: grid; grid-template-columns: 215px 1fr; min-height: 260px; margin: 0 0 25px; border: 3px solid var(--line); border-radius: 24px 16px 24px 13px; background: var(--lavender); box-shadow: 8px 9px 0 var(--line); transform: rotate(.55deg); overflow: hidden; }
.dilemma-art { position: relative; display: grid; place-items: center; padding: 15px; background: rgba(255,250,240,.45); border-right: 3px solid var(--line); }
.dilemma-art svg { width: 100%; max-width: 190px; max-height: 210px; overflow: visible; }
.dilemma-art.has-character > svg { width: 145px; margin-left: -42px; }
.dilemma-character { position: absolute; z-index: 2; right: 3px; bottom: 4px; width: 82px; height: 132px; object-fit: contain; filter: drop-shadow(3px 4px 0 rgba(46,38,48,.35)); transform: rotate(3deg); pointer-events: none; }
.dilemma-copy { padding: clamp(22px, 4vw, 35px); }
.dilemma-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #55475b; font: 500 .62rem 'DM Mono'; text-transform: uppercase; letter-spacing: .08em; }
.dilemma-meta span:first-child { display: grid; place-items: center; width: 34px; height: 28px; border: 2px solid var(--line); background: var(--orange); transform: rotate(-3deg); }
.dilemma-meta span:last-child { padding: 5px 7px; border: 2px solid var(--line); background: rgba(255,250,240,.62); }
.dilemma-copy h3 { max-width: 680px; margin: 20px 0 10px; font-size: clamp(1.65rem, 4vw, 2.75rem); line-height: .99; letter-spacing: -.04em; }
.dilemma-copy > p:not(.question-prompt) { max-width: 730px; margin: 0; font-size: .98rem; line-height: 1.53; font-weight: 700; }
.question-prompt { margin: 20px 0 0; font: 700 1rem 'Fredoka'; }
.choice-form { margin-top: 15px; }
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.action-choice { position: relative; }
.action-choice input { position: absolute; opacity: 0; pointer-events: none; }
.action-face { display: block; height: 100%; padding: 15px 16px; border: 3px solid var(--line); border-radius: 15px 11px 14px 10px; background: var(--paper); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.action-face:hover { transform: translateY(-2px) rotate(-.6deg); }
.action-choice input:focus-visible + .action-face { outline: 4px solid #328d95; outline-offset: 2px; }
.action-choice input:checked + .action-face { background: var(--orange); box-shadow: 5px 5px 0 var(--line); transform: translate(2px, 2px); }
.action-face b { display: block; margin-bottom: 5px; font: 700 1.15rem 'Fredoka'; }
.action-face small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.reflection-block, .difficulty-block { margin: 23px 0 0; }
.reflection-block > label, .difficulty-block legend { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 0; border: 0; font-size: .9rem; font-weight: 800; }
.reflection-block label strong, .difficulty-block legend strong { display: block; font-size: 1rem; }
.reflection-block label small, .difficulty-block legend small { display: block; margin-top: 2px; color: var(--muted); font-size: .73rem; line-height: 1.35; font-weight: 500; }
.section-number { flex: 0 0 auto; background: var(--coral); }
textarea { display: block; width: 100%; min-height: 90px; margin-top: 10px; padding: 12px 14px; border: 3px solid var(--line); border-radius: 13px 11px 15px 9px; color: var(--ink); background: #fffdf8; font-size: .92rem; line-height: 1.45; resize: vertical; }
textarea:focus { outline: 4px solid rgba(59,156,165,.32); border-color: #348c94; }
.input-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; color: var(--muted); font-size: .7rem; }
#motivation-count { white-space: nowrap; font: 500 .65rem 'DM Mono'; }
.difficulty-block { padding: 0; border: 0; }
.difficulty-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 11px; }
.difficulty-grid label { display: block; }
.difficulty-grid input { position: absolute; opacity: 0; pointer-events: none; }
.difficulty-grid label span { display: grid; place-items: center; padding: 9px 5px 8px; border: 2px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.48); cursor: pointer; transition: transform .15s, background .15s; }
.difficulty-grid label span:hover { transform: translateY(-2px); }
.difficulty-grid input:focus-visible + span { outline: 4px solid rgba(59,156,165,.45); outline-offset: 2px; }
.difficulty-grid input:checked + span { background: var(--blue); transform: translateY(2px); box-shadow: 3px 3px 0 var(--line); }
.difficulty-grid b { font: 700 1.15rem 'Fredoka'; }
.difficulty-grid small { color: var(--muted); font-size: .65rem; }
.submit-button { width: 100%; margin-top: 22px; }
.form-hint { min-height: 1.2em; margin: 10px 0 0; color: var(--muted); text-align: center; font-size: .75rem; }
.feedback-panel { position: relative; display: grid; grid-template-columns: 55px 1fr; gap: 0 15px; margin-top: 25px; padding: 24px; border: 3px solid var(--line); background: var(--cream); transform: rotate(-.65deg); }
.feedback-mark { display: grid; place-items: center; width: 50px; height: 50px; border: 3px solid var(--line); border-radius: 47% 53% 48% 52%; background: var(--green); font: 700 1.8rem 'Fredoka'; transform: rotate(-12deg); }
.feedback-kicker { margin: 0 0 3px; color: #856852; font: 500 .63rem 'DM Mono'; text-transform: uppercase; }
.feedback-panel h3 { margin: 0 0 8px; font-size: 1.9rem; line-height: 1; }
.feedback-panel > div:nth-child(2) > p:last-child { max-width: 700px; margin: 0; line-height: 1.5; font-size: .91rem; }
.calculation-note { grid-column: 1 / -1; margin-top: 20px; padding: 12px 14px; border-left: 6px solid var(--blue); background: rgba(255,255,255,.57); }
.calculation-note span { font: 500 .62rem 'DM Mono'; text-transform: uppercase; }
.calculation-note p { margin: 5px 0 0; font-size: .83rem; line-height: 1.45; }
.next-button { grid-column: 1 / -1; justify-self: end; margin-top: 20px; }
.profile-screen { min-height: 600px; padding: clamp(32px, 7vw, 72px); text-align: center; }
.profile-screen > h2 { max-width: 720px; margin: 0 auto 15px; font-size: clamp(2.5rem, 7vw, 5rem); line-height: .94; letter-spacing: -.05em; }
.profile-score { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 0 auto 17px; }
.profile-score strong { color: var(--coral); font: 700 clamp(2.8rem, 7vw, 5rem) 'Fredoka'; }
.profile-score span { max-width: 180px; color: var(--muted); text-align: left; font-size: .85rem; line-height: 1.3; }
.profile-meter { width: min(100%, 670px); height: 18px; margin: 0 auto; padding: 2px; border: 2px solid var(--line); border-radius: 999px; background: #efdfc4; }
.profile-meter div { width: 0; height: 100%; border-radius: 999px; background: repeating-linear-gradient(135deg, var(--coral) 0 12px, var(--orange) 12px 23px); transition: width .8s ease; }
.profile-summary { max-width: 660px; margin: 20px auto 28px; font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.profile-reflection { max-width: 850px; margin: 30px auto 0; padding: 23px; border: 3px solid var(--line); background: var(--cream); transform: rotate(-.45deg); }
.profile-reflection-heading h3 { margin: 14px 0 7px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: .98; }
.profile-reflection-heading p { max-width: 690px; margin: 0; color: #665960; font-size: .91rem; line-height: 1.5; }
.profile-reflection-form { margin-top: 20px; }
.argument-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.argument-card { padding: 16px; border: 3px solid var(--line); background: #fffdf8; }
.argument-pro { background: rgba(169,209,125,.28); transform: rotate(-.35deg); }
.argument-con { background: rgba(237,115,93,.15); transform: rotate(.35deg); }
.argument-card label { display: block; }
.argument-label { display: inline-block; margin-bottom: 8px; padding: 5px 7px; border: 2px solid var(--line); background: var(--green); font: 500 .61rem 'DM Mono'; text-transform: uppercase; }
.argument-con .argument-label { background: var(--coral); }
.argument-card label strong { display: block; min-height: 2.5em; font: 700 1.05rem 'Fredoka'; line-height: 1.08; }
.argument-card textarea { min-height: 105px; margin-top: 12px; }
.argument-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 5px; color: var(--muted); font-size: .7rem; }
.argument-footer span { white-space: nowrap; font: 500 .65rem 'DM Mono'; }
.profile-reflection-form .big-button { display: block; margin: 22px auto 0; }
.profile-reflection-hint { min-height: 1.2em; margin: 11px 0 0; color: var(--muted); text-align: center; font-size: .75rem; }
.reflection-recap { max-width: 850px; margin: 24px auto 28px; padding: 18px; border: 3px dashed var(--line); background: rgba(129,202,208,.25); text-align: left; }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.recap-grid strong { display: block; margin-bottom: 4px; font: 700 1rem 'Fredoka'; }
.recap-grid p { margin: 0; color: #665960; font-size: .83rem; line-height: 1.45; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.profile-note, .axis-list { border: 3px solid var(--line); padding: 20px; background: rgba(129,202,208,.35); }
.profile-note { background: var(--cream); transform: rotate(-.7deg); }
.profile-stamp { display: inline-block; padding: 6px 8px; border: 2px solid var(--line); background: var(--coral); font: 500 .62rem 'DM Mono'; text-transform: uppercase; transform: rotate(-4deg); }
.profile-note h3 { margin: 17px 0 8px; font-size: 1.6rem; line-height: 1; }
.profile-note p { margin: 0; color: #665960; font-size: .83rem; line-height: 1.5; }
.axis-list .card-label { margin-bottom: 17px; }
.axis-row { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 10px; margin: 14px 0; font-size: .79rem; font-weight: 800; }
.axis-row > div { height: 11px; overflow: hidden; border: 2px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); }
.axis-row i { display: block; width: 0; height: 100%; background: var(--orange); transition: width .7s ease; }
.axis-row:nth-child(3) i { background: var(--blue); }
.axis-row:nth-child(4) i { background: var(--coral); }
.axis-row:nth-child(5) i { background: var(--green); }
.profile-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.profile-actions .big-button { margin: 0; }
.profile-actions .text-link { width: 100%; margin-top: 4px; font-size: .82rem; }
.extended-note { margin: 25px auto 0; color: var(--muted); font-size: .8rem; }
.app-footer { padding: 19px 10px 0; color: #665a60; text-align: center; font-size: .68rem; line-height: 1.4; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero-stage { position: relative; top: auto; right: auto; margin: 58px auto 0; }
  .intro-grid { margin-top: 47px; }
}
@media (max-width: 680px) {
  .bentham-app { width: min(100% - 18px, 1040px); padding-top: 13px; }
  .app-header { margin-bottom: 14px; padding: 46px 0 0; align-items: flex-start; }
  .privacy-chip { max-width: 155px; line-height: 1.35; }
  .intro-screen { min-height: 0; padding: 27px 21px 31px; }
  .hero-stage { width: min(100%, 335px); height: 315px; margin-top: 56px; transform: scale(.9) rotate(3deg); }
  .intro-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 29px; }
  .calculus-grid { grid-template-columns: repeat(2, 1fr); }
  .game-screen { padding: 22px 17px 28px; }
  .dilemma-card { grid-template-columns: 1fr; }
   .dilemma-art { min-height: 155px; border-right: 0; border-bottom: 3px solid var(--line); }
  .dilemma-art svg { max-height: 145px; }
   .dilemma-art.has-character > svg { width: 150px; margin-left: -38px; }
   .dilemma-character { right: 12%; width: 70px; height: 112px; }
  .dilemma-copy { padding: 22px 19px 26px; }
   .profile-reflection { padding: 18px 15px; }
   .argument-grid, .recap-grid { grid-template-columns: 1fr; gap: 11px; }
   .argument-card label strong { min-height: 0; }
  .profile-columns { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .privacy-chip { font-size: .54rem; }
  .hero-stage { width: 100%; height: 285px; transform: scale(.82) rotate(3deg); margin-top: 39px; }
  .action-grid { grid-template-columns: 1fr; gap: 9px; }
  .difficulty-grid { gap: 4px; }
  .difficulty-grid label span { padding-left: 2px; padding-right: 2px; }
  .difficulty-grid small { font-size: .56rem; }
  .game-topline { gap: 10px; }
  .score-box { min-width: 92px; padding: 7px 7px; }
  .score-box strong { font-size: 1.35rem; }
  .profile-score { align-items: flex-end; }
  .profile-score span { max-width: 145px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}