/* Standard wooden buttons. One look for More Games / How to Play on every game, and (game by game) for action buttons.
   Switch: STD_BUTTONS in exact-game-scenes.js. Nothing here changes what a button does or where it sits. */
@layer exactRef{
.er-stage[data-std-buttons=true] .er-std-plank{position:absolute!important;pointer-events:none!important;border-radius:14px!important;border:2px solid #3b1f0b!important;background:repeating-linear-gradient(92deg,rgba(255,255,255,.05) 0 2px,rgba(0,0,0,.05) 2px 5px,rgba(255,255,255,0) 5px 11px),linear-gradient(180deg,#8a5529 0%,#6f411c 48%,#59310f 100%)!important;box-shadow:inset 0 2px 0 rgba(255,220,170,.35),inset 0 -3px 0 rgba(0,0,0,.28),0 3px 7px rgba(0,0,0,.35)!important;box-sizing:border-box!important;}
.er-stage[data-std-buttons=true] .er-std-plate,
.er-stage[data-std-actions=true] .er-native button.speed-start.speed-start,
.er-stage[data-std-actions=true] .er-native button.er-speed-confirm.er-speed-confirm,
.er-stage[data-std-actions=true] .er-native .er-choice-pages>button.a17-button,
.er-stage[data-std-actions=true] .er-native .er-choice-pages>button{
 box-sizing:border-box!important;border:2px solid #8a4f1c!important;border-radius:11px!important;
 background:repeating-linear-gradient(91deg,rgba(255,255,255,.10) 0 3px,rgba(160,100,40,.07) 3px 7px,rgba(255,255,255,0) 7px 15px),linear-gradient(180deg,#f8dfae 0%,#efc788 52%,#dfa962 100%)!important;
 box-shadow:inset 0 2px 0 rgba(255,255,255,.6),inset 0 -3px 0 rgba(140,80,25,.3),0 2px 0 #5b3212,0 4px 6px rgba(0,0,0,.28)!important;
 color:#2a1608!important;font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;letter-spacing:.01em!important;text-shadow:0 1px 0 rgba(255,246,220,.7)!important;
}
.er-stage[data-std-buttons=true] .er-std-plate{position:absolute!important;pointer-events:none!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:nowrap!important;line-height:1!important;padding:0 14px 1px!important;}
.er-stage[data-std-buttons=true][data-phone=true] .er-std-plate{padding:0 9px 1px!important;border-radius:9px!important;}
.er-stage[data-std-actions=true] .er-native button.speed-start:disabled,.er-stage[data-std-actions=true] .er-native button.er-speed-confirm:disabled,.er-stage[data-std-actions=true] .er-native .er-choice-pages>button:disabled{opacity:.55!important;filter:saturate(.6)!important;}
.er-stage[data-std-actions=true] .er-native button.speed-start *,.er-stage[data-std-actions=true] .er-native button.er-speed-confirm *{color:inherit!important;text-shadow:inherit!important;}
}

/* Rollout: action buttons in every game. Answer choices, cards, letter keys, tabs and painted-art buttons are not included. */
@layer exactRef{
.er-stage[data-std-actions=true] .er-native button[data-er-slot=next],
.er-stage[data-std-actions=true] .er-native button[data-er-slot=hint],
.er-stage[data-std-actions=true] .er-native button[data-er-slot=welcome-start],
.er-stage[data-std-actions=true] .er-native button.a17-button:not([data-er-slot=original-button]):not(.er-original-art-button):not(.er-mode-tab),
.er-stage[data-std-actions=true] .er-native button.vg-next,
.er-stage[data-std-actions=true] .er-native button.er-cell-check,
.er-stage[data-std-actions=true] .er-native button.er-muscle-prev,
.er-stage[data-std-actions=true] .er-native button.er-muscle-next,
.er-stage[data-std-actions=true] .er-native button.a17-change-region,
.er-stage[data-std-actions=true] .er-native button.a17-nancy-next,
.er-stage[data-std-actions=true] .er-native button.a17-ci-next,
.er-stage[data-std-actions=true] .er-native button[data-action=start]{box-sizing:border-box!important;border:2px solid #8a4f1c!important;border-radius:11px!important;background:repeating-linear-gradient(91deg,rgba(255,255,255,.10) 0 3px,rgba(160,100,40,.07) 3px 7px,rgba(255,255,255,0) 7px 15px),linear-gradient(180deg,#f8dfae 0%,#efc788 52%,#dfa962 100%)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),inset 0 -3px 0 rgba(140,80,25,.3),0 2px 0 #5b3212,0 4px 6px rgba(0,0,0,.28)!important;color:#2a1608!important;font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;text-shadow:0 1px 0 rgba(255,246,220,.7)!important;}
.er-stage[data-std-actions=true] .er-native .a17-page-controls>button,
.er-stage[data-std-actions=true] .er-native .er-choice-pages>button,
.er-stage[data-std-actions=true] .er-native .a17-cell-pages>button,
.er-stage[data-std-actions=true] .er-native .er-question-pages>button{box-sizing:border-box!important;border:2px solid #8a4f1c!important;border-radius:11px!important;background:repeating-linear-gradient(91deg,rgba(255,255,255,.10) 0 3px,rgba(160,100,40,.07) 3px 7px,rgba(255,255,255,0) 7px 15px),linear-gradient(180deg,#f8dfae 0%,#efc788 52%,#dfa962 100%)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),inset 0 -3px 0 rgba(140,80,25,.3),0 2px 0 #5b3212,0 4px 6px rgba(0,0,0,.28)!important;color:#2a1608!important;font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;text-shadow:0 1px 0 rgba(255,246,220,.7)!important;border-radius:9px!important;}
.er-stage[data-std-actions=true] .er-native button[data-er-slot=next]:disabled,
.er-stage[data-std-actions=true] .er-native button[data-er-slot=hint]:disabled,
.er-stage[data-std-actions=true] .er-native button[data-er-slot=welcome-start]:disabled,
.er-stage[data-std-actions=true] .er-native button.a17-button:not([data-er-slot=original-button]):not(.er-original-art-button):not(.er-mode-tab):disabled,
.er-stage[data-std-actions=true] .er-native button.vg-next:disabled,
.er-stage[data-std-actions=true] .er-native button.er-cell-check:disabled,
.er-stage[data-std-actions=true] .er-native button.er-muscle-prev:disabled,
.er-stage[data-std-actions=true] .er-native button.er-muscle-next:disabled,
.er-stage[data-std-actions=true] .er-native button.a17-change-region:disabled,
.er-stage[data-std-actions=true] .er-native button.a17-nancy-next:disabled,
.er-stage[data-std-actions=true] .er-native button.a17-ci-next:disabled,
.er-stage[data-std-actions=true] .er-native button[data-action=start]:disabled,
.er-stage[data-std-actions=true] .er-native .a17-page-controls>button:disabled,
.er-stage[data-std-actions=true] .er-native .er-choice-pages>button:disabled,
.er-stage[data-std-actions=true] .er-native .a17-cell-pages>button:disabled,
.er-stage[data-std-actions=true] .er-native .er-question-pages>button:disabled{opacity:.55!important;filter:saturate(.6)!important;}
.er-stage[data-std-actions=true] .er-native button[data-er-slot=next] *,
.er-stage[data-std-actions=true] .er-native button[data-er-slot=hint] *,
.er-stage[data-std-actions=true] .er-native button[data-er-slot=welcome-start] *,
.er-stage[data-std-actions=true] .er-native button.a17-button:not([data-er-slot=original-button]):not(.er-original-art-button):not(.er-mode-tab) *,
.er-stage[data-std-actions=true] .er-native button.vg-next *,
.er-stage[data-std-actions=true] .er-native button.er-cell-check *,
.er-stage[data-std-actions=true] .er-native button.er-muscle-prev *,
.er-stage[data-std-actions=true] .er-native button.er-muscle-next *,
.er-stage[data-std-actions=true] .er-native button.a17-change-region *,
.er-stage[data-std-actions=true] .er-native button.a17-nancy-next *,
.er-stage[data-std-actions=true] .er-native button.a17-ci-next *,
.er-stage[data-std-actions=true] .er-native button[data-action=start] *{color:inherit!important;text-shadow:inherit!important;}
}

/* Results screen: the round-end buttons (Play again, More Games, Choose another round, New round) get the same wooden plate.
   Colour, border and lettering only: size, position and what each button does are untouched. Pagers and award cards are left alone. */
@layer exactRef{
.a17-frame[data-phase=results] .er-stage[data-std-actions=true] .er-native button:not([data-er-slot]):not(.a17-page-controls button):not(#studyCardUnlock button):not(.am-mastery button):not(.er-choice-pages button){box-sizing:border-box!important;border:2px solid #8a4f1c!important;border-radius:11px!important;background:repeating-linear-gradient(91deg,rgba(255,255,255,.10) 0 3px,rgba(160,100,40,.07) 3px 7px,rgba(255,255,255,0) 7px 15px),linear-gradient(180deg,#f8dfae 0%,#efc788 52%,#dfa962 100%)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),inset 0 -3px 0 rgba(140,80,25,.3),0 2px 0 #5b3212,0 4px 6px rgba(0,0,0,.28)!important;color:#2a1608!important;font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;text-shadow:0 1px 0 rgba(255,246,220,.7)!important;}
.a17-frame[data-phase=results] .er-stage[data-std-actions=true] .er-native button:not([data-er-slot]):not(.a17-page-controls button):not(#studyCardUnlock button):not(.am-mastery button):not(.er-choice-pages button) *{color:inherit!important;text-shadow:inherit!important;}
}


/* Wood art (r9): the owner's sample sign redrawn sharp, no nail heads. Real picture pieces (plate.png, plank.png) stretched 9-slice style.
   Only on stages marked data-wood-art=true (set in exact-game-scenes.js, WOOD_ART_GAMES). Look only: no size, position or behaviour changes. */
@layer exactRef{
.er-stage[data-wood-art=true][data-std-buttons=true] .er-std-plate,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.speed-start.speed-start,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.er-speed-confirm.er-speed-confirm,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .er-choice-pages>button.a17-button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .er-choice-pages>button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button[data-er-slot=next],
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button[data-er-slot=hint],
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button[data-er-slot=welcome-start],
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.a17-button:not([data-er-slot=original-button]):not(.er-original-art-button):not(.er-mode-tab),
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.vg-next,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.er-cell-check,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.er-muscle-prev,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.er-muscle-next,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.a17-change-region,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.a17-nancy-next,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button.a17-ci-next,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button[data-action=start],
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .a17-page-controls>button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .a17-cell-pages>button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .er-question-pages>button,
.a17-frame[data-phase=results] .er-stage[data-wood-art=true][data-std-actions=true] .er-native button:not([data-er-slot]):not(.a17-page-controls button):not(#studyCardUnlock button):not(.am-mastery button):not(.er-choice-pages button){background:linear-gradient(180deg,#f9c97d,#f1b45e) padding-box!important;border:2px solid transparent!important;border-radius:9px!important;border-image:url(/assets/wood-buttons-20261118-r9/plate.png?v=2) 42 54 54 54 fill / 7px 9px 9px 9px / 0 stretch!important;box-shadow:0 3px 5px rgba(40,18,4,.32)!important;color:#3a1c08!important;text-shadow:0 1px 0 rgba(255,244,214,.75)!important;}
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .er-choice-pages>button.a17-button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .er-choice-pages>button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .a17-page-controls>button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .a17-cell-pages>button,
.er-stage[data-wood-art=true][data-std-actions=true] .er-native .er-question-pages>button{border-image-width:5px 7px 7px 7px!important;border-radius:7px!important;}
.er-stage[data-wood-art=true][data-std-buttons=true] .er-std-plate{border-image-width:9px 12px 12px 12px!important;border-radius:11px!important;padding-bottom:3px!important;}
.er-stage[data-wood-art=true][data-std-buttons=true][data-phone=true] .er-std-plate{border-image-width:7px 9px 9px 9px!important;border-radius:9px!important;}
.er-stage[data-wood-art=true][data-std-buttons=true] .er-std-plank{background:linear-gradient(180deg,#b9744a,#8a4f2c)!important;border:0 solid transparent!important;border-radius:12px!important;border-image:url(/assets/wood-buttons-20261118-r9/plank.png?v=2) 60 fill / 12px / 0 stretch!important;box-shadow:0 4px 8px rgba(0,0,0,.38)!important;}
}

/* Matching example, round 2: new header buttons sit on the game's own painted sign (old painted buttons erased in the patch picture). */
@layer exactRef{
.er-stage .er-sign-patch{position:absolute!important;pointer-events:none!important;}
.er-stage[data-wood-header=lures] .er-std-plate,.er-stage[data-wood-header=weathered] .er-std-plate{box-sizing:border-box!important;}
.er-stage[data-std-buttons=true][data-wood-header][data-wood-header][data-wood-header=weathered] .er-std-plate{border:0 solid transparent!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;background:url(/assets/wood-buttons-20261118-r9/plate-weathered.png) center/100% 100% no-repeat!important;filter:drop-shadow(0 2px 2px rgba(30,12,2,.45))!important;padding:0 12px 4px!important;color:#3a1c08!important;}
.er-stage[data-std-buttons=true][data-wood-header][data-wood-header][data-wood-header=lures] .er-std-plate{border:0 solid transparent!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;background:url(/assets/wood-buttons-20261118-r9/lure-a.png?v=3) center/100% 100% no-repeat!important;filter:drop-shadow(0 2px 2px rgba(20,8,2,.5))!important;padding:0 3em .25em 2.6em!important;color:#3a1c08!important;}
.er-stage[data-std-buttons=true][data-wood-header][data-wood-header][data-wood-header=lures] .er-std-plate[data-i="1"]{background-image:url(/assets/wood-buttons-20261118-r9/lure-b.png?v=3)!important;}
.er-stage[data-std-buttons=true][data-wood-header][data-wood-header][data-wood-header=lures] .er-std-plate[data-lines="2"]{white-space:normal!important;line-height:1.02!important;padding:0 1.7em .1em 1.5em!important;}
.er-stage[data-std-buttons=true][data-wood-header][data-wood-header][data-wood-header=lures] .er-std-plank{background:#8a4f2c!important;border:0 solid transparent!important;border-radius:14px!important;border-image:url(/assets/wood-buttons-20261118-r9/sign-board.png) 60 fill / 16px / 0 stretch!important;box-shadow:0 4px 8px rgba(0,0,0,.35)!important;}
.er-stage[data-std-buttons=true][data-wood-header][data-wood-header][data-wood-header=lures][data-phone=true] .er-std-plank{border-image-width:12px!important;border-radius:11px!important;}
.er-stage .er-tick-outline{position:absolute!important;pointer-events:none!important;box-sizing:border-box!important;border:2.2px solid #96693e!important;border-radius:6px!important;background:transparent!important;transform:rotate(-3deg)!important;}
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button[data-wood="1"]{background:linear-gradient(180deg,#f9c97d,#f1b45e) padding-box!important;border:2px solid transparent!important;border-radius:9px!important;border-image:url(/assets/wood-buttons-20261118-r9/plate.png?v=2) 42 54 54 54 fill / 7px 9px 9px 9px / 0 stretch!important;box-shadow:0 3px 5px rgba(40,18,4,.32)!important;color:#3a1c08!important;text-shadow:0 1px 0 rgba(255,244,214,.75)!important;font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;}
.er-stage[data-wood-art=true][data-std-actions=true] .er-native button[data-wood="1"] *{color:inherit!important;text-shadow:inherit!important;}
.er-stage[data-wood-art=true] .er-wood-cover{position:absolute!important;pointer-events:none!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:nowrap!important;line-height:1!important;padding:0 10px 2px!important;background:linear-gradient(180deg,#f9c97d,#f1b45e) padding-box!important;border:2px solid transparent!important;border-radius:9px!important;border-image:url(/assets/wood-buttons-20261118-r9/plate.png?v=2) 42 54 54 54 fill / 7px 9px 9px 9px / 0 stretch!important;box-shadow:0 3px 5px rgba(40,18,4,.32)!important;color:#3a1c08!important;text-shadow:0 1px 0 rgba(255,244,214,.75)!important;font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important;}
.er-stage[data-wood-art=true] .er-wood-cover.er-wood-on{filter:brightness(.8) saturate(1.15)!important;box-shadow:inset 0 3px 6px rgba(40,18,4,.45)!important;}
}

/* Game opening: keep the frame's contents hidden until the scene is ready (see reveal() in exact-game-scenes.js); always shown after 3s. */
@keyframes erRevealLate{to{visibility:visible;opacity:1}}
body.a17-active #gameEngine #gameContent .a17-frame:not([data-er-ready])>*{visibility:hidden;opacity:0;animation:erRevealLate 0s 3s forwards}

/* Anatomy Explorer quiz: all four answer boxes the same size (the first one had no top margin and so stood taller; owner 2026-11-18). */
.er-stage[data-game=anatomy-explorer] .er-native #aeQuizOpts>button{margin:0!important;align-self:stretch!important;height:auto!important;}
