/* Lantern Orbit - no flex-gap, no aspect-ratio, no inset, no min()/clamp(): old-Safari safe. */
:root { --fg: #d9ffe6; --dim: #7fb391; --bg: rgba(6,12,9,0.88); --line: #4a8a63; --acc: #fff; --hot: #ffffff; }
body.pal-white { --fg: #f0f0f0; --dim: #9a9a9a; --bg: rgba(10,10,10,0.9); --line: #707070; }
body.pal-black { --fg: #101010; --dim: #444; --bg: rgba(225,225,225,0.92); --line: #555; }
html, body { margin: 0; padding: 0; height: 100%; width: 100%; background: #000; overflow: hidden; position: fixed; top: 0; left: 0; }
body { font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--fg); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body.pal-black { background: #d8d8d8; }
#app { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }
#cv { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; -webkit-appearance: none; appearance: none; touch-action: manipulation; cursor: pointer; }

/* HUD */
#hud { position: absolute; top: 0; left: 0; right: 0; padding: 4px 6px 0 6px; padding-top: 4px; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; pointer-events: none; z-index: 5; }
#hud > * { pointer-events: auto; margin: 0 4px 3px 0; }
.sp { -webkit-flex: 1; flex: 1; pointer-events: none !important; min-width: 0; }
.chip, .bar { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; min-height: 36px; box-sizing: border-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: center; justify-content: center; min-width: 70px; }
.chip i, .bar i { font-style: normal; font-size: 9px; letter-spacing: 1px; color: var(--dim); line-height: 11px; }
.chip b { font-size: 14px; line-height: 17px; font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.bar { min-width: 120px; }
.bar u { display: block; height: 8px; background: rgba(128,128,128,0.35); border-radius: 4px; overflow: hidden; text-decoration: none; margin-top: 2px; }
.bar s { display: block; height: 100%; width: 100%; background: var(--fg); text-decoration: none; -webkit-transform-origin: left center; transform-origin: left center; }
.ib { width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; font-weight: bold; padding: 0; margin: 0 0 3px 4px !important; }
#hint { position: absolute; left: 8px; right: 8px; top: 46px; height: 22px; font-size: 12px; line-height: 22px; text-align: center; pointer-events: none; z-index: 4; color: var(--fg); }
#hint span { display: inline-block; background: rgba(0,0,0,0.55); padding: 0 10px; border-radius: 11px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-sizing: border-box; }
body.pal-black #hint span { background: rgba(255,255,255,0.6); }
#banner { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 24px; letter-spacing: 3px; font-weight: bold; pointer-events: none; opacity: 0; -webkit-transition: opacity 0.4s; transition: opacity 0.4s; z-index: 6; text-shadow: 0 0 8px rgba(0,0,0,0.9); }
#banner.on { opacity: 1; }
#banner small { display: block; font-size: 13px; letter-spacing: 1px; font-weight: normal; margin-top: 4px; }
#toast { position: absolute; left: 50%; bottom: 14px; -webkit-transform: translateX(-50%); transform: translateX(-50%); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; font-size: 13px; opacity: 0; pointer-events: none; z-index: 7; -webkit-transition: opacity 0.25s; transition: opacity 0.25s; white-space: nowrap; max-width: 90%; }
#toast.on { opacity: 1; }

/* weapons + fire (landscape: side columns) */
#wpns { position: absolute; left: 6px; top: 76px; width: 108px; z-index: 5; }
.wb { position: relative; display: block; width: 100%; height: 66px; margin: 0 0 6px 0; padding: 4px 6px 10px 8px; text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 8px; overflow: hidden; box-sizing: border-box; }
.wb.sel { border-color: var(--fg); box-shadow: 0 0 0 2px var(--fg) inset; }
.wb b { display: block; font-size: 13px; letter-spacing: 1px; line-height: 15px; }
.wb em { font-style: normal; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; line-height: 21px; display: inline-block; }
.wb small { font-size: 12px; line-height: 14px; float: right; margin-top: 6px; color: var(--dim); font-family: ui-monospace, Menlo, Consolas, monospace; }
.wb.sel small { color: var(--fg); }
.wb u { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 5px; background: rgba(128,128,128,0.35); border-radius: 3px; overflow: hidden; text-decoration: none; }
.wb u s { display: block; height: 100%; width: 100%; background: var(--fg); text-decoration: none; -webkit-transform-origin: left center; transform-origin: left center; }
.wb.rl u s { background: repeating-linear-gradient(45deg, var(--dim), var(--dim) 4px, transparent 4px, transparent 8px); }
.wb .cd { position: absolute; left: 0; right: 0; bottom: 0; top: 0; background: rgba(128,128,128,0.35); -webkit-transform-origin: bottom center; transform-origin: bottom center; -webkit-transform: scaleY(0); transform: scaleY(0); pointer-events: none; }
.wb.empty b { color: var(--dim); }
#fireBtn { position: absolute; right: 10px; bottom: 16px; width: 104px; height: 104px; border-radius: 52px; border: 3px solid var(--fg); background: var(--bg); z-index: 5; font-weight: bold; font-size: 18px; letter-spacing: 2px; padding: 0; -webkit-touch-callout: none; }
#fireBtn small { display: block; font-size: 10px; font-weight: normal; color: var(--dim); letter-spacing: 1px; }
#fireBtn.down { background: var(--fg); color: #000; }
body.pal-black #fireBtn.down { color: #fff; }
#app.lefty #wpns { left: auto; right: 6px; } #app.lefty #fireBtn { right: auto; left: 10px; }

/* portrait: controls along the bottom */
#app.portrait #hud { padding-right: 6px; }
#app.portrait .chip, #app.portrait .bar { min-width: 0; }
#app.portrait #hint { top: 92px; height: 34px; line-height: 17px; font-size: 12px; }
#app.portrait #hint span { white-space: normal; display: inline-block; padding: 1px 10px; border-radius: 10px; }
#app.portrait #wpns { top: auto; bottom: 10px; left: 6px; width: auto; right: 124px; display: -webkit-flex; display: flex; }
#app.portrait .wb { -webkit-flex: 1; flex: 1; width: auto; height: 78px; margin: 0 4px 0 0; }
#app.portrait .wb b { font-size: 11px; letter-spacing: 0; }
#app.portrait .wb small { float: none; display: block; margin-top: 1px; }
#app.portrait #fireBtn { bottom: 8px; right: 8px; width: 108px; height: 108px; border-radius: 54px; }
#app.portrait.lefty #wpns { right: 6px; left: 124px; } #app.portrait.lefty #fireBtn { left: 8px; right: auto; }
#app.portrait #toast { bottom: 126px; }
@media (min-width: 900px) and (min-height: 600px) {
  #wpns { width: 132px; top: 84px; } .wb { height: 82px; } .wb b { font-size: 15px; } .wb em { font-size: 22px; line-height: 26px; } .wb small { font-size: 14px; }
  #fireBtn { width: 128px; height: 128px; border-radius: 64px; font-size: 22px; bottom: 30px; right: 14px; }
  .chip b { font-size: 16px; } .chip { min-height: 42px; } .bar { min-height: 42px; } #hint { top: 54px; font-size: 14px; }
}

/* overlays */
.overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.78); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; z-index: 20; padding: 8px; box-sizing: border-box; }
body.pal-black .overlay { background: rgba(240,240,240,0.7); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; max-width: 520px; width: 100%; max-height: 100%; box-sizing: border-box; text-align: center; overflow: auto; -webkit-overflow-scrolling: touch; }
.card.wide { max-width: 640px; text-align: left; }
.card.col { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; overflow: hidden; padding-bottom: 8px; }
.cbody { -webkit-flex: 1; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; padding-right: 4px; touch-action: pan-y; }
.cfoot { padding-top: 8px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.card h1 { margin: 0 0 4px 0; font-size: 28px; letter-spacing: 4px; }
.card h2 { margin: 0 0 6px 0; font-size: 18px; letter-spacing: 2px; }
.tag { margin: 0 0 8px 0; color: var(--dim); font-size: 14px; }
.small { font-size: 12px; color: var(--dim); margin: 4px 0; }
.rem { font-size: 11px; color: var(--dim); margin: 8px 0 0 0; line-height: 15px; }
.goal { font-weight: bold; border-left: 3px solid var(--fg); padding-left: 8px; }
.cr { float: right; font-family: ui-monospace, Menlo, Consolas, monospace; }
.prow { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; }
.btn { min-height: 48px; min-width: 48px; padding: 6px 14px; margin: 4px; border-radius: 8px; border: 1px solid var(--line); background: rgba(128,128,128,0.18); font-size: 14px; }
.btn.big { background: var(--fg); color: #000; font-weight: bold; font-size: 16px; padding: 6px 22px; }
body.pal-black .btn.big { color: #fff; }
.btn:disabled { opacity: 0.4; }
.mis { display: block; width: 100%; text-align: left; margin: 0 0 6px 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(128,128,128,0.14); min-height: 56px; box-sizing: border-box; }
.mis b { font-size: 15px; } .mis span { float: right; font-size: 14px; letter-spacing: 2px; } .mis small { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.mis.lock { opacity: 0.45; }
.mis.next { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg) inset; }
.up { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 0 0 6px 0; background: rgba(128,128,128,0.12); }
.up .t { -webkit-flex: 1; flex: 1; min-width: 0; } .up .t b { font-size: 14px; display: block; } .up .t small { display: block; font-size: 11px; color: var(--dim); line-height: 14px; }
.up .pips { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; margin: 0 8px; white-space: nowrap; }
.up .btn { margin: 0; min-width: 84px; font-size: 13px; padding: 4px 8px; }
.set { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; border-bottom: 1px solid rgba(128,128,128,0.3); padding: 4px 0; min-height: 52px; }
.set span { font-size: 14px; } .set small { display: block; font-size: 11px; color: var(--dim); } .set .btn { margin: 0; min-width: 110px; }
#howBody p, #credTxt p, #oRep p { font-size: 13px; line-height: 18px; margin: 0 0 8px 0; } #howBody h3 { font-size: 14px; margin: 10px 0 4px 0; letter-spacing: 1px; }
#oRep table { width: 100%; border-collapse: collapse; font-size: 13px; } #oRep td { padding: 2px 0; } #oRep td:last-child { text-align: right; font-family: ui-monospace, Menlo, Consolas, monospace; }
.stars { font-size: 26px; letter-spacing: 6px; text-align: center; margin: 4px 0; }

/* tutorial */
#tutRings { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 30; }
.ring { position: absolute; border: 3px solid var(--fg); border-radius: 10px; box-shadow: 0 0 0 2px rgba(0,0,0,0.8), 0 0 14px var(--fg); box-sizing: border-box; -webkit-animation: rp 1.2s infinite; animation: rp 1.2s infinite; }
@-webkit-keyframes rp { 0% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }
@keyframes rp { 0% { opacity: 1; } 50% { opacity: 0.35; } 100% { opacity: 1; } }
body.reduce .ring, body.reduce #banner, body.reduce #toast { -webkit-animation: none; animation: none; -webkit-transition: none; transition: none; }
#tutCard { position: absolute; z-index: 31; background: var(--bg); border: 2px solid var(--fg); border-radius: 12px; padding: 8px 12px; width: 300px; box-sizing: border-box; right: 8px; top: 74px; text-align: left; }
#tutCard h3 { margin: 0 0 3px 0; font-size: 14px; letter-spacing: 1px; } #tutCard p { margin: 0 0 6px 0; font-size: 12.5px; line-height: 17px; } .tcount { font-size: 10px; color: var(--dim); float: right; }
.trow { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; } .trow .btn { margin: 0; min-height: 44px; font-size: 13px; }
#app.portrait #tutCard { left: 8px; right: 8px; width: auto; top: 134px; }
#noscript { z-index: 50; background: #000; }
@media (max-height: 420px) and (orientation: landscape) { .card h1 { font-size: 22px; } .tag { font-size: 12px; margin-bottom: 4px; } .btn { margin: 3px; } .card { padding: 8px 14px; } .rem { margin-top: 4px; } }
/* notch / home-indicator safe areas (ignored by browsers without env()) */
#hud { padding-left: 6px; padding-left: calc(6px + env(safe-area-inset-left)); padding-right: 6px; padding-right: calc(6px + env(safe-area-inset-right)); padding-top: 4px; padding-top: calc(4px + env(safe-area-inset-top)); }
#app:not(.portrait):not(.lefty) #wpns { left: 6px; left: calc(6px + env(safe-area-inset-left)); }
#app:not(.portrait):not(.lefty) #fireBtn { right: 10px; right: calc(10px + env(safe-area-inset-right)); }
#app.portrait #fireBtn { bottom: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
#app.portrait #wpns { bottom: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }

/* v0.1 reference-feel pass: red fire, right column, subtitles */
:root { --red: #ff3b30; }
#fireBtn { border-color: var(--red); color: #fff; background: rgba(120,10,6,0.85); }
body.pal-black #fireBtn { color: #fff; }
#fireBtn small { color: #ffb0aa; }
#fireBtn.down, body.pal-black #fireBtn.down { background: var(--red); color: #fff; }
.wb.sel { border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }
.wb.sel b { color: var(--red); }
#rcol { position: absolute; right: 10px; right: calc(10px + env(safe-area-inset-right)); top: 76px; width: 112px; z-index: 5; }
#mini { display: block; width: 112px; height: 72px; background: rgba(0,0,0,0.6); border: 1px solid var(--line); border-radius: 6px; margin: 0 0 4px 0; -ms-touch-action: none; touch-action: none; }
#palBtn { display: block; width: 112px; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: bold; letter-spacing: 1px; padding: 0; margin: 0; }
#app.lefty #rcol { right: auto; left: 10px; }
#app.portrait #rcol { right: 6px; width: 96px; } #app.portrait #mini { width: 96px; height: 60px; } #app.portrait #palBtn { width: 96px; min-height: 44px; }
#app.portrait.lefty #rcol { left: 6px; right: auto; }
#sub { position: absolute; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); bottom: 54px; max-width: 56%; z-index: 6; background: rgba(0,0,0,0.72); color: #eaeaea; border: 1px solid #555; border-radius: 6px; padding: 3px 10px; font-size: 12px; line-height: 16px; font-family: ui-monospace, Menlo, Consolas, monospace; text-align: center; opacity: 0; pointer-events: none; -webkit-transition: opacity .25s; transition: opacity .25s; }
#sub.on { opacity: 1; }
#app.portrait #sub { bottom: 130px; max-width: 92%; }
body.pal-black #sub { background: rgba(255,255,255,0.8); color: #111; border-color: #888; }
@media (min-width: 900px) and (min-height: 600px) { #rcol { width: 140px; } #mini { width: 140px; height: 90px; } #palBtn { width: 140px; } }

/* v0.1.1: bigger pause, FIRE clear of the gesture bar */
#fireBtn { bottom: 28px; bottom: calc(28px + env(safe-area-inset-bottom)); }
#app.portrait #fireBtn { bottom: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
#app.portrait #wpns { bottom: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) and (min-height: 600px) { #fireBtn { bottom: 40px; } }
#app:not(.portrait).lefty #fireBtn { left: 10px; left: calc(10px + env(safe-area-inset-left)); right: auto; }
#app:not(.portrait).lefty #wpns { right: 6px; right: calc(6px + env(safe-area-inset-right)); left: auto; }
#app:not(.portrait).lefty #rcol { left: 10px; left: calc(10px + env(safe-area-inset-left)); right: auto; }
#app:not(.portrait):not(.lefty) #rcol { right: 10px; right: calc(10px + env(safe-area-inset-right)); }
#app:not(.portrait) #tutCard { left: 50%; right: auto; margin-left: -150px; }

/* v0.2: no edge-swipe / rubber-band navigation; tutorial card steps aside while a menu card is open; short landscape phones (568x320) */
html, body { overscroll-behavior: none; -ms-touch-action: manipulation; touch-action: manipulation; } .cbody { overscroll-behavior: contain; }
#app.ovopen #tutCard, #app.ovopen #tutRings { visibility: hidden; }
@media (max-height: 340px) { #fireBtn { width: 84px; height: 84px; bottom: 10px; } #palBtn { min-height: 36px; font-size: 12px; } #mini { height: 54px; } }
#mVer { margin-top: 2px; font-size: 10px; opacity: 0.7; }


/* ===== v0.2.4: full-bleed feed. The picture fills the whole screen; the HUD is thin text and small controls laid over it (no cards, no chips) ===== */
#hud { padding-top: 3px; padding-top: calc(3px + env(safe-area-inset-top)); }
#hud > * { margin: 0 12px 0 0; }
.chip, .bar { background: none; border: 0; border-radius: 0; padding: 0; min-height: 0; -webkit-flex-direction: row; flex-direction: row; -webkit-align-items: baseline; align-items: baseline; text-shadow: 0 0 3px #000, 0 0 2px #000, 1px 1px 0 rgba(0,0,0,0.9); }
body.pal-black .chip, body.pal-black .bar, body.pal-black #hint, body.pal-black #sub, body.pal-black .wb, body.pal-black #palBtn { text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
.chip i, .bar i { font-size: 10px; line-height: 14px; margin-right: 5px; color: var(--fg); opacity: 0.75; }
.chip b { font-size: 13px; line-height: 16px; }
.bar { min-width: 0; } .bar u { width: 38px; height: 4px; margin: 0 0 0 6px; border-radius: 2px; -webkit-align-self: center; align-self: center; } .bar i { margin-right: 0; }
.ib { width: 44px; height: 44px; border-radius: 22px; background: rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.28); font-size: 14px; margin: 0 0 0 2px !important; text-shadow: 0 0 3px #000; }
#hint { font-size: 11px; height: 14px; line-height: 14px; text-shadow: 0 0 3px #000, 0 0 2px #000; opacity: 0.85; }
#hint span { background: none !important; padding: 0; border-radius: 0; }
#wpns { width: 96px; top: 66px; left: 6px; }
.wb { height: 48px; margin: 0 0 2px 0; padding: 4px 6px 12px 7px; background: none; border: 1px solid transparent; border-radius: 3px; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.wb.sel { border-color: #ff3b30; background: rgba(255,59,48,0.2); box-shadow: none; }
.wb b { font-size: 12px; letter-spacing: 1px; line-height: 14px; display: inline-block; }
.wb em { font-size: 14px; line-height: 14px; float: right; }
.wb .ft { display: none; }
.wb u { left: 7px; right: auto; width: 36px; bottom: 6px; height: 4px; border-radius: 2px; }
.wb .cd { background: rgba(0,0,0,0.3); }
#fireBtn { width: 96px; height: 96px; border: 0; background: none; border-radius: 48px; bottom: 6px; bottom: calc(6px + env(safe-area-inset-bottom)); right: 4px; padding: 0; font-size: 12px; letter-spacing: 1px; -webkit-tap-highlight-color: transparent; }
#fireBtn span { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; width: var(--fv, 48px); height: var(--fv, 48px); margin: calc(var(--fv, 48px) / -2) 0 0 calc(var(--fv, 48px) / -2); border-radius: 50%; box-sizing: border-box; border: 1.5px solid rgba(255,70,60,0.9); background: rgba(255,59,48,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); color: #ff6a5e; text-shadow: 0 0 3px #000; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; font-weight: bold; }
#fireBtn.down span { background: rgba(255,59,48,0.7); color: #fff; }
#fireBtn.down { background: none; color: inherit; }
#fireBtn small { display: none; }
#app:not(.portrait).lefty #fireBtn { left: 4px; right: auto; }
#app:not(.portrait):not(.lefty) #fireBtn { right: 4px; right: calc(4px + env(safe-area-inset-right)); }
#palBtn { position: absolute; right: 8px; top: 48px; width: auto; min-width: 44px; min-height: 44px; padding: 0 8px; background: none; border: 0; font-size: 11px; letter-spacing: 1px; z-index: 5; text-shadow: 0 0 3px #000, 0 0 2px #000; opacity: 0.85; }
#rcol { position: absolute; left: 8px; right: auto; top: auto; bottom: 8px; width: 72px; z-index: 5; }
#mini { width: 72px; height: 54px; opacity: 0.6; margin: 0; border: 1px solid rgba(255,255,255,0.25); border-radius: 3px; }
#app:not(.portrait).lefty #rcol { right: 8px; left: auto; } #app:not(.portrait).lefty #palBtn { right: auto; left: 8px; }
#app:not(.portrait):not(.lefty) #rcol { left: 8px; right: auto; }
#sub { background: none; border: 0; border-radius: 0; padding: 0; font-size: 11px; line-height: 14px; bottom: 26px; max-width: 46%; text-shadow: 0 0 3px #000, 0 0 2px #000, 1px 1px 0 #000; color: #eee; }
body.pal-black #sub { background: none; color: #111; border: 0; }
#kbHint { position: absolute; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); bottom: 4px; font-size: 10px; letter-spacing: 1px; opacity: 0.6; pointer-events: none; z-index: 5; display: none; text-shadow: 0 0 3px #000; }
body.kbhint #kbHint { display: block; }
#app.portrait #wpns { top: auto; bottom: 8px; left: 6px; right: 112px; width: auto; }
#app.portrait .wb { height: 48px; margin: 0 2px 0 0; padding: 4px 4px 12px 6px; }
#app.portrait .wb b { font-size: 11px; letter-spacing: 0; }
#app.portrait .wb em { font-size: 13px; }
#app.portrait #fireBtn { bottom: 4px; bottom: calc(4px + env(safe-area-inset-bottom)); right: 2px; width: 96px; height: 96px; border-radius: 48px; }
#app.portrait.lefty #fireBtn { left: 2px; right: auto; } #app.portrait.lefty #wpns { left: 112px; right: 6px; }
#app.portrait #rcol { left: auto; right: 6px; top: 70px; bottom: auto; width: 72px; } #app.portrait #mini { width: 72px; height: 54px; }
#app.portrait.lefty #rcol { left: 6px; right: auto; } #app.portrait.lefty #palBtn { right: auto; left: 8px; }
#app.portrait #sub { bottom: 118px; max-width: 92%; } #app.portrait #toast { bottom: 118px; } #app.portrait #kbHint { bottom: 100px; }
#app.portrait #hint { height: auto; line-height: 14px; font-size: 11px; }
#app.portrait #hint span { white-space: normal; padding: 0; }
@media (min-width: 900px) and (min-height: 600px) { #wpns { width: 112px; } .wb { height: 52px; } .wb b { font-size: 13px; } .wb em { font-size: 15px; } #fireBtn { width: 112px; height: 112px; bottom: 10px; right: 8px; } #rcol { width: 120px; } #mini { width: 120px; height: 80px; } .chip b { font-size: 14px; } .chip { min-height: 0; } .bar { min-height: 0; } #hint { font-size: 12px; top: 54px; } }
@media (max-height: 340px) { #fireBtn { width: 96px; height: 96px; bottom: 4px; } #mini { height: 48px; width: 64px; } #rcol { width: 64px; } #palBtn { min-height: 44px; } }
