#phone-controls{position:fixed;inset:0;z-index:20000;pointer-events:none;font:14px Arial,sans-serif;}#phone-controls [hidden]{display:none !important;}#phone-controls[hidden]{display:none;}#phone-fullscreen-note{position:absolute;right:10px;top:55px;max-width:230px;background:#161324e8;color:white;}#phone-controls button{pointer-events:auto;touch-action:none;min-height:44px;min-width:48px;padding:8px 12px;border:1px solid #bdab88;border-radius:12px;background:#161324e8;color:#fff3dc;font:14px Arial,sans-serif;}#phone-fullscreen{position:absolute;top:max(6px,env(safe-area-inset-top));left:calc(max(8px,env(safe-area-inset-left)) + 76px);opacity:.85;}#phone-pause{position:absolute;top:max(6px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));}#phone-stick{pointer-events:auto;touch-action:none;position:absolute;left:max(22px,env(safe-area-inset-left));bottom:70px;width:112px;height:112px;border-radius:50%;background:#17132766;border:2px solid #dac59988;display:grid;place-items:center;}#phone-stick span{width:42px;height:42px;border-radius:50%;background:#c6a35fa8;border:2px solid #f3d9a3;pointer-events:none;}#phone-actions{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:68px;display:grid;grid-template-columns:repeat(2, minmax(70px,auto));gap:8px;}#phone-actions .phone-use{min-height:58px;max-width:142px;background:#51412be8;}#phone-stick, #phone-actions{bottom:calc(var(--phone-hud-height, 74px) + 18px);}#phone-nav{position:absolute;right:max(8px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom));display:flex;gap:6px;}#phone-choices{display:flex;gap:8px;max-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));}#phone-choices button{flex:1 1 0;min-width:0;max-width:260px;white-space:normal;overflow-wrap:anywhere;}#phone-choices button[aria-pressed="true"]{border-color:#ff79b7;box-shadow:0 0 12px #ff2d9e66;}#phone-rotate{display:none;}#phone-controls.portrait #phone-rotate{position:absolute;inset:0;background:#100d19;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;pointer-events:auto;text-align:center;padding:24px;}#phone-rotate strong{font-size:28px;}.touch-device button, .touch-device input, .touch-device select{touch-action:manipulation;}.phone-layout{overscroll-behavior:none;}.phone-layout #game{height:100dvh;}.phone-layout .overlay{overscroll-behavior:contain;}@media (pointer:coarse) and (max-height:600px){.overlay{padding:6px max(12px,env(safe-area-inset-right)) 56px max(12px,env(safe-area-inset-left));box-sizing:border-box;overflow:hidden;}.overlay .draft, .overlay .draft.menu{max-height:calc(100dvh - 68px);max-width:100%;padding:12px;overflow:hidden;box-sizing:border-box;}.overlay h1, #draftTitle{font-size:28px;margin:4px 0;}.overlay button{min-height:44px;}.overlay p{margin:6px 0;}.overlay .bookShell{min-height:0;}#levelUp .choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}#levelUp .draft{display:flex;flex-direction:column;width:min(900px,94vw);height:min(280px,calc(100dvh - 90px));padding:8px;}#levelUp #choices{overflow:hidden;min-height:0;flex:1;}#levelUp #draftTitle, #levelUp #draftSubtitle, #levelUp #draftToolRow{flex-shrink:0;}#draftLevelUp, #draftLevelUpBurst{display:none;}#levelUp .choices.fourUp{grid-template-columns:repeat(4,minmax(0,1fr));}#levelUp .choice{min-height:0;height:100%;overflow:hidden;padding:8px;touch-action:pan-y;overscroll-behavior:contain;}#levelUp .choice > *{flex-shrink:0;}#levelUp .choiceIconWrap, #levelUp .choiceIcon{width:48px;height:48px;}#levelUp .choiceIconWrap{margin-bottom:6px;}#levelUp .choice strong{font-size:17px;margin-bottom:5px;}#levelUp .choice > span, #levelUp .choiceTier{font-size:13px;line-height:1.3;}#levelUp .choiceType{margin-bottom:5px;}#draftPausedLabel{display:none;}#levelUp #draftTitle{font-size:21px;margin:0;}#levelUp #draftSubtitle{font-size:12px;margin:4px 0 8px;}#levelUp .choiceIconWrap, #levelUp .choiceIcon{width:28px;height:28px;}#levelUp .choiceIconWrap .elementBadge{width:12px;height:12px;}#levelUp .choice strong{font-size:13px;}#levelUp .choice > span, #levelUp .choiceTier{font-size:12px;line-height:1.25;}#levelUp .choiceTier{margin-top:8px;display:block;text-align:center;overflow-wrap:anywhere;}#menu{--coin-col:180px;--coin-gap:12px;--coin-size:48px;--coin-cell-gap:7px;--coin-row-gap:6px;--vs-detail-w:100;--vs-gutter:100px;--vs-portrait-w:72px;--vs-portrait-h:82px;--vs-weapon-top:104px;--vs-weapon-size:36px;--vs-name-size:23px;--vs-lore-size:13px;--vs-wname-size:10px;--vs-header-h:18px;--vs-ring:2px;}#menu.overlay{padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));}#menu .draft.menu{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:8px;border-width:18px 8px 8px;display:flex;flex-direction:column;overflow:hidden;}#menu .vesselSelectBody{flex:1;min-height:0;overflow:hidden;}#menu .vesselDetail{flex:1;width:auto;min-width:0;min-height:0;height:100%;box-sizing:border-box;padding:10px 10px 10px 100px;overflow:hidden;}#menu .vesselDetail strong{overflow-wrap:anywhere;}#menu .charCoinGrid, #menu .charCoinGrid.coinWindowed{width:180px;flex:0 0 180px;max-height:100%;overflow:hidden;}#menu.fromInn .menuRow, #menu .menuRow{width:100%;flex:0 0 auto;gap:10px;margin:8px 0 0;flex-wrap:nowrap;}#menu .menuRow button{font-size:13px;line-height:1.2;letter-spacing:0;padding:4px 8px;min-height:44px;border-width:10px 14px;border-image-width:10px 14px;white-space:normal;overflow-wrap:normal;}#menu{--coin-size:38px;}#menu .vesselCoin{min-height:38px;}#menu.fromInn .menuRow button{flex:1 1 0;}#sugarShop.overlay{padding:4px 48px;}#sugarShop .draft.menu{width:min(calc((100dvh - 8px) * 1.3443),calc(100vw - 96px));max-height:none;padding:0;overflow:visible;}#sugarShop{--bk-pages-top:23%;--bk-pages-height:51%;--bk-pages-inset:5%;--bk-pages-gap:8%;--bk-row-gap:6px;--bk-pip-size:7px;--bk-pip-gap:0px;--bk-tabs-top:22%;--bk-tabs-right:-8%;--bk-tab-size:36px;--bk-tabs-gap:4px;--bk-footer-top:81%;--bk-footer-inset:5%;--bk-footer-height:12%;--bk-nav-top:73%;}#sugarShop .bookRibbon h1, #sugarShop .bookRibbon .bookRibbonCat{font-size:12px;letter-spacing:0;}#sugarShop{--bk-ribbon-top:0.5%;--bk-ribbon-inset:8%;}#sugarShop .bookEntry{min-width:0;min-height:44px;padding:3px;}#sugarShop .bookEntry .entryPlate{font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;border-width:3px 5px;}#sugarShop .bookEntry .entryMeta{display:block;}#sugarShop .bookEntry .entryText{font-size:11px;display:block;overflow:visible;-webkit-line-clamp:unset;}#sugarShop .bookEntry .entryCost{font-size:11px;display:block;white-space:normal;}#sugarShop .bookPips{max-width:100%;gap:0;}#sugarShop .bookFooter{gap:4px;}#sugarShop .bookFooter button.primary, #sugarShop .metaRow span{font-size:12px;padding:3px;letter-spacing:0;}#sugarShop .candyCoin{width:14px;height:14px;}#sugarShop .bookLeaf{touch-action:pan-y;overscroll-behavior:contain;}}@media (pointer:coarse) and (orientation:landscape) and (max-height:600px){#sugarShop.overlay, #jeweler.overlay, #codex.overlay, #potionShop.overlay{padding:4px 40px 4px 8px;}#sugarShop .draft.menu, #jeweler .draft.menu, #codex .draft.menu, #potionShop .draft.menu{width:100%;min-width:0;height:calc(100dvh - 8px);max-height:none;padding:0;border:0;}#sugarShop .bookShell, #jeweler .bookShell, #codex .bookShell, #potionShop .bookShell{width:100%;height:100%;aspect-ratio:auto;}#sugarShop, #jeweler, #codex, #potionShop{--bk-tabs-right:-3%;}#sugarShop{--bk-pages-top:34%;--bk-pages-height:42%;--bk-row-gap:4px;}#codex{--bk-pages-top:29%;--bk-pages-height:48%;--bk-pages-gap:12%;--bk-tabs-gap:3px;--bk-tab-size:28px;}#codex.codexDetails #codexLeafRight{top:0;bottom:0;}#codex .codexDetailName{font-size:18px;margin:0 0 4px;}#codex .codexDetailArt{margin:4px 0;}#codex .codexDetailArt .codexIllustration{height:44px;}#codex .codexDetailText{font-size:14px;line-height:1.25;}#codex .bookEntry .entryPlate{font-size:13px;}#credits .draft.menu{padding:10px;width:100%;max-height:100%;}#credits h1{font-size:22px;}#credits > .draft > p{font-size:12px;}#creditsBody{columns:3;column-gap:18px;}#credits .creditRole{font-size:13px;margin:4px 0;}#credits .creditEntry{font-size:11px;line-height:1.25;margin:2px 0;}#credits .creditName, #credits .creditBy, #credits .creditLicense{font-size:11px;line-height:1.3;}#credits .creditSection{margin:0 0 8px;}#codex .bookFooter button, #sugarShop .bookFooter button, #jeweler .bookFooter button, #potionShop .bookFooter button{min-height:44px;}.bookFooter{pointer-events:none;}.bookFooter button, .bookFooter a{pointer-events:auto;}}@media (pointer:coarse) and (orientation:landscape){#codex.overlay{padding-left:max(8px, env(safe-area-inset-left));padding-right:calc(60px + env(safe-area-inset-right));}#codex .bookTabs{display:grid;grid-template-columns:44px;gap:4px;top:8px;right:-48px;width:44px;}#codex .bookTab{width:44px;height:44px;min-width:44px;min-height:44px;box-sizing:border-box;opacity:1;}#codex .codexTabIcon{width:32px;height:32px;}#codex .bookTab.active{transform:none;outline:2px solid #f3d998;outline-offset:-2px;}}@media (pointer:coarse) and (orientation:landscape) and (max-height:480px){#codex.overlay{padding-right:calc(108px + env(safe-area-inset-right));}#codex .bookTabs{grid-template-columns:44px 44px;right:-96px;width:92px;}}@media (pointer:coarse){#codex .bookLeaf, #sugarShop .bookLeaf, #jeweler .bookLeaf,
  #potionShop .bookLeaf, #lodgeBoard .lodgeIndex, #lodgeBoardDetail{overflow-y:auto !important;overflow-x:hidden !important;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:6px;}#codex .bestiaryListRow, #lodgeBoard .lodgeIndexRow{min-height:44px;flex-shrink:0;}#codex .bestiaryListRow .entryPlate{white-space:normal;}#lodgeBoard .lodgeIndexNav{display:none;}#codex .bookPageNav .chevronBtn, #sugarShop .bookPageNav .chevronBtn,
  #jeweler .bookPageNav .chevronBtn, #potionShop .bookPageNav .chevronBtn,
  #lodgeBoard .bookPageNav .chevronBtn{min-width:44px;min-height:44px;touch-action:manipulation;}#lodgeBoardDetail > *{flex-shrink:0;}#potionShop .bookShell .bookPages{bottom:calc(25% + 50px);}#potionShop .bookShell .bookPageNav{bottom:25%;height:44px;}}
