
@charset "UTF-8";
@font-face{
  font-family:Nunito;
  src:url(fonts/nunito-cyrillic-400-normal.woff2) format('woff2');
  font-weight:400;
  font-display:swap;
  unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
  font-family:Nunito;
  src:url(fonts/nunito-latin-400-normal.woff2) format('woff2');
  font-weight:400;
  font-display:swap;
  unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122
}
@font-face{
  font-family:Nunito;
  src:url(fonts/nunito-cyrillic-700-normal.woff2) format('woff2');
  font-weight:700;
  font-display:swap;
  unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
  font-family:Nunito;
  src:url(fonts/nunito-latin-700-normal.woff2) format('woff2');
  font-weight:700;
  font-display:swap;
  unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122
}
@font-face{
  font-family:Rubik;
  src:url(fonts/rubik-cyrillic-700-normal.woff2) format('woff2');
  font-weight:700;
  font-display:swap;
  unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face{
  font-family:Rubik;
  src:url(fonts/rubik-latin-700-normal.woff2) format('woff2');
  font-weight:700;
  font-display:swap;
  unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122
}
:root{
  font-family:Nunito,"Segoe UI",sans-serif;
  color:#293d38;
  background:#edf1e8;
  --ink:#293d38;
  --muted:#829087;
  --green:#3c6958;
  --deep:#284e40;
  --red:#ad5753;
  --gold:#b3924b;
  --line:#e4e9df;
  --paper:#fffef9;
  font-synthesis:none
}
*{
  box-sizing:border-box
}
[hidden]{
  display:none!important
}
body{
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  background:radial-gradient(ellipse at 90% 0,#f3e5dd88,transparent 50%),radial-gradient(ellipse at 0 90%,#dce7d577,transparent 50%),#edf1e8
}
button,select,input{
  font:inherit
}
button{
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background .18s,border-color .18s,transform .18s
}
button:not(:disabled):hover{
  transform:translateY(-1px)
}
button:disabled{
  cursor:default
}
button:focus-visible,a:focus-visible,input:focus-visible{
  outline:3px solid #ba9960;
  outline-offset:3px
}
h1,h2,p,ol{
  margin:0
}
h1,h2,.brand,.button{
  font-family:Rubik,Nunito,sans-serif
}
h1:focus{
  outline:none
}
.app{
  width:min(1260px,100%);
  height:100vh;
  height:100dvh;
  max-height:940px;
  margin:auto;
  padding:18px 24px 9px;
  display:grid;
  grid-template-areas:"header" "progress" "main" "footer";
  grid-template-rows:52px auto minmax(0,1fr) 20px;
  gap:12px
}
.header{
  grid-area:header;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.brand{
  display:flex;
  gap:9px;
  align-items:center;
  text-align:left;
  padding:0;
  border:0;
  background:none;
  color:var(--deep);
  font-size:17px;
  font-weight:700;
  line-height:1.3
}
.brand small{
  display:block;
  font-family:Nunito;
  font-size:10px;
  color:#8a9589;
  font-weight:400;
  margin-top:3px;
  letter-spacing:.5px
}
.brand-mark{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid #82988055;
  border-radius:13px;
  color:#8b9a62;
  font-size:29px
}
.header-caption{
  font-size:11px;
  color:#929b8e
}
.header-actions{
  display:flex;
  align-items:center;
  gap:13px
}
.quiet-button{
  padding:6px 0;
  border:0;
  background:none;
  color:#7d8d7f;
  font-size:11px
}
.icon-button{
  display:grid;
  place-items:center;
  border:1px solid #d8e1d0;
  background:#fff9;
  border-radius:11px;
  height:37px;
  width:37px;
  color:#69826d;
  font-size:20px
}
.gamebar{
  grid-area:progress;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  min-height:34px
}
.stage-progress{
  list-style:none;
  padding:0;
  display:flex;
  gap:10px;
  min-width:0
}
.stage-progress li{
  display:flex;
  align-items:center;
  gap:7px;
  color:#9ca59a;
  font-size:10px;
  white-space:nowrap
}
.stage-progress b{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border:1px solid #ccd7c4;
  border-radius:50%;
  font-size:11px
}
.stage-progress .current{
  color:#476847;
  font-weight:700
}
.stage-progress .current b{
  background:var(--green);
  color:#fff;
  border-color:var(--green)
}
.stage-progress .done b{
  background:#dce8cf;
  border-color:#c6d6b7;
  color:#6a8651
}
.game-stats{
  display:flex;
  align-items:center;
  gap:7px;
  flex-shrink:0
}
.stat-pill{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #dce3d6;
  background:#fff9;
  border-radius:9px;
  padding:7px 10px;
  font-size:11px;
  font-weight:700;
  color:#61735f;
  white-space:nowrap
}
.stat-pill>span:first-child{
  color:#ad945a
}
#main{
  grid-area:main;
  min-width:0;
  min-height:0
}
.screen{
  height:100%;
  min-height:0;
  background:var(--paper);
  border:1px solid #e5e8df;
  border-radius:26px;
  padding:28px;
  box-shadow:0 18px 55px #354d3207;
  display:grid;
  gap:18px
}
.eyebrow{
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:700;
  color:#8f9d76
}
.muted{
  font-size:11px;
  line-height:1.6;
  color:var(--muted)
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:44px;
  border:1px solid transparent;
  border-radius:12px;
  padding:12px 19px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap
}
.primary{
  color:#fff;
  background:var(--green);
  box-shadow:0 3px 0 #284d3e
}
.primary:hover{
  background:#345f4e
}
.secondary{
  color:var(--green);
  background:#f7f9f2;
  border-color:#dce5d2
}
.footer{
  grid-area:footer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:#99a18f;
  font-size:9px;
  line-height:1.3
}
.footer-motto{
  white-space:nowrap
}
.home-screen{
  display:grid;
  grid-template-columns:1.3fr .8fr;
  gap:28px;
  align-items:center;
  padding:38px 44px;
  position:relative
}
.cover-copy{
  min-width:0
}
.cover-copy h1{
  font-size:clamp(30px,3.8vw,47px);
  line-height:1.15;
  letter-spacing:-1.6px;
  margin:13px 0 7px;
  color:var(--green)
}
.cover-subtitle{
  font-size:25px;
  font-weight:700;
  line-height:1.3;
  color:var(--red)
}
.cover-intro{
  font-size:14px;
  line-height:1.8;
  color:#899282;
  max-width:500px;
  margin-top:18px
}
.how{
  list-style:none;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:17px 16px;
  margin-top:26px
}
.how li{
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-width:0
}
.how b{
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:26px;
  height:26px;
  background:#f1f3e7;
  border:1px solid #e5e9d6;
  border-radius:9px;
  font-size:11px;
  color:#929a65
}
.how strong{
  display:block;
  font-size:12px;
  line-height:1.4
}
.how small{
  display:block;
  color:#9a9f8d;
  font-size:10px;
  line-height:1.6;
  margin-top:3px
}
.home-actions{
  display:flex;
  gap:12px;
  margin-top:27px;
  flex-wrap:wrap
}
.home-note{
  font-size:10px;
  line-height:1.8;
  color:#a2a693;
  margin-top:18px
}
.home-note strong{
  color:#81916a
}
.cover-art{
  position:relative;
  height:100%;
  min-height:0;
  max-height:470px;
  isolation:isolate
}
.cover-art>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  z-index:1;
  filter:drop-shadow(0 15px 15px #0000000d)
}
.cover-halo{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:95%;
  aspect-ratio:1;
  border-radius:50%;
  background:#eff3e8;
  z-index:-1
}
.art-tag{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%) rotate(-4deg);
  z-index:2;
  background:#fff;
  border:1px solid #e6eadf;
  border-radius:11px;
  padding:10px 13px;
  white-space:nowrap;
  font-size:10px;
  color:#9d9f7f;
  box-shadow:0 4px 15px #00000004
}
.section-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  min-width:0
}
.section-top h1{
  font-size:27px;
  line-height:1.2;
  letter-spacing:-.7px;
  margin-top:6px
}
.incoming-screen{
  grid-template-rows:auto minmax(0,1fr)
}
.incoming-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  min-width:0;
  min-height:0
}
.new-message{
  font-size:10px;
  letter-spacing:1.2px;
  color:var(--red);
  font-weight:700
}
.incoming-copy h1{
  font-size:clamp(27px,3vw,39px);
  line-height:1.15;
  letter-spacing:-.8px;
  max-width:520px
}
.message-bubble{
  padding:17px 20px;
  max-width:500px;
  border-radius:14px 14px 14px 0;
  background:#f0f4e9;
  border:1px solid #e4eadb;
  color:#7a8c69;
  font-size:14px;
  line-height:1.7
}
.incoming-copy>.button{
  align-self:flex-start
}
.incoming-help{
  max-width:450px;
  font-size:12px
}
.helper-note{
  display:flex;
  gap:13px;
  align-items:center;
  margin-top:4px
}
.helper-note img{
  height:80px;
  width:65px;
  object-fit:contain
}
.helper-note p{
  font-size:11px;
  color:#a5a68e;
  line-height:1.6
}
.workshop-screen{
  grid-template-rows:auto minmax(0,1fr) auto
}
.gift:not(:disabled):hover{
  background:#fff;
  border-color:#9db786;
  box-shadow:0 3px 10px #698b4f13
}
.gift.packed{
  background:#eaf0e0;
  border-color:#d7e1c8;
  box-shadow:none
}
.gift.packed img{
  opacity:.35
}
.packed-mark{
  position:absolute;
  top:6px;
  right:6px;
  background:#89a068;
  color:white;
  width:19px;
  height:19px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:11px
}
.gift.rejected{
  background:#faf0ea;
  border-color:#dfc8bb
}
.gift.rejected img{
  opacity:.5
}
.gift.correct{
  border-color:#7e9e63;
  background:#e9f1df
}
.feedback-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:13px 16px;
  border:1px solid #e5e9dd;
  background:#f9faf3;
  border-radius:13px;
  min-width:0
}
.feedback-bar strong{
  font-size:12px;
  line-height:1.5;
  display:block;
  color:#7c8d6f
}
.feedback-bar p{
  font-size:10px;
  color:#a0a48c;
  line-height:1.5;
  margin-top:3px
}
.feedback-bar.success{
  background:#edf5e5;
  border-color:#d7e5c6
}
.feedback-bar.success strong{
  color:#64804e
}
.feedback-bar.retry{
  background:#fff5ed;
  border-color:#ead7c9
}
.feedback-bar.retry strong{
  color:#a0785e
}
.reply-screen{
  grid-template-rows:auto minmax(0,1fr)
}
.reply-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  min-height:0;
  min-width:0
}
.reply-copy h1{
  font-size:clamp(26px,3vw,37px);
  line-height:1.15;
  letter-spacing:-.8px
}
.reply-intro{
  font-size:13px;
  line-height:1.7;
  color:#98a08b;
  max-width:500px
}
.reply-gift{
  display:flex;
  align-items:center;
  gap:15px;
  padding:12px 15px;
  background:#f4f5eb;
  border:1px solid #e5e9d8;
  border-radius:13px
}
.reply-gift img{
  width:62px;
  height:62px;
  object-fit:contain
}
.reply-gift span{
  font-size:8px;
  letter-spacing:1px;
  color:#abb18f;
  display:block;
  margin-bottom:6px
}
.reply-gift strong{
  font-size:20px;
  letter-spacing:.6px;
  color:#78905f
}
.reply-choices{
  display:grid;
  gap:9px
}
.reply-choice{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:45px;
  background:#fff;
  border:1px solid #dce5d3;
  border-radius:10px;
  padding:10px 13px;
  color:#6a805e;
  text-align:left
}
.reply-choice strong{
  font-family:Rubik,monospace;
  font-size:20px;
  letter-spacing:.1em;
  overflow-wrap:anywhere;
  line-height:1.3
}
.reply-choice:not(:disabled):hover{
  border-color:#92aa79;
  background:#fcfff8
}
.option-number{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:7px;
  font-size:10px;
  background:#f2f5e9;
  color:#9ca67c;
  flex-shrink:0
}
.reply-choice.rejected{
  background:#faf1ea;
  border-color:#e5d3c8;
  color:#b49d8c
}
.reply-choice.rejected strong{
  text-decoration:line-through
}
.reply-choice.correct{
  background:#eef5e5;
  border-color:#b6cda0
}
.reply-feedback{
  font-size:11px;
  line-height:1.5;
  color:#a0a68e;
  min-height:2.8em
}
.reply-feedback.success{
  color:#6c8859
}
.reply-feedback.retry{
  color:#b08a6a
}
.reply-copy>.button{
  align-self:flex-start
}
.reply-tip{
  font-size:10px;
  line-height:1.6;
  color:#a5ac95
}
.finish-screen{
  grid-template-rows:auto auto minmax(0,1fr) auto;
  gap:19px
}
.finish-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.finish-top h1{
  font-size:36px;
  line-height:1.15;
  letter-spacing:-1px;
  color:var(--green);
  margin:10px 0
}
.finish-top p{
  font-size:12px;
  line-height:1.6;
  color:#9ca38c
}
.finish-top img{
  height:125px;
  width:100px;
  object-fit:contain
}
.finish-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.finish-stats>div{
  border:1px solid #e3ead9;
  background:#f5f7ee;
  border-radius:12px;
  padding:12px 15px
}
.finish-stats strong{
  display:block;
  font-family:Rubik;
  font-size:24px;
  color:#77905e
}
.finish-stats span{
  display:block;
  font-size:10px;
  color:#a4aa92;
  margin-top:4px
}
.finish-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px;
  min-height:0;
  align-content:center
}
.finish-content h2{
  font-size:16px;
  margin-bottom:12px;
  color:#80906a
}
.award-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px
}
.award{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #e9ebdf;
  background:#f7f8f1;
  color:#a9b09b;
  border-radius:11px;
  padding:11px 12px;
  min-width:0
}
.award-icon{
  font-size:22px;
  color:#bfc6b0;
  flex-shrink:0
}
.award strong{
  display:block;
  font-size:11px;
  line-height:1.4
}
.award p{
  font-size:9px;
  line-height:1.5;
  margin-top:4px;
  color:#acb39c
}
.award.earned{
  background:#fbf5e6;
  border-color:#ecdfbb;
  color:#a59262
}
.award.earned .award-icon{
  color:#c4a657
}
.award.earned p{
  color:#b6aa84
}
#finish-awards .award{
  padding:9px 11px
}
#finish-awards .award p{
  display:none
}
.finish-gifts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px
}
.finish-gift{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:11px;
  border:1px solid #e4eadb;
  background:#fafbf5;
  border-radius:12px;
  gap:7px;
  min-width:0
}
.finish-gift img{
  height:65px;
  width:100%;
  object-fit:contain
}
.finish-gift strong{
  font-size:12px;
  color:#81936f
}
.finish-gift small{
  font-size:8px;
  color:#acb39a;
  text-align:center;
  line-height:1.5
}
.finish-pages{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:12px
}
.finish-pages button{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  font-size:9px;
  background:none;
  border:1px solid #dfe6d5;
  border-radius:7px;
  color:#a0ac8c
}
.finish-pages button.selected{
  background:#e6eedc;
  border-color:#c5d5b4;
  color:#708b55
}
.finish-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap
}
.finish-actions .quiet-button{
  margin-left:auto
}
.finish-tabs{
  display:none
}
.modal{
  margin:auto;
  width:min(800px,94vw);
  max-height:90vh;
  max-height:90dvh;
  border:1px solid #dbe5d0;
  border-radius:21px;
  background:#fffef9;
  color:var(--ink);
  padding:24px;
  box-shadow:0 25px 80px #203b2c22
}
.modal::backdrop{
  background:#263e3280;
  backdrop-filter:blur(3px)
}
.modal-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:18px
}
.modal-heading h2{
  font-size:22px;
  color:var(--green)
}
.modal-note{
  font-size:12px;
  line-height:1.7;
  color:#9aa38d;
  margin-bottom:18px
}
.guide-modal{
  width:min(1000px,96vw);
  height:min(850px,93dvh);
  max-height:none;
  overflow:hidden;
  flex-direction:column;
  padding:0
}
.guide-modal[open]{
  display:flex
}
.guide-modal .modal-heading{
  padding:12px 20px;
  margin:0;
  border-bottom:1px solid var(--line)
}
.guide-modal iframe{
  display:block;
  width:100%;
  flex:1;
  min-height:0;
  border:0
}
.modal-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:18px
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.toast{
  position:fixed;
  z-index:20;
  bottom:15px;
  left:50%;
  transform:translateX(-50%);
  background:#fff8e6;
  border:1px solid #e9dbaf;
  border-radius:12px;
  padding:10px 17px;
  font-size:11px;
  color:#aa9658;
  box-shadow:0 5px 25px #52613916;
  max-width:calc(100% - 24px);
  text-align:center;
  pointer-events:none
}
@media(max-width:1000px) {
.header-caption{
    display:none
  }
.app{
    padding-left:16px;
    padding-right:16px
  }
.screen{
    padding:22px;
    gap:16px
  }
.home-screen{
    padding:27px;
    grid-template-columns:1.4fr .7fr;
    gap:18px
  }
.cover-copy h1{
    font-size:35px
  }
.cover-subtitle{
    font-size:22px
  }
.cover-intro{
    font-size:12px
  }
.how{
    gap:14px;
    margin-top:20px
  }
.how strong{
    font-size:11px
  }
.how small{
    font-size:9px
  }
.art-tag{
    font-size:9px;
    padding:8px 10px
  }
.stage-progress{
    gap:8px
  }
.stage-progress li>span{
    display:none
  }
.incoming-copy{
    gap:15px
  }
.incoming-copy h1{
    font-size:29px
  }
.message-bubble{
    font-size:13px;
    padding:14px 16px
  }
.incoming-help{
    font-size:11px
  }
.helper-note img{
    height:65px
  }
.section-top h1{
    font-size:23px
  }
.feedback-bar{
    padding:10px 13px;
    gap:12px
  }
.feedback-bar strong{
    font-size:11px
  }
.feedback-bar p{
    font-size:9px
  }
.feedback-bar .button{
    font-size:11px;
    padding:10px 13px
  }
.reply-copy{
    gap:12px
  }
.reply-copy h1{
    font-size:29px
  }
.reply-intro{
    font-size:12px
  }
.reply-choice strong{
    font-size:18px
  }
.reply-gift{
    padding:10px 12px
  }
.reply-gift img{
    width:52px;
    height:52px
  }
.reply-gift strong{
    font-size:18px
  }
.finish-content{
    gap:18px
  }
.finish-stats>div{
    padding:10px 12px
  }
.finish-stats strong{
    font-size:21px
  }
.finish-top h1{
    font-size:32px
  }
.award strong{
    font-size:10px
  }
.award{
    gap:8px;
    padding:9px
  }
.finish-gift{
    padding:9px
  }
}
@media(max-width:600px) {
.app{
    padding:10px 10px 6px;
    grid-template-rows:44px auto minmax(0,1fr) 18px;
    gap:9px
  }
.brand{
    font-size:13px;
    gap:7px
  }
.brand small{
    font-size:8px
  }
.brand-mark{
    width:30px;
    height:30px;
    border-radius:10px;
    font-size:23px
  }
.header-actions{
    gap:10px
  }
.quiet-button{
    font-size:10px
  }
.icon-button{
    height:32px;
    width:32px;
    font-size:17px
  }
.header{
    gap:9px
  }
.gamebar{
    gap:8px;
    min-height:29px
  }
.stage-progress{
    gap:6px
  }
.stage-progress b{
    width:23px;
    height:23px;
    font-size:9px
  }
.game-stats{
    gap:4px
  }
.stat-pill{
    font-size:9px;
    padding:6px 7px;
    gap:4px;
    border-radius:8px
  }
.screen{
    padding:16px;
    border-radius:20px;
    gap:13px
  }
.eyebrow{
    font-size:8px;
    letter-spacing:1px
  }
.button{
    min-height:40px;
    padding:10px 14px;
    font-size:11px
  }
.muted{
    font-size:10px
  }
.footer{
    font-size:8px;
    gap:8px
  }
.footer-motto{
    display:none
  }
.home-screen{
    display:block;
    padding:25px 21px;
    align-content:center
  }
.cover-copy{
    position:relative;
    z-index:2
  }
.cover-copy h1{
    font-size:30px;
    line-height:1.18;
    letter-spacing:-1px;
    padding-right:55px;
    margin-top:12px;
    max-width:330px
  }
.cover-subtitle{
    font-size:19px;
    max-width:250px
  }
.cover-intro{
    display:none
  }
.cover-art{
    position:absolute;
    top:23px;
    right:18px;
    width:61px;
    height:90px
  }
.cover-halo,.art-tag{
    display:none
  }
.how{
    grid-template-columns:1fr;
    gap:14px;
    margin-top:23px
  }
.how li{
    gap:10px
  }
.how b{
    width:25px;
    height:25px
  }
.how strong{
    font-size:12px
  }
.how small{
    font-size:10px;
    margin-top:1px
  }
.home-actions{
    margin-top:22px;
    gap:9px
  }
.home-actions .button{
    font-size:11px;
    padding:10px 13px
  }
.home-note{
    font-size:9px;
    margin-top:17px
  }
.section-top{
    gap:9px
  }
.section-top h1{
    font-size:20px;
    margin-top:4px
  }
.incoming-copy{
    gap:11px;
    justify-content:center
  }
.new-message{
    font-size:8px;
    letter-spacing:.8px
  }
.incoming-copy h1{
    font-size:24px;
    line-height:1.15;
    letter-spacing:-.5px
  }
.message-bubble{
    font-size:12px;
    padding:11px 13px;
    line-height:1.6
  }
.incoming-help{
    font-size:10px;
    line-height:1.6
  }
.helper-note{
    display:none
  }
.incoming-copy>.button{
    align-self:stretch
  }
.packed-mark{
    height:13px;
    width:13px;
    font-size:8px;
    top:4px;
    right:4px
  }
.feedback-bar{
    padding:9px 11px;
    gap:10px;
    border-radius:11px
  }
.feedback-bar strong{
    font-size:10px;
    line-height:1.4
  }
.feedback-bar p{
    font-size:8px;
    line-height:1.5
  }
.feedback-bar .button{
    font-size:10px;
    padding:9px 10px;
    white-space:normal;
    max-width:128px;
    min-height:36px;
    gap:5px;
    flex-shrink:0
  }
.reply-copy{
    gap:10px
  }
.reply-copy h1{
    font-size:24px
  }
.reply-intro{
    font-size:11px;
    line-height:1.6
  }
.reply-gift{
    gap:12px;
    padding:8px 11px
  }
.reply-gift img{
    width:40px;
    height:40px
  }
.reply-gift span{
    font-size:7px;
    margin-bottom:4px
  }
.reply-gift strong{
    font-size:17px
  }
.reply-choices{
    gap:7px
  }
.reply-choice{
    min-height:39px;
    padding:8px 11px;
    gap:10px
  }
.reply-choice strong{
    font-size:17px;
    letter-spacing:.08em
  }
.option-number{
    height:21px;
    width:21px;
    font-size:9px
  }
.reply-feedback{
    font-size:10px;
    line-height:1.5;
    min-height:2.7em
  }
.reply-tip{
    font-size:9px;
    line-height:1.5
  }
.reply-copy>.button{
    align-self:stretch;
    min-height:38px
  }
.finish-screen{
    grid-template-rows:auto auto auto minmax(0,1fr)auto;
    gap:12px
  }
.finish-top{
    gap:12px
  }
.finish-top h1{
    font-size:28px;
    margin:8px 0
  }
.finish-top p{
    font-size:10px;
    line-height:1.5
  }
.finish-top p br{
    display:none
  }
.finish-top img{
    height:87px;
    width:61px
  }
.finish-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px
  }
