:root { --deck-wood:#8c512c; --deck-light:#d49a52; --sea:#0c6172; --sea-deep:#082c45; --sunny-gold:#ffd166; }
.crew-layout { max-width:1440px; margin:28px auto 60px; padding:0 24px; display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:22px; align-items:start; }
.crew-main { min-width:0; }
.crew-scene { position:relative; min-height:385px; padding:20px 24px 28px; overflow:hidden; isolation:isolate; border:1px solid rgba(243,205,128,.35); border-radius:24px; background:radial-gradient(ellipse at 50% 105%,#30a8ad 0,#0b667c 38%,#092f4a 76%); box-shadow:0 24px 65px #020a15aa,inset 0 0 50px #03273b; }
.crew-scene:before,.crew-scene:after { content:""; position:absolute; left:-8%; width:116%; height:150px; z-index:-1; border:2px solid #88d4cd55; border-radius:50%; transform:rotate(-3deg); }
.crew-scene:before { bottom:35px; box-shadow:0 10px #0a4156,0 22px #2a9ba055,0 32px #063a50; }
.crew-scene:after { bottom:-110px; height:215px; background:repeating-linear-gradient(0deg,#74421f 0 18px,#9a6032 19px 22px,#633817 23px 26px); border:8px solid #d3a15e; border-bottom:0; border-radius:44% 44% 0 0; box-shadow:inset 0 12px 20px #3a210f99,0 -7px 0 #f1c982; }
.crew-scene__skyline { position:absolute; inset:0 0 42% 0; pointer-events:none; opacity:.6; background:radial-gradient(ellipse at 20% 25%,#fff5c533 0 2px,transparent 4px),radial-gradient(ellipse at 75% 18%,#fff5c533 0 2px,transparent 4px); }
.crew-scene__title { position:relative; z-index:2; text-align:center; margin:0 auto 8px; color:#fff0c8; font:700 clamp(1.25rem,3vw,2rem) var(--font-display); text-shadow:0 3px 0 #40250f,0 7px 18px #03111e; }
.crew-scene__subtitle { text-align:center; color:#d8f4ec; margin:0 auto 12px; font-size:.88rem; }
.sunny-bow { position:relative; z-index:3; display:block; width:104px; height:104px; margin:4px auto 0; padding:0; border:3px solid #ffe394; border-radius:50%; color:#fff5cc; background:radial-gradient(circle at 35% 30%,#ffe995,#e08a34 60%,#873e21); box-shadow:0 0 0 5px #6d391b,0 9px 18px #03111eaa; cursor:pointer; transition:transform .2s,box-shadow .2s; }
.sunny-bow:hover { transform:translateY(-3px) scale(1.04); }
.sunny-bow__lion { display:block; font-size:50px; line-height:1.1; filter:drop-shadow(0 3px 1px #713d16); }
.sunny-bow__label { display:block; margin-top:-1px; font-size:10px; font-weight:900; letter-spacing:.14em; }
.sunny-ready .sunny-bow { animation:sunnyGlow 1.5s ease-in-out infinite alternate; }
@keyframes sunnyGlow { to { box-shadow:0 0 0 5px #6d391b,0 0 18px 9px #ffe68b,0 9px 18px #03111eaa; filter:brightness(1.12); } }
.sunny-sail { position:absolute; z-index:1; left:50%; top:95px; width:0; height:0; border-left:58px solid transparent; border-right:58px solid transparent; border-bottom:120px solid #fff6d8; transform:translateX(-50%); filter:drop-shadow(0 4px 0 #7f4728); }
.sunny-mast { position:absolute; z-index:0; left:50%; top:72px; height:170px; width:8px; background:#75431f; transform:translateX(-50%); box-shadow:2px 0 #d59c5a; }
.crew-meter { position:relative; z-index:4; width:min(500px,100%); margin:18px auto 0; padding:13px 16px; border:1px solid #f6d28288; border-radius:14px; color:#fff3d0; background:#081d30d9; box-shadow:0 8px 22px #03111e88; }
.crew-meter__top { display:flex; justify-content:space-between; gap:12px; align-items:baseline; font-size:.88rem; }
.crew-meter__top strong { color:#ffdc7c; font:700 1rem var(--font-display); }
.crew-meter__track { height:10px; overflow:hidden; margin-top:9px; border-radius:20px; background:#132d42; border:1px solid #d5ab5b66; }
.crew-meter__fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,#e28b27,#ffe582); transition:width .7s; box-shadow:0 0 12px #ffd65d; }
.crew-meter__hint { display:flex; justify-content:space-between; gap:10px; margin-top:6px; color:#c8d7d8; font-size:.76rem; }
.crew-meter__claim { width:100%; margin-top:11px; padding:10px 14px; border:0; border-radius:9px; background:linear-gradient(135deg,#ffe89a,#e3a43f); color:#3b260d; font-weight:900; cursor:pointer; }
.crew-section { margin-top:22px; padding:22px; border:1px solid #ffffff14; border-radius:18px; background:linear-gradient(145deg,#15233a,#101827); box-shadow:0 14px 40px #0003; }
.crew-section__heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; align-items:baseline; margin-bottom:16px; }
.crew-section__heading h2 { margin:0; color:var(--parchment); font:700 1.35rem var(--font-display); }
.crew-section__heading p { margin:0; color:#9daec3; font-size:.86rem; }
.activity-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.activity-card { position:relative; display:flex; flex-direction:column; min-height:192px; padding:16px; border:1px solid #d4af3740; border-radius:14px; background:radial-gradient(circle at 100% 0,#e0ad3922,transparent 48%),#0d1728; }
.activity-card__icon { font-size:30px; }
.activity-card h3 { margin:9px 0 2px; color:#f3d68c; font:700 1rem var(--font-display); }
.activity-card__character { margin:0 0 6px; color:#73cbd0; font-size:.76rem; font-weight:700; }
.activity-card__description { flex:1; margin:0 0 13px; color:#b3bfd0; font-size:.82rem; }
.activity-card__button { width:100%; padding:9px 12px; border:1px solid #d6b65b; border-radius:8px; background:#61461c; color:#fff0c8; text-align:center; text-decoration:none; font-weight:800; }
.activity-card__button:hover { background:#8a6225; }
.activity-card__button.is-done { border-color:#4b9c75; background:#193e36; color:#a8ebbf; }
.crew-member-list { display:grid; gap:8px; list-style:none; margin:0; padding:0; }
.crew-member { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px 11px; border:1px solid #ffffff12; border-radius:12px; background:#ffffff05; }
.crew-member__avatar { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; object-fit:cover; background:#25344a; border:1px solid #d4af3755; }
.crew-member__name { overflow:hidden; text-overflow:ellipsis; color:#f4e8cf; font-weight:700; white-space:nowrap; }
.crew-member__meta { display:block; color:#98a8bc; font-size:.75rem; }
.crew-member__score { color:#f0ca6a; font:700 .84rem var(--font-mono); text-align:right; }
.crew-member__actions { display:flex; gap:5px; grid-column:2 / -1; flex-wrap:wrap; }
.crew-member__actions form { display:inline; }
.crew-member__actions button { padding:5px 8px; border:1px solid #53657c; border-radius:6px; background:#1b293d; color:#dce7f3; cursor:pointer; font:inherit; font-size:.72rem; }
.crew-member__actions .danger { border-color:#a95156; color:#ffc3bd; }
.crew-chat { position:sticky; top:84px; min-width:0; height:min(680px,calc(100vh - 106px)); display:flex; flex-direction:column; overflow:hidden; border:1px solid #d4af374c; border-radius:18px; background:linear-gradient(165deg,#13233a,#0b1321); box-shadow:0 18px 50px #0005; }
.crew-chat__head { padding:17px 16px 10px; border-bottom:1px solid #ffffff12; }
.crew-chat__head h2 { margin:0; color:#f3d68c; font:700 1.15rem var(--font-display); }
.crew-chat__head p { margin:3px 0 0; color:#97a8bf; font-size:.76rem; }
.crew-chat__tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; padding:9px; }
.crew-chat__tab { padding:8px 3px; border:1px solid #35455e; border-radius:8px; background:#111d30; color:#adbbce; cursor:pointer; font:inherit; font-size:.74rem; }
.crew-chat__tab.active { border-color:#d4af37; background:#604819; color:#ffe8a2; }
.crew-chat__whisper-controls { display:none; gap:6px; flex-direction:column; margin:0 9px 8px; }
.crew-chat__whisper-controls input,.crew-chat__peer { width:100%; padding:8px; border:1px solid #40516a; border-radius:8px; background:#0e1a2a; color:#e8edf6; }
.crew-chat[data-scope="whisper"] .crew-chat__whisper-controls { display:flex; }
.crew-chat__messages { flex:1; min-height:100px; overflow-y:auto; padding:10px; display:flex; flex-direction:column; gap:8px; }
.chat-message { align-self:flex-start; max-width:94%; padding:8px 10px; border:1px solid #ffffff11; border-radius:10px 10px 10px 3px; background:#ffffff08; }
.chat-message.is-me { align-self:flex-end; border-color:#d4af3735; background:#72541e31; border-radius:10px 10px 3px 10px; }
.chat-message__meta { display:flex; gap:7px; color:#d7bd75; font-size:.7rem; font-weight:700; }
.chat-message__time { color:#74859d; font-weight:400; }
.chat-message__body { margin:3px 0 0; overflow-wrap:anywhere; color:#e1e8f1; font-size:.84rem; white-space:pre-wrap; }
.crew-chat__form { display:flex; align-items:flex-end; gap:7px; padding:9px; border-top:1px solid #ffffff12; }
.crew-chat__form textarea { flex:1; min-height:42px; max-height:100px; resize:vertical; padding:9px; border:1px solid #3a4c66; border-radius:9px; background:#091321; color:#f2eadc; font:inherit; font-size:.82rem; }
.crew-chat__form button { min-height:42px; padding:8px 12px; border:1px solid #d4af37; border-radius:9px; background:#72551f; color:#ffecb5; cursor:pointer; font-weight:800; }
.crew-chat__status { min-height:20px; padding:0 12px 8px; color:#9eafc3; font-size:.75rem; }
.crew-chat__login { margin:auto; padding:20px; color:#aab8ca; text-align:center; }
.crew-menu { width:min(760px,calc(100vw - 24px)); max-height:min(85vh,900px); padding:0; overflow:auto; border:1px solid #d4af3780; border-radius:20px; color:var(--parchment); background:#0d1726; box-shadow:0 30px 100px #000b; }
.crew-menu::backdrop { background:#030711bd; backdrop-filter:blur(5px); }
.crew-menu__top { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #ffffff16; background:#101b2bed; }
.crew-menu__top h2 { margin:0; color:#f3d68c; font:700 1.2rem var(--font-display); }
.crew-menu__close { border:0; background:none; color:#d9e2ee; font-size:1.5rem; cursor:pointer; }
.crew-menu__content { padding:20px; }
.crew-menu__profile { display:flex; gap:16px; align-items:center; padding:16px; border:1px solid #d4af3733; border-radius:14px; background:#ffffff06; }
.crew-menu__avatar { width:72px; height:72px; display:grid; place-items:center; flex:none; overflow:hidden; border-radius:50%; object-fit:cover; border:2px solid #d4af37; background:#1a2a42; font-size:30px; }
.crew-menu__avatar img { width:100%; height:100%; object-fit:cover; }
.crew-menu__profile h3 { margin:0; color:#ffdf8b; font:700 1.3rem var(--font-display); }
.crew-menu__profile p { margin:4px 0 0; color:#b6c3d3; }
.crew-menu__edit { display:inline-block; margin-top:9px; padding:7px 10px; border:1px solid #d4af3766; border-radius:7px; color:#f1d887; text-decoration:none; font-size:.8rem; }
.crew-menu__section { margin-top:20px; }
.crew-menu__section h3 { margin:0 0 9px; color:#e5ca7e; font:700 1rem var(--font-display); }
.crew-deck-board { position:relative; padding:15px; border:1px solid #e0ae6655; border-radius:15px; background:repeating-linear-gradient(0deg,#563316 0 13px,#6b411e 14px 16px,#744923 17px 29px); box-shadow:inset 0 0 18px #271507aa; }
.crew-menu__balance { color:#ffdf8b; font:700 1.1rem var(--font-mono); }
.point-flight { position:fixed; z-index:80; width:11px; height:11px; border-radius:50%; pointer-events:none; background:#ffe67c; box-shadow:0 0 16px 6px #ffba35; animation:pointFly .8s ease-in forwards; }
@keyframes pointFly { to { transform:translate(var(--dx),var(--dy)) scale(.2); opacity:.1; } }
.crew-minigame-page { max-width:960px; margin:28px auto 60px; padding:0 20px; }
.crew-minigame-card { padding:clamp(18px,4vw,34px); border:1px solid #d4af3755; border-radius:22px; background:radial-gradient(circle at 100% 0,#b77b2920,transparent 35%),linear-gradient(145deg,#172640,#0d1523); box-shadow:0 24px 65px #0006; }
.crew-minigame-card__back { color:#e8d08a; text-decoration:none; font-size:.85rem; }
.crew-minigame-card h1 { margin:14px 0 0; color:#ffdf8d; font:700 clamp(1.7rem,4vw,2.4rem) var(--font-display); }
.crew-minigame-card__intro { color:#b4c2d2; }
.game-hud { display:flex; justify-content:space-between; gap:15px; align-items:center; margin:18px 0; color:#f4d37d; font-weight:800; }
.game-track { height:9px; overflow:hidden; border-radius:10px; background:#0b1422; }
.game-track span { display:block; width:100%; height:100%; transform-origin:left; background:linear-gradient(90deg,#e18d37,#ffe188); transition:transform .2s linear; }
.game-arena { position:relative; min-height:300px; margin-top:17px; overflow:hidden; border:1px solid #8ec3c866; border-radius:17px; background:radial-gradient(ellipse at 50% 110%,#21747c,#103d55 68%,#0b243a); }
.game-target { position:absolute; display:grid; place-items:center; width:66px; height:66px; padding:0; border:1px solid #ffe8a8; border-radius:50%; background:#203d4ddd; box-shadow:0 6px 14px #02091399; font-size:32px; cursor:pointer; user-select:none; transition:transform .08s; }
.game-target:active { transform:scale(.85); }
.game-target--center { position:relative; left:auto; top:auto; width:92px; height:92px; margin:18px auto 0; font-size:44px; }
.game-target.lit { background:#c48c31; border-color:#fff0a0; box-shadow:0 0 22px 8px #ffd45c99; transform:scale(1.08); }
.game-center { display:grid; place-items:center; min-height:300px; padding:24px; text-align:center; }
.game-center button { padding:14px 22px; border:1px solid #f1d487; border-radius:10px; background:linear-gradient(135deg,#a46d23,#e3b551); color:#241606; cursor:pointer; font:800 1rem var(--font-body); }
.game-sequence { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin:16px 0; }
.game-sequence button { min-width:56px; min-height:54px; border:1px solid #e2bd63; border-radius:11px; background:#16334b; color:#fff2c8; cursor:pointer; font-size:1.4rem; }
.game-sequence button.lit { background:#c58a2d; transform:scale(1.08); }
.game-order { margin:15px 0; color:#ffe08c; font:700 clamp(1.1rem,4vw,1.6rem) var(--font-mono); letter-spacing:.08em; }
.game-feedback { min-height:28px; color:#c3d3de; }
.game-result { padding:18px; border:1px solid #d4af3788; border-radius:13px; background:#e4b6461c; text-align:center; }
.game-result strong { color:#ffdf87; font-size:1.2rem; }
@media(max-width:1050px) { .crew-layout { grid-template-columns:minmax(0,1fr) 300px; gap:14px; padding:0 14px; } .activity-grid { gap:8px; } .activity-card { padding:12px; } }
@media(max-width:760px) { .topbar__inner { gap:10px; } .topnav { flex:1; justify-content:flex-end; gap:12px; max-width:calc(100vw - 160px); overflow-x:auto; white-space:nowrap; scrollbar-width:none; } .topnav::-webkit-scrollbar { display:none; } }
@media(max-width:820px) { .crew-layout { max-width:740px; display:flex; flex-direction:column; } .crew-main,.crew-chat { width:100%; } .crew-chat { position:relative; top:auto; height:560px; } }
@media(max-width:600px) { .crew-scene { min-height:350px; padding:17px 12px 25px; } .crew-scene:after { bottom:-125px; } .activity-grid { grid-template-columns:1fr; } .activity-card { min-height:160px; } .crew-section { padding:16px 12px; } .crew-layout { padding:0 10px; margin-top:15px; } .crew-chat { height:500px; } .crew-member { grid-template-columns:38px minmax(0,1fr) auto; padding:8px; } .crew-member__avatar { width:36px;height:36px; } .crew-member__score { font-size:.72rem; } .crew-menu__content { padding:13px; } .crew-menu__profile { align-items:flex-start; } .crew-scene__subtitle { max-width:310px; } }
.dojo-callout{margin:22px auto;padding:20px 14px;max-width:360px;border:1px solid rgba(255,220,140,.35);border-radius:15px;background:rgba(4,16,29,.72);color:#a9bfd1;font-size:clamp(18px,4vw,28px);font-weight:900;letter-spacing:2px;transition:transform .15s,background .15s,color .15s}.dojo-callout--live{transform:scale(1.04);background:linear-gradient(120deg,#6e2424,#a64d38);color:#fff1d4;box-shadow:0 0 32px #f56d4c66}.dojo-choices{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.dojo-choices button{padding:13px 19px;border:1px solid #e4bf75;border-radius:10px;background:#172d41;color:#f8dc9f;font-weight:900;letter-spacing:1px;cursor:pointer}.dojo-choices button:hover{background:#29445c;transform:translateY(-2px)}.brook-stage{width:min(600px,100%);height:250px;display:flex;align-items:center;gap:12px;padding:18px;box-sizing:border-box;border:1px solid #ffffff20;border-radius:18px;background:radial-gradient(ellipse at 12% 55%,#31495c,#0c1c2d 68%);overflow:hidden}.brook-violin{z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:90px;height:130px;border-radius:50%;background:#ffffff0a;font-size:58px;filter:drop-shadow(0 5px 8px #0008)}.brook-violin small{margin-top:4px;color:#c8d5e1;font-size:10px}.brook-lane{position:relative;flex:1;height:82px;overflow:hidden;border-radius:45px;background:linear-gradient(90deg,#ffffff08,#ffffff02);box-shadow:inset 0 0 0 1px #ffffff12}.brook-rail{position:absolute;left:0;right:0;top:50%;height:2px;background:linear-gradient(90deg,#eac67588,transparent)}.brook-note{position:absolute;left:0;top:50%;z-index:2;transform:translate(-50%,-50%);border:0;background:transparent;color:#ffe29a;text-shadow:0 0 14px #ffd969;font-size:33px;cursor:pointer}.brook-note--sailing{left:calc(100% + 10px);transition:left 2s linear}@media(max-width:480px){.brook-stage{height:210px;padding:10px;gap:4px}.brook-violin{min-width:68px;font-size:43px}}
.brook-game{width:100%;padding:12px}.brook-stage{width:100%;height:250px;display:flex;align-items:center;gap:12px;padding:16px;box-sizing:border-box;overflow:hidden}.brook-violin{min-width:74px;width:74px;height:110px;border-radius:18px;color:#f3d991;font-size:15px;font-weight:900}.brook-violin-mark{font-size:42px;line-height:1}.brook-violin small{font-size:10px}.brook-lane{height:190px;overflow:hidden;border-radius:5px;background:linear-gradient(90deg,#f6f0df0c,#f6f0df05);box-shadow:inset 0 0 0 1px #e3d4ad66}.brook-staff-line{position:absolute;left:0;right:0;height:1px;background:#e5d8b7aa}.brook-play-line{position:absolute;left:83%;top:10%;bottom:10%;width:2px;background:#ffdd7b99;box-shadow:0 0 8px #ffdd7b66}.brook-note{position:absolute;left:0;display:flex;align-items:center;gap:2px;transform:translate(-50%,-50%);border:0;background:none;color:#ffe29a;text-shadow:0 0 12px #ffd969;font-size:35px;line-height:1;cursor:default}.brook-note small{font-size:12px;font-weight:900}.brook-note--sailing{left:83%;transition:left 2.5s linear}.brook-hint{margin:8px 0;color:#b4c2d2;font-size:.85rem;text-align:center}.brook-keys{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.brook-keys .brook-key{min-width:46px;padding:10px 14px;border:1px solid #e4c779;border-radius:9px;background:#18344a;color:#ffe4a1;font-weight:900;font-size:1.1rem;cursor:pointer}.brook-keys .brook-key:hover,.brook-keys .brook-key:focus-visible{background:#9b6f2e;outline:2px solid #ffe29a}@media(max-width:480px){.brook-game{padding:5px}.brook-stage{height:220px;padding:8px;gap:6px}.brook-violin{min-width:52px;width:52px;height:88px;font-size:12px}.brook-lane{height:170px}.brook-keys{gap:5px}.brook-keys .brook-key{min-width:39px;padding:9px 11px}}
