.ass-maedi-board{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));grid-template-rows:repeat(11,minmax(0,1fr));gap:4px;aspect-ratio:1;width:100%;max-width:600px;margin:12px auto;padding:12px;box-sizing:border-box;background:#fff6df;border:1px solid #bfae87;border-radius:14px}
.ass-maedi-field{border:1px solid #81765e;border-radius:50%;background:white;display:flex;align-items:center;justify-content:center;color:#444;font-weight:bold;min-width:0;min-height:0}
.ass-maedi-field.red{background:#f8ceca}.ass-maedi-field.yellow{background:#ffedac}.ass-maedi-field.house{border-style:dashed}.ass-maedi-field.goal{border-width:2px}
.ass-games .ass-maedi-piece{position:relative;z-index:1;border:2px solid #6c1919;border-radius:50%;padding:0;min-width:0;min-height:0;width:100%;height:100%;font-size:clamp(14px,3vw,22px);font-weight:bold;line-height:1;box-shadow:inset 0 3px 3px #ffffff70,0 2px 2px #0004}
.ass-games .ass-maedi-piece.red{background:#c63027;color:white}.ass-games .ass-maedi-piece.yellow{background:#ffcf24;color:#352400;border-color:#927012}.ass-games .ass-maedi-piece:disabled{opacity:1;cursor:default}.ass-games .ass-maedi-piece:not(:disabled){outline:3px solid #1766de;outline-offset:1px;cursor:pointer}.ass-games .ass-maedi-piece:focus-visible{outline:4px solid #101010}
.ass-maedi-die{font:52px/1 sans-serif;display:inline-block;color:#222;min-width:62px;text-align:center}.ass-preview-maedi{background:#fff6df!important;font-size:60px;display:flex;align-items:center;justify-content:center;gap:18px}
@media(max-width:480px){.ass-maedi-board{gap:3px;padding:5px}.ass-games .ass-maedi-piece:not(:disabled){outline-width:2px;outline-offset:0}}

.ass-maedi-layout{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;align-items:stretch}.ass-maedi-main{min-width:0}.ass-maedi-side{display:flex;flex-direction:column;background:#d6edf2;border:1px solid #a7cad3;padding:8px;min-width:0}.ass-maedi-side h3{font-size:16px;line-height:1.3;margin:0 0 3px;padding:2px 7px;background:#2485d0;color:white}.ass-maedi-roster p{display:flex;gap:10px;line-height:21px;min-height:21px;margin:0;font-size:14px}.ass-maedi-roster p span{width:18px;text-align:center}.ass-maedi-roster strong{overflow-wrap:anywhere}.ass-maedi-roster h3:not(:first-child){margin-top:12px}.ass-maedi-middle{margin-top:16px}.ass-maedi-middle details{font-size:14px;margin:0 0 5px}.ass-maedi-middle summary{text-align:center;cursor:pointer;background:#c6f36b;border:1px solid #97b85d;padding:4px;font-weight:bold}.ass-maedi-middle details p{line-height:1.4}.ass-maedi-middle>button,.ass-maedi-actions button{width:100%;padding:5px 4px;font-size:14px;line-height:1.25;border-radius:2px}.ass-maedi-bottom{margin-top:auto;padding-top:20px}.ass-maedi-actions{display:flex;flex-direction:column;gap:5px;margin-bottom:8px}.ass-maedi-side [hidden],.ass-maedi-main [hidden]{display:none!important}.ass-maedi-event{min-height:210px}.ass-maedi-event img{display:block;width:100%;max-width:175px;height:auto;margin:0 auto}.ass-maedi-cleaner{z-index:2;align-self:center;justify-self:center;width:clamp(30px,5vw,60px);max-width:none!important;pointer-events:none}.ass-maedi-board{position:relative}
@media(max-width:650px){.ass-maedi-layout{grid-template-columns:minmax(0,1fr)}.ass-maedi-side{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px}.ass-maedi-roster{grid-column:1}.ass-maedi-middle{grid-column:1;margin-top:0}.ass-maedi-bottom{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;padding-top:0;margin-top:0}.ass-maedi-event{min-height:0;margin-top:auto}.ass-maedi-event img{max-width:120px}.ass-maedi-board{margin-top:6px}}

.ass-maedi-board{background:radial-gradient(ellipse at 40% 25%,#668bea 0%,#4269d6 50%,#2b4faa 100%);border:1px solid #274793;box-shadow:inset 0 0 0 3px #ffffff30}.ass-maedi-field{border-color:#253c74;box-shadow:0 1px 2px #172b5c40}.ass-maedi-field.green{background:#b1e7a6}.ass-maedi-field.blue{background:#b2d8fa}.ass-games .ass-maedi-piece.green{background:#48ba50;border-color:#1b682c;color:#092c14}.ass-games .ass-maedi-piece.blue{background:#7ebcf2;border-color:#234e8e;color:#123264}.ass-games .ass-maedi-idle{display:flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:clamp(18px,3.5vw,28px)}.ass-games .ass-maedi-idle:not(:disabled){outline:none;cursor:default}

.ass-maedi-field.goal.red{background:#f8ceca}.ass-maedi-field.goal.yellow{background:#ffedac}.ass-maedi-field.goal.green{background:#b1e7a6}.ass-maedi-field.goal.blue{background:#b2d8fa}

.ass-maedi-main>.ass-maedi-board{margin-top:0}.ass-maedi-middle>button{margin-top:5px}.ass-maedi-main>.ass-controls{margin-top:10px}

.ass-maedi-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px;margin-top:22px;min-height:85px}.ass-maedi-controls>button{background:#ef3025;color:#fff;border:1px solid #a81f18;padding:9px 15px;font-weight:bold;border-radius:2px}.ass-maedi-choose{display:flex;align-items:center;gap:4px;width:100%;font-size:12px}.ass-maedi-choose span{margin-right:auto;font-weight:bold}.ass-maedi-choose button{min-width:23px;padding:4px 3px;border-radius:1px;font-size:13px}.ass-maedi-choose button:disabled{opacity:.35}.ass-maedi-number{position:absolute;right:-3px;bottom:-3px;background:#fff;color:#111;font:11px/13px Arial;min-width:12px;text-align:center;border:1px solid #777;z-index:3}.ass-maedi-label{position:absolute;color:white;width:31%;text-align:center;pointer-events:none;font:13px/1.25 Arial;overflow-wrap:anywhere}.ass-maedi-label strong,.ass-maedi-label small{display:block}.ass-maedi-label small{font-size:11px;margin-top:4px}.ass-maedi-label.active small{color:#fffb55;font-weight:bold}.ass-maedi-label-human{left:3%;top:29%}.ass-maedi-label-coco{right:3%;top:65%}.ass-games .ass-maedi-piece:not(:disabled){outline:none}.ass-games .ass-maedi-piece:focus-visible{outline:3px solid white}

.ass-games dialog.ass-maedi-help{position:fixed;inset:0;margin:auto;width:min(420px,calc(100vw - 40px));max-height:80vh;box-sizing:border-box;overflow:auto;padding:22px;background:#fff;color:#222;border:1px solid #6684ad;border-radius:8px;box-shadow:0 8px 35px #0005;font-size:16px;line-height:1.6;z-index:10000}.ass-maedi-help:not([open]){display:none}.ass-maedi-help::backdrop{background:#10234570}.ass-maedi-help h3{margin:0 0 12px}.ass-maedi-help button{display:block;margin:18px 0 0 auto}

.ass-games .ass-maedi-controls .ass-maedi-roll,.ass-games .ass-maedi-controls .ass-maedi-roll:hover,.ass-games .ass-maedi-controls .ass-maedi-roll:focus,.ass-games .ass-maedi-controls .ass-maedi-roll:active{background:#ef3025!important;background-image:none!important;color:#fff!important;border-color:#a81f18!important;box-shadow:none!important;filter:none!important;opacity:1!important;transform:none!important;transition:none!important}.ass-games .ass-maedi-controls .ass-maedi-roll[hidden]{display:none!important}

.ass-maedi-main{display:flex;flex-direction:column;padding-bottom:9px;box-sizing:border-box}.ass-maedi-main>.ass-maedi-board{flex:none}.ass-maedi-chat-placeholder{flex:1;min-height:130px;box-sizing:border-box;border:1px solid #a7cad3;background:#fff;padding:18px;color:#486172;font-size:16px;text-align:center;display:flex;align-items:center;justify-content:center}.ass-maedi-bottom>.ass-status{font-size:14px;line-height:1.4;margin:0 0 10px}
@media(max-width:650px){.ass-maedi-main{padding-bottom:0}.ass-maedi-chat-placeholder{min-height:100px}}

.ass-maedi-celebration{position:fixed;inset:0;z-index:100000;background:#050c22eF;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px;padding:24px;box-sizing:border-box}.ass-maedi-celebration[hidden]{display:none!important}.ass-maedi-celebration canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.ass-maedi-prize{white-space:pre-line;position:relative;max-width:800px;font:bold clamp(28px,5vw,62px)/1.25 Georgia,serif;color:#fff3a5;text-shadow:0 3px 12px #000;text-align:center}.ass-games .ass-maedi-celebration button{position:relative;background:#fff;color:#173665;border:1px solid #fff;padding:10px 28px;border-radius:5px;font-size:18px}

.ass-maedi-event[data-event="zuhause_mitspieler"]{background:#fff8eb}.ass-maedi-event[data-event="zuhause_mitspieler"] img{max-height:165px;width:100%;object-fit:contain}.ass-maedi-event-caption{margin:0;padding:5px 3px 8px;text-align:center;color:#10284e;font-weight:bold;font-size:15px;line-height:1.25}

.ass-maedi-online [hidden]{display:none!important}.ass-mo-entry{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:25px 0}.ass-mo-form{max-width:380px;margin:15px auto;display:grid;gap:12px}.ass-mo-form label{display:grid;gap:5px}.ass-mo-form input,.ass-maedi-online input{box-sizing:border-box;min-width:0;max-width:100%;padding:7px;border:1px solid #9ab2c6;font-size:16px}.ass-mo-error{color:#b30000;font-weight:bold}.ass-mo-error:empty{display:none}.ass-mo-status{font-size:14px;line-height:1.4}.ass-maedi-online .ass-maedi-side>input{font-size:12px;width:100%}.ass-maedi-online .ass-maedi-side>button{font-size:13px;margin:5px 0;padding:6px}.ass-maedi-online .ass-maedi-roster{margin-top:12px}.ass-mo-dot.red{color:#c63027}.ass-mo-dot.green{color:#238431}.ass-mo-dot.yellow{color:#b88400}.ass-mo-dot.blue{color:#175eae}.ass-mo-chat{flex:1;border:1px solid #a7cad3;padding:10px;background:#fff;min-height:130px}.ass-mo-messages{height:100px;overflow:auto;overflow-wrap:anywhere;font-size:14px}.ass-mo-messages p{margin:4px 0}.ass-mo-chat form{display:flex;gap:5px;margin-top:8px}.ass-mo-chat input{flex:1;min-width:0}.ass-mo-chat button{padding:6px;font-size:14px}.ass-maedi-online .ass-maedi-board{margin-top:0}
@media(max-width:650px){.ass-maedi-online .ass-maedi-side{display:flex}.ass-maedi-online .ass-maedi-controls{margin-top:5px;min-height:50px}.ass-maedi-online .ass-maedi-bottom{display:block}.ass-maedi-online .ass-maedi-event img{max-width:120px}}

.ass-games .ass-maedi-title{display:flex;align-items:center;justify-content:center;gap:25px;padding:15px 30px;margin:0 0 18px;background:linear-gradient(110deg,#fff1dc,#fffaf0 48%,#e8f2ff);border:1px solid #d8c7a6;border-radius:12px;box-shadow:0 3px 10px #314c7810}.ass-games .ass-maedi-title h2,.ass-games .ass-maedi-title h3{display:flex;align-items:center;gap:14px;margin:0;font:700 clamp(32px,5vw,46px)/1.15 Georgia,serif;color:#234578;letter-spacing:1px}.ass-maedi-title-die{display:inline-block;font:48px/1 Arial,sans-serif;color:#b82d32;transform:rotate(-12deg)}.ass-maedi-title-pawns{display:flex;align-items:flex-end;gap:9px}.ass-maedi-title-pawns i{display:block;position:relative;width:22px;height:35px;filter:drop-shadow(0 2px 1px #0003)}.ass-maedi-title-pawns i:before{content:"";display:block;width:14px;height:14px;border-radius:50%;background:var(--pawn);position:absolute;top:0;left:4px;box-shadow:inset 3px 2px 3px #fff6}.ass-maedi-title-pawns i:after{content:"";display:block;width:22px;height:23px;border-radius:45% 45% 25% 25%;background:var(--pawn);position:absolute;bottom:0;left:0;clip-path:polygon(32% 0,68% 0,100% 100%,0 100%);box-shadow:inset 4px 0 4px #fff4}.ass-maedi-title-pawns .red{--pawn:#d93a34}.ass-maedi-title-pawns .green{--pawn:#36a451}.ass-maedi-title-pawns .yellow{--pawn:#edba20}.ass-maedi-title-pawns .blue{--pawn:#418ed3}
.ass-games .ass-tile-maedi{grid-column:1/-1;padding:18px}.ass-maedi-boards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%}.ass-games .ass-maedi-board-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 7px;background:#fff;color:#234578;border:1px solid #b8c9e5;border-radius:9px;text-decoration:none;box-shadow:0 2px 5px #284e7e0d;min-width:0;line-height:1.3;cursor:pointer}.ass-games .ass-maedi-board-card:hover,.ass-games .ass-maedi-board-card:focus-visible{background:#eff5ff;border-color:#4269b7;outline-offset:3px}.ass-games .ass-maedi-board-card img{width:100%;max-width:120px;aspect-ratio:1;height:auto;display:block}.ass-games .ass-maedi-board-card strong{font-size:17px}.ass-board-count{font-size:12px;color:#4b684c;min-height:16px}.ass-board-full .ass-board-count{color:#b82323;font-weight:bold}.ass-games .ass-maedi-solo-link{display:block;text-align:center;margin:16px 0 0;font-size:14px}.ass-mo-picker{display:flex;flex-direction:column;align-items:center;padding:10px 0}.ass-mo-picker>button{font-size:14px;margin-top:12px}.ass-maedi-online .ass-maedi-side>input{font-size:14px}.ass-maedi-online .ass-maedi-side>h3{margin:0 0 8px}
@media(max-width:650px){.ass-maedi-boards{grid-template-columns:repeat(3,minmax(0,1fr))}.ass-games .ass-maedi-title{gap:13px;padding:13px 22px}.ass-maedi-title-pawns{gap:5px}.ass-maedi-title-pawns i{width:18px;transform:scale(.85)}}
@media(max-width:420px){.ass-maedi-boards{grid-template-columns:repeat(2,minmax(0,1fr))}.ass-games .ass-maedi-title{gap:8px}.ass-maedi-title-pawns{gap:2px}.ass-games .ass-maedi-title h2,.ass-games .ass-maedi-title h3{gap:8px}.ass-maedi-title-die{font-size:38px}}

.ass-games .ass-maedi-title{width:100%}

.ass-maedi-home-name{position:relative;align-self:end;margin-bottom:-1px;z-index:3;pointer-events:none;width:100%;text-align:center;color:#fff;font:700 clamp(14px,3vw,20px)/1.1 Arial,sans-serif;text-shadow:0 1px 2px #17356c}.ass-maedi-home-0{grid-column:2 / span 2;grid-row:1}.ass-maedi-home-1{grid-column:9 / span 2;grid-row:1}.ass-maedi-home-2{grid-column:9 / span 2;grid-row:8}.ass-maedi-home-3{grid-column:2 / span 2;grid-row:8}

.ass-maedi-online .ass-mo-status.ass-mo-turn{color:#0046b8;font-size:20px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}

.ass-maedi-home-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.ass-games .ass-mo-chat{display:flex;flex-direction:column;text-align:left;font-size:13px;line-height:1.4;padding:8px}.ass-games .ass-mo-messages{flex:1 1 0;min-height:80px;height:0;text-align:left;font-size:inherit;line-height:inherit}.ass-games .ass-mo-messages p{margin:3px 0;text-align:left;font-size:inherit;font-weight:400;line-height:inherit}.ass-games .ass-mo-messages strong{font-family:inherit;font-size:inherit;line-height:inherit;font-weight:700}.ass-games .ass-mo-chat form{flex:0 0 auto;margin:8px 0 0;display:flex;align-items:stretch}.ass-games .ass-mo-chat input,.ass-games .ass-mo-chat button{font-family:inherit;font-size:13px;line-height:1.4;min-height:32px;padding:5px 8px}.ass-games .ass-mo-chat input{font-weight:400;text-align:left}

.ass-maedi-interest{margin-top:12px;padding:12px;border:1px solid #a7cad3;background:#fff;color:#17212d;font-size:14px;line-height:1.45}.ass-maedi-interest strong,.ass-maedi-interest label{display:block;margin-bottom:10px}.ass-maedi-interest input[type="checkbox"]{width:auto;margin-right:6px}.ass-maedi-interest button{font-size:14px;padding:7px 12px}.ass-maedi-interest [hidden]{display:none!important}

.ass-maedi-bot-name{color:#c00000}.ass-maedi-home-name.ass-maedi-bot-name{color:#ff5555;text-shadow:0 1px 2px #111}

.ass-maedi-interest[hidden]{display:none!important}

.ass-games .ass-maedi-actions button.ass-maedi-invite{font-size:12px;white-space:nowrap;padding:5px 2px;letter-spacing:0}

@media(max-width:650px){
 .ass-maedi-actions>.ass-maedi-controls{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0;min-height:0}
 .ass-maedi-actions>.ass-maedi-controls .ass-maedi-roll{order:0;width:100%}
 .ass-maedi-actions>.ass-maedi-controls .ass-maedi-die{order:1;display:block;font-size:84px;line-height:1.1;min-width:0;width:100%;text-align:center}
 .ass-maedi-actions>.ass-maedi-controls .ass-maedi-choose{order:2;flex-wrap:wrap;justify-content:center}
 .ass-maedi-actions>.ass-maedi-controls .ass-maedi-choose span{width:100%;margin:0;text-align:center}
 .ass-maedi-actions>.ass-maedi-controls .ass-maedi-choose button{width:auto;flex:1;padding:4px 2px}
}