.finish-stats>div{
    padding:8px 11px
  }
.finish-stats strong{
    font-size:19px
  }
.finish-stats span{
    font-size:8px;
    margin-top:2px
  }
.finish-tabs{
    display:flex;
    gap:8px
  }
.finish-tabs button{
    flex:1;
    border:1px solid #e2e8d8;
    background:#f8faf3;
    color:#a0ad8a;
    font-size:10px;
    border-radius:9px;
    padding:8px
  }
.finish-tabs button[aria-selected=true]{
    background:#e9f0e0;
    border-color:#c7d9b5;
    color:#738f55
  }
.finish-content{
    display:block;
    align-content:center;
    min-height:0
  }
.finish-content[data-panel=awards]>#finish-gifts-panel,.finish-content[data-panel=gifts]>#finish-awards-panel{
    display:none
  }
.finish-content h2{
    display:none
  }
.finish-content .award-list{
    gap:6px
  }
#finish-awards .award{
    padding:8px;
    gap:8px
  }
.award-icon{
    font-size:17px
  }
.award strong{
    font-size:9px
  }
.finish-gift{
    padding:9px 6px;
    gap:5px
  }
.finish-gift img{
    height:50px
  }
.finish-gift strong{
    font-size:10px
  }
.finish-gift small{
    font-size:7px
  }
