* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.shell { width: min(100% - 28px, 1080px); margin: 0 auto; padding: 18px 0 60px; }
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 50px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: #fff; text-decoration: none; }
.brand .mark { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 12px; background: #fff; }
.brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.brand small { display: block; color: #80e1d5; font-size: 10px; font-weight: 1000; letter-spacing: .14em; }
.brand strong { display: block; color: #fff; font-size: clamp(18px, 2.5vw, 25px); font-weight: 1000; line-height: 1.1; }
.language { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 800; }
.language select { max-width: 155px; min-height: 40px; padding: 7px 10px; border-radius: 10px; border: 1px solid #9ad5ce; background: #fff; color: #25201f; }
.section-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; }
.section-nav a { display: grid; place-items: center; min-height: 48px; padding: 9px; border: 2px solid #235d59; border-radius: 999px; background: #e6f7ef; color: #173c3a; text-align: center; text-decoration: none; font-size: 13px; font-weight: 900; line-height: 1.2; }
.section-nav a[aria-current="page"] { background: #2fc6bd; }
.hero { margin: 24px 0 18px; padding: 25px 28px; border-radius: 17px; background: #f8f5ef; color: #25201f; box-shadow: 0 11px 22px rgba(31, 69, 66, .15); }
.hero h1 { margin: 0; font-size: clamp(31px, 5vw, 49px); line-height: 1.05; letter-spacing: -.025em; }
.hero p { max-width: 65ch; margin: 13px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters button { min-height: 42px; padding: 8px 15px; border: 1px solid #346b65; border-radius: 999px; background: #fff8ec; color: #35302a; font-weight: 900; }
.filters button[aria-pressed="true"] { background: #2fc6bd; color: #25201f; border-color: #176c67; }
.filters button:hover { background: #d7f3ef; }
.arena { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(270px, .88fr); overflow: hidden; border-radius: 19px; background: #fffdf8; box-shadow: 0 16px 34px rgba(31, 69, 66, .2); }
.badge-stage { display: grid; place-items: center; min-height: 420px; padding: 24px; background: #f4b95d; }
.picture { position: relative; display: block; width: min(100%, 560px); height: 376px; overflow: hidden; border-radius: 15px; background: #372e2b; box-shadow: 0 14px 25px rgba(97, 64, 31, .18); }
.picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; max-height: none; object-fit: contain; object-position: center; }
body[data-character-game="dog"] .picture { background: #fff8ec; }
body[data-character-game="dog"] #photoCredit { margin: 4px 0 10px; color: #625c56; font-size: 12px; overflow-wrap: anywhere; }
/* Keep the previous revealed image out of view until the next silhouette is ready. */
body[data-silhouette-game="true"].silhouette-switching .picture img { opacity: 0 !important; filter: brightness(0) !important; transition: none !important; }
.play { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 26px; }
.round { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 19px; color: #5d554d; font-size: 12px; font-weight: 900; }
.play h2 { margin: 0 0 7px; font-size: clamp(25px, 3vw, 31px); line-height: 1.12; }
.sub { margin: 0 0 24px; color: #5d554d; font-size: 13px; }
.guess-label { display: block; margin: 0 0 8px; font-weight: 900; }
.picker { position: relative; }
.picker input { width: 100%; min-height: 54px; padding: 11px 14px; border: 2px solid #b5d4cf; border-radius: 11px; background: #fff; color: #25201f; outline: none; }
.picker input:focus { border-color: #176c67; box-shadow: 0 0 0 3px #c7eae5; }
.name-suggestions { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; right: 0; max-height: 245px; overflow-y: auto; padding: 5px; border: 1px solid #8bb9b1; border-radius: 11px; background: #fffdf8; box-shadow: 0 10px 24px rgba(31, 69, 66, .2); }
.name-suggestions button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: #25201f; text-align: left; font-weight: 750; }
.name-suggestions button:hover, .name-suggestions button[aria-selected="true"] { background: #d7f3ef; }
.name-suggestions button:focus-visible { outline: 2px solid #176c67; outline-offset: -2px; }
.name-suggestion-empty { padding: 9px 11px; color: #514d47; font-size: 13px; }
.buttons { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 12px; }
.buttons button, .next { min-height: 48px; padding: 9px 17px; border-radius: 10px; font-weight: 900; }
.submit, .next { border: 0; background: #2fc6bd; color: #25201f; }
.submit:hover, .next:hover { background: #7ee0d4; }
.skip { border: 1px solid #bfb8af; background: #fff; color: #3d3935; }
.skip:hover { background: #f4eee5; }
.feedback { min-height: 23px; margin: 11px 0 0; color: #a93631; font-size: 13px; font-weight: 800; }
.tries { display: flex; gap: 7px; margin: 4px 0 0; }
.tries span { width: 35px; height: 6px; border-radius: 6px; background: #d5cdc2; }
.tries span.used { background: #e06e60; }
.result { margin-top: 12px; padding: 17px; border: 1px solid #b6d9d1; border-radius: 14px; background: #e6f7f2; }
.result h3 { margin: 0 0 6px; font-size: 25px; line-height: 1.12; }
.result p { margin: 0 0 12px; }
.result .source { display: inline-block; margin: 0 0 15px; color: #075b57; font-size: 12px; font-weight: 800; }
.result .next { display: block; width: 100%; }
.foot { margin: 18px 2px; color: #f4fffc; font-size: 12px; }
@media (max-width: 720px) {
  .arena { display: block; }
  .badge-stage { min-height: 300px; }
  .picture { height: min(64vw, 330px); }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 1080px); }
  .hero { padding: 19px; }
  .badge-stage { padding: 15px; min-height: 260px; }
  .picture { height: min(64vw, 290px); }
  .play { padding: 22px; }
  .section-nav a { padding: 7px 5px; font-size: 11px; }
  .language { width: 100%; justify-content: space-between; }
}
