/* Stage 8.1.1: only narrow portrait touch screens in an actual game. */
.portrait-header,.portrait-actions{display:none}
#app.portrait-game{background:#fff8e9;justify-content:flex-start;align-items:stretch}
#app.portrait-game #stage,#app.portrait-game #stage:fullscreen{width:100%;height:100%;max-width:none;min-height:0;border-radius:0;box-shadow:none;background:#fff8e9;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
#app.portrait-game #gameFrame,#app.portrait-game #stage:fullscreen #gameFrame{width:100%;min-width:0;aspect-ratio:auto;flex:1 0 max(228px,72vw);min-height:max(228px,72vw);height:auto;border-radius:0;overflow:hidden}
#app.portrait-game #gameFrame canvas{position:absolute;inset:0;width:100%;height:100%}
#app.portrait-game #sceneTitle,#app.portrait-game .orientation-hint{display:none}
#app.portrait-game .portrait-header{flex:none;display:flex;flex-direction:column;align-items:stretch;padding:7px 12px 6px;gap:4px;background:linear-gradient(#fffaf0,#f4ebd6);border-bottom:1px solid #e8dfc7}
#app.portrait-game .portrait-title{font:400 23px/1.2 Georgia,serif;text-align:center;color:#68794e;padding:3px 0}
#app.portrait-game .portrait-header .apple-progress,#app.portrait-game .portrait-header .butterfly-progress{position:static;transform:none;width:100%;max-width:none;min-height:0;margin:0;padding:4px 8px;display:flex;align-items:center;justify-content:space-between;gap:6px;border-radius:12px;border:1px solid #e4d8ba;box-shadow:none;background:#fffdf1;flex-wrap:wrap;font-size:12px}
#app.portrait-game .apple-progress-label{gap:7px;flex:1;min-width:0;font-size:12px}
#app.portrait-game .apple-progress-label strong,#app.portrait-game .butterfly-progress strong{font-size:19px;white-space:nowrap}
#app.portrait-game .apple-pips,#app.portrait-game .butterfly-pips{margin:0;gap:3px}
#app.portrait-game .apple-pip{width:17px;height:17px}
#app.portrait-game .butterfly-pip{width:16px;height:18px}
#app.portrait-game .portrait-actions{display:flex;flex-direction:column;flex:none;gap:3px;padding:4px 10px 5px;background:#fff8e9}
#app.portrait-game .portrait-actions:not(:has(> :not([hidden]))){display:none}
#app.portrait-game[data-screen=butterflies] .portrait-actions,#app.portrait-game[data-screen=flowers] .portrait-actions{display:none}
#app.portrait-game .portrait-actions .apple-hint{position:static;margin:0;padding:3px 6px;max-width:none;justify-content:center;text-align:center;font-size:13px;border:0;box-shadow:none;background:none;line-height:1.35}
#app.portrait-game .portrait-actions #gameLinks{position:static;display:flex;justify-content:center;gap:8px;flex-wrap:nowrap}
#app.portrait-game .portrait-actions .small-button,#app.portrait-game .butterfly-links .small-button,#app.portrait-game .flower-links .small-button{flex:1;max-width:190px;min-width:0;min-height:44px;padding:5px 7px;font-size:13px;white-space:nowrap}
#app.portrait-game .character-panel,#app.portrait-game #stage:fullscreen .character-panel{width:100%;height:auto;min-height:0;padding:7px 10px;gap:5px;flex:none}
#app.portrait-game .character-panel p{min-height:0;font-size:14px;line-height:1.3}
#app.portrait-game .character-panel strong{display:inline;margin-right:5px}
#app.portrait-game .character-panel .small-button{min-height:44px;font-size:13px;padding:5px 12px}
#app.portrait-game .game-bar,#app.portrait-game #stage:fullscreen .game-bar{width:100%;height:auto;min-height:60px;flex:none;padding:5px 7px;border-radius:0}
#app.portrait-game .game-controls{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;align-items:stretch}
#app.portrait-game .game-button{width:100%;height:54px;min-width:0;min-height:44px;padding:4px 2px;display:flex;flex-direction:column;gap:3px;font-size:11px;white-space:normal;line-height:1.1;text-align:center}
#app.portrait-game .game-button svg{width:21px;height:21px}
#app.portrait-game .volume-panel{max-width:calc(100vw - 20px)}
#app.portrait-game #stage:fullscreen .butterfly-links,#app.portrait-game #stage:fullscreen .butterfly-victory,#app.portrait-game #stage:fullscreen .flower-panel{width:100%}
#app.portrait-game .butterfly-links{height:auto;min-height:49px;padding:3px 10px}
#app.portrait-game .butterfly-victory{height:auto;min-height:65px;padding:5px 8px}
#app.portrait-game .flower-panel{height:auto;min-height:0;padding:5px 8px;gap:4px}
#app.portrait-game .flower-task{min-height:49px;gap:7px}
#app.portrait-game .flower-sample{width:44px;height:44px;border-radius:12px}
#app.portrait-game .flower-prompt strong{font-size:15px}
#app.portrait-game .flower-progress{font-size:16px;padding:6px 7px}
#app.portrait-game .flower-feedback{font-size:12px;min-height:0}
#app.portrait-game .flower-victory{min-height:0}
#app.portrait-game .apple-victory{top:50%;transform:translate(-50%,-50%);padding:16px 14px}