.finish-pages{
    margin-top:9px;
    gap:7px
  }
.finish-actions{
    gap:8px;
    flex-wrap:nowrap
  }
.finish-actions .button{
    font-size:10px;
    min-height:38px;
    padding:10px 11px;
    flex:1
  }
.finish-actions .quiet-button{
    display:none
  }
.modal{
    padding:18px;
    border-radius:18px
  }
.modal-heading h2{
    font-size:19px
  }
.modal .award-list{
    grid-template-columns:1fr
  }
.modal .award{
    padding:10px
  }
.modal .award strong{
    font-size:12px
  }
.modal .award p{
    font-size:10px
  }
.modal-note{
    font-size:11px
  }
.guide-modal .modal-heading{
    padding:10px 14px
  }
.guide-modal .modal-heading h2{
    font-size:15px
  }
}
@media(max-height:700px) {
.app{
    padding-top:9px;
    grid-template-rows:44px auto minmax(0,1fr)18px;
    gap:10px
  }
.screen{
    padding:20px;
    gap:14px
  }
.home-screen{
    padding:26px 30px
  }
.cover-copy h1{
    font-size:36px;
    margin-top:10px
  }
.cover-subtitle{
    font-size:22px
  }
.cover-intro{
    font-size:12px;
    margin-top:14px
  }
.how{
    margin-top:19px;
    gap:13px 15px
  }
.home-actions{
    margin-top:20px
  }
.home-note{
    margin-top:15px
  }
.art-tag{
    display:none
  }
.helper-note{
    display:none
  }
.incoming-copy{
    gap:14px
  }
.incoming-copy h1{
    font-size:30px
  }
.incoming-help{
    font-size:11px
  }
.message-bubble{
    font-size:13px
  }
.reply-copy{
    gap:11px
  }
.reply-copy h1{
    font-size:29px
  }
.reply-intro{
    font-size:12px
  }
.reply-gift img{
    height:44px;
    width:44px
  }
.reply-gift{
    padding:9px 12px
  }
.reply-choice{
    min-height:40px;
    padding:8px 12px
  }
.reply-choice strong{
    font-size:18px
  }
.reply-tip{
    font-size:9px
  }
.feedback-bar{
    padding:10px 13px
  }
.finish-top img{
    height:90px;
    width:75px
  }
.finish-top h1{
    font-size:30px
  }
.finish-content h2{
    font-size:14px;
    margin-bottom:10px
  }
.finish-stats>div{
    padding:9px 12px
  }
.finish-gift img{
    height:52px
  }
.finish-gift{
    padding:9px
  }
.award{
    padding:9px
  }
.award strong{
    font-size:10px
  }
}
@media(max-width:600px) and (max-height:700px) {
.app{
    grid-template-rows:40px auto minmax(0,1fr)18px;
    padding-top:7px;
    gap:8px
  }
.brand{
    font-size:12px
  }
.brand-mark{
    height:28px;
    width:28px;
    font-size:22px
  }
.brand small{
    font-size:7px
  }
.header-actions{
    gap:9px
  }
.quiet-button{
    font-size:9px
  }
.screen{
    padding:13px;
    gap:11px
  }
.home-screen{
    padding:22px 18px
  }
.cover-copy h1{
    font-size:28px;
    padding-right:48px;
    line-height:1.17;
    margin-top:10px
  }
.cover-subtitle{
    font-size:18px
  }
.cover-art{
    top:24px;
    right:14px;
    width:53px;
    height:78px
  }
.how{
    margin-top:18px;
    gap:12px
  }
.how strong{
    font-size:11px
  }
.how small{
    font-size:9px
  }
.home-actions{
    margin-top:19px;
    gap:8px
  }
.home-actions .button{
    min-height:37px;
    font-size:10px;
    padding:9px 11px
  }
.home-note{
    font-size:8px;
    line-height:1.7;
    margin-top:14px
  }
.how b{
    width:23px;
    height:23px;
    font-size:10px
  }
.section-top h1{
    font-size:17px;
    letter-spacing:-.4px
  }
.eyebrow{
    font-size:7px;
    letter-spacing:.7px
  }
.muted{
    font-size:8px
  }
.incoming-copy{
    gap:9px
  }
.incoming-copy h1{
    font-size:21px
  }
.message-bubble{
    font-size:11px;
    line-height:1.5;
    padding:9px 11px
  }
.incoming-help{
    display:none
  }
.incoming-copy>.button{
    min-height:37px;
    font-size:11px
  }
.feedback-bar{
    padding:8px 9px;
    gap:8px
  }
.feedback-bar strong{
    font-size:9px
  }
.feedback-bar p{
    font-size:7px
  }
.feedback-bar .button{
    font-size:9px;
    min-height:33px;
    max-width:110px;
    padding:8px
  }
.reply-copy{
    gap:8px
  }
.reply-copy h1{
    font-size:21px
  }
.reply-intro{
    font-size:10px;
    line-height:1.5
  }
.reply-gift{
    padding:6px 10px;
    gap:10px
  }
.reply-gift img{
    width:32px;
    height:32px
  }
.reply-gift span{
    font-size:6px;
    margin-bottom:3px
  }
.reply-gift strong{
    font-size:15px
  }
.reply-choice{
    min-height:33px;
    padding:6px 9px;
    gap:9px
  }
.reply-choice strong{
    font-size:15px
  }
.reply-choices{
    gap:6px
  }
.option-number{
    height:19px;
    width:19px;
    font-size:8px
  }
.reply-feedback{
    font-size:9px;
    min-height:2.5em
  }
.reply-tip{
    display:none
  }
.reply-copy>.button{
    min-height:34px;
    font-size:10px;
    padding:8px
  }
.finish-screen{
    gap:9px
  }
.finish-top h1{
    font-size:24px;
    margin:7px 0
  }
.finish-top p{
    font-size:9px
  }
.finish-top img{
    height:70px;
    width:50px
  }
.finish-stats>div{
    padding:6px 9px
  }
.finish-stats strong{
    font-size:17px
  }
.finish-stats span{
    font-size:7px
  }
.finish-tabs button{
    padding:6px;
    font-size:9px
  }
#finish-awards .award{
    padding:6px 7px;
    gap:6px
  }
