
.dm-chat-page{min-height:75vh;background:linear-gradient(180deg,#f4f9f2 0%,#fffcf5 44%,#f7f8f2 100%);padding:25px 0 80px;color:#163f34}
.dm-chat-page [hidden]{display:none!important}
.dm-chat-back{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce8df;padding-bottom:19px;gap:12px;font-size:12px;font-weight:900;color:#32705d;letter-spacing:.7px}
.dm-chat-back a{color:#276e57;text-decoration:none;font-weight:800;letter-spacing:0}
.dm-chat-hero{padding:65px 0 35px;display:flex;justify-content:space-between;gap:42px;align-items:center}
.dm-chat-hero>div:first-child{max-width:770px}
.dm-chat-hero h1{font-size:clamp(38px,5.1vw,66px);font-weight:900;line-height:1.08;letter-spacing:-2.5px;color:#124c3c;margin:0 0 20px}
.dm-chat-hero h1 em{color:#d78351;font-family:Georgia,serif;font-weight:500}
.dm-chat-hero p{font-size:16px;color:#668072;line-height:1.8;margin:0}
.dm-chat-demo-flag{display:flex;flex:0 0 auto;flex-direction:column;justify-content:center;gap:7px;position:relative;max-width:240px;padding:20px 25px 20px 48px;background:#fff;border:1px solid #dde8de;border-radius:20px;box-shadow:0 10px 22px #1b54340c}
.dm-chat-demo-flag strong{font-size:14px}
.dm-chat-demo-flag small{font-size:12px;line-height:1.5;color:#7c9384}
.dm-chat-led{position:absolute;top:24px;left:22px;width:13px;height:13px;border-radius:50%;background:#59b989;box-shadow:0 0 0 5px #e8f7ed}
.dm-chat-modebar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:22px}
.dm-chat-mode-label{color:#547361;font-weight:800;font-size:13px}
.dm-chat-switch{display:flex;align-items:center;gap:5px;padding:5px;border:1px solid #dbe9e0;background:#fff;border-radius:15px}
.dm-chat-switch button{border:0;background:transparent;color:#6b8275;border-radius:11px;padding:12px 15px;font-size:12px;font-weight:900;cursor:pointer}
.dm-chat-switch button.selected{background:#0e8068;color:#fff;box-shadow:0 5px 12px #0e80682a}
.dm-game-chat-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.8fr);gap:26px;align-items:stretch}
.dm-chat-gamecard,.dm-tablechat{background:#fff;border:1px solid #dfeadf;border-radius:25px;box-shadow:0 14px 32px #14533713;overflow:hidden}
.dm-chat-gamecard{padding:28px}
.dm-chat-gameheader{display:flex;align-items:center;justify-content:space-between;gap:16px}
.dm-chat-gameheader>div>span{color:#b8794c;font-size:11px;letter-spacing:1.5px;font-weight:900}
.dm-chat-gameheader h2{margin:7px 0 0;font-size:32px;letter-spacing:-1.2px;color:#165243}
.dm-chat-round{border-radius:30px;padding:9px 12px;background:#ebf5e9;font-size:11px;font-weight:900;color:#518064;text-align:center}
.dm-chat-round span{color:#81958a}
.dm-chat-players{display:flex;justify-content:space-between;align-items:center;gap:13px;margin:25px 0 18px}
.dm-chat-person{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.dm-chat-person:last-child{justify-content:flex-end}
.dm-chat-person.is-up .dm-avatar{box-shadow:0 0 0 3px #f5c65b}
.dm-avatar{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#e5f6e8;font-size:25px;flex:0 0 45px}
.dm-avatar-b{background:#f5e9dc}
.dm-avatar-c{background:#f2e5f3}
.dm-avatar-d{background:#e4ebfc}
.dm-chat-person b{display:block;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.dm-chat-person small{display:block;font-size:11px;color:#82948a;margin-top:3px}
.dm-chat-versus{font-size:11px;font-weight:900;color:#b3c3b8}
.dm-chat-players.is-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.dm-chat-players.is-four .dm-chat-person:last-child{justify-content:flex-start}
.dm-chat-players.is-four .dm-chat-versus{display:none}
.dm-chat-turn{text-align:center;font-weight:900;color:#27725c;font-size:13px;padding:14px;border-radius:12px;background:#f1f8ee;margin-bottom:19px}
.dm-chat-gameplay{max-width:540px;margin:0 auto;text-align:center}
.dm-connect-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;padding:16px;background:linear-gradient(150deg,#1a988e,#076b72);border:3px solid #0a6871;border-radius:23px;box-shadow:inset 0 4px 12px #053c414f,0 14px 22px #0d6f6a22}
.dm-connect-slot{width:100%;aspect-ratio:1;position:relative;padding:0;border:0;background:transparent;cursor:pointer;border-radius:50%;touch-action:manipulation;display:grid;place-items:center}
.dm-connect-slot span{display:block;width:86%;height:86%;border-radius:50%;background:#dcf1ed;box-shadow:inset 0 5px 9px #054d4d40;transition:background .16s}
.dm-connect-slot.red span{background:#ee7861}
.dm-connect-slot.yellow span{background:#f4c659}
.dm-connect-slot:focus-visible{outline:3px solid #ffe58d;outline-offset:1px}
.dm-connect-slot:not(:disabled):hover span{box-shadow:inset 0 2px 4px #054d4d36,0 0 0 2px #fff8;}
.dm-connect-slot:disabled{cursor:default}
.dm-chat-gamehint{font-size:11px;line-height:1.6;color:#81938a;margin:17px auto;max-width:390px}
.dm-chat-reset{border:1px solid #cddfd2;border-radius:30px;background:#f4faf2;color:#21674f;font-weight:900;font-size:13px;padding:11px 17px;cursor:pointer;min-height:44px}
.dm-chat-reset:hover{background:#e5f4e9}
.dm-chat-dice-area{padding:5px 0 0}
.dm-chat-dice-art{height:170px;background:linear-gradient(150deg,#e7f6eb,#fef1d5);border-radius:22px;display:flex;align-items:center;justify-content:space-around;font-size:39px}
.dm-chat-dice-cube{font-size:110px;color:#0b7969;font-family:Georgia,serif;line-height:1.5}
.dm-chat-dice-area>p:not(.dm-chat-gamehint){color:#567963;font-weight:800;font-size:14px}
.dm-tablechat{display:flex;flex-direction:column;max-height:780px;min-height:650px}
.dm-tablechat-header{display:flex;align-items:center;gap:12px;background:#f6faf3;border-bottom:1px solid #e3eee5;padding:20px}
.dm-tablechat-icon{width:47px;height:47px;border-radius:16px;background:#d9efe3;display:grid;place-items:center;font-size:24px}
.dm-tablechat-header>div:nth-child(2){flex:1;min-width:0}
.dm-tablechat-header strong{font-size:16px;color:#174d3e;display:block}
.dm-tablechat-header span:not(.dm-chat-small-lock){font-size:11px;color:#819386;margin-top:5px;display:block}
.dm-chat-small-lock{font-size:20px}.dm-chat-mobile-toggle{display:none}
.dm-chat-participants{display:flex;gap:8px;padding:13px 19px;flex-wrap:wrap;border-bottom:1px solid #edf0e9}
.dm-chat-participants span{font-size:11px;background:#eff7ed;color:#43765f;border-radius:20px;padding:7px 10px;font-weight:800}
.dm-chat-messages{padding:18px 17px;display:flex;flex-direction:column;gap:21px;overflow-y:auto;flex:1;min-height:180px;scrollbar-color:#c7ded0 transparent;overscroll-behavior:contain}
.dm-chat-message{display:flex;align-items:flex-start;gap:10px}
.dm-chat-msg-avatar{background:#e8f7ef;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;font-size:21px}
.dm-chat-message>div:last-child{min-width:0;max-width:95%}
.dm-chat-message b{font-size:12px;color:#235e4b;display:block}
.dm-chat-message small{font-size:10px;color:#9cab9e;font-weight:500;margin-left:7px}
.dm-chat-message p{margin:6px 0 0;background:#f0f6ef;border-radius:4px 14px 14px 14px;padding:10px 13px;font-size:13px;color:#3b6352;line-height:1.5;overflow-wrap:anywhere}
.dm-chat-message.mine{flex-direction:row-reverse}
.dm-chat-message.mine p{background:#d7efe3;border-radius:14px 4px 14px 14px}
.dm-chat-message.mine b{text-align:right}
.dm-chat-reactions{display:flex;gap:7px;flex-wrap:wrap;padding:13px 15px 10px;border-top:1px solid #e7eee8}
.dm-chat-reactions button{border:1px solid #d9e8dd;background:#fff;border-radius:25px;padding:8px 10px;font-size:11px;font-weight:800;color:#3b775d;cursor:pointer}
.dm-chat-reactions button:hover{background:#e9f8eb}
.dm-chat-compose{display:flex;gap:10px;align-items:center;padding:7px 16px 11px}
.dm-chat-compose input{flex:1;min-width:0;border:1px solid #d3e3d6;border-radius:28px;padding:12px 15px;height:49px;font-size:13px;color:#225d49;background:#fcfefa}
.dm-chat-compose input:focus{outline:2px solid #8fceb9;outline-offset:1px}
.dm-chat-compose button{border:0;flex:0 0 47px;height:47px;border-radius:50%;background:#0b7d66;color:#fff;font-size:22px;cursor:pointer}
.dm-chat-explainer{font-size:10.5px;line-height:1.6;background:#fff8e8;border-top:1px solid #efead9;color:#8a7557;padding:13px 17px}
.dm-chat-explainer strong{display:block;margin-bottom:3px}
.dm-chat-points{margin-top:55px;padding:32px 34px;background:#ebf6e9;border:1px solid #d8ead9;border-radius:25px;display:grid;grid-template-columns:1.3fr 1fr;gap:30px;align-items:center}
.dm-chat-points h2{color:#195341;font-size:29px;letter-spacing:-.8px;margin:0 0 11px}
.dm-chat-points p{color:#5f7a66;line-height:1.75;font-size:14px;margin:0}
.dm-points-legend{display:grid;gap:12px}
.dm-points-legend>span{display:block;border:1px solid #d6e8d6;border-radius:13px;background:#fffef9;padding:12px 15px;font-weight:900;color:#24674f;font-size:13px}
.dm-points-legend small{display:block;color:#839586;font-size:11px;font-weight:500;margin:4px 0 0 26px}
.dm-chat-footer-note{padding-top:34px;text-align:center;color:#8a9d8b;font-size:12px;line-height:1.8}
.dm-chat-footer-note a{font-weight:900;color:#187e65}
@media(max-width:1050px){.dm-game-chat-layout{grid-template-columns:1fr}.dm-tablechat{min-height:530px;max-height:680px}.dm-chat-hero{padding-top:45px}}
@media(max-width:720px){.dm-chat-page{padding:15px 0 65px}.dm-chat-back{font-size:10px}.dm-chat-back span{max-width:60%}.dm-chat-hero{display:block;padding:38px 0 27px}.dm-chat-hero h1{font-size:clamp(34px,9vw,48px);letter-spacing:-1.5px}.dm-chat-hero p{font-size:14px}.dm-chat-demo-flag{margin:22px 0 0;max-width:none;padding:13px 17px 13px 46px}.dm-chat-led{top:18px}.dm-chat-modebar{flex-direction:column;align-items:stretch;gap:10px}.dm-chat-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}.dm-chat-switch button{font-size:10px;padding:12px 5px;min-height:48px}.dm-game-chat-layout{gap:19px}.dm-chat-gamecard{padding:17px 12px;border-radius:19px}.dm-chat-gameheader h2{font-size:27px}.dm-chat-gameheader>div>span{font-size:9px}.dm-chat-round{font-size:10px}.dm-chat-players{gap:8px}.dm-chat-person{gap:6px}.dm-chat-person b{font-size:11px}.dm-chat-person small{font-size:9px}.dm-avatar{width:35px;height:35px;font-size:20px;flex-basis:35px}.dm-chat-players.is-four{gap:9px}.dm-connect-board{padding:8px;gap:4px;border-radius:13px}.dm-chat-turn{font-size:11px}.dm-tablechat{min-height:570px;max-height:660px;border-radius:19px}.dm-chat-mobile-toggle{display:inline-flex;border:1px solid #c9e0d4;background:#fff;color:#16765c;padding:9px 10px;border-radius:15px;font-weight:900;font-size:11px;cursor:pointer;min-height:39px}.dm-tablechat.is-chat-collapsed{min-height:0;height:auto}.dm-tablechat.is-chat-collapsed .dm-chat-participants,.dm-tablechat.is-chat-collapsed .dm-chat-messages,.dm-tablechat.is-chat-collapsed .dm-chat-reactions,.dm-tablechat.is-chat-collapsed .dm-chat-compose,.dm-tablechat.is-chat-collapsed .dm-chat-explainer{display:none}.dm-tablechat-header{padding:13px}.dm-tablechat-header strong{font-size:14px}.dm-chat-messages{min-height:140px}.dm-chat-points{grid-template-columns:1fr;margin-top:28px;padding:24px 19px;gap:20px}.dm-chat-points h2{font-size:25px}.dm-chat-points p{font-size:13px}}
