:root{
  color-scheme: dark;
  --bg: #070907;
  --panel: rgba(15, 20, 15, .84);
  --panel-strong: rgba(21, 29, 22, .94);
  --line: rgba(226, 255, 235, .14);
  --text: #f4fff6;
  --muted: rgba(244, 255, 246, .66);
  --quiet: rgba(244, 255, 246, .48);
  --mint: #28f0a2;
  --lime: #ceff5e;
  --coral: #ff5f6d;
  --cyan: #38e4dd;
  --yellow: #ffe66d;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(40, 240, 162, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 240, 162, .035) 1px, transparent 1px),
    radial-gradient(circle at 15% 8%, rgba(255, 95, 109, .16), transparent 28%),
    linear-gradient(135deg, #070907 0%, #11180f 44%, #080b08 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

body.has-share-dialog{
  overflow: hidden;
}

button,
input{
  font: inherit;
}

button{
  -webkit-tap-highlight-color: transparent;
}

.app-shell{
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 44px;
}

.hero-strip{
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.25fr) minmax(180px, .6fr);
  gap: 16px;
  align-items: stretch;
  min-height: 214px;
  border: 1px solid rgba(244, 255, 246, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(40, 240, 162, .12), transparent 32%),
    linear-gradient(120deg, rgba(255, 95, 109, .18), transparent 52%),
    rgba(7, 9, 7, .76);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-strip::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 8px);
  mix-blend-mode: screen;
}

.brand-lockup{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--mint), var(--cyan) 42%, var(--coral) 43%, var(--yellow));
  box-shadow: 0 0 30px rgba(40, 240, 162, .34);
}

.hero-copy{
  padding: 24px 8px 24px 0;
  align-self: center;
  position: relative;
  z-index: 1;
}

.eyebrow{
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p{
  margin-top: 0;
}

.hero-title{
  max-width: 720px;
  margin-bottom: 12px;
  font-size: 58px;
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy p:last-child{
  max-width: 560px;
  margin: 0;
  color: rgba(244, 255, 246, .74);
  font-size: 17px;
  line-height: 1.75;
}

.story-shot{
  margin: 0;
  min-height: 100%;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(244, 255, 246, .12);
}

.story-shot img{
  width: 100%;
  height: 100%;
  min-height: 214px;
  display: block;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.story-shot::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,9,7,.26), rgba(7,9,7,.62));
}

.workspace{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.quiz-panel,
.report-panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 255, 246, .06), rgba(244, 255, 246, .015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.quiz-panel{
  min-height: 640px;
  padding: 22px;
}

.panel-head,
.report-top,
.action-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title,
.report-top h2{
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.panel-head p:last-child{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.progress-chip{
  min-width: 76px;
  padding: 9px 12px;
  border: 1px solid rgba(40, 240, 162, .26);
  border-radius: var(--radius);
  color: var(--mint);
  font-weight: 900;
  text-align: center;
  background: rgba(40, 240, 162, .08);
}

.progress-bar{
  height: 9px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(244, 255, 246, .09);
}

.progress-bar i{
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint), var(--cyan));
  transition: width .24s ease;
}

.flow-hint{
  margin: -6px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 230, 109, .18);
  border-radius: var(--radius);
  color: rgba(244, 255, 246, .76);
  background: rgba(255, 230, 109, .055);
  font-size: 13px;
  line-height: 1.55;
}