#finish-awards .award strong{
    font-size:8px
  }
#finish-awards .award-icon{
    font-size:15px
  }
.finish-gift{
    padding:7px 5px
  }
.finish-gift img{
    height:43px
  }
.finish-gift strong{
    font-size:9px
  }
.finish-actions .button{
    font-size:9px;
    min-height:34px;
    padding:8px
  }
.finish-pages button{
    height:21px;
    width:21px;
    font-size:8px
  }
.finish-content h2{
    display:none
  }
}
@media(max-height:500px) and (orientation:landscape) {
.app{
    padding:5px 12px;
    grid-template-rows:34px auto minmax(0,1fr)14px;
    gap:6px
  }
.header-caption{
    display:none
  }
.brand{
    font-size:12px
  }
.brand small{
    font-size:7px;
    margin-top:1px
  }
.brand-mark{
    width:27px;
    height:27px;
    font-size:21px;
    border-radius:9px
  }
.icon-button{
    width:28px;
    height:28px;
    font-size:17px
  }
.quiet-button{
    font-size:9px
  }
.stage-progress{
    gap:6px
  }
.stage-progress li>span{
    display:none
  }
.stage-progress b{
    height:22px;
    width:22px;
    font-size:9px
  }
.gamebar{
    min-height:26px;
    gap:8px
  }
.game-stats{
    gap:5px
  }
.stat-pill{
    padding:5px 8px;
    font-size:9px
  }
.screen{
    padding:13px 18px;
    gap:10px;
    border-radius:19px
  }
.home-screen{
    display:grid;
    grid-template-columns:1.6fr .5fr;
    align-items:center;
    gap:16px;
    padding:20px 26px
  }
.cover-copy h1{
    font-size:29px;
    margin:8px 0 5px;
    letter-spacing:-.8px;
    padding:0
  }
.cover-subtitle{
    font-size:18px
  }
.cover-intro{
    display:none
  }
.how{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:15px;
    gap:9px 14px
  }
.how strong{
    font-size:10px
  }
.how small{
    font-size:8px;
    line-height:1.4
  }
.how b{
    width:20px;
    height:20px;
    font-size:9px;
    border-radius:7px
  }
.how li{
    gap:7px
  }
.home-actions{
    margin-top:15px;
    gap:10px
  }
.home-actions .button{
    min-height:33px;
    padding:8px 12px;
    font-size:10px
  }
.home-note{
    font-size:8px;
    line-height:1.5;
    margin-top:11px
  }
.cover-art{
    position:relative;
    top:auto;
    right:auto;
    width:100%;
    height:100%;
    max-height:220px
  }
.cover-halo{
    display:block
  }
.art-tag{
    display:none
  }
.eyebrow{
    font-size:7px;
    letter-spacing:1px
  }
.button{
    min-height:34px;
    padding:8px 12px;
    font-size:10px
  }
.section-top h1{
    font-size:19px;
    margin-top:3px
  }
.muted{
    font-size:9px
  }
.incoming-copy{
    gap:11px
  }
.incoming-copy h1{
    font-size:24px;
    line-height:1.15
  }
.new-message{
    font-size:8px
  }
.message-bubble{
    font-size:11px;
    line-height:1.5;
    padding:10px 12px
  }
.incoming-help,.helper-note{
    display:none
  }
.packed-mark{
    width:13px;
    height:13px;
    font-size:8px;
    top:3px;
    right:3px
  }
.feedback-bar{
    padding:7px 10px;
    gap:10px
  }
.feedback-bar strong{
    font-size:10px;
    line-height:1.3
  }
.feedback-bar p{
    font-size:8px;
    margin-top:2px
  }
.feedback-bar .button{
    min-height:31px;
    padding:7px 11px;
    font-size:10px
  }
.reply-copy{
    gap:8px
  }
.reply-copy h1{
    font-size:23px
  }
.reply-intro,.reply-tip,.reply-copy>.new-message{
    display:none
  }
.reply-gift{
    padding:0;
    border:0;
    background:none;
    gap:11px
  }
.reply-gift img{
    height:40px;
    width:40px
  }
.reply-gift strong{
    font-size:17px
  }
.reply-gift span{
    font-size:7px
  }
.reply-choices{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px
  }
.reply-choice{
    min-height:36px;
    padding:7px 8px;
    gap:6px
  }
.reply-choice strong{
    font-size:14px;
    letter-spacing:.02em
  }
.option-number{
    height:17px;
    width:17px;
    font-size:8px
  }
.reply-feedback{
    font-size:9px;
    line-height:1.4;
    min-height:2.5em
  }
.reply-copy>.button{
    min-height:32px;
    padding:7px 11px;
    font-size:10px
  }
.finish-screen{
    grid-template-rows:auto auto minmax(0,1fr)auto;
    gap:10px
  }
.finish-top h1{
    font-size:25px;
    margin:6px 0
  }
.finish-top p{
    font-size:9px
  }
.finish-top p br{
    display:none
  }
.finish-top img{
    height:58px;
    width:44px
  }
.finish-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px
  }
