*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:#0c1930;color:#f3f7ff;font-family:system-ui,-apple-system,Segoe UI,sans-serif}body{background:radial-gradient(circle at 50% -20%,#1d4974,#0c1930 64%)}main{max-width:1150px;margin:0 auto;padding:30px 22px 40px}header{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:22px}h1{font-size:clamp(36px,6vw,64px);line-height:1;margin:6px 0 8px;letter-spacing:-2px}h1 span{color:#f7c919}p{margin:0;color:#a9c2d8}.eyebrow{color:#f7c919;font-size:12px;font-weight:800;letter-spacing:3px}.tag{white-space:nowrap;border:1px solid #385b79;background:#102940;border-radius:50px;padding:12px 16px;color:#c5ddec;font-size:11px;font-weight:700}.worldShell{overflow:hidden;border:7px solid #243c55;border-radius:18px;box-shadow:0 30px 70px #0007;background:#73b69b}.world{width:100%;overflow:hidden}.world canvas{width:100%!important;height:100%!important;display:block}.loading{aspect-ratio:4/3;display:grid;place-items:center;background:#7bc39b;color:#183d42;font-weight:800}footer{margin-top:18px;display:flex;gap:20px;justify-content:space-between;align-items:center}footer strong{display:block;margin-bottom:4px}.controls{display:flex;align-items:center;gap:8px}.controls button{background:#f7c919;border:0;border-radius:8px;padding:12px 16px;color:#152a3c;font-weight:900;cursor:pointer}.controls output{min-width:30px;text-align:center;font-weight:800}.notice{margin-top:16px;color:#97b8d1;font-size:13px}.notice a{color:#ffdf51}.overlay{max-width:none;padding:0;margin:0;background:transparent}.overlay .world{height:100vh;aspect-ratio:auto}body:has(.overlay),html:has(.overlay){background:transparent}@media(max-width:720px){footer,header{align-items:flex-start;flex-direction:column}.tag{white-space:normal}.controls{width:100%;justify-content:flex-start}main{padding:16px}}.worldShell{background:#8fc884;border-color:#34485c}.world canvas{image-rendering:pixelated}body:has(.overlay),html:has(.overlay){background:transparent!important}.overlay{display:grid;place-items:center;width:100vw;height:100vh;overflow:hidden}.overlay .world{height:auto;max-height:100vh}.overlay .world canvas{max-width:100%;max-height:100%;object-fit:contain}.worldContainer{position:relative;width:100%;overflow:hidden}.world,.world canvas{cursor:-webkit-grab;cursor:grab;touch-action:none}.cameraControls{position:absolute;right:14px;top:14px;display:flex;align-items:center;gap:7px;z-index:5}.cameraControls button{border:1px solid #e5eecf;background:#143b41e8;color:white;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 2px 10px #0004}.cameraControls button:hover{background:#26666c}.cameraHint{position:absolute;bottom:12px;left:14px;color:white;background:#143b41c9;border-radius:8px;padding:7px 10px;font-size:12px;pointer-events:none}.overlay .cameraControls,.overlay .cameraHint{display:none}@media(max-width:650px){.cameraControls{right:6px;top:6px;gap:3px}.cameraControls button{padding:6px 7px;font-size:11px}.cameraHint{font-size:10px;bottom:6px;left:6px}}.channelSettings{margin-top:28px;padding:24px;background:#122943;border:1px solid #3e6380;border-radius:18px}.settingsHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.freeInfo h2,.settingsHeader h2{margin:7px 0 8px;font-size:23px}.freeInfo p,.settingsHeader p{max-width:700px;line-height:1.55}.demoFlag{background:#214b65;color:#d4e8f7;border:1px solid #4c738b;border-radius:30px;padding:9px 13px;font-size:12px;white-space:nowrap}.accessGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px;margin:22px 0 16px}.accessOption{display:flex;flex-direction:column;gap:9px;padding:17px;min-height:170px;border:2px solid #375a73;border-radius:13px;background:#0d2035;cursor:pointer}.accessOption.selected{border-color:#f7c919;background:#19334c}.accessOption input{accent-color:#f7c919;width:18px;height:18px}.accessOption strong{font-size:15px}.accessOption span{color:#abc5d6;font-size:13px;line-height:1.5}.policyPreview{border-radius:12px;background:#0b1d2f;padding:17px;border:1px solid #36536a}.policyPreview p{margin:7px 0}.policyPreview small{display:block;color:#a6bfd1;line-height:1.55}.freeInfo{margin-top:15px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:21px 24px;background:#17334b;border:1px solid #365e76;border-radius:16px}.donationNote{color:#ffdf64;font-weight:750;text-align:center;min-width:210px}@media(max-width:750px){.accessGrid{grid-template-columns:1fr}.accessOption{min-height:0}.freeInfo,.settingsHeader{flex-direction:column}.channelSettings{padding:16px}.donationNote{min-width:0}}.creaturePanel{margin-top:24px;padding:24px;border:1px solid #52677f;border-radius:18px;background:#153047}.creatureForm{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;grid-gap:14px;gap:14px;margin:22px 0}.creatureForm label{display:flex;flex-direction:column;gap:8px;color:#cfdfed;font-size:13px;font-weight:700}.creatureForm input,.creatureForm select{min-height:43px;width:100%;border:1px solid #567289;background:#0d2035;color:white;border-radius:9px;padding:10px}.creatureForm button{min-height:43px;border:0;border-radius:9px;background:#f7c919;color:#13283e;font-weight:800;padding:10px 16px;cursor:pointer}@media(max-width:750px){.creatureForm{grid-template-columns:1fr}.creaturePanel{padding:16px}}.twitchBar{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#19233d;border:1px solid #7751b0;border-radius:13px;padding:16px 20px;margin-bottom:18px}.twitchBar strong{display:block;margin-bottom:4px}.twitchBar p{font-size:13px;line-height:1.5}.twitchBar button,.twitchButton{background:#9146ff;border:0;border-radius:9px;padding:12px 16px;color:white;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap}@media(max-width:650px){.twitchBar{align-items:flex-start;flex-direction:column}}.simpleHome{min-height:78vh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:20px}.simpleHome p{max-width:600px;font-size:18px;line-height:1.6}.simpleActions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:22px}.simpleActions a{color:#f7c919}.primaryAction,.shareLine button,.viewerChooser button{display:inline-block;border:0;background:#f7c919;color:#102138!important;border-radius:10px;text-decoration:none;padding:13px 18px;font-weight:800;cursor:pointer}.viewerCard{padding:22px;margin-bottom:18px;background:#122943;border:1px solid #436785;border-radius:16px}.viewerCard h2{margin:0 0 12px}.viewerCard p{margin:10px 0}.viewerGreeting{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.viewerGreeting a{color:#f7c919}.viewerChooser{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:18px 0}.viewerChooser label{flex:1 1;min-width:220px;display:grid;grid-gap:6px;gap:6px}.viewerChooser select{width:100%;padding:12px;border-radius:9px;background:#0d2035;color:white;border:1px solid #456789}.shareLine{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:18px 0}.shareLine a{color:#f7c919;overflow-wrap:anywhere}.muted{margin-top:16px;font-size:13px;color:#9bb7d0}.channelSettings button{cursor:pointer}.residentList{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));grid-gap:12px;gap:12px;margin-top:20px}.residentEntry{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #375a73;background:#0d2035;border-radius:12px}.residentEntry img{object-fit:contain;image-rendering:pixelated;flex-shrink:0}.residentEntry strong{display:block;color:#fff}.residentEntry p{font-size:12px;margin-top:4px}.sessionActions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.sessionActions a{color:#f7c919}.sessionActions form,.viewerGreeting form{margin:0}.logoutButton{background:#263954;border:1px solid #64809b;color:#f3f7ff;padding:10px 15px;border-radius:9px;font-weight:750;cursor:pointer}.logoutButton:hover{background:#365374}.viewerGreeting{gap:14px}.overlay .world,.world{aspect-ratio:4/3}.overlay .world{width:min(100vw,133.3333vh)}.rpgPanel{margin-top:18px;padding:22px;background:#142c42;border:1px solid #3e607b;border-radius:16px}.rpgHeading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.rpgHeading h2{margin:4px 0;font-size:22px}.rpgHeading span{color:#f7d85b;font-weight:700;font-size:13px}.rpgColumns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:15px;gap:15px}.rpgStatus{background:#0b1d32;border:1px solid #2c5272;border-radius:12px;padding:17px}.rpgPanel h3,.rpgStatus h3{font-size:17px;margin:0 0 14px}.rpgStatus p{font-size:13px;line-height:1.5;margin-top:12px}.rpgMeterLabel{display:flex;justify-content:space-between;font-size:12px;margin:9px 0 5px}.rpgMeter{height:11px;background:#33455a;border-radius:12px;overflow:hidden}.rpgBoss,.rpgHp,.rpgXp{height:100%;border-radius:12px}.rpgHp{background:#45c788}.rpgXp{background:#52a9ed}.rpgBoss{background:#e06366}.rpgFeed{max-height:230px;overflow-y:auto;background:#0b1d32;border-radius:10px;padding:10px 14px}.rpgFeed p{padding:7px 0;font-size:12px;border-bottom:1px solid #24394c}.rpgHelp{color:#b6dbed}.rpgAdminButtons{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}.rpgAdminButtons button{background:#244762;border:1px solid #5c7991;border-radius:9px;padding:11px 13px;color:#fff;font-weight:700;cursor:pointer}.rpgAdminButtons button:disabled{opacity:.6;cursor:not-allowed}.rpgAdminButtons .primaryAction{background:#f7c919;color:#102138}.rpgAdminButtons a{font-size:13px}@media(max-width:750px){.rpgColumns{grid-template-columns:1fr}.rpgHeading{align-items:flex-start;flex-direction:column}}.pmdStatus{position:relative;z-index:6;background:#0b1d32;color:#d9eafa;border-top:1px solid #3c637f;padding:11px 14px;font-size:12px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}.pmdStatus summary{color:#f7c919;cursor:pointer;font-weight:700;padding:4px 0}.overlay .pmdStatus{display:none}.worldFrame{width:100%}.overlay .worldFrame{width:min(100vw,133.3333vh)}.streamBattleRoot{width:100vw;height:100vh;overflow:hidden;background:transparent;pointer-events:none}.streamBattleRoot canvas{width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}.overlay:has(.streamBattleRoot){display:block;background:transparent;max-width:none;padding:0;overflow:hidden}.streamBattleStage{position:relative;width:100vw;height:100vh;overflow:hidden;background:transparent;pointer-events:none}.streamBattleStage .streamBattleRoot{position:absolute;inset:0;width:100%;height:100%}.streamTalkCard{position:absolute;left:50%;bottom:23%;z-index:100;width:min(1040px,85vw);min-height:194px;transform:translateX(-50%);padding:22px 55px 22px 22px;box-sizing:border-box;display:flex;gap:24px;align-items:center;background:rgba(15,39,68,.97);border:5px solid #f7c919;border-radius:20px;box-shadow:0 12px 0 rgba(4,14,29,.55),0 0 40px rgba(0,0,0,.42);font-family:Arial,Helvetica,sans-serif;color:#fff;animation:streamTalkPop .22s ease-out both}.streamTalkPortraitFrame{width:150px;height:150px;flex:0 0 150px;display:flex;align-items:center;justify-content:center;background:#071a30;border:2px solid #6385a5;border-radius:10px;overflow:hidden}.streamTalkPortrait{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.streamTalkNoPortrait{font-size:24px;font-family:monospace;color:#aecde8;font-weight:700}.streamTalkText{flex:1 1;min-width:0;align-self:center}.streamTalkName{font-size:30px;color:#f7c919;font-weight:800;line-height:1.2;margin-bottom:12px;overflow-wrap:anywhere;text-shadow:1px 2px 0 #061529}.streamTalkMessage{font-size:28px;font-weight:600;line-height:1.3;white-space:pre-wrap;overflow-wrap:anywhere}.streamTalkArrow{position:absolute;right:24px;bottom:18px;color:#f7c919;font-size:24px}@keyframes streamTalkPop{0%{opacity:0;transform:translate(-50%,12px) scale(.98)}to{opacity:1;transform:translate(-50%) scale(1)}}@media(max-width:960px){.streamTalkCard{min-height:130px;padding:12px 34px 12px 12px;gap:12px;border-width:3px;border-radius:12px}.streamTalkPortraitFrame{width:94px;height:94px;flex-basis:94px}.streamTalkName{font-size:19px;margin-bottom:6px}.streamTalkMessage{font-size:17px}.streamTalkArrow{font-size:15px;right:12px;bottom:10px}}.talkSettingsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px;margin:20px 0}.talkSetting{display:grid;grid-gap:9px;gap:9px;background:#0b1d32;border:1px solid #335876;border-radius:12px;padding:16px}.talkSetting>span{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:14px}.talkSetting strong{color:#f7c919;font-size:15px;white-space:nowrap}.talkSetting input{width:100%;accent-color:#f7c919;cursor:pointer}.talkPreview{min-height:175px;border:1px dashed #476987;background:#081829;border-radius:14px;justify-content:center;overflow:hidden;padding:10px}.talkPreview,.talkPreviewBox{display:flex;align-items:center}.talkPreviewBox{gap:12px;background:#102b4b;border:3px solid #f7c919;border-radius:14px;padding:15px;min-height:70px;max-width:100%;overflow-wrap:anywhere;line-height:1.35}.talkPreviewBox p{font-size:inherit;margin:5px 0 0}.talkPreviewAvatar{flex:0 0 48px;height:48px;display:grid;place-items:center;background:#071a30;border-radius:8px;color:#d6e9f7;font-weight:700;font-size:11px}@media(max-width:700px){.talkSettingsGrid{grid-template-columns:1fr}.talkPreview{min-height:140px}}.streamTalkCard{bottom:auto;max-height:82vh;overflow-y:auto;transform:translate(-50%,-50%);animation:streamTalkFade .22s ease-out both}@keyframes streamTalkFade{0%{opacity:0}to{opacity:1}}.streamBattleStage .streamTalkText{min-width:0}.streamEditor{margin:16px 0 22px}.streamEditor h3{font-size:17px;color:#ffdc4b;margin:25px 0 9px}.streamEditor .muted{line-height:1.45}.streamPositionPicker{display:grid;grid-template-columns:2fr 1fr 1fr;grid-gap:14px;gap:14px;margin:14px 0}.streamPositionPicker input[type=number],.streamPositionPicker select,.talkNumberInput{width:100%;min-width:0;min-height:40px;padding:8px 10px;color:#f3f7ff;border:1px solid #47708e;border-radius:8px;background:#152e48;font-size:14px}.talkSetting .talkNumberInput{max-width:120px;min-height:34px}.streamColors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:10px;gap:10px;margin:18px 0}.talkColorSetting{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#0b1d32;padding:12px;border:1px solid #335876;border-radius:10px;font-size:13px}.talkColorSetting span{width:100%;font-weight:650}.talkColorSetting input{width:42px;height:34px;padding:1px;border:0;border-radius:6px;background:transparent;cursor:pointer}.talkColorSetting code{color:#cfe4fa;font-size:12px}.streamLayoutPreview{position:relative;width:100%;aspect-ratio:16/9;border:2px solid #4e7394;border-radius:12px;background:linear-gradient(145deg,#263451,#12253d);overflow:hidden;margin:14px 0}.streamPreviewGrid{position:absolute;inset:0;opacity:.18;background-image:linear-gradient(90deg,#9db1c7 1px,transparent 0),linear-gradient(180deg,#9db1c7 1px,transparent 0);background-size:33.3333% 33.3333%}.streamPreviewActors{position:absolute;display:flex;align-items:center;justify-content:space-around;background:rgba(247,201,25,.09);border-bottom:2px dashed rgba(247,201,25,.65);max-height:50%}.streamPreviewActors span{font-weight:700;color:#f7c919;text-shadow:1px 1px 3px #111}.streamPreviewTalk{position:absolute;display:flex;align-items:center;gap:7px;padding:8px;box-sizing:border-box;border:2px solid;border-radius:10px;box-shadow:0 4px 12px #0006;overflow:hidden;max-height:52%;font-size:10px;line-height:1.3}.streamPreviewPortrait{display:grid;place-items:center;min-width:33px;width:20%;height:45px;flex:0 0 20%;font-family:monospace;border-radius:5px;color:#fff}.streamPreviewMessage{display:block;margin-top:3px;overflow-wrap:anywhere}@media(max-width:800px){.streamPositionPicker{grid-template-columns:1fr 1fr}.streamPositionPicker>:first-child{grid-column:span 2}.streamColors{grid-template-columns:repeat(2,minmax(0,1fr))}.streamLayoutPreview{min-height:185px}}.streamTalkStack{position:absolute;display:flex;flex-direction:column-reverse;align-items:stretch;gap:10px;z-index:100;transform:translateX(-50%);max-height:96vh;pointer-events:none}.streamTalkStack .streamTalkStackCard{position:relative;left:auto;top:auto;right:auto;bottom:auto;transform:none;margin:0;flex:0 0 auto;box-sizing:border-box;max-height:34vh;overflow:hidden;animation:streamTalkStackEnter .23s ease-out both}@keyframes streamTalkStackEnter{0%{opacity:0}to{opacity:1}}@media(max-width:960px){.streamTalkStack{gap:6px}.streamTalkStack .streamTalkStackCard{max-height:34vh}}