.question-stage{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.question-card{
  min-height: 198px;
  padding: 16px;
  border: 1px solid rgba(244, 255, 246, .13);
  border-radius: var(--radius);
  background: rgba(244, 255, 246, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.question-card.needs-answer{
  border-color: rgba(255, 230, 109, .74);
  box-shadow: 0 0 26px rgba(255, 230, 109, .14);
}

.question-card h3{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.32;
}

.question-card small{
  display: block;
  min-height: 34px;
  color: var(--quiet);
  line-height: 1.45;
}

.option-grid{
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.option{
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 255, 246, .12);
  border-radius: var(--radius);
  color: rgba(244, 255, 246, .84);
  background: rgba(7, 9, 7, .42);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.option:hover{
  transform: translateY(-1px);
  border-color: rgba(40, 240, 162, .48);
}

.option.active{
  border-color: rgba(40, 240, 162, .92);
  color: #07100b;
  background: linear-gradient(90deg, var(--mint), var(--lime));
  box-shadow: 0 0 24px rgba(40, 240, 162, .22);
  font-weight: 900;
}

.tone-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(40, 240, 162, .24);
  border-radius: var(--radius);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(40, 240, 162, .09), rgba(255, 95, 109, .055)),
    rgba(7, 9, 7, .48);
  box-shadow: inset 0 0 28px rgba(40, 240, 162, .06);
}

.tone-row > span{
  color: var(--text);
  font-weight: 900;
}

.tone-options{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tone-options label{
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(244, 255, 246, .22);
  border-radius: var(--radius);
  color: rgba(244, 255, 246, .78);
  background:
    linear-gradient(180deg, rgba(244, 255, 246, .10), rgba(244, 255, 246, .035)),
    rgba(7, 9, 7, .52);
  cursor: pointer;
  font-weight: 950;
  transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.tone-options label:hover{
  transform: translateY(-1px);
  border-color: rgba(40, 240, 162, .58);
  color: var(--text);
  box-shadow: 0 0 18px rgba(40, 240, 162, .10);
}

.tone-options label:has(input:checked){
  color: #07100b;
  border-color: transparent;
  background: linear-gradient(90deg, var(--mint), var(--lime));
  box-shadow: 0 0 26px rgba(40, 240, 162, .26);
}

.tone-options label.is-active{
  color: #07100b;
  border-color: transparent;
  background: linear-gradient(90deg, var(--mint), var(--lime));
  box-shadow: 0 0 26px rgba(40, 240, 162, .26);
}

.tone-options label.is-active:hover{
  color: #07100b;
  border-color: transparent;
  box-shadow: 0 0 30px rgba(40, 240, 162, .32);
}

.tone-options input{
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  border: 2px solid rgba(244, 255, 246, .42);
  border-radius: 999px;
  background: rgba(7, 9, 7, .46);
  box-shadow: inset 0 0 0 3px rgba(7, 9, 7, .34);
}

.tone-options input:checked{
  border-color: rgba(7, 16, 11, .72);
  background: #07100b;
  box-shadow: inset 0 0 0 4px rgba(244, 255, 246, .88);
}

.action-row{
  margin-top: 16px;
}

.btn,
.icon-btn{
  min-height: 46px;
  border: 1px solid rgba(244, 255, 246, .16);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(244, 255, 246, .08);
  cursor: pointer;
}

.btn{
  padding: 12px 18px;
  font-weight: 950;
}

.btn.primary{
  border-color: transparent;
  color: #06100b;
  background: linear-gradient(90deg, var(--mint), var(--cyan) 55%, var(--coral));
  box-shadow: 0 0 28px rgba(56, 228, 221, .18);
}

.btn.ghost:hover,
.icon-btn:hover{
  border-color: rgba(40, 240, 162, .45);
}

.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;
}

.btn:disabled{
  opacity: .48;
  cursor: not-allowed;
}

.tiny-note,
.share-hint{
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.65;
}

.report-panel{
  position: sticky;
  top: 14px;
  padding: 20px;
}

.report-top{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.report-top h2{
  font-size: 23px;
}

.icon-actions{
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 8px;
}

.mobile-report-actions{
  display: none;
}

.icon-btn{
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(244, 255, 246, .78);
  background: rgba(244, 255, 246, .075);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.icon-btn svg{
  width: 21px;
  height: 21px;
}

.icon-btn path,
.icon-btn rect{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover{
  color: var(--mint);
  background: rgba(40, 240, 162, .10);
  transform: translateY(-1px);
}

.icon-btn.is-loading{
  color: var(--yellow);
  cursor: wait;
}

.icon-btn.is-done{
  color: var(--mint);
  border-color: rgba(40, 240, 162, .62);
  background: rgba(40, 240, 162, .12);
}

.score-board{
  position: relative;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(40, 240, 162, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(40, 240, 162, .12), rgba(255, 230, 109, .055) 42%, rgba(255, 95, 109, .10)),
    radial-gradient(circle at 18% 20%, rgba(40, 240, 162, .16), transparent 36%),
    rgba(244, 255, 246, .045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 22px 58px rgba(0, 0, 0, .28);
}

.score-board::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .075), transparent 34%, rgba(40, 240, 162, .06)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 42px);
  opacity: .64;
}

.score-board::after{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--coral));
  opacity: .82;
}

.score-ring{
  position: relative;
  width: 166px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.score-ring svg{
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.score-ring circle{
  fill: none;
  stroke: rgba(244, 255, 246, .10);
  stroke-width: 16;
}

#scoreArc{
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
  transition: stroke-dashoffset .36s ease, stroke .2s ease;
}

.score-ring div{
  position: relative;
  text-align: center;
}

.score-ring strong{
  display: block;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.score-ring span{
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.result-copy{
  position: relative;
  min-width: 0;
  padding: 16px 16px 16px 18px;
  border-left: 1px solid rgba(40, 240, 162, .28);
}

.result-copy span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 1000;
}

.result-copy span::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px rgba(40, 240, 162, .72);
}

.result-copy p{
  margin: 0;
  color: rgba(244, 255, 246, .86);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.72;
}

.verdict-box{
  display: none;
}

.mini-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-card,
.script-grid article,
.poster-cards div{
  border: 1px solid rgba(244, 255, 246, .12);
  border-radius: var(--radius);
  background: rgba(244, 255, 246, .045);
}

.metric-card{
  position: relative;
  min-height: 118px;
  padding: 14px 14px 13px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 255, 246, .075), rgba(244, 255, 246, .025)),
    rgba(9, 14, 10, .76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 42px rgba(0, 0, 0, .20);
}

.metric-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .075), transparent),
    radial-gradient(circle at 86% 16%, rgba(40, 240, 162, .16), transparent 34%);
  opacity: .9;
}

