/* Emerald Bayou wrapper — the game itself remains the upstream native surface. */
[hidden] { display: none !important; }

.eb-shell { max-width: 1200px; }
.eb-game { width: min(100%, 1120px); margin: 16px auto 0; }
.eb-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid rgba(0, 204, 204, .5); border-bottom: 0; background: linear-gradient(120deg, rgba(4, 22, 22, .96), rgba(7, 14, 17, .96)); }
.eb-keeper { display: flex; align-items: center; gap: 10px; color: #b9d8d5; font: 600 12px/1.2 Cinzel, Georgia, serif; letter-spacing: .12em; text-transform: uppercase; }
.eb-keeper input { width: min(230px, 30vw); min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #287a7d; background: #07171b; color: #edffff; font: 15px/1.2 system-ui, sans-serif; letter-spacing: .01em; }
.eb-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.eb-tools .cc-bug-bar { margin: 0; }
.eb-tools .cc-ach-trigger { margin: 0; }
.eb-button { min-height: 40px; padding: 9px 14px; border: 1px solid #2f898a; background: linear-gradient(180deg, #123536, #08191c); color: #d9ffff; font: 700 12px/1 Cinzel, Georgia, serif; letter-spacing: .08em; text-transform: uppercase; cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer; }
.eb-button:hover, .eb-button:focus-visible { border-color: #9effff; background: linear-gradient(180deg, #1e5555, #0b2427); }
.eb-button-primary { border-color: #c0eee0; background: linear-gradient(180deg, #247d71, #123b3c); color: #f1fffa; }
.eb-button-primary:hover, .eb-button-primary:focus-visible { background: linear-gradient(180deg, #319b88, #175452); }
.eb-button:disabled { cursor: not-allowed; opacity: .58; }
.eb-status { min-height: 1.35em; margin: 0; padding: 9px 14px; border: 1px solid rgba(0, 204, 204, .28); border-top: 0; background: rgba(4, 13, 16, .9); color: #a8cbc9; font: 13px/1.4 system-ui, sans-serif; text-align: left; }
.eb-status.is-error { color: #ffb0a2; }
.eb-stage { position: relative; min-height: 650px; height: clamp(650px, 82vh, 900px); overflow: hidden; border: 1px solid rgba(0, 204, 204, .58); background: #071112 url('../assets/emerald-bayou-social.png') center / cover no-repeat; box-shadow: 0 14px 44px rgba(0, 0, 0, .48), 0 0 30px rgba(0, 204, 204, .1); }
.eb-stage::before { position: absolute; z-index: 0; inset: 0; content: ''; background: linear-gradient(180deg, rgba(4, 15, 16, .12), rgba(3, 10, 12, .78)); pointer-events: none; }
.eb-stage iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 650px; border: 0; background: #0b1512; }
.eb-input-shield { position: absolute; z-index: 2; inset: 0; background: rgba(2, 8, 10, .08); cursor: not-allowed; }
.eb-pause-overlay { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 9, 11, .58); }
.eb-pause-card { width: min(100%, 420px); box-sizing: border-box; padding: 30px; border: 1px solid #00cccc; background: linear-gradient(145deg, rgba(5, 23, 25, .98), rgba(4, 12, 15, .98)); color: #e8ffff; text-align: center; box-shadow: 0 0 0 5px rgba(0, 0, 0, .45), 0 16px 44px rgba(0, 0, 0, .65); }
.eb-kicker { margin: 0 0 8px; color: #e5c063; font: 600 11px/1.2 Cinzel, Georgia, serif; letter-spacing: .2em; text-transform: uppercase; }
.eb-pause-card h2 { margin: 0 0 12px; color: #aefefe; font: 700 clamp(25px, 4vw, 42px)/1.1 Cinzel, Georgia, serif; }
.eb-pause-card p:not(.eb-kicker) { margin: 0 0 22px; color: #b6cdcc; font: 14px/1.55 system-ui, sans-serif; }
.eb-credits-dialog { position: fixed; z-index: 9997; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 8, 10, .8); opacity: 0; transition: opacity .18s ease; }
.eb-credits-dialog.is-open { opacity: 1; }
.eb-credits-card { width: min(100%, 590px); max-height: min(78vh, 680px); overflow-y: auto; box-sizing: border-box; border: 1px solid #00cccc; background: linear-gradient(155deg, #0b2023, #050d10 70%); color: #d9f2f0; box-shadow: 0 0 0 5px rgba(0, 0, 0, .46), 0 20px 60px rgba(0, 0, 0, .72), 0 0 36px rgba(0, 204, 204, .2); }
.eb-credits-card:focus { outline: none; }
.eb-credits-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 16px; border-bottom: 1px solid rgba(0, 204, 204, .34); }
.eb-credits-kicker { margin: 0 0 7px; color: #e5c063; font: 600 10px/1.2 Cinzel, Georgia, serif; letter-spacing: .2em; text-transform: uppercase; }
.eb-credits-head h2 { margin: 0; color: #aefefe; font: 700 clamp(25px, 5vw, 40px)/1.1 Cinzel, Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
.eb-credits-close { min-width: 42px; min-height: 36px; padding: 8px 9px; border: 1px solid rgba(0, 204, 204, .58); background: rgba(4, 16, 18, .86); color: #aefefe; font: 700 11px/1 Cinzel, Georgia, serif; letter-spacing: .12em; cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer; }
.eb-credits-close:hover, .eb-credits-close:focus-visible { border-color: #aefefe; background: #123b3e; }
.eb-credits-body { padding: 20px 24px 24px; }
.eb-credits-body p { margin: 0; color: #b6cfcd; font: 14px/1.65 system-ui, sans-serif; }
.eb-credits-body strong { color: #f1fffa; }
.eb-credits-body a { color: #aefefe; text-underline-offset: 3px; }
.eb-credit-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 20px; }
.eb-credit-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; box-sizing: border-box; padding: 8px 13px; border: 1px solid #2f898a; background: linear-gradient(180deg, #123536, #08191c); color: #d9ffff; font: 700 11px/1 Cinzel, Georgia, serif; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: url('/images/cursors/hover.cur') 11 0, url('/images/cursors/hover.png') 11 0, pointer; }
.eb-credit-link:hover, .eb-credit-link:focus-visible { border-color: #9effff; background: #1e5555; }
.eb-credit-link-quiet { border-color: rgba(0, 204, 204, .38); color: #9cc5c2; background: rgba(4, 16, 18, .7); }
.eb-credits-note { padding-top: 16px; border-top: 1px solid rgba(0, 204, 204, .2); color: #7f9c9b !important; font-size: 11px !important; line-height: 1.55 !important; }
.eb-credits-card { scrollbar-width: thin; scrollbar-color: #167779 transparent; }
.eb-credits-card::-webkit-scrollbar { width: 6px; }
.eb-credits-card::-webkit-scrollbar-track { background: transparent; }
.eb-credits-card::-webkit-scrollbar-thumb { background: #167779; border-radius: 4px; }

.eb-game:fullscreen { position: relative; display: flex; flex-direction: column; width: 100%; max-width: none; height: 100%; min-height: 0; box-sizing: border-box; margin: 0; padding: 12px; overflow: hidden; background: #061214; }
.eb-game:fullscreen .eb-toolbar { flex: 0 0 auto; }
.eb-game:fullscreen .eb-status { flex: 0 0 auto; }
.eb-game:fullscreen .eb-stage { flex: 1 1 auto; min-height: 0; height: auto; }
.eb-game:fullscreen .eb-stage iframe { min-height: 0; height: 100%; }
.eb-game:fullscreen .eb-credits-dialog { position: absolute; }

@media (max-width: 760px) {
  .eb-toolbar { align-items: stretch; flex-direction: column; }
  .eb-keeper input { width: min(100%, 300px); }
  .eb-tools { justify-content: flex-start; }
  .eb-stage, .eb-stage iframe { min-height: 650px; }
}

@media (prefers-reduced-motion: reduce) {
  .eb-button { transition: none; }
}