.finish-stats>div{
    padding:6px 10px
  }
.finish-stats strong{
    font-size:18px
  }
.finish-stats span{
    font-size:8px;
    margin-top:2px
  }
.finish-tabs{
    display:none
  }
.finish-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:19px;
    align-content:center
  }
.finish-content[data-panel=awards]>#finish-gifts-panel,.finish-content[data-panel=gifts]>#finish-awards-panel{
    display:block
  }
.finish-content h2{
    font-size:12px;
    margin-bottom:8px;
    display:block
  }
#finish-awards .award{
    padding:5px 7px;
    gap:7px
  }
#finish-awards .award strong{
    font-size:8px
  }
#finish-awards .award-icon{
    font-size:15px
  }
.award-list{
    gap:5px
  }
.finish-gift{
    padding:6px;
    gap:4px
  }
.finish-gift img{
    height:35px
  }
.finish-gift strong{
    font-size:9px
  }
.finish-gift small{
    font-size:7px;
    line-height:1.3
  }
.finish-pages{
    margin-top:7px;
    gap:6px
  }
.finish-pages button{
    width:20px;
    height:20px;
    font-size:8px
  }
.finish-actions{
    gap:9px
  }
.finish-actions .button{
    min-height:31px;
    font-size:9px;
    padding:7px 11px;
    flex:0
  }
.finish-actions .quiet-button{
    display:block;
    font-size:9px
  }
.footer{
    font-size:8px
  }
