/* Banana Ventura's live-site identity, isolated from the game engine and art. */
:root {
  --bv-ink: #1f2d2f;
  --bv-text: #3d3d3d;
  --bv-green: #2a9d6f;
  --bv-green-deep: #1f7e57;
  --bv-yellow: #ffcf24;
  --bv-gold: #d99f00;
  --bv-wordmark-gold: #e09b2d;
  --bv-cream: #faf7f0;
  --bv-sand: #f7edda;
  --bv-page: #eee1c4;
  --ink: var(--bv-ink);
  --muted: #4a5c5f;
  --cream: var(--bv-cream);
  --yellow: var(--bv-yellow);
  --line: #dfdfd0;
  --green: var(--bv-green);
}
body {
  color: var(--bv-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bv-page);
}
.app { width: min(1280px, 100%); }
.topbar {
  height: 80px;
  border-color: #1f2d2f10;
}
.brand { gap: 10px; letter-spacing: 0; line-height: 1.1; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.brand-wordmark {
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  color: var(--bv-text);
}
.brand-wordmark b { font-weight: 600; letter-spacing: .2px; color: var(--bv-wordmark-gold); }
.arcade-badge {
  color: var(--bv-green-deep);
  border: 1px solid #2a9d6f25;
  background: #2a9d6f0a;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-left: 10px;
}
.topbar nav { gap: 12px; }
.site-link { color: var(--bv-text); font-size: 12px; font-weight: 600; text-decoration: none; margin-right: 12px; }
.site-link span { color: var(--bv-green); margin-left: 5px; }
.site-link:hover { color: var(--bv-green-deep); }
.quiet { color: var(--bv-green-deep); font-weight: 700; }
.icon-button {
  background: #fffdf6;
  border-color: #2a9d6f24;
  color: var(--bv-green-deep);
  width: 36px;
  height: 36px;
}
.icon-button:hover { background: #ebf6ee; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline-color: var(--bv-green); }
main { padding-top: 26px; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.page-intro h2 {
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 800;
  font-size: 31px;
  letter-spacing: -.9px;
  line-height: 1.2;
  margin: 0;
  color: var(--bv-ink);
}
.page-intro h2 span { color: var(--bv-gold); }
.play-badge {
  color: var(--bv-green-deep);
  background: #fffdf6;
  border: 1px solid #2a9d6f20;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
}
.play-badge i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--bv-green); border-radius: 50%; }
.game-heading { margin-bottom: 12px; }
.eyebrow { color: var(--bv-green-deep); font-size: 8px; letter-spacing: 1.1px; }
.live-dot { background: var(--bv-green); }
.location { color: #62726c; }
.game-shell { border: 1px solid #2a9d6f24; border-radius: 20px; box-shadow: 0 12px 34px #1f7e5710; }
.vignette { background: linear-gradient(90deg, #faf1ddeb 0%, #f8f0dce0 25%, #f7efd69c 41%, transparent 68%); }
.adventure-label { color: var(--bv-green-deep); font-size: 9px; letter-spacing: 1.35px; }
.adventure-label > span { color: var(--bv-gold); }
h1 {
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 800;
  color: var(--bv-ink);
  text-shadow: none;
  transform: none;
  letter-spacing: -3px;
}
h1 em { font-style: italic; color: var(--bv-gold); }
h1 .title-dot { color: var(--bv-green); }
.subtitle { color: var(--bv-green-deep); font-weight: 800; }
.subtitle span { background: var(--bv-green); }
.menu-content > p { color: #4a5c5f; font-weight: 500; }
.play-button {
  background: var(--bv-green);
  color: #fff;
  border: 1px solid #258e65;
  border-bottom: 3px solid var(--bv-green-deep);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 5px 15px #1f7e5720;
}
.play-button:hover { background: #238e63; box-shadow: 0 8px 20px #1f7e572a; }
.play-triangle { border-left-color: #fff; }
.quick-note { color: #62705a; }
.menu-bottom { color: #375543; }
.menu-bottom i { background: var(--bv-green); }
.section-label { color: var(--bv-green-deep); font-size: 9px; letter-spacing: 1px; }
.island-count { color: #687971; }
.island-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.island-card { position: relative; flex-wrap: wrap; gap: 10px; padding: 13px; }
.island-art { width: 100%; height: 78px; }
.island-art svg { width: 100%; }
.island-text { gap: 5px; }
.island-text small { font-size: 6.5px; }
.island-text strong { font-size: 15px; }
.island-end { position: absolute; right: 13px; bottom: 15px; top: auto; height: 45px; }
.island-end .island-best { font-size: 6px; }
.breeze-art { background: #b7e5df; }
.pine-art { background: #babbd7; }
.forest-art { background: #c0d9c6; }
.cliff-art { background: #b8dbe0; }
.cove-art { background: #c4e9e4; }
.island-challenge { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid #2a9d6f20; color: var(--bv-green-deep); font-size: 9px; font-weight: 700; }
.difficulty-meter { display: block; width: 65px; height: 5px; border-radius: 5px; background: #e0e7d7; overflow: hidden; }
.difficulty-meter::before { content: ''; display: block; width: var(--difficulty); height: 100%; background: var(--bv-green); border-radius: inherit; }
.island-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'art art' 'text end' 'challenge challenge'; }
.island-art { grid-area: art; }
.island-text { grid-area: text; }
.island-challenge { grid-area: challenge; }
.island-card .island-end { grid-area: end; position: static; height: auto; margin-left: 0; }
.island-card { background: #fffdf5; border-color: #2a9d6f24; border-radius: 15px; box-shadow: 0 4px 16px #1f7e5706; }
.island-card:hover { background: #fffef8; border-color: #2a9d6f80; }
.island-card.selected { background: #eef8ed; border-color: var(--bv-green); box-shadow: 0 0 0 1px #2a9d6f0d; }
.island-text strong { font-family: 'Rubik', system-ui, sans-serif; font-weight: 800; color: var(--bv-ink); }
.island-text small, .island-best { color: var(--bv-green-deep); }
.island-text > span { color: #64746c; }
.selected-dot { color: var(--bv-green); border-color: #2a9d6f35; }
.selected .selected-dot { background: var(--bv-green); border-color: var(--bv-green); color: #fff; }
.hud-island b { color: var(--bv-ink); }
.hud-island small { color: var(--bv-green-deep); }
.hud-icon, .hud-stats { background: #fffaf0ed; border-color: #ffffffbf; }
.hud-icon { color: var(--bv-green-deep); }
.progress-track > div { background: var(--bv-green); }
.panel-card, dialog { background: var(--bv-cream); border-color: #fff; }
.panel-card h2, dialog h2 { font-family: 'Rubik', system-ui, sans-serif; font-weight: 800; color: var(--bv-ink); }
.panel-card p, dialog > p { color: #4a5c5f; }
.panel-eyebrow { color: var(--bv-green-deep); }
.panel-actions button { color: var(--bv-green-deep); font-weight: 600; }
.result-stars { color: var(--bv-gold); }
.result-stats { border-color: #1f7e5720; }
.record-note { color: var(--bv-green-deep); }
.toast { color: var(--bv-green-deep); background: #fffaf0ed; }
.level-intro { color: var(--bv-ink); }
.level-intro b { font-family: 'Rubik', system-ui, sans-serif; font-weight: 800; }
.help-row div > span, dialog .help-fine { color: #62726c; }
kbd { background: #f1f6e9; border-color: #bed6c1; }
.touch-controls .jump-touch { background: #2a9d6fe8; color: #fff; border-color: #ffffff80; border-bottom-color: #1f7e57; }
footer { align-items: center; gap: 24px; border-top: 1px solid #1f2d2f10; padding-top: 20px; margin-top: 25px; color: #6c7770; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; border-radius: 50%; }
.footer-brand > div { display: flex; flex-direction: column; gap: 3px; }
.footer-brand .brand-wordmark { font-size: 17px; }
.footer-tagline { font-size: 9px; }
.footer-links { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
footer a { color: var(--bv-green-deep); border-bottom-color: #2a9d6f50; }
.footer-links > a { font-size: 11px; font-weight: 700; }
.footer-legal { display: flex; align-items: center; gap: 11px; font-size: 8px; }
.footer-legal a { border: 0; color: #6c7770; }
@media (max-width: 1050px) {
  .arcade-badge { display: none; }
  .island-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro h2 { font-size: 27px; }
  .adventure-label { font-size: 8px; }
}
@media (max-width: 760px) {
  .topbar { height: 72px; }
  .brand-wordmark { font-size: 19px; }
  .brand-logo { width: 36px; height: 36px; }
  .site-link { display: none; }
  .topbar nav { gap: 8px; }
  main { padding-top: 21px; }
  .page-intro { margin-bottom: 17px; gap: 10px; }
  .page-intro h2 { font-size: 25px; max-width: 390px; }
  .play-badge { display: none; }
  .eyebrow { font-size: 7px; letter-spacing: .65px; }
  .adventure-label { font-size: 6px; letter-spacing: .8px; }
  .game-shell { border-radius: 15px; }
  h1 { letter-spacing: -2px; }
  .section-label { font-size: 7px; }
  .island-count { font-size: 8px; }
  .island-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .island-card { border-radius: 11px; padding: 11px; }
  .island-art { height: 72px; }
  .island-text strong { font-size: 15px; }
  .island-text small { font-size: 6.5px; }
  .island-text > span { font-size: 10px; }
  .island-end { right: 11px; bottom: 13px; top: auto; }
  .island-end .island-best { display: block; }
  .footer-tagline { font-size: 8px; max-width: 210px; }
  .footer-links > a { font-size: 10px; }
  .footer-legal { font-size: 7px; gap: 8px; }
}
@media (max-width: 460px) {
  .brand { gap: 7px; }
  .brand-wordmark { font-size: 17px; }
  .brand-logo { width: 33px; height: 33px; }
  .topbar nav { gap: 6px; }
  .icon-button { width: 30px; height: 30px; }
  .quiet { padding: 0 2px; }
  .page-intro h2 { font-size: 24px; line-height: 1.14; max-width: 330px; }
  .page-intro h2 span { display: block; }
  .eyebrow { font-size: 5.8px; letter-spacing: .45px; }
  .game-heading .location { font-size: 7px; }
  .vignette { background: linear-gradient(90deg, #faf1dde8 0%, #f8f0dcc4 26%, #f7efd64f 63%, transparent 85%); }
  .adventure-label { font-size: 6.5px; letter-spacing: .65px; }
  h1 { font-size: 45px; letter-spacing: -2px; }
  .menu-content > p { font-size: 10px; }
  .section-label { font-size: 6px; }
  .island-count { font-size: 6.8px; }
  .island-text strong { font-size: 12px; }
  .island-text small { font-size: 5.5px; letter-spacing: .25px; }
  .island-text > span { font-size: 9px; }
  .island-card { padding: 9px; }
  .island-end { right: 8px; bottom: 12px; }
  .island-end .island-best { display: none; }
  .island-end .selected-dot { width: 18px; height: 18px; font-size: 11px; }
  .island-challenge { font-size: 8px; gap: 5px; }
  .difficulty-meter { width: 42px; }
  footer { gap: 16px; align-items: flex-start; padding-top: 16px; }
  .footer-brand { gap: 7px; }
  .footer-logo { width: 25px; height: 25px; }
  .footer-brand .brand-wordmark { font-size: 14px; }
  .footer-tagline { max-width: 167px; font-size: 7px; }
  .footer-links { padding-top: 2px; gap: 6px; }
  .footer-links > a { font-size: 8px; }
  .footer-legal { flex-wrap: wrap; justify-content: flex-end; max-width: 115px; gap: 3px 8px; font-size: 6px; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .topbar { height: 48px; }
  main { padding-top: 9px; }
  .page-intro { display: none; }
  .game-heading { display: none; }
  .adventure-label { font-size: 7px; }
  .brand-logo { width: 30px; height: 30px; }
}
/* Language names stay in their own language; the native menu supports keyboards and phones. */
.language-picker { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #2a9d6f30; border-radius: 10px; background: #faf7f0; color: #1f7e57; }
.language-picker select { max-width: 150px; min-height: 40px; padding: 7px 2px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.language-picker select:focus-visible { outline: 2px solid #1f7e57; outline-offset: 2px; }
html:not([lang="en"]) .island-text small { white-space: normal; line-height: 1.4; }
html:not([lang="en"]) .island-text { min-width: 0; }
html:not([lang="en"]) .island-text > span { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
html:not([lang="en"]) .menu-content .play-button { white-space: normal; }
html:not([lang="en"]) .island-text strong { overflow-wrap: normal; }
html:not([lang="en"]) .menu-content > p { line-height: 1.5; }
html:not([lang="en"]) .score-entry { flex-wrap: wrap; }
html:not([lang="en"]) .score-entry button { white-space: normal; }
html:not([lang="en"]) .result-summary .play-button { white-space: normal; }
@media(max-width: 950px) { .topbar .site-link { display: none; } .topbar nav { gap: 8px; } }
@media(max-width: 560px) { .topbar { flex-wrap: wrap; height: auto; min-height: 88px; gap: 10px; padding: 14px 0; } .topbar nav { width: 100%; justify-content: flex-end; } .language-picker { margin-right: auto; } .language-picker select { max-width: 170px; font-size: 14px; } }
