/* ============ StoryBloom: mixed-media playful UI ============ */
@font-face { font-family: "Andika"; src: url(../assets/fonts/andika-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url(../assets/fonts/andika-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(../assets/fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../assets/fonts/caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Abril"; src: url(../assets/fonts/abril.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee"; src: url(../assets/fonts/bungee.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Special"; src: url(../assets/fonts/special-elite.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #fbf6ec; --paper2: #f3ead8; --ink: #2f2a3b; --ink-soft: #5d5670;
  --red: #ef6f61; --orange: #f6a04d; --yellow: #f7cf4a; --green: #7cc28a; --teal: #4fb7b3;
  --blue: #5b9bd5; --purple: #9b7fd1; --pink: #f29bb8; --night: #1d2350; --night2: #2c3470;
  --read: "Andika", "Comic Sans MS", system-ui, sans-serif;
  --ui: "Fredoka", "Andika", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; width: 100%; height: 100%; overflow: hidden; position: fixed; inset: 0;
  overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; -webkit-text-size-adjust: 100%;
  background: #e9dcc4; color: var(--ink); font-family: var(--ui);
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* The stage is a fixed-size canvas that is scaled to fit any screen: no zoom, no scroll. */
#stage {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 800px;
  transform-origin: 0 0; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 60px rgba(60, 40, 10, .25);
}
#stage.portrait { width: 800px; height: 1280px; }

/* paper grain overlay */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 50; mix-blend-mode: multiply; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* watercolour blobs */
.blob { position: absolute; border-radius: 50%; filter: url(#wc) blur(2px); opacity: .55; pointer-events: none; mix-blend-mode: multiply; }

/* ---------- screens & windows ---------- */
.screen { position: absolute; inset: 0; }
.win {
  position: absolute; inset: 0; z-index: 10; background: var(--paper);
  display: flex; flex-direction: column; animation: winIn .35s cubic-bezier(.2, 1.4, .4, 1);
}
.win.closing { animation: winOut .25s ease-in forwards; }
@keyframes winIn { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes winOut { to { transform: scale(.9) rotate(2deg); opacity: 0; } }
.win-bar { height: 92px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 22px; position: relative; z-index: 5; }
.win-body { flex: 1; position: relative; min-height: 0; }

.back-btn {
  width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 34px;
  box-shadow: 3px 4px 0 var(--ink); border: 3px solid var(--ink); transform: rotate(-4deg);
}
.back-btn:active { transform: translate(3px, 4px) rotate(-4deg); box-shadow: 0 0 0 var(--ink); }

/* magazine cut-out title ("ransom note") */
.cutout { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.cutout .cword { display: inline-flex; gap: 3px; white-space: nowrap; }
.cutout span {
  display: inline-block; padding: 2px 7px; font-size: 40px; line-height: 1.1; box-shadow: 2px 3px 0 rgba(0, 0, 0, .18);
}
.cutout .sp { width: 14px; box-shadow: none; padding: 0; }

/* torn-paper card */
.torn { position: relative; background: #fff; clip-path: var(--torn, none); filter: drop-shadow(3px 5px 0 rgba(47, 42, 59, .25)); }

/* tape strip */
.tape { position: absolute; width: 110px; height: 30px; background: rgba(255, 240, 180, .75); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); z-index: 3; }
.tape.blue { background: rgba(170, 215, 240, .75); }
.tape.pink { background: rgba(250, 190, 210, .75); }

/* pencil-outline button */
.pbtn {
  font-family: var(--ui); font-weight: 600; font-size: 26px; padding: 12px 26px; border-radius: 22px 30px 24px 28px / 28px 22px 30px 24px;
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); transition: transform .08s;
}
.pbtn:active { transform: translate(4px, 5px); box-shadow: 0 0 0 var(--ink); }
.pbtn.green { background: var(--green); } .pbtn.blue { background: #9ccbf0; } .pbtn.pink { background: var(--pink); }
.pbtn.white { background: #fff; } .pbtn.purple { background: #c6b3ef; } .pbtn.orange { background: var(--orange); }
.pbtn.small { font-size: 20px; padding: 8px 16px; box-shadow: 3px 4px 0 var(--ink); }
.pbtn[disabled] { opacity: .4; }

.hand { font-family: var(--hand); }
.read { font-family: var(--read); }

/* ---------- HOME ---------- */
#home { background: radial-gradient(ellipse at 20% 10%, #fff8e6 0, transparent 60%), var(--paper); }
.home-head { position: absolute; left: 36px; top: 26px; right: 36px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.logo { display: flex; gap: 4px; transform: rotate(-2deg); }
.logo span { font-size: 54px; padding: 0 10px; box-shadow: 3px 4px 0 rgba(0, 0, 0, .2); }
.home-tools { display: flex; gap: 14px; align-items: center; }
.star-count { font-family: var(--ui); font-weight: 700; font-size: 28px; background: #fff; border: 3px solid var(--ink); border-radius: 40px; padding: 6px 18px; box-shadow: 3px 4px 0 var(--ink); }
.icon-btn { width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); font-size: 28px; display: grid; place-items: center; }

.tiles { position: absolute; left: 36px; right: 36px; top: 130px; bottom: 36px; display: grid; gap: 26px;
  grid-template-columns: 1.45fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
#stage.portrait .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 1.5fr 1fr 1fr; }
#stage.portrait .tile.big { grid-column: 1 / 3; grid-row: auto; }
.tile { position: relative; border-radius: 6px; overflow: visible; text-align: left; transition: transform .15s; }
.tile:nth-child(2) { transform: rotate(1.5deg); } .tile:nth-child(3) { transform: rotate(-1.2deg); }
.tile:nth-child(4) { transform: rotate(-1deg); } .tile:nth-child(5) { transform: rotate(1.3deg); }
.tile:active { transform: scale(.96) !important; }
.tile.big { grid-row: 1 / 3; }
.tile .card { position: absolute; inset: 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 18px 26px 20px 30px / 26px 18px 30px 20px; box-shadow: 6px 8px 0 rgba(47, 42, 59, .85); }
.tile .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .label { position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 2; }
.tile .label .cutout span { font-size: 34px; }
.tile.big .label .cutout span { font-size: 50px; }
.tile .sub { margin-top: 6px; display: inline-block; background: #fff; font-family: var(--hand); font-size: 26px; padding: 0 10px; transform: rotate(-1deg); box-shadow: 2px 2px 0 rgba(0, 0, 0, .15); }
.tile .emo { position: absolute; right: 16px; top: 12px; font-size: 64px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .2)); z-index: 2; }
.tile .scribble { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile .badge { position: absolute; top: -14px; right: 90px; z-index: 4; background: var(--red); color: #fff; font-weight: 700; font-size: 20px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 30px; transform: rotate(-5deg); }

/* ---------- generic grids inside windows ---------- */
.grid { position: absolute; inset: 0 30px 30px; display: grid; gap: 22px; align-content: center; }
.pick {
  position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 20px 26px 22px 28px / 26px 20px 28px 22px;
  box-shadow: 5px 6px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; overflow: hidden;
}
.pick:active { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.pick .big-emo { font-size: 64px; line-height: 1; }
.pick .t { font-weight: 700; font-size: 26px; line-height: 1.1; }
.pick .s { font-family: var(--hand); font-size: 24px; color: var(--ink-soft); line-height: 1; }
.pick .lock { position: absolute; top: 8px; right: 10px; font-size: 22px; }
.pick .stars { position: absolute; top: 6px; right: 10px; font-size: 18px; }

/* pager dots + arrows (instead of scrolling) */
.pager { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 18px; z-index: 6; }
.pager .dot { width: 14px; height: 14px; border-radius: 50%; background: #d8ccb4; border: 2px solid var(--ink); }
.pager .dot.on { background: var(--red); }
.arrow { width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); font-size: 34px; display: grid; place-items: center; }
.arrow:active { transform: translate(4px, 5px); box-shadow: 0 0 0 var(--ink); }
.arrow[disabled] { opacity: .25; }

/* ---------- story / book reader ---------- */
.book { position: absolute; inset: 0 24px 24px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; }
#stage.portrait .book { grid-template-columns: 1fr; grid-template-rows: 1.1fr 1fr; }
.book .pic { position: relative; border: 4px solid #fff; outline: 3px solid var(--ink); box-shadow: 8px 10px 0 rgba(0, 0, 0, .25); transform: rotate(-1.2deg); overflow: hidden; background: #eee; }
.book .pic img { width: 100%; height: 100%; object-fit: cover; animation: kb 22s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.book .txt { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 10px 6px 80px; }
.words { font-family: var(--read); font-size: 38px; line-height: 1.55; }
.words.big { font-size: 64px; line-height: 1.4; }
.words .w { display: inline-block; padding: 0 5px; margin: 0 -1px; border-radius: 10px; transition: background .12s, transform .12s; cursor: pointer; }
.words .w.on { background: var(--yellow); transform: translateY(-3px) rotate(-1deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.words .w.done { opacity: .85; }
.words .w.tap { background: #bfe6c7; }
.book-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 14px; justify-content: center; align-items: center; }
.moral { font-family: var(--hand); font-size: 44px; line-height: 1.15; color: var(--ink); }

/* night mode for bedtime */
.night { background: radial-gradient(ellipse at 70% 0%, #3c4690 0, transparent 60%), var(--night) !important; color: #f6f1e3; }
.night .words { color: #f6f1e3; }
.night .words .w.on { background: #f7cf4a; color: var(--ink); }
.night .back-btn, .night .arrow, .night .pbtn { background-color: #fef7e2; color: var(--ink); }
.night .pbtn.purple { background-color: #c6b3ef; } .night .pbtn.yellow, .night .pbtn:not(.white):not(.purple):not(.green) { background-color: var(--yellow); }
.night .sub, .night .pick { color: var(--ink); }
.stars-bg { position: absolute; inset: 0; pointer-events: none; }
.stars-bg i { position: absolute; width: 4px; height: 4px; background: #fff7c8; border-radius: 50%; animation: tw 3s infinite alternate; }
@keyframes tw { from { opacity: .2; } to { opacity: 1; } }
.dim-layer { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 40; transition: opacity 2s; }

/* ---------- games ---------- */
.center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.letter-big { font-family: var(--read); font-size: 260px; line-height: 1; font-weight: 700; }
.choice-row { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.choice { min-width: 190px; min-height: 160px; font-size: 54px; font-family: var(--read); font-weight: 700; }
.choice.emo { font-size: 96px; }
.choice.right { background: #c6ecc9; animation: bounce .5s; }
.choice.wrong { background: #f7c6c1; animation: shake .4s; }
@keyframes bounce { 40% { transform: scale(1.12) rotate(3deg); } }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.tile-l { width: 130px; height: 150px; font-family: var(--read); font-size: 96px; font-weight: 700; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--ink); }
.tile-l.lit { background: var(--yellow); transform: translateY(-8px); }
.tile-l.slot { background: #f1e8d6; border-style: dashed; box-shadow: none; }
.speaker { width: 110px; height: 110px; border-radius: 50%; font-size: 56px; background: var(--yellow); border: 4px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); display: grid; place-items: center; }
.speaker:active { transform: translate(5px, 6px); box-shadow: none; }
.prog { position: absolute; top: 24px; right: 30px; display: flex; gap: 6px; }
.prog i { width: 30px; height: 30px; font-style: normal; font-size: 26px; opacity: .25; }
.prog i.on { opacity: 1; }

.bubble { position: absolute; width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; font-family: var(--read); font-weight: 700; font-size: 46px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 45%, var(--bc, rgba(120, 200, 240, .5)) 100%);
  border: 3px solid rgba(47, 42, 59, .6); animation: floaty 4s ease-in-out infinite alternate; }
.bubble.popped { animation: popped .35s forwards; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-26px); } }
@keyframes popped { to { transform: scale(1.6); opacity: 0; } }

/* tracing canvas */
.trace-wrap { position: relative; width: 420px; height: 460px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 7px 0 var(--ink); }
.trace-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

/* celebration */
.celebrate { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(251, 246, 236, .85); animation: winIn .4s; }
.celebrate .box { text-align: center; }
.celebrate .sticker { font-size: 170px; animation: bounce 1s infinite; }
.confetti { position: absolute; width: 14px; height: 22px; top: -30px; animation: fall linear forwards; z-index: 61; }
@keyframes fall { to { transform: translateY(900px) rotate(720deg); } }

/* toast */
.toast { position: absolute; left: 50%; bottom: 10px; font-size: 20px; padding: 8px 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 26px; border-radius: 30px; font-size: 24px; z-index: 70; animation: winIn .3s; }

/* activity card */
.act { position: absolute; inset: 0 30px 96px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
#stage.portrait .act { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.note { background: #fffdf4; border: 3px solid var(--ink); padding: 22px 26px; box-shadow: 6px 7px 0 rgba(47, 42, 59, .6); position: relative;
  background-image: repeating-linear-gradient(transparent 0 37px, #c9dff0 37px 39px); }
.note h3 { margin: 0 0 8px; font-size: 30px; }
.note ul, .note ol { margin: 0; padding-left: 30px; font-family: var(--read); font-size: 24px; line-height: 39px; }
.tipbox { font-family: var(--hand); font-size: 30px; background: var(--yellow); padding: 10px 18px; transform: rotate(-1deg); box-shadow: 3px 4px 0 rgba(0, 0, 0, .2); margin-top: 16px; }

/* colouring */
.colour-wrap { position: absolute; inset: 0 24px 24px; display: grid; grid-template-columns: minmax(0,1fr) 150px; grid-template-rows: minmax(0,1fr); gap: 20px; }
.colour-wrap canvas { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; background: #fff; border: 3px solid var(--ink); border-radius: 12px; touch-action: none; }
.palette { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.palette button { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--ink); }
.palette button.on { outline: 5px solid var(--ink); outline-offset: 2px; }

/* settings / parent gate */
.form-row { display: flex; align-items: center; gap: 18px; font-size: 26px; margin: 14px 0; }
.switch { width: 84px; height: 46px; border-radius: 30px; background: #ddd; border: 3px solid var(--ink); position: relative; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: left .15s; }
.switch.on { background: var(--green); } .switch.on::after { left: 40px; }
input.name-in { font: inherit; font-size: 30px; padding: 10px 18px; border: 3px solid var(--ink); border-radius: 16px; width: 360px; user-select: text; -webkit-user-select: text; touch-action: auto; }

/* ---------- PRINT ---------- */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  html, body { position: static; overflow: visible; background: #fff !important; height: auto; }
  body::before, body::after, .grain::after { display: none !important; }
  /* ink saver: pictures print as light greyscale (great for colouring in) */
  .sheet img:not(.keep-ink):not([src*='colour/']) { filter: grayscale(1) brightness(1.18) contrast(.85); }
  .sheet .pic-ink { filter: grayscale(1) brightness(1.15) contrast(.9); }
  #stage, #rotate-hint { display: none !important; }
  #print-root { display: block; }
  .sheet { width: 190mm; height: 275mm; page-break-after: always; position: relative; overflow: hidden; font-family: var(--read); color: #000; }
  .sheet:last-child { page-break-after: auto; }
}
.sheet svg { width: 100%; height: 100%; }
.sheet-preview img:not(.keep-ink) { filter: grayscale(1) brightness(1.18) contrast(.85); }
.sheet-preview .pic-ink { filter: grayscale(1) brightness(1.15) contrast(.9); }

.hint { position: absolute; top: -74px; right: 30px; font-size: 30px; }
#stage.portrait .hint { display: none; }
#stage.portrait .tabs { position: absolute !important; top: 0 !important; left: 24px; right: 24px !important; justify-content: center; flex-wrap: wrap; }
#stage.portrait .colour-wrap { grid-template-columns: minmax(0,1fr) 110px; }
.win-bar .cutout { flex: 1 1 auto; min-width: 0; }

#stage.portrait .win-bar .pbtn.small { font-size: 16px; padding: 6px 10px; }
/* print preview */
.preview-wrap { position: absolute; inset: 0 30px 24px; display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; }
#stage.portrait .preview-wrap { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; }
.preview-holder { position: relative; min-height: 0; overflow: hidden; display: flex; justify-content: center; }
.sheet-preview { width: 718px; height: 1040px; flex: none; background: #fff; transform-origin: top center; box-shadow: 0 6px 24px rgba(0,0,0,.18); outline: 1px solid #ddd; padding: 0; color: #000; font-family: var(--read); }
.sheet-preview .sheet { width: 718px !important; height: 1040px !important; position: relative; overflow: hidden; }
.preview-side { display: flex; flex-direction: column; gap: 16px; justify-content: center; text-align: center; }
#stage.portrait .preview-side { flex-direction: row; flex-wrap: wrap; justify-content: center; }
/* songs */
.song-layout { grid-template-columns: 1fr 1.15fr !important; }
#stage.portrait .song-layout { grid-template-columns: 1fr !important; grid-template-rows: 0.9fr 1fr !important; }
.song-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding-bottom: 6px; }
.lyrics { font-family: var(--read); font-size: 34px; line-height: 1.35; min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.lyrics.many { font-size: 24px; }
.lyric { opacity: .45; transition: opacity .25s, transform .25s; }
.lyric.on { opacity: 1; transform: translateX(8px); }
.lyric.on .w { background: var(--yellow); border-radius: 8px; color: var(--ink); }
.song-bar { flex: 1; height: 16px; background: #e7dcc6; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; cursor: pointer; }
.song-bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.song-cover { transform: rotate(-1.5deg); }
.song-cover.dancing { animation: dance .55s ease-in-out infinite alternate; }
.song-cover.dancing img { animation: none; }
@keyframes dance { from { transform: rotate(-4deg) translateY(0) scale(1); } to { transform: rotate(4deg) translateY(-14px) scale(1.03); } }
a.pbtn { color: var(--ink); display: inline-block; }

.win-bar .pbtn.small { white-space: nowrap; flex: none; font-size: 17px; padding: 8px 12px; }
#stage.portrait .win-bar { flex-wrap: wrap; height: auto; min-height: 92px; padding-block: 10px; row-gap: 8px; }

/* stickers & icons */
.ico { display: inline-flex; line-height: 0; vertical-align: middle; }
.stk { object-fit: contain; filter: drop-shadow(2px 3px 0 rgba(47,42,59,.18)); pointer-events: none; }
.stk.locked { filter: grayscale(1) opacity(.22); }
.ib-label { margin-left: 8px; vertical-align: middle; }
.pbtn .ico, .pbtn .ib-label { vertical-align: middle; }
.star-count { display: inline-flex; align-items: center; gap: 4px; }
.star-count .ico { color: #e8a917; }
.tile .emo { right: 10px; top: 4px; filter: none; }
.arrow .ico, .back-btn .ico, .icon-btn .ico, .speaker .ico { color: var(--ink); }
.celebrate .sticker .stk { width: 180px; height: 180px; }
/* grown-ups page */
.act.grownups { grid-template-columns: 1fr 1fr; bottom: 30px; }
#stage.portrait .act.grownups { grid-template-columns: 1fr; grid-template-rows: auto auto; bottom: 20px; gap: 18px; align-content: start; }
#stage.portrait .act.grownups .note { padding: 16px 20px; }
#stage.portrait .act.grownups .note ul { font-size: 21px; line-height: 32px; background-size: 100% 32px; }
#stage.portrait .act.grownups .form-row { font-size: 22px; margin: 10px 0; flex-wrap: wrap; }
#stage.portrait .act.grownups input.name-in { width: 100%; font-size: 24px; }

/* readable headings */
.label-title { position: relative; display: inline-block; max-width: 100%; font-family: var(--ui); font-weight: 700; line-height: 1.1; color: var(--ink);
  background: #fffdf6; padding: .22em .55em .26em; border-radius: 3px; text-wrap: balance;
  box-shadow: 2px 3px 0 rgba(47,42,59,.22); border-radius: 4px 7px 3px 6px / 6px 3px 7px 4px; }
.label-tape { position: absolute; top: -9px; left: 14px; width: 54px; height: 16px; opacity: .85; transform: rotate(-4deg); }
.night .label-title { background: #fef7e2; }
.win-bar .label-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .label .label-title { font-size: 34px; }
.tile.big .label .label-title { font-size: 48px; }
#stage.portrait .win-bar .label-title { font-size: 26px !important; }
.win-bar .label-tape { display: none; }
.star-row, .prog .ico, .stars .ico { color: #e8a917; }
.prog i { width: auto; height: auto; }
#stage.portrait .act.grownups .note h3 { font-size: 34px; }
#stage.portrait .act.grownups .note ul { font-size: 27px !important; line-height: 42px !important; }
#stage.portrait .act.grownups .form-row { font-size: 28px !important; }
#stage.portrait .act.grownups .switch { width: 96px; height: 52px; }
#stage.portrait .act.grownups .pbtn.small { font-size: 24px; padding: 12px 20px; }