.metric-card::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), transparent);
  opacity: .88;
}

.metric-card i{
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(244, 255, 246, .14);
  border-radius: 8px;
  color: rgba(7, 9, 7, .92);
  background: linear-gradient(135deg, var(--mint), var(--lime));
  box-shadow: 0 0 24px rgba(40, 240, 162, .24);
  font-size: 14px;
  font-style: normal;
  font-weight: 1000;
}

.metric-card-weak i{
  background: linear-gradient(135deg, var(--coral), var(--yellow));
}

.metric-card-penalty i{
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.metric-card-pk i{
  background: linear-gradient(135deg, var(--yellow), var(--lime));
}

.mini-grid span,
.script-grid span,
.poster-cards span{
  display: block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
}

.mini-grid b{
  position: relative;
  display: block;
  color: var(--text);
  max-width: calc(100% - 34px);
  line-height: 1.26;
  font-size: 20px;
  font-weight: 1000;
}

.mini-grid small{
  position: relative;
  display: block;
  margin-top: 9px;
  color: rgba(244, 255, 246, .58);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.42;
}

.detail-list{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail{
  padding: 12px;
  border: 1px solid rgba(244, 255, 246, .11);
  border-radius: var(--radius);
  background: rgba(7, 9, 7, .34);
}

.detail-head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-head b{
  line-height: 1.35;
}

.detail-head span{
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 900;
}

.meter-line{
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(244, 255, 246, .10);
}

.meter-line i{
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint), var(--cyan));
}

.detail p{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.script-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.script-grid article{
  min-height: 138px;
  padding: 14px;
}

.script-grid p{
  margin: 0;
  line-height: 1.65;
  font-weight: 800;
}

.share-dialog{
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 16px;
}

.share-dialog.is-open{
  display: grid;
}

.share-dialog-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(10px);
}

.share-dialog-panel{
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 28px));
  overflow: auto;
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(40, 240, 162, .25);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(40, 240, 162, .11), rgba(255, 95, 109, .06)),
    rgba(15, 23, 18, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .54), 0 0 36px rgba(40, 240, 162, .12);
}

.share-dialog-panel h2{
  margin: 0 36px 18px 0;
  font-size: 34px;
  line-height: 1.15;
}

.dialog-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 255, 246, .14);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(244, 255, 246, .07);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dialog-actions{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  margin-top: 14px;
}

.poster-sheet{
  position: fixed;
  left: -9999px;
  top: 0;
  width: 430px;
}

