.ew-game {
  inline-size: min(51rem, 100%);
  margin-inline: auto;
  color: #293d37;
  background: #faf0db;
  border: 1px solid #c9b798;
  border-radius: 13px;
  padding: 10px;
  box-shadow: 0 13px 23px #664e3626;
}
.ew-game [hidden] { display:none !important; }
.ew-toolbar,.ew-route,.ew-grass,.ew-primary,.ew-settings {
  display:flex;
  align-items:center;
  gap:8px;
}
.ew-toolbar { justify-content:space-between; margin-block-end:9px; }
.ew-route { font-weight:750; min-width:0; }
.ew-grass { flex-shrink:0; font-weight:700; color:#533b27; }
.ew-grass strong { font-variant-numeric:tabular-nums; }
.ew-seed { color:#92542e; font-size:19px; line-height:1; }
.ew-game select,.ew-game button {
  min-height:44px;
  border:1px solid #9f8b70;
  border-radius:8px;
  background:#fffaf0;
  color:#44392d;
  padding:6px 10px;
  font:inherit;
  font-weight:700;
}
.ew-game select { min-width:0; max-width:100%; }
.ew-game button:not(.ew-wing):hover { background:#f0dfc2; }
.ew-game button[aria-pressed="true"] { border-color:#245a51; box-shadow:inset 0 -2px #307969; }
.ew-stage {
  display:block;
  width:100%;
  height:clamp(222px,32vw,340px);
  border:1px solid #a48265;
  background:#f3dca1;
  border-radius:9px;
}
.ew-status {
  min-height:2.5em;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:3px 10px;
  margin:7px 0 5px;
  color:#44392d;
  font-size:14px;
  line-height:1.35;
}
.ew-pose { color:#0c604f; font-weight:750; }
.ew-game[data-phase="miss"] .ew-status { color:#7e382f; font-weight:750; }
.ew-game[data-phase="landed"] .ew-status { color:#245a51; font-weight:750; }
.ew-primary,.ew-settings { flex-wrap:wrap; }
.ew-primary .ew-wing {
  flex-grow:1;
  background:#1c564f;
  color:#fff8e5;
  border-color:#14423e;
  touch-action:none;
  user-select:none;
}
.ew-primary .ew-wing[aria-pressed="true"] { background:#122f2d; color:#fff0b6; }
.ew-settings { margin-block-start:7px; }
.ew-settings button { background:transparent; font-size:13px; }
.ew-objective { font-size:13px; line-height:1.35; margin:7px 0 0; color:#4e4438; }
@media(max-width:440px){
  .ew-game { padding:7px; font-size:13px; }
  .ew-toolbar,.ew-route,.ew-grass,.ew-primary,.ew-settings{ gap:5px; }
  .ew-game button,.ew-game select { padding-inline:7px; }
  .ew-status{font-size:13px;}
  .ew-route>span,.ew-fiber-label { position:absolute;clip-path:inset(50%); }
}
@media(max-width:480px) and (max-height:640px){
  .ew-stage { height:196px; }
  .ew-status { margin-block:5px;min-height:1.5em; }
  .ew-objective { margin-top:5px; }
}
