.dw-page{position:fixed;inset:0 0 calc(104px + env(safe-area-inset-bottom));z-index:12000;background:#f7f5fc;color:#261738;font:16px/1.45 system-ui,-apple-system,sans-serif;display:flex;flex-direction:column;touch-action:pan-y;isolation:isolate}.dw-page *{box-sizing:border-box}.dw-page header{display:flex;gap:12px;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:#fff;flex:none;border-bottom:1px solid #e6dff0}.dw-page h1{font-size:21px;margin:0;min-width:0;overflow-wrap:anywhere}.dw-page button{font:600 15px/1.2 system-ui;white-space:normal;word-break:normal;overflow-wrap:normal;border:1px solid #dbcee9;border-radius:14px;background:#fff;color:#542780;min-height:44px;padding:10px 15px;cursor:pointer;flex-shrink:0}.dw-page button:disabled{opacity:.5;cursor:default}.dw-page button:focus-visible{outline:3px solid #b392e8;outline-offset:2px}.dw-page .dw-back{font-size:28px;min-width:44px;padding:0}.dw-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px}.dw-notice{margin:0;padding:8px 16px;font-size:14px;background:#eee7f6;flex:none}.dw-notice:empty{display:none}.dw-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.dw-room-view{height:clamp(260px,49dvh,540px);width:100%;overflow:hidden;border-radius:24px;touch-action:none;background:#eee9f7}.dw-room-view canvas{display:block;width:100%;height:100%;touch-action:none}.dw-editor{padding:14px;background:#fff;border:1px solid #dfd4ec;border-radius:18px;margin:12px 0}.dw-editor label{display:block;margin:10px 0;font-size:14px}.dw-editor input{display:block;width:100%;min-height:36px;accent-color:#853ab9}.dw-gallery{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.dw-primary,.dw-page button.dw-primary{background:linear-gradient(125deg,#562a91,#9b43bf);color:white;border:0}.dw-hero{position:relative;border-radius:24px;overflow:hidden;min-height:170px;background:#261738;margin-bottom:16px}.dw-hero img{width:100%;height:170px;object-fit:cover;opacity:.65}.dw-hero h2{position:absolute;bottom:10px;left:16px;margin:0;color:white;font-size:26px}.dw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dw-grid button{min-width:0;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.dw-grid small{font-size:12px;font-weight:400}.dw-sheet{background:white;border:1px solid #e5d9ef;border-radius:20px;padding:16px;margin:12px 0}.dw-page dialog{max-width:min(90vw,480px);border:0;border-radius:24px;padding:22px;color:#261738;box-shadow:0 16px 80px #20103066}.dw-page dialog::backdrop{background:#24123488}.dw-page dialog p{white-space:pre-wrap;overflow-wrap:anywhere}.dw-page ul,.dw-page ol{padding-left:24px}.dw-page li{margin:10px 0}.dw-crush{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;touch-action:none;background:#301a4a;border-radius:14px;padding:6px;max-width:540px;margin:12px auto}.dw-crush button{min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #bda3d266;min-height:0;aspect-ratio:1;padding:2px;border-radius:7px;background:#56316c;touch-action:none}.dw-crush button img{width:100%;height:100%;object-fit:contain;pointer-events:none}.dw-crush button[aria-pressed=true]{background:#ae6edb;outline:2px solid #fff}.dw-crush button.dw-matched{opacity:.2;transform:scale(.6);transition:all .18s}.dw-score{display:flex;justify-content:space-between;gap:12px;font-size:18px;font-weight:700}.dw-players{font-size:14px}.dw-page [hidden]{display:none!important}@media(min-width:700px){.dw-body{width:min(100%,900px);align-self:center}.dw-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-height:500px){.dw-room-view{height:300px}.dw-page header{padding-top:8px}}

.dw-page select{display:block;width:100%;max-width:100%;min-height:44px;border:1px solid #d7c9e7;border-radius:12px;padding:8px;font:16px system-ui;margin:8px 0;background:white;color:#38254a}.dw-toolbar button{padding:9px 12px;font-size:14px}.dw-editor input[type=color]{height:44px;padding:0;border:0}

.dw-room-page .dw-body{display:flex;flex-direction:column;padding:12px;width:100%}.dw-room-tools{flex-wrap:nowrap;overflow-x:auto;flex:none;padding:2px 2px 8px;scrollbar-width:thin}.dw-room-tools button{white-space:nowrap}.dw-room-page .dw-room-view{flex:1;min-height:240px;height:auto}.dw-room-page .dw-editor{flex:none}.dw-room-page .dw-gallery:empty{display:none}.dw-room-page .dw-notice{font-size:12px;padding:8px 12px}@media(min-width:700px){.dw-room-page .dw-body{max-width:900px}}

.dw-tools-sheet{position:absolute;inset:0;background:#f7f5fc;display:flex;flex-direction:column;z-index:5}.dw-tools-sheet header{justify-content:space-between}.dw-tools-sheet h2{font-size:19px;margin:0}.dw-tools-body{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.dw-tools-body label{display:block;font-size:14px;font-weight:600}.dw-tools-body input:not([type=checkbox]),.dw-tools-body textarea{display:block;width:100%;font:16px system-ui;min-height:44px;padding:10px;border:1px solid #d7c9e7;border-radius:12px;background:white;color:#261738}.dw-tools-body textarea{min-height:120px;resize:vertical}.dw-tools-body fieldset{border:1px solid #d7c9e7;border-radius:16px;margin:12px 0;padding:12px;display:grid;gap:8px}.dw-tools-body input[type=checkbox]{width:24px;height:24px;vertical-align:middle;margin-right:8px}.dw-tools-list{display:grid;gap:8px}.dw-tools-notice{padding:12px;margin:0;font-size:14px}.dw-tools-notice:empty{display:none}.dw-object-list{max-height:190px;overflow:auto}.dw-object-list label{display:flex;align-items:center;gap:8px;flex-direction:row-reverse;justify-content:flex-end;min-height:44px}
.dw-puzzle-grid{display:grid;grid-template-columns:repeat(var(--cells),minmax(0,1fr));width:min(100%,620px);margin:12px auto;gap:1px;background:#b4a2ce;border:2px solid #684b83;border-radius:8px;overflow:hidden;touch-action:manipulation}.dw-page .dw-puzzle-grid button{min-width:0;min-height:0;aspect-ratio:1;border:0;border-radius:0;padding:0;font-size:clamp(12px,3vw,20px);background:white;color:#38234d;opacity:1}.dw-page .dw-puzzle-grid button[aria-pressed=true]{background:#b7dcf5}.dw-page .dw-puzzle-grid .dw-given{background:#eee7f6;font-weight:800}.dw-page .dw-puzzle-grid .dw-conflict{background:#ffe1df;color:#a72c3c}.dw-page .dw-puzzle-grid .dw-found{background:#d2f2dd}.dw-sudoku button:nth-child(3n){border-right:2px solid #684b83}.dw-sudoku button:nth-child(n+19):nth-child(-n+27),.dw-sudoku button:nth-child(n+46):nth-child(-n+54){border-bottom:2px solid #684b83}.dw-number-pad{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.dw-word-list{display:flex;flex-wrap:wrap;gap:8px;font-size:13px}.dw-word-list span{padding:4px 8px;background:#eee7f6;border-radius:8px}.dw-word-found{text-decoration:line-through;opacity:.5}

.dw-game-page{inset:0;padding-bottom:env(safe-area-inset-bottom);height:100%;height:100dvh}.dw-game-page header h1{flex:1}.dw-game-page .dw-sound{font-size:20px;min-width:44px;padding:6px}.dw-game-page .dw-body{padding:12px 16px}.dw-game-page .dw-sheet{margin:8px 0;padding:12px}.dw-game-page .dw-sheet p{margin:6px 0}.dw-game-page .dw-sheet button{margin:4px}.dw-game-page .dw-crush{width:min(100%,540px)}@media(prefers-reduced-motion:reduce){.dw-game-page *{animation:none!important;transition:none!important}}

.dw-quiz,.dw-word-game{max-width:600px;margin:0 auto}.dw-quiz h2{font-size:clamp(19px,5vw,26px);line-height:1.3}.dw-quiz progress{width:100%;accent-color:#9142bd}.dw-answers{display:grid;gap:12px;margin:16px 0}.dw-answers .dw-answer{display:flex;align-items:center;gap:14px;min-height:72px;text-align:left;font-size:17px}.dw-answer strong{border-radius:50%;background:#ece2fa;padding:10px 16px}.dw-answer[aria-pressed=true]{border:3px solid #8540b2;background:#eee2fb}.dw-answers .dw-correct{background:#d2f2dd;border-color:#379b5b}.dw-secret-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;width:min(100%,320px);margin:10px auto}.dw-letter{aspect-ratio:1;display:grid;place-items:center;border:2px solid #a98cff;border-radius:9px;background:#34245f;color:white;font-size:clamp(20px,6vw,30px);font-weight:750}.dw-keyboard>div{display:flex;justify-content:center;gap:3px;margin:5px 0}.dw-page .dw-keyboard button{min-width:0;min-height:44px;flex:1;padding:4px 0;border-radius:6px;font-size:14px;max-width:52px}.dw-keyboard>div:last-child button{max-width:180px}.dw-page [data-result='0']{background:#64748b;color:white;border-color:#475569}.dw-page [data-result='1']{background:#ffb800;color:#261738;border-color:#ca9200}.dw-page [data-result='2']{background:#16a870;color:white;border-color:#0a8052}.dw-word-legend{font-size:12px;text-align:center}.dw-word-game h2{font-size:16px;text-align:center}@media(max-height:500px) and (min-width:650px){.dw-word-game{display:grid;grid-template-columns:260px 1fr;gap:10px;max-width:800px}.dw-word-legend,.dw-word-game h2{grid-column:1/-1}.dw-secret-grid{width:220px}.dw-keyboard{align-self:center}}

.dw-activity-card{background:linear-gradient(120deg,#f1e8ff,#e9f2ff);border:1px solid #d7c9ec;border-radius:18px;padding:14px;margin:0 0 12px}.dw-activity-card p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.dw-activity-card button{margin:6px 6px 0 0}

.dw-checkers{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:min(100%,540px);margin:16px auto;border:8px solid #34224e;border-radius:10px;overflow:hidden;background:#59416d}.dw-page .dw-checkers button{aspect-ratio:1;min-height:0;min-width:0;padding:5px;border:0;border-radius:0;background:#6a4c7e;display:grid;place-items:center;position:relative;opacity:1}.dw-page .dw-checkers .dw-light-square{background:#eee4d2}.dw-checkers button[aria-pressed=true]{box-shadow:inset 0 0 0 3px #f3cb53}.dw-checkers .dw-destination:after{content:'';width:30%;height:30%;border-radius:50%;background:#9fe6b1;position:absolute;box-shadow:0 0 10px #9fe6b1}.dw-checker{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;border:3px double #ffffff88;font-size:clamp(16px,5vw,28px);line-height:1;box-shadow:0 3px 3px #0007,inset 0 0 0 3px #ffffff22}.dw-dark-piece{background:radial-gradient(circle at 35% 25%,#a466ed,#4a1680);color:white}.dw-light-piece{background:radial-gradient(circle at 35% 25%,#fff,#d1c1ad);color:#5c3582}

.dw-word-page>.dw-keyboard{flex:none;width:min(100%,620px);align-self:center;padding:0 12px 6px;background:#f7f5fc}.dw-word-page .dw-secret-grid{width:min(100%,clamp(180px,calc((100dvh - 450px)*.83333),280px))}.dw-word-page .dw-word-legend{margin:5px 0}.dw-word-page .dw-word-game h2{margin:6px 0}@media(max-height:500px) and (min-width:650px){.dw-word-page .dw-body{width:52%;align-self:flex-start}.dw-word-page .dw-word-game{display:block}.dw-word-page>.dw-keyboard{position:absolute;right:12px;bottom:52px;width:45%}.dw-word-page .dw-secret-grid{width:180px}}

.dw-quiz-stage{height:clamp(120px,18dvh,190px);border-radius:18px;overflow:hidden;background:#e9e0f5}.dw-quiz-stage canvas{width:100%;height:100%;display:block}.dw-quiz-stage[hidden]{display:none}

.dw-event-intro{padding:18px 4px}.dw-event-intro small,.dw-event-card small{font-size:11px;letter-spacing:.12em;color:#754a99;font-weight:700}.dw-event-intro h2{font-size:30px;line-height:1.1}.dw-event-field{display:grid;gap:8px;margin:16px 0;font-weight:650}.dw-event-field input,.dw-event-field textarea,.dw-event-field select,.dw-event-composer textarea{font:400 16px/1.4 system-ui;color:#2e1d3c;background:#faf8fd;border:1px solid #d9cbe5;border-radius:12px;padding:12px;width:100%;min-height:46px}.dw-event-form button{white-space:normal}.dw-event-hint{font-size:14px;color:#665774}.dw-event-results{display:grid;gap:8px}.dw-event-results button{display:grid;text-align:left;gap:6px}.dw-event-results small{font-weight:400}.dw-event-card h3{font-size:22px;margin:10px 0}.dw-event-card button{margin:5px 6px 0 0}.dw-event-map{color:#7934ad;font-weight:650}.dw-event-feed{display:grid;align-content:start;gap:10px;max-height:45dvh;overflow:auto;overscroll-behavior:contain}.dw-event-post{background:#fff;border:1px solid #e8dff0;border-radius:18px;padding:12px;overflow-wrap:anywhere}.dw-event-post p{white-space:pre-wrap;margin:4px 0}.dw-event-composer{display:flex;gap:8px;padding:12px 0;align-items:end}.dw-event-composer textarea{resize:vertical;min-width:0}.dw-events .dw-toolbar h2{flex:1;margin:5px 0}.dw-event-form select{max-width:100%}

.dw-domino-page,.dw-solitaire-page{background:#11261f;color:#f8f4e9}.dw-domino-page .dw-sheet,.dw-solitaire-page .dw-sheet{color:#332043;margin:8px 0}.dw-domino-table{min-height:200px;background:radial-gradient(ellipse at center,#346c50,#1c4734);border:6px solid #6b4934;border-radius:24px;box-shadow:inset 0 0 30px #001a14;display:flex;align-content:center;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;padding:16px 10px;margin:12px 0}.dw-domino-hand{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px 0 20px}.dw-domino-tile,.dw-page button.dw-domino-tile{display:inline-flex;width:72px;height:38px;min-height:38px;flex:none;padding:3px;border:1px solid #e0d9c7;border-bottom:4px solid #aaa18a;border-radius:6px;background:#fff8e3;box-shadow:0 2px 4px #08160e66;color:#171323}.dw-domino-hand .dw-domino-tile{width:88px!important;height:48px!important;min-height:48px!important}.dw-pips{width:50%;height:100%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2px;padding:2px}.dw-pips+.dw-pips{border-left:1px solid #afa68e}.dw-pip{border-radius:50%;background:#252035;min-width:3px;min-height:3px}.dw-domino-tile[aria-pressed=true]{outline:3px solid #dec760;transform:translateY(-4px)}.dw-chain-end{width:100%;text-align:center;color:#d0e3d3}.dw-turn-player{color:#ffdd7f;font-weight:800}.dw-sol-top{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:12px 0 18px}.dw-sol-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;min-height:260px;padding-bottom:15px}.dw-sol-column{position:relative;min-width:0}.dw-page button.dw-playing-card{display:flex;align-items:start;justify-content:start;border-radius:6px;background:#fffaf0;border:1px solid #e4d9c1;box-shadow:0 2px 3px #081b1f77;color:#1d283a;padding:5px 3px;width:100%;height:80px;min-height:80px;font:700 clamp(12px,3.4vw,19px)/1.1 system-ui;letter-spacing:-.05em;white-space:nowrap}.dw-sol-column .dw-playing-card{position:absolute;left:0}.dw-page button.dw-card-red{color:#c83256}.dw-page button.dw-card-back{background:repeating-linear-gradient(45deg,#394875,#394875 4px,#475789 4px,#475789 8px);color:#d1bd82}.dw-page button.dw-playing-card:disabled{opacity:1;cursor:default}.dw-page button.dw-playing-card[aria-pressed=true]{outline:3px solid #f9d457;box-shadow:0 0 9px #ffe169}.dw-solitaire-page .dw-body,.dw-domino-page .dw-body{width:100%;max-width:740px;align-self:center}.dw-solitaire-page .dw-score,.dw-domino-page .dw-score{color:#fff}.dw-solitaire-page .dw-sheet p,.dw-domino-page .dw-sheet p{margin:2px 0;font-size:14px}@media(max-width:350px){.dw-solitaire-page .dw-body{padding:8px}.dw-sol-top,.dw-sol-board{gap:3px}.dw-page button.dw-playing-card{font-size:12px}}

.dw-domino-page>header,.dw-solitaire-page>header{color:#261738}.dw-domino-page>.dw-notice,.dw-solitaire-page>.dw-notice{color:#332043}

/* Lightweight dice games: touch boards with the native layout and colors. */
.dw-dice-page{background:#1c1430;color:#f7f2ff}.dw-dice-page>header,.dw-dice-page>.dw-notice,.dw-dice-page .dw-sheet{color:#30203e}.dw-dice-page .dw-body{width:100%;max-width:720px;align-self:center}.dw-dice-page .dw-sheet{margin:8px 0}.dw-dice-page .dw-sheet p{margin:3px 0}.dw-dice-board{margin:14px auto;width:100%}.dw-dice-values{font-size:22px;font-weight:750;letter-spacing:4px}.dw-ludo-board{position:relative;aspect-ratio:1;background:#fcf4e5;border:7px solid #604332;border-radius:18px;box-shadow:0 8px 20px #0006;overflow:hidden}.dw-ludo-board>*{position:absolute}.dw-ludo-cell{border:1px solid #a99f97;color:#71634a;font-size:clamp(9px,3vw,17px);text-align:center;line-height:1.6}.dw-ludo-board .red{--piece:#d83e5c;background:#f0c9ca}.dw-ludo-board .green{--piece:#167e59;background:#bde2cc}.dw-ludo-board .blue{--piece:#325ac6;background:#b8ccef}.dw-ludo-board .yellow{--piece:#c59513;background:#f4e0a0}.dw-ludo-base{border:8px solid var(--piece);box-shadow:inset 0 0 0 6px #fff6}.dw-ludo-goal{display:grid;place-content:center;background:conic-gradient(#167e59 0 25%,#325ac6 0 50%,#c59513 0 75%,#d83e5c 0);color:white;font-size:26px}.dw-page button.dw-ludo-piece{min-height:0!important;min-width:0;padding:0;border:2px solid #fff;border-radius:50%;background:var(--piece);color:white;font:bold clamp(10px,3vw,17px)/1 system-ui;box-shadow:0 2px 3px #0008;z-index:2;transition:transform .2s}.dw-page button.dw-ludo-piece:disabled{opacity:1}.dw-page button.dw-ludo-piece[aria-pressed=true]{outline:3px solid #fff;transform:scale(1.25);z-index:3}.dw-backgammon-board{background:#19543c;border:7px solid #684533;border-radius:14px;overflow:hidden;box-shadow:inset 0 0 25px #001b15}.dw-bg-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;padding:5px}.dw-bg-row+.dw-bg-row{border-top:18px solid #684533}.dw-page button.dw-bg-point{display:flex;flex-direction:column;align-items:center;position:relative;padding:3px 0;height:160px;min-width:0;background:linear-gradient(83deg,transparent 42%,#ac3835 43% 57%,transparent 58%);border:0;border-radius:0;color:#fff;font-size:10px;gap:1px}.dw-page button.dw-bg-point:nth-child(even){background:linear-gradient(97deg,transparent 42%,#e3be61 43% 57%,transparent 58%)}.dw-page button.dw-bg-point:disabled{opacity:1}.dw-bg-point small{font-size:10px;z-index:1}.dw-bg-row:nth-child(2) .dw-bg-point{flex-direction:column-reverse}.dw-bg-checker{display:grid;place-content:center;width:95%;max-width:38px;aspect-ratio:1;border-radius:50%;border:2px solid #bdb6a1;box-shadow:0 2px 2px #0008;z-index:1;font:700 12px/1 system-ui}.dw-bg-checker.white{background:radial-gradient(#fff,#d7d6cf);color:#222}.dw-bg-checker.black{background:radial-gradient(#45445b,#171724);color:#fff;border-color:#77748a}.dw-bg-point.dw-legal{outline:3px solid #7ee7f1;outline-offset:-2px}.dw-bg-point[aria-pressed=true]{outline:3px solid #ffe79b;outline-offset:-2px}.dw-bg-totals{text-align:center;padding:12px;font-size:13px}@media(max-width:350px){.dw-dice-page .dw-body{padding:8px}.dw-bg-row{gap:1px;padding:3px}.dw-bg-checker{border-width:1px}}
/* Market keeps the shared bottom navigation visible, including on narrow Safari. */
.dw-market .dw-body{padding-top:6px}.dw-market-tabs{display:flex;gap:7px;overflow-x:auto;padding:6px 0 12px;flex-shrink:0}.dw-market-tabs button{flex:0 0 auto;white-space:nowrap;min-height:40px;font-size:13px}.dw-market-content{max-width:840px;width:100%;margin:auto}.dw-market-intro{padding:20px 2px 12px}.dw-market-intro small{letter-spacing:.14em;font-weight:800;color:#936392;font-size:10px}.dw-market-intro h2{font-size:30px;line-height:1.1;margin:8px 0}.dw-market-intro p{color:#685b6d;margin:8px 0}.dw-market-field{display:grid;gap:6px;margin:12px 0;min-width:0;font:600 13px/1.4 system-ui;color:#503e5e}.dw-market-field input,.dw-market-field select,.dw-market-field textarea{font:500 16px/1.4 system-ui;color:#302039;padding:12px;border:1px solid #d8cde2;border-radius:12px;background:white;min-width:0;width:100%;min-height:46px}.dw-market-field textarea{min-height:100px;resize:vertical}.dw-market-search{display:flex;align-items:end;gap:8px}.dw-market-search .dw-market-field{flex:1}.dw-market-search button{margin-bottom:12px}.dw-market-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dw-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 24px}.dw-page button.dw-product-card{display:flex;flex-direction:column;text-align:left;padding:0 0 12px;overflow:hidden;background:white;border:1px solid #e8dfea;box-shadow:0 4px 15px #36244008;border-radius:18px;min-width:0;white-space:normal;gap:6px}.dw-product-card h3{font-size:16px;line-height:1.25;margin:5px 10px 0;overflow-wrap:anywhere}.dw-product-card strong{font-size:15px;color:#713d91;padding:0 10px}.dw-product-card small{color:#6f6579;font-size:12px;padding:0 10px}.dw-market-photo{aspect-ratio:1;width:100%;background:#f0eaf3;display:grid;place-content:center;overflow:hidden;position:relative;color:#9786a7;font-size:38px}.dw-market-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.dw-market-photo-large{max-height:380px;border-radius:20px;margin-top:16px}.dw-market-price{font-size:26px;color:#734b99}.dw-market-description{white-space:pre-wrap;overflow-wrap:anywhere}.dw-market-thumbs{display:flex;gap:8px;overflow-x:auto;padding:12px 0}.dw-market-thumbs button{flex:0 0 76px;height:76px;padding:2px}.dw-market-thumbs img{width:100%;height:100%;object-fit:contain}.dw-cart-row{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px 14px;border-bottom:1px solid #e4dce9;padding:16px 0;align-items:start}.dw-cart-row .dw-market-photo{border-radius:14px;grid-row:span 2}.dw-cart-row h3{margin:4px 0;font-size:17px;overflow-wrap:anywhere}.dw-cart-row .dw-market-field{grid-column:1/-1;margin:0}.dw-cart-row button{grid-column:2}.dw-market-totals{border-top:1px solid #ddd0e6;margin:16px 0;padding:10px 0}.dw-market-totals strong{font-size:22px}.dw-market-pay{display:block;text-align:center;background:#8e49b0;color:white;border-radius:14px;padding:15px;margin:18px 0;text-decoration:none;font-weight:750}.dw-inventory-card{min-width:0}.dw-inventory-card>small{display:block;padding:8px}.dw-market .dw-sheet button{margin:5px}.dw-market .dw-sheet{margin:12px 0}.dw-market-content>button{margin:5px 6px 5px 0}@media(min-width:640px){.dw-products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:350px){.dw-products{gap:8px}.dw-product-card strong{font-size:13px}.dw-market-filters{grid-template-columns:1fr}.dw-market-intro h2{font-size:26px}}
.dw-page button.dw-bg-point,.dw-page button.dw-bg-point:nth-child(even){background:transparent}.dw-bg-point::before{content:'';position:absolute;inset:2px 0;background:#b54642;clip-path:polygon(0 0,100% 0,50% 100%)}.dw-bg-point:nth-child(even)::before{background:#e5c776}.dw-bg-row:nth-child(2) .dw-bg-point::before{clip-path:polygon(0 100%,100% 100%,50% 0)}.dw-bg-point:nth-child(7){box-shadow:-4px 0 0 2px #684533}.dw-market-intro{padding:10px 2px 4px}.dw-market-intro h2{font-size:26px}.dw-market-intro p{font-size:14px}.dw-market-field select{appearance:none;-webkit-appearance:none;padding-right:28px;background:linear-gradient(45deg,transparent 50%,#755a8e 50%) calc(100% - 16px) 20px/5px 5px no-repeat,linear-gradient(135deg,#755a8e 50%,transparent 50%) calc(100% - 11px) 20px/5px 5px no-repeat,#fff}
.dw-page button.dw-ludo-piece:not(:disabled){z-index:4}
.dw-chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:min(100%,560px);aspect-ratio:1;margin:8px auto;border:3px solid #68518b;border-radius:10px;overflow:hidden;box-shadow:0 12px 30px #16062755;touch-action:manipulation}
.dw-chess-board .dw-chess-square{position:relative;min-width:0;min-height:0;width:100%;height:100%;padding:0;border:0;border-radius:0;display:grid;place-items:center;opacity:1}
.dw-chess-square.light{background:#eee3f8;color:#523669}.dw-chess-square.dark{background:#8c69ac;color:#fff}.dw-chess-square.dw-chess-last{background:#baa1dd}.dw-chess-square[aria-pressed=true]{box-shadow:inset 0 0 0 4px #ffcd62}.dw-chess-square.dw-legal:after{content:'';position:absolute;width:25%;height:25%;border-radius:50%;background:#57328399;box-shadow:0 0 0 3px #fff8;pointer-events:none}.dw-chess-square.dw-legal:has(.dw-chess-piece):after{width:80%;height:80%;background:transparent;border:3px solid #f7bb48;box-shadow:none}
.dw-chess-piece{font-family:'Apple Symbols','Segoe UI Symbol','DejaVu Sans',serif;font-size:clamp(28px,9vw,60px);line-height:1;text-shadow:0 1px 1px #0005;pointer-events:none}.dw-chess-piece.w{color:#fff;-webkit-text-stroke:1px #54406b}.dw-chess-piece.b{color:#251633;-webkit-text-stroke:.4px #eee3f8}.dw-chess-square small{position:absolute;font:700 10px system-ui;pointer-events:none}.dw-chess-square .rank{top:2px;left:3px}.dw-chess-square .file{bottom:2px;right:3px}.dw-chess-page .dw-sheet{padding:10px 14px}.dw-chess-page .dw-sheet p{margin:0}.dw-chess-page .dw-score span{font-size:12px}.dw-chess-page .dw-score b{font-variant-numeric:tabular-nums;font-size:16px}
.dw-maze-page .dw-body{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding:8px 12px}.dw-maze-page .dw-sheet{margin:0;padding:8px 12px}.dw-maze-page .dw-sheet:empty{display:none}.dw-maze-page .dw-score{margin:0;flex:none;justify-content:space-between;gap:8px;font-size:13px;font-variant-numeric:tabular-nums}.dw-maze-arena{position:relative;min-height:180px;flex:1;border:1px solid #8a5eca;border-radius:16px;overflow:hidden;background:#100b25}.dw-maze-arena canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-3px}.dw-maze-controls{display:flex;justify-content:center;align-items:center;gap:clamp(16px,8vw,56px);flex:none}.dw-maze-pad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,42px);gap:4px;touch-action:none}.dw-maze-pad button{font-size:24px;line-height:1;min-width:0;min-height:0;padding:4px;touch-action:none}.dw-maze-pad .up{grid-column:2;grid-row:1}.dw-maze-pad .left{grid-column:1;grid-row:2}.dw-maze-pad .down{grid-column:2;grid-row:2}.dw-maze-pad .right{grid-column:3;grid-row:2}.dw-maze-star{min-width:66px;font-size:18px}.dw-maze-ranks{display:flex;gap:12px;overflow-x:auto;white-space:nowrap;font-size:12px;flex:none;padding:4px}.dw-maze-waiting .dw-maze-arena,.dw-maze-waiting .dw-maze-controls{display:none}.dw-maze-page .dw-notice{margin:0;padding:4px 12px}.dw-maze-page .dw-notice:empty{display:none}
@media(max-height:500px) and (orientation:landscape){.dw-chess-board{width:min(100%,65dvh)}.dw-chess-piece{font-size:clamp(20px,7dvh,36px)}.dw-maze-page .dw-body{position:relative;padding-right:180px;min-height:0}.dw-maze-controls{position:absolute;right:8px;top:45px;width:162px;flex-direction:column;gap:10px}.dw-maze-arena{min-height:120px}.dw-maze-page .dw-score{font-size:12px}}

.dw-page button.dw-chess-square:disabled{opacity:1}.dw-chess-board{grid-template-rows:repeat(8,minmax(0,1fr))}.dw-chess-page .dw-turn-player{color:#653391}.dw-chess-page .dw-score{flex-wrap:wrap}

.dw-section-page{inset:0;padding-bottom:calc(104px + env(safe-area-inset-bottom))}
/* Native rules, lightweight touch surfaces. */
.dw-form-field{display:grid;gap:6px;margin:12px 0;font-weight:650;font-size:14px;min-width:0}.dw-form-field input,.dw-form-field select{width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px;border:1px solid #cfc0df;border-radius:12px;background:#fff;color:#2c193f;font:500 16px system-ui}.dw-form-field input[type=file]{font-size:14px}.dw-score-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dw-roster-row{display:grid;gap:3px;padding:12px;border-bottom:1px solid #e5dbea;overflow-wrap:anywhere}.dw-roster-row small{color:#75637f}.dw-room-code{display:block;font-size:clamp(22px,7vw,36px);letter-spacing:.12em;overflow-wrap:anywhere;user-select:all}.dw-external form button,.dw-poker form button{margin-top:10px}.dw-external .dw-body,.dw-dominium .dw-body,.dw-poker .dw-body{width:100%;max-width:900px;margin:auto}.dw-dominium-board{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));grid-template-rows:repeat(11,minmax(0,1fr));aspect-ratio:1;width:min(100%,600px);margin:12px auto;background:#edf3ed;border:3px solid #433058;border-radius:15px;overflow:hidden;gap:1px}.dw-page button.dw-dominium-tile{position:relative;min-height:0;min-width:0;padding:1px;border:0;border-top:5px solid var(--group);border-radius:1px;font-size:clamp(9px,2.6vw,14px);color:#3e2c4f;background:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1px}.dw-dominium-tile[aria-pressed=true]{outline:2px solid #a332da;outline-offset:-2px}.dw-dominium-token{display:inline-block;width:9px;height:9px;border-radius:50%;border:1px solid white;box-shadow:0 1px 3px #0007}.dw-dominium-center{grid-area:2/2/11/11;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:14px;color:#45275e;overflow:auto}.dw-dominium-center h2{letter-spacing:.08em;font-size:clamp(17px,5vw,32px);margin:8px 0}.dw-dominium-center p{margin:5px 0;font-size:14px}.dw-dominium-center small{font-size:12px}.dw-dice-face{font-size:40px;letter-spacing:8px}.dw-dominium .dw-toolbar{position:sticky;bottom:0;background:#f7f5fcf5;padding:12px 0;z-index:2}.dw-dominium .dw-toolbar button{flex:1 0 auto;max-width:100%}.dw-poker-table{border:6px solid #6b477b;border-radius:36px;background:radial-gradient(ellipse,#255b50,#163f3d);padding:18px 10px;color:white;text-align:center;box-shadow:inset 0 0 0 2px #d1b16b,0 12px 28px #2c184033}.dw-poker-table h2{margin:8px;font-size:21px}.dw-poker-cards{display:flex;justify-content:center;gap:5px;min-height:64px;margin:12px auto}.dw-poker-card{white-space:pre;line-height:1.15;font:750 clamp(19px,5vw,28px)/1.2 system-ui;display:grid;place-content:center;background:linear-gradient(135deg,white,#ece6f2);border-radius:9px;border:1px solid #a390ae;width:clamp(39px,12vw,62px);height:clamp(60px,17vw,90px);box-shadow:0 3px 5px #0004}.dw-poker-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}.dw-poker-player{display:grid;gap:3px;min-width:0;padding:10px;border:1px solid #d4c5e844;border-radius:16px;background:#122e36;color:#fff;font-size:14px;overflow-wrap:anywhere}.dw-poker-player.dw-turn-player{outline:2px solid #efcf74;color:#fff}.dw-poker-player small{font-size:12px;color:#d4e2ec}.dw-poker-hidden{color:#dcc0ef}.dw-poker .dw-toolbar button{flex:1}.dw-poker .dw-body>section:last-child{position:sticky;bottom:0}.dw-section-page .dw-body{padding-bottom:20px}@media(min-width:650px){.dw-poker-players{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(prefers-reduced-motion:no-preference){.dw-poker-card{animation:dw-deal .2s ease-out}.dw-dominium-token{transition:transform .25s}@keyframes dw-deal{from{opacity:.4;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}}
