.village-dialog { width: min(880px, calc(100vw - 24px)); }
.adventure-dialog { width: min(980px, calc(100vw - 24px)); }
.village-cards article > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; }
.village-cards article > button + button { margin-top: 8px; }
.village-diorama { display: grid; place-items: center; gap: 15px; min-height: 160px; padding: 16px; margin-bottom: 16px; border: 3px solid #312341; border-radius: 22px; background: linear-gradient(#a9e7ff 0 60%, #86df9e 60%); text-align: center; }
.village-diorama strong { padding: 10px 16px; border: 3px solid #312341; border-radius: 10px; background: #ffecb0; }
.village-diorama span { font-size: 2.8rem; letter-spacing: .35em; }
.friend-home-choice { padding: 10px; border: 2px solid #c7bdd2; border-radius: 14px; background: #fff9df; margin: 10px 0; }
.friend-home-choice label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; }
.friend-home-choice select { max-width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; border: 2px solid #312341; border-radius: 12px; background: white; }
.friend-home-choice p { margin: 6px 0; font-size: .875rem; }
#comic-styles { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
#adventure-result-summary:empty { display: none; }
html[data-bumpbridge-screen="playing"] #pg-commerce-open { display: none !important; }
#expedition-intro img { max-height: 180px; object-fit: cover; }
#expedition-intro blockquote { margin: 12px 0; font-weight: 800; }
@media (max-width: 550px) {
  #adventure-tabs, #village-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #adventure-tabs button, #village-tabs button { font-size: .875rem; padding: 8px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  #expedition-intro img { max-height: 82px; }
  #expedition-intro blockquote, #expedition-intro p { margin: 8px 0; }
}
.village-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.village-tabs button, .village-cards button, #dojo-return, #rule-vote-cancel { min-height: 44px; border: 2px solid #312341; border-radius: 14px; padding: 10px 14px; background: #fff3aa; color: #312341; font: inherit; font-weight: 800; cursor: pointer; }
.village-tabs [aria-pressed="true"] { background: #c0f3f5; }
.village-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.village-cards article { border: 2px solid #312341; border-radius: 18px; padding: 14px; background: linear-gradient(140deg, #e4fff8, #fff2be); overflow-wrap: anywhere; }
.village-cards h3 { margin: 0; font-size: 1.05em; }
.village-cards button { width: 100%; }
.village-cards button:disabled { cursor: default; opacity: .65; }
#newspaper-preview { display: block; width: 100%; height: auto; border-radius: 12px; }
#newspaper-preview[hidden], #newspaper-save[hidden] { display: none; }
#newspaper-message { width: 100%; box-sizing: border-box; min-height: 108px; font: inherit; padding: 12px; margin-top: 12px; border: 2px solid #312341; border-radius: 12px; }
#rule-vote-options button { text-align: left; background: #e1faff; }
.dojo-tip { position: fixed; z-index: 12; left: 25%; right: 25%; top: calc(env(safe-area-inset-top) + 56px); text-align: center; font: 800 clamp(10px, 1.4vw, 15px)/1.3 sans-serif; padding: 5px 8px; border: 2px solid #312341; border-radius: 12px; color: #312341; background: #fff3ae; pointer-events: none; }
.dojo-tip[hidden] { display: none; }
@media (max-height: 320px) and (orientation: landscape) { .dojo-tip { top: calc(env(safe-area-inset-top) + 40px); left: 22%; right: 22%; } }