.footer-motto{
    display:none
  }
}
@media(max-height:360px) and (orientation:landscape) {
.app{
    grid-template-rows:28px auto minmax(0,1fr)12px;
    gap:4px;
    padding-top:4px;
    padding-bottom:4px
  }
.brand-mark{
    width:24px;
    height:24px;
    font-size:19px
  }
.brand small{
    display:none
  }
.screen{
    padding:9px 13px;
    gap:7px
  }
.home-screen{
    padding:15px 22px
  }
.cover-copy h1{
    font-size:25px;
    margin:5px 0
  }
.cover-subtitle{
    font-size:16px
  }
.how{
    margin-top:10px;
    gap:7px 12px
  }
.how strong{
    font-size:9px
  }
.how small{
    font-size:7px
  }
.how b{
    width:18px;
    height:18px;
    font-size:8px
  }
.home-actions{
    margin-top:11px
  }
.home-actions .button{
    min-height:29px;
    font-size:9px;
    padding:7px 10px
  }
.home-note{
    font-size:7px;
    margin-top:8px
  }
.new-message{
    font-size:7px
  }
.incoming-copy{
    gap:8px
  }
.incoming-copy h1{
    font-size:21px
  }
.message-bubble{
    font-size:10px;
    padding:8px 10px
  }
.incoming-copy>.button{
    min-height:30px;
    font-size:10px;
    padding:7px 11px
  }
.section-top h1{
    font-size:17px
  }
.feedback-bar{
    padding:6px 9px
  }
.feedback-bar strong{
    font-size:9px
  }
.feedback-bar p{
    font-size:7px
  }
.feedback-bar .button{
    font-size:9px;
    min-height:29px;
    padding:6px 9px
  }
.reply-copy{
    gap:6px
  }
.reply-copy h1{
    font-size:20px
  }
.reply-gift img{
    width:31px;
    height:31px
  }
.reply-gift strong{
    font-size:15px
  }
.reply-gift span{
    font-size:6px;
    margin-bottom:3px
  }
.reply-choice strong{
    font-size:12px
  }
.reply-choice{
    padding:6px;
    gap:5px;
    min-height:31px
  }
.option-number{
    height:15px;
    width:15px;
    font-size:7px
  }
.reply-feedback{
    font-size:8px;
    min-height:2.2em
  }
.reply-copy>.button{
    min-height:29px;
    font-size:9px;
    padding:6px 10px
  }
.finish-top h1{
    font-size:21px;
    margin:5px 0
  }
.finish-top p{
    font-size:8px
  }
.finish-top img{
    height:47px
  }
.finish-stats strong{
    font-size:16px
  }
.finish-stats span{
    font-size:7px
  }
.finish-stats>div{
    padding:4px 8px
  }
.finish-content h2{
    font-size:10px;
    margin-bottom:6px
  }
#finish-awards .award{
    padding:4px 6px;
    gap:5px
  }
#finish-awards .award strong{
    font-size:7px
  }
#finish-awards .award-icon{
    font-size:12px
  }
.finish-gift img{
    height:24px
  }
.finish-gift strong{
    font-size:8px
  }
.finish-gift small{
    font-size:6px
  }
.finish-gift{
    padding:4px;
    gap:3px
  }
.finish-pages{
    margin-top:5px
  }
.finish-pages button{
    width:17px;
    height:17px;
    font-size:7px
  }
.finish-actions .button{
    min-height:28px;
    padding:6px 10px;
    font-size:8px
  }
.finish-actions .quiet-button{
    font-size:8px
  }
}
@media(prefers-reduced-motion:reduce) {
*,*::before,*::after{
    transition:none!important;
    animation:none!important
  }
}
.reply-copy{
  gap:12px
}
.reply-choices{
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.reply-choice{
  justify-content:center;
  min-height:48px;
  padding:10px 8px;
  gap:0
}
.reply-choice .option-number{
  display:none
}
.reply-choice strong{
  font-size:clamp(11px,1.4vw,18px);
  letter-spacing:.02em;
  line-height:1.35
}
.reply-gift{
  padding:10px 12px
}
.reply-gift img{
  height:52px;
  width:52px
}
#finish-awards .award strong{
  overflow-wrap:anywhere
}
@media(max-width:600px) and (min-height:501px) {
.stage-progress{
    gap:5px
  }
.stage-progress b{
    width:21px;
    height:21px
  }
.reply-copy{
    gap:9px
  }
.reply-intro,.reply-copy>.new-message{
    display:none
  }
.reply-gift{
    padding:7px 10px
  }
.reply-gift img{
    width:36px;
    height:36px
  }
.reply-choice{
    min-height:44px;
    padding:7px 5px
  }
.reply-choice strong{
    font-size:11px;
    letter-spacing:0;
    line-height:1.3
  }
}
@media(max-width:600px) and (min-height:501px) and (max-height:650px) {
.finish-top p{
    display:none
  }
.finish-top img{
    height:60px;
    width:43px
  }
.finish-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px
  }
.finish-stats>div{
    padding:6px
  }
.finish-stats strong{
    font-size:16px
  }
.finish-stats span{
    font-size:7px;
    line-height:1.3
  }
#finish-awards .award-icon{
    display:none
  }
#finish-awards .award{
    padding:7px
  }
}
@media(max-height:500px) and (orientation:landscape) {
.reply-copy{
    gap:7px
  }
.reply-gift{
    padding:0
  }
.reply-gift img{
    width:40px;
    height:40px
  }
.reply-choice{
    min-height:36px;
    padding:7px 5px
  }
.reply-choice strong{
    font-size:clamp(10px,1.8vw,14px);
    letter-spacing:0
  }
.finish-top img,.finish-top p{
    display:none
  }
.finish-top h1{
    font-size:24px;
    margin:5px 0
  }
.finish-stats>div{
    padding:5px 8px
  }
.finish-stats strong{
    font-size:17px
  }
.finish-stats span{
    font-size:7px;
    line-height:1.2
  }
#finish-awards{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
#finish-awards .award{
    padding:4px 5px
  }
#finish-awards .award-icon{
    display:none
  }
#finish-awards .award strong{
    font-size:7.5px;
    line-height:1.3
  }
.finish-gift img{
    height:24px
  }
