/* WHITEOUT polish. Preserve the original thick-outlined, low-ink language. */
#next-step {
  position: fixed;
  top: calc(119px + env(safe-area-inset-top));
  left: 14px;
  z-index: 4;
  display: block;
  max-width: min(360px, calc(100vw - 140px));
  min-height: 36px;
  padding: 8px 12px;
  font: 700 12px/1.3 "Cooper Hewitt", "Avenir Next", sans-serif;
  text-align: left;
  color: #003FBA;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,.16);
  cursor: pointer;
  touch-action: manipulation;
}
#next-step::before { content: "◎  "; color: #000; }
#next-step[data-kind="journal"]::before { content: "▤  "; }
#next-step[hidden], #polish-notice[hidden] { display: none !important; }
#next-step:focus-visible, #menu button:focus-visible, .map-tools button:focus-visible {
  outline: 3px solid #F2C94C; outline-offset: 3px;
}
#polish-notice {
  position: fixed;
  bottom: calc(115px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 5;
  background: #F2C94C;
  color: #000;
  border: 3px solid #000;
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.2);
  padding: 9px 13px;
  max-width: min(330px, calc(100vw - 148px));
  pointer-events: none;
  animation: polish-enter .18s ease-out both;
}
#polish-notice strong, #polish-notice span { display: block; }
#polish-notice strong { font: 700 14px/1.2 "Cooper Hewitt", sans-serif; }
#polish-notice span { font: 500 12px/1.3 system-ui, sans-serif; margin-top: 4px; }
@keyframes polish-enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
body.compact-hud #hud .scoreblock:not(.chitbox) { display:none; }
body.compact-hud #next-step { max-width: min(290px, calc(100vw - 120px)); }
body.titled #next-step, body.titled #polish-notice,
body.in-arcade #next-step, body.in-arcade #polish-notice { display:none !important; }
.map-tools { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 6px; }
.map-tools button { padding:8px 12px; min-height:42px; cursor:pointer; touch-action:manipulation; font-size:13px; }
.map-tools button.on { background:#003FBA; color:#fff; }
.map-tools button:disabled { opacity:.4; cursor:not-allowed; }
.map-status { font-size:12px !important; color:#003FBA; margin: 5px 0 10px !important; }
.polish-guide { overflow:auto; min-height:0; padding: 4px 3px; }
.polish-guide-row { display:grid; grid-template-columns:115px 1fr; gap:12px; padding:9px 4px; border-bottom:1px solid rgba(0,63,186,.2); }
.polish-guide-row strong { font:700 13px "Cooper Hewitt",sans-serif; text-transform:lowercase; color:#003FBA; }
.polish-guide-row p { margin:0 !important; font-size:13px !important; }
.polish-guide-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.polish-guide-actions button { padding:10px 14px; min-height:44px; cursor:pointer; touch-action:manipulation; }
.overlay.catalog .cat-card { overflow-y:auto; overscroll-behavior:contain; }
#menu button { transition: background-color .12s ease, transform .12s ease; }
#menu button:active { transform:translateY(2px); }
#hint { border-color:#003FBA; background:#fff; }
@media (max-width:760px) {
  #hud { gap:6px; padding-left:8px; padding-right:8px; }
  #hud .chip { padding:6px 8px; border-width:2px; }
  #hud .meters { gap:6px; }
  #hud .scoreblock:not(.chitbox) { display:none; }
  #menu {
    display:grid;
    grid-template-columns:repeat(2, 50px);
    gap:5px;
    top:calc(114px + env(safe-area-inset-top));
    right:8px;
  }
  #menu button { width:50px; height:42px; font-size:11px; }
  #next-step { top:calc(119px + env(safe-area-inset-top)); left:8px; max-width:calc(100vw - 130px); font-size:11px; border-width:2px; }
  #polish-notice { bottom:calc(214px + env(safe-area-inset-bottom)); left:8px; max-width:calc(100vw - 130px); }
  .overlay.catalog .cat-card { max-height:calc(100dvh - 22px); padding:12px; }
  .map-tools button { font-size:12px; padding:8px 9px; }
}
@media (max-height:500px) {
  #menu { top:calc(84px + env(safe-area-inset-top)); }
  #menu button { height:33px; }
  #next-step { top:calc(72px + env(safe-area-inset-top)); max-width:calc(100vw - 150px); }
  #polish-notice { bottom:calc(92px + env(safe-area-inset-bottom)); }
  .polish-guide-row { grid-template-columns:95px 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  #polish-notice { animation:none; }
  #menu button { transition:none; }
}
.reduce-motion #polish-notice { animation:none; }
.reduce-motion #menu button { transition:none; }

/* Mobile: four daily-use actions stay visible; social/bulletin live one tap away.
   Desktop retains the complete always-on action rail. */
#menu button[data-m="extras"] { display:none; }
@media (max-width:760px) {
  #menu button[data-m="extras"] { display:flex; background:#F2C94C; }
  #menu[data-expanded="false"] button[data-m="say"],
  #menu[data-expanded="false"] button[data-m="emote"],
  #menu[data-expanded="false"] button[data-m="snow"],
  #menu[data-expanded="false"] button[data-m="news"] { display:none; }
  #menu[data-expanded="true"] { background:rgba(0,63,186,.72); padding:5px; border-radius:16px; }
  #menu[data-expanded="true"] button[data-m="extras"] { grid-column:span 2; width:100%; }
}
@media (max-height:500px) and (max-width:760px) {
  #menu[data-expanded="true"] { max-height:calc(100dvh - 103px - env(safe-area-inset-top)); overflow-y:auto; overscroll-behavior:contain; }
}