.share-poster{
  width: 430px;
  height: 764px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(40, 240, 162, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 240, 162, .07) 1px, transparent 1px),
    linear-gradient(135deg, #07100b 0%, #162115 48%, #080908 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.poster-noise{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 95, 109, .24), transparent 38%),
    linear-gradient(315deg, rgba(56, 228, 221, .22), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 7px);
}

.poster-head,
.poster-score,
.poster-hook,
.share-poster h2,
.share-poster p,
.poster-cards{
  position: relative;
  z-index: 1;
}

.poster-head{
  display: flex;
  justify-content: space-between;
  color: rgba(244, 255, 246, .76);
  font-size: 13px;
  font-weight: 900;
}

.poster-score{
  margin-top: 38px;
  padding: 18px 20px;
  border: 1px solid rgba(244, 255, 246, .16);
  border-radius: 8px;
  background: rgba(7, 9, 7, .48);
  box-shadow: 0 0 46px rgba(40, 240, 162, .15);
}

.poster-score small{
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.poster-score strong{
  display: block;
  margin: 6px 0;
  font-size: 92px;
  line-height: .9;
  letter-spacing: 0;
}

.poster-score span{
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 8px;
  color: #07100b;
  background: linear-gradient(90deg, var(--mint), var(--lime));
  font-weight: 950;
  font-size: 14px;
}

.poster-hook{
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 10px;
  padding: 8px 11px;
  border: 1px solid rgba(206, 255, 94, .26);
  border-radius: 8px;
  color: #07100b !important;
  background: linear-gradient(90deg, var(--mint), var(--lime));
  box-shadow: 0 0 28px rgba(40, 240, 162, .20);
  font-size: 17px;
  line-height: 1.35 !important;
  font-weight: 950;
}

.share-poster h2{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.share-poster p{
  color: rgba(244, 255, 246, .76);
  line-height: 1.46;
}

#posterVerdict{
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.poster-cards{
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.poster-cards div{
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(244, 255, 246, .08), rgba(244, 255, 246, .025)),
    rgba(244, 255, 246, .06);
}

.poster-cards div:last-child{
  border-color: rgba(206, 255, 94, .34);
  background:
    linear-gradient(135deg, rgba(206, 255, 94, .16), rgba(40, 240, 162, .07)),
    rgba(244, 255, 246, .07);
}

.poster-cards div:last-child::after{
  content: "PK";
  position: absolute;
  top: 9px;
  right: 10px;
  color: rgba(206, 255, 94, .38);
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
}

.poster-cards b{
  position: relative;
  display: block;
  max-width: calc(100% - 38px);
  line-height: 1.32;
  font-size: 15px;
}

.poster-cards div:last-child b{
  color: var(--lime);
}

.poster-footer{
  margin: auto 0 0;
  padding-top: 14px;
  color: rgba(244, 255, 246, .72) !important;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 980px){
  .app-shell{
    width: min(100% - 20px, 760px);
  }

  .hero-strip{
    grid-template-columns: 1fr;
  }

  .brand-lockup{
    padding-bottom: 0;
  }

  .hero-copy{
    padding: 0 22px 22px;
  }

  .hero-title{
    font-size: 36px;
  }

  .story-shot{
    display: none;
  }

  .workspace{
    grid-template-columns: 1fr;
  }

  .report-panel{
    position: static;
  }
}

@media (max-width: 640px){
  body{
    background-size: 26px 26px, 26px 26px, auto, auto;
  }

  .app-shell{
    width: calc(100% - 14px);
    padding-top: 8px;
    padding-bottom: 96px;
  }

  body.mobile-report-page .app-shell{
    padding-bottom: 18px;
  }

  .hero-strip{
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    background:
      linear-gradient(90deg, rgba(7, 9, 7, .82), rgba(7, 9, 7, .56) 48%, rgba(7, 9, 7, .18) 72%),
      linear-gradient(135deg, rgba(40, 240, 162, .14), rgba(255, 230, 109, .10)),
      url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80") 66% 46% / cover;
  }

  .brand-lockup{
    display: none;
  }

  .brand-mark{
    width: 28px;
    height: 28px;
  }

  .hero-copy{
    align-self: stretch;
    padding: 0;
  }

  .hero-title{
    max-width: 315px;
    margin-bottom: 0;
    font-size: 27px;
    line-height: 1.04;
  }

  .hero-copy p:last-child{
    display: none;
  }

  .quiz-panel,
  .report-panel{
    padding: 14px;
  }

  .quiz-panel{
    min-height: 0;
    padding-bottom: 92px;
  }

  .panel-title{
    font-size: 20px;
    line-height: 1.16;
  }

  .panel-head p:last-child:empty{
    display: none;
  }

  .progress-bar{
    margin: 12px 0;
  }

  .report-panel.is-empty-report{
    display: none;
  }

  body:not(.mobile-report-page) .report-panel:not(.is-empty-report){
    display: none;
  }

  body.mobile-report-page .hero-strip,
  body.mobile-report-page .quiz-panel{
    display: none;
  }

  body.mobile-report-page .workspace{
    display: block;
    margin-top: 0;
  }

  body.mobile-report-page .report-panel{
    display: block;
    min-height: calc(100vh - 16px);
    padding-bottom: 20px;
  }

  .panel-head,
  .tone-row,
  .action-row{
    align-items: stretch;
    flex-direction: column;
  }

  .progress-chip{
    display: none;
  }

  .flow-hint{
    display: none;
  }

  .question-stage,
  .score-board,
  .script-grid{
    grid-template-columns: 1fr;
  }

  .mini-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card{
    min-height: 108px;
    padding: 12px;
  }

  .metric-card i{
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .mini-grid b{
    max-width: calc(100% - 28px);
    font-size: 18px;
  }

  .mini-grid small{
    margin-top: 7px;
    font-size: 11px;
  }

  .question-card{
    min-height: 0;
    padding: 14px;
  }

  .question-card.is-mobile-hidden{
    display: none;
  }

  .question-card h3{
    font-size: 20px;
  }

  .question-card small{
    min-height: 0;
  }

  .option{
    min-height: 50px;
    padding: 11px 13px;
    font-size: 15px;
  }

  .score-ring{
    margin: 0 auto;
  }

  .score-board{
    gap: 10px;
    padding: 14px;
  }

  .result-copy{
    padding: 12px 2px 2px;
    border-left: 0;
    border-top: 1px solid rgba(40, 240, 162, .22);
  }

  .result-copy p{
    font-size: 16px;
    line-height: 1.66;
  }

  .action-row{
    display: grid;
    grid-template-columns: .75fr 1fr 1.35fr;
    position: fixed;
    left: 50%;
    width: min(760px, calc(100% - 20px));
    transform: translateX(-50%);
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 12;
    padding: 8px;
    border: 1px solid rgba(40, 240, 162, .28);
    border-radius: var(--radius);
    background: rgba(7, 9, 7, .92);
    box-shadow: 0 -14px 32px rgba(0, 0, 0, .38), 0 0 28px rgba(40, 240, 162, .10);
    backdrop-filter: blur(16px);
  }

  .action-row .primary{
    min-height: 50px;
    font-size: 16px;
    box-shadow: 0 0 32px rgba(56, 228, 221, .28), 0 0 18px rgba(255, 95, 109, .16);
  }

  .action-row .ghost{
    min-height: 50px;
    padding: 10px 8px;
    font-size: 13px;
    color: rgba(244, 255, 246, .78);
    background: rgba(244, 255, 246, .045);
  }

  .mobile-report-actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 0;
  }

  .mobile-report-actions .primary,
  .mobile-report-actions .ghost{
    min-height: 52px;
  }

  .mobile-report-actions .mobile-reset{
    grid-column: 1 / -1;
  }

  .tone-options{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
  }

  .tone-options label{
    justify-content: center;
    padding: 10px 8px;
    white-space: nowrap;
  }

  .share-dialog{
    align-items: end;
    padding: 10px;
  }

  .share-dialog-panel{
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .share-dialog-panel h2{
    margin-right: 42px;
    font-size: 25px;
  }

  .share-dialog .script-grid{
    grid-template-columns: 1fr;
  }

  .share-dialog .script-grid article{
    min-height: 0;
  }

  .dialog-actions{
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(15, 23, 18, 0), rgba(15, 23, 18, .98) 28%);
  }
}