.finish-gift{
    padding:4px;
    gap:3px
  }
}
@media(max-height:360px) and (orientation:landscape) {
.reply-copy{
    gap:6px
  }
.reply-gift img{
    width:31px;
    height:31px
  }
.reply-choice{
    min-height:31px;
    padding:6px 4px
  }
.reply-choice strong{
    font-size:11px
  }
.finish-top h1{
    font-size:20px;
    margin:4px 0
  }
.finish-stats>div{
    padding:4px 7px
  }
.finish-stats strong{
    font-size:14px
  }
.finish-stats span{
    font-size:6px
  }
.finish-gift img{
    height:20px
  }
}
/* Consolidated phone and gift shelf layout. */
.incoming-layout{
  min-height:0;
  display:grid;
  grid-template-columns:.85fr 1.2fr;
  gap:38px;
  align-items:stretch
}
.device-area{
  min-height:0;
  min-width:0;
  container-type:size;
  display:grid;
  place-items:center
}
.phone{
  width:min(100%,280px,54cqh);
  aspect-ratio:.64;
  background:linear-gradient(125deg,#719282,#426b5a);
  border:3px solid #365b4a;
  border-radius:29px;
  padding:12px;
  box-shadow:0 8px 0 #335442,0 15px 30px #34573912;
  display:grid;
  grid-template-rows:4px minmax(0,.8fr) 17px minmax(0,1.3fr);
  gap:8px;
  container-type:inline-size;
  min-height:0;
  color:#2b5046
}
.phone-speaker{
  height:4px;
  width:26%;
  border:1px solid #aec3b5;
  border-radius:4px;
  background:#3d6152;
  justify-self:center
}
.phone-display{
  background:linear-gradient(#e0ebdd,#d0dfcc);
  border:3px solid #35594d;
  border-radius:14px;
  padding:8px;
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  overflow-wrap:anywhere;
  box-shadow:inset 0 3px 6px #284a3918
}
.phone-status{
  display:flex;
  justify-content:space-between;
  font-size:clamp(5px,2.4cqi,8px);
  letter-spacing:.7px;
  border-bottom:1px solid #b1c5af;
  padding-bottom:4px;
  color:#66846b
}
.phone-heading{
  font-size:clamp(9px,4.6cqi,13px);
  font-weight:700;
  line-height:1.3
}
.phone-code{
  font-family:Rubik,monospace;
  font-size:clamp(12px,7.5cqi,24px);
  letter-spacing:.06em;
  font-weight:700;
  text-align:center;
  overflow-wrap:anywhere;
  line-height:1.35
}
.phone-caption{
  font-size:clamp(6px,3cqi,9px);
  text-align:center;
  line-height:1.3;
  color:#6d896f
}
.phone-envelope{
  font-size:11cqi;
  text-align:center;
  line-height:1;
  position:relative;
  color:#66886b
}
.phone-envelope span{
  display:inline-grid;
  place-items:center;
  width:15px;
  height:15px;
  font-size:9px;
  background:#b56b62;
  color:#fff;
  border-radius:50%;
  vertical-align:top;
  margin-left:2px
}
.phone-nav{
  display:flex;
  justify-content:space-around;
  align-items:center;
  color:#d5e2d5;
  font-size:14px
}
.phone-keypad{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:4px;
  background:#456f5c;
  border:1px solid #91ad96;
  border-radius:14px;
  padding:6px;
  min-height:0
}
.phone-key{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #557e65;
  border-bottom:3px solid #385d4a;
  border-radius:6px;
  background:linear-gradient(#f8faf1,#dce5d5);
  line-height:1.12;
  min-width:0;
  min-height:0
}
.phone-key b{
  font-family:Rubik;
  font-size:clamp(11px,7cqi,21px);
  color:#49735e
}
.phone-key span{
  font-size:clamp(6px,3.8cqi,11px);
  font-weight:700;
  color:#71866e
}
.phone-key:last-child{
  grid-column:2
}
.workshop-layout{
  display:grid;
  grid-template-columns:minmax(170px,.65fr) minmax(0,1.7fr);
  gap:25px;
  min-height:0
}
.phone-column{
  display:grid;
  grid-template-rows:minmax(0,1fr)auto;
  min-height:0;
  gap:9px
}
.phone-help{
  text-align:center;
  font-size:11px;
  color:#8e9b81;
  line-height:1.5
}
.store{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:13px;
  min-height:0;
  background:#f3f5ec;
  border:1px solid #e1e7d8;
  border-radius:20px;
  padding:17px
}
.store-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px
}
.store-heading h2{
  font-size:15px;
  color:#6b8063
}
.store-heading>span{
  font-size:9px;
  color:#a0a88e
}
.gift-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));
  gap:10px 8px;
  min-height:0
}
.gift{
  position:relative;
  display:grid;
  grid-template-rows:minmax(0,1fr)auto;
  min-width:0;
  min-height:0;
  padding:7px 4px 6px;
  border:1px solid #e0e7d3;
  border-radius:11px;
  background:#fffdf8;
  color:#79896b;
  box-shadow:0 2px 0 #dfe6d4;
  gap:4px
}
.gift-art{ position: relative; min-width: 0; min-height: 0; }
.gift-art > img{ position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.gift-name{
  font-size:clamp(8px,.75vw,11px);
  line-height:1.2;
  font-weight:700;
  text-align:center;
  overflow-wrap:anywhere;
  min-height:2.4em;
  display:grid;
  place-items:center
}
.reply-layout{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:38px;
  min-height:0
}
.gift-pager{
  display:none
}
/* Gift images are positioned inside their allocated grid cell. */
.phone{ height: auto; }
/* Both available width and height determine when the full workshop fits. */
@media (max-width: 1000px),(max-height: 740px){
  .workshop-layout {
    grid-template-columns: minmax(230px, .8fr) minmax(0, 1.6fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 18px;
  }
  .phone-column { grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
  .phone-help { font-size: 10px; line-height: 1.5; }
  .phone {
    width: 100%;
    max-width: 520px;
    height: 156px;
    max-height: none;
    aspect-ratio: auto;
    padding: 8px;
    border-radius: 20px;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    box-shadow: 0 5px 0 #335442, 0 10px 20px #34573912;
  }
  .phone-speaker, .phone-nav { display: none; }
  .phone-display { border-width: 2px; border-radius: 11px; padding: 7px; gap: 6px; }
  .phone-status { font-size: 6px; letter-spacing: .3px; padding-bottom: 3px; }
  .phone-heading { font-size: 11px; line-height: 1.2; }
  .phone-code { font-size: clamp(12px, 3.2cqi, 18px); letter-spacing: .015em; line-height: 1.3; }
  .phone-caption { font-size: 8px; line-height: 1.25; }
  .phone-envelope { font-size: 32px; }
  .phone-keypad { padding: 4px; gap: 3px; border-radius: 10px; }
  .phone-key { border-radius: 4px; border-bottom-width: 2px; line-height: 1; gap: 1px; }
  .phone-key b { font-size: 14px; }
  .phone-key span { font-size: 8px; }
  .store {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 12px;
    gap: 9px;
    max-height: 440px;
    align-self: stretch;
  }
  .store-heading { gap: 8px; }
  .store-heading h2 { font-size: 13px; }
  .store-heading > span { display: none; }
  .gift-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gift.off-page { display: none; }
  .gift { padding: 6px 4px 4px; gap: 3px; }
  .gift-name { font-size: 10px; line-height: 1.2; min-height: 2.4em; overflow-wrap: normal; }
  .gift-pager { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .gift-pager > span { font-size: 10px; color: #839371; }
  .gift-pager button { width: 32px; height: 28px; border: 1px solid #cbd9bd; border-radius: 7px; background: #fcfdf7; color: #6a805b; font-size: 11px; }
  .gift-pager .selected { border-color: #7e9c62; background: #e5eed9; color: #456332; }
  .incoming-layout, .reply-layout { grid-template-columns: minmax(230px, .85fr) minmax(0, 1.2fr); grid-template-rows: minmax(0, 1fr); gap: 24px; }
}
/* Portrait tablets also need shelves,rather than seven narrow columns. */
@media (max-width: 820px) and (min-height: 641px){
  .workshop-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: 160px minmax(0, 1fr); gap: 16px; }
  .phone-column { grid-template-rows: minmax(0, 1fr); }
  .phone-help { display: none; }
  .incoming-layout, .reply-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: 160px minmax(0, 1fr); gap: 20px; }
  .incoming-copy, .reply-copy { justify-content: center; }
  .helper-note { display: none; }
}

@media (max-width: 600px) {
.gift-name{ font-size: 9px; }
.store{ padding: 9px; gap: 7px; }
.gift-grid{ gap: 6px; }
.store-heading h2{ font-size: 12px; }
}

@media (max-width: 600px) and (orientation: portrait) {
.incoming-layout,.reply-layout{ grid-template-columns: minmax(0, 1fr); grid-template-rows: 156px minmax(0, 1fr); gap: 14px; }
.workshop-layout{ grid-template-columns: minmax(0, 1fr); grid-template-rows: 156px minmax(0, 1fr); gap: 14px; }
.phone-column{ grid-template-rows: minmax(0, 1fr); }
.phone-help{ display: none; }
}

@media (max-width: 600px) and (max-height: 700px) and (orientation: portrait) {
.workshop-screen{ padding: 12px; gap: 9px; }
.workshop-screen .section-top h1{ font-size: 18px; }
.workshop-layout{ grid-template-rows: 128px minmax(0, 1fr); gap: 10px; }
.incoming-layout,.reply-layout{ grid-template-rows: 128px minmax(0, 1fr); gap: 12px; }
.phone{ height: 124px; padding: 6px; gap: 6px; }
.phone-keypad{ padding: 3px; gap: 2px; }
.phone-key b{ font-size: 12px; }
.phone-key span{ font-size: 7px; }
.phone-display{ padding: 5px; gap: 4px; }
.phone-status{ font-size: 5px; padding-bottom: 2px; }
.phone-heading{ font-size: 9px; }
.phone-caption{ font-size: 7px; }
.store{ padding: 7px; gap: 5px; }
.store-heading h2{ font-size: 11px; }
.gift-grid{ gap: 5px; }
.gift{ padding: 3px; gap: 1px; }
.gift-name{ font-size: 8px; min-height: 2.4em; }
.gift-pager button{ height: 25px; }
.feedback-bar{ padding: 7px 9px; gap: 8px; }
.feedback-bar:not(.success) p{ display: none; }
}
/* Short desktop windows: do not collapse a vertical phone into a tiny shell. */
@media (max-height: 640px) and (min-width: 601px){
  .workshop-layout { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.6fr); gap: 16px; }
  .phone-help { display: none; }
  .phone-column { grid-template-rows: minmax(0, 1fr); }
  .store { padding: 9px; gap: 7px; }
  .gift-name { font-size: 9px; }
  .gift-grid { gap: 6px; }
  .incoming-copy, .reply-copy { gap: 10px; }
  .incoming-copy h1, .reply-copy h1 { font-size: 25px; }
  .helper-note { display: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
.workshop-layout{ grid-template-columns: minmax(215px, .75fr) minmax(0, 1.6fr); gap: 14px; }
.incoming-layout,.reply-layout{ grid-template-columns: minmax(215px, .9fr) minmax(0, 1.25fr); gap: 18px; }
.phone{ height: 132px; padding: 6px; gap: 6px; }
.phone-display{ gap: 4px; padding: 5px; }
.phone-keypad{ gap: 2px; padding: 3px; }
.phone-key b{ font-size: 12px; }
.phone-key span{ font-size: 7px; }
.phone-heading{ font-size: 10px; }
.phone-caption{ font-size: 7px; }
.phone-status{ font-size: 5px; }
.store{ padding: 7px; gap: 5px; }
.store-heading{ display: none; }
.store{ grid-template-rows: minmax(0, 1fr) auto; }
.gift-grid{ grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 4px; }
.gift{ padding: 4px 2px 3px; gap: 2px; }
.gift-name{ font-size: 8px; overflow-wrap: anywhere; }
.gift-pager button{ height: 24px; }
.feedback-bar:not(.success) p{ display: none; }
}

@media (max-height: 360px) and (orientation: landscape) {
.phone{ height: 116px; }
.phone-keypad{ padding: 2px; }
.phone-key b{ font-size: 11px; }
.phone-key span{ font-size: 6px; }
.phone-heading{ font-size: 9px; }
.phone-caption{ font-size: 6px; }
.phone-display{ gap: 3px; }
.incoming-copy h1,.reply-copy h1{ font-size: 21px; }
}
/* Wider start action without changing the established button height. */
.home-actions #start-button.primary{
  min-width: 200px;
  max-width: 100%;
}
/* Decorative snowfall stays behind the interface and never captures clicks. */
body{ isolation: isolate; }
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 30px 40px, #fff 0 2px, #fff0 3px),
    radial-gradient(circle at 130px 180px, #fff 0 3px, #fff0 4px),
    radial-gradient(circle at 210px 90px, #fff 0 1.5px, #fff0 2.5px);
  background-size: 180px 280px, 260px 420px, 360px 560px;
  background-repeat: repeat;
  opacity: .85;
  animation: workshop-snow 24s linear infinite;
}
@keyframes workshop-snow{
  from { background-position: 0 -560px, 0 -420px, 0 -1120px; }
  to { background-position: 0 0, 0 0, 0 0; }
}
@media (max-width: 600px) {
.home-actions #start-button.primary{ min-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
body::before{ display: none; }
}

@media print {
@page{ size: auto; margin: 8mm; }
body::before{ display: none; }
body{
    min-height:0;
    background:#edf1e8!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact
  }
.app{
    break-inside:avoid;
    page-break-inside:avoid
  }
.toast,#awards-modal,#guide-modal,dialog:not([open]){
    display:none!important
  }
body:has(#diploma-modal[open]){
    background:#fff!important
  }
body:has(#diploma-modal[open]) .app{
    display:none!important
  }
#diploma-modal[open]{
    display:block!important;
    position:static;
    width:100%;
    max-width:none;
    max-height:none;
    margin:0;
    border:0;
    padding:0;
    box-shadow:none;
    background:#fff
  }
.modal-actions{
    display:none!important
  }
.sr-only{
    display:none
  }
}

/* Certificate: one illustration, quiet stars, compact readable typography. */
.diploma-modal { width: min(960px, 96vw); padding: 16px; }
.diploma {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr);
  align-items: center;
  gap: 24px;
  min-height: 470px;
  padding: 40px 34px;
  border: 5px double #c5a468;
  border-radius: 16px;
  background: #fffdf4;
  color: #355943;
  text-align: center;
}
.diploma::before, .diploma::after {
  content: "✦  ✧  ✦";
  position: absolute;
  color: #c3a15e;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 9px;
  pointer-events: none;
}
.diploma::before { top: 20px; right: 7%; }
.diploma::after { bottom: 20px; left: 13%; font-size: 18px; }
.diploma-content { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.diploma-kicker { font-size: 9px; font-weight: 800; letter-spacing: 2px; color: #8b784d; }
.diploma h2 { margin: 0; font-size: 43px; line-height: 1.05; color: #355f49; }
.diploma-rank { font-family: Rubik, sans-serif; font-size: 19px; line-height: 1.3; }
.diploma-presented { font-size: 13px; color: #62765a; }
.diploma input {
  display: block; width: 100%; min-width: 0; padding: 5px 0 8px; margin: 0;
  border: 0; border-bottom: 1px solid #b99c61; background: transparent;
  text-align: center; font: 700 28px/1.3 Nunito, sans-serif; color: #355943;
}
.diploma input::placeholder { color: #93947b; font-size: 19px; font-weight: 400; }
.diploma-print-name { display: none; }
.diploma-praise { font-size: 15px; line-height: 1.65; }
.diploma-praise strong { font-weight: 800; }
.diploma-thanks { font-size: 14px; line-height: 1.5; font-weight: 700; }
.diploma-sign { color: #44634a; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.diploma-sign strong { display: block; font-size: 18px; font-family: Rubik, sans-serif; }
.diploma-santa { display: block; width: 100%; height: 350px; object-fit: contain; }
@media (max-width: 600px) {
  .diploma-modal { padding: 10px; }
  .diploma { min-height: 0; padding: 30px 18px 25px; grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .diploma-content { gap: 10px; }
  .diploma h2 { font-size: 34px; }
  .diploma-rank { font-size: 16px; }
  .diploma input { font-size: 24px; }
  .diploma-praise { font-size: 13px; }
  .diploma-santa { height: 140px; }
  .diploma::before { right: 10px; top: 9px; font-size: 13px; }
  .diploma::after { left: 16px; bottom: 16px; font-size: 16px; }
}
@media print {
  .diploma {
    width: 100%; min-height: 0; height: 185mm;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr);
    padding: 12mm; gap: 8mm;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    break-inside: avoid; page-break-inside: avoid;
  }
  .diploma-content { gap: 3mm; }
  .diploma-kicker { font-size: 9pt; }
  .diploma h2 { font-size: 36pt; }
  .diploma-rank { font-size: 18pt; }
  .diploma-presented { font-size: 11pt; }
  .diploma input { display: none; }
  .diploma-print-name {
    display: block; width: 100%; min-height: 12mm; padding: 1mm 0 2mm;
    border-bottom: 1px solid #b99c61; font-size: 24pt; line-height: 1.2;
    font-weight: 800; color: #355943; overflow-wrap: anywhere;
  }
  .diploma-praise { font-size: 12pt; line-height: 1.65; }
  .diploma-thanks { font-size: 12pt; }
  .diploma-sign { font-size: 11pt; margin-top: 3mm; }
  .diploma-sign strong { font-size: 16pt; }
  .diploma-santa { height: 130mm; }
  .diploma::before { top: 9mm; right: 9%; font-size: 26pt; }
  .diploma::after { bottom: 9mm; left: 15%; font-size: 18pt; }
}

#screen-print-preview { display: none; }
@keyframes sms-arrive {
  0%, 40%, 80% { transform: rotate(-3deg); }
  20%, 60% { transform: rotate(3deg); }
  100% { transform: none; }
}
@media print {
  body.printing-screen-preview > .app { display: none !important; }
  /* A top-layer dialog does not give body any layout height. The root canvas
     must also be white, otherwise its green screen background remains below it. */
  html:has(#diploma-modal[open]),
  body:has(#diploma-modal[open]) {
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  dialog::backdrop {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  #diploma-modal[open] {
    overflow: visible;
    filter: none;
    box-shadow: none !important;
  }
  #screen-print-preview {
    display: block;
    width: 100%;
    height: 90vh;
    overflow: visible;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
