/* Explicit foreground and surface ownership for text controls; game pieces retain their pigments. */
html body .play-share-entry button,html body :is(a.daily-start,a.welcome-action,a.still-explore){background:#dce8ac!important;background-image:none!important;color:#173a32!important;-webkit-text-fill-color:#173a32!important;opacity:1!important;text-shadow:none!important}
html body .play-share-entry button span{color:inherit!important;-webkit-text-fill-color:inherit!important}
html body button.premium-action:not(:where(#board *,#cross-board *,#palette *,.palette *,#garden *,.lenses *,#picture-gallery *,.bl-tile,.cell,.tile,.swatch,.studio-swatch,.loom-tile,[data-square],[data-ink],[data-badge],[data-remove],:has(img),.play-share-entry *)){background:#24483f!important;background-image:none!important;color:#fffaf0!important;-webkit-text-fill-color:#fffaf0!important;opacity:1!important;border-color:#87a291!important;min-height:44px;font-size:14px;line-height:1.4;text-shadow:none!important}
html body button.premium-action:not(:where(#board *,#cross-board *,#palette *,.palette *,#garden *,.lenses *,#picture-gallery *,.bl-tile,.cell,.tile,.swatch,.studio-swatch,.loom-tile,[data-square],[data-ink],[data-badge],[data-remove],:has(img))) :is(span,small,b,strong){color:inherit!important;-webkit-text-fill-color:inherit!important}
html body button.premium-action:disabled:not(:where(#board *,#cross-board *,#palette *,.palette *,#garden *,.lenses *,.bl-tile,.cell,.tile,.swatch,.studio-swatch,.loom-tile)){background:#d7e0d4!important;background-image:none!important;color:#344e41!important;-webkit-text-fill-color:#344e41!important;opacity:1!important;border-style:dashed!important}
html body nav[data-play-guide-link]{background:#18362f!important;border-radius:12px;margin:22px auto;max-width:1000px}html body nav[data-play-guide-link] a{color:#fffaf0!important;-webkit-text-fill-color:#fffaf0!important;min-height:44px;display:inline-flex;align-items:center;font-size:14px}
html body #picture-gallery button>span{background:#102e2bfa!important;color:#fffaf0!important;-webkit-text-fill-color:#fffaf0!important;padding:10px 12px!important;font-size:17px!important;line-height:1.35!important;min-height:68px}html body #picture-gallery button>span small{color:#e9d59f!important;-webkit-text-fill-color:#e9d59f!important;font-size:11px!important}
html body :is(#play-privacy-open,#play-cookie-settings,#play-google-cookie-settings){background:#183d33!important;color:#fffaf0!important;-webkit-text-fill-color:#fffaf0!important;opacity:1!important;border:1px solid #719080!important;border-radius:9px;min-height:44px;padding:10px 14px;font-size:14px!important}
html body .play-fieldnotes :is(h2,h3,p,li){color:#203b34!important;-webkit-text-fill-color:#203b34!important}html body .play-fieldnotes a{color:#254d43!important;-webkit-text-fill-color:#254d43!important}
html body .hub-nav a:not([aria-current=page]){background:#f2f4e9!important;color:#25453b!important;-webkit-text-fill-color:#25453b!important;opacity:1!important}html body .hub-nav a[aria-current=page]{background:#24483f!important;color:#fffaf0!important;-webkit-text-fill-color:#fffaf0!important}

/* Original line icons replace platform emoji arrows without changing the action. */
html body svg.play-custom-arrow{display:inline-block;vertical-align:middle;width:22px;height:22px;flex:0 0 22px;margin-inline:5px;fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:inherit!important;pointer-events:none;overflow:visible}
html body .play-custom-direction{font-variant-emoji:text;text-decoration-thickness:1px;text-underline-offset:5px}
html body button.play-custom-direction:not(:where(#board *,#cross-board *,#palette *,.palette *,#garden *)){background:#24483f!important;color:#fffaf0!important;-webkit-text-fill-color:#fffaf0!important;border:1px solid #8da875!important;border-radius:12px;min-height:44px;line-height:1.4;box-shadow:inset 0 1px #d6e9bc25,0 3px 8px #09261c22}
html body .play-custom-direction:hover svg.play-custom-arrow{stroke-width:2.2}
/* Consistent, original chevrons instead of platform-coloured select arrows. */
html body select:not([multiple]){appearance:none!important;-webkit-appearance:none!important;background-color:#f6f3e8!important;color:#203e35!important;-webkit-text-fill-color:#203e35!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23203e35' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:18px 18px!important;padding-right:38px!important;min-height:44px}
html body #play-cookie-banner{max-height:38dvh;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
