.mc-game { --mc-green: #285747; max-width: 420px; width: 100%; margin: 0 auto; color: #244c3f; position: relative; font-family: inherit; }
.mc-game * { box-sizing: border-box; }
.mc-game button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mc-game button:focus-visible, .mc-help summary:focus-visible { outline: 3px solid #ce8245; outline-offset: 3px; }
.mc-game button:disabled { cursor: default; }
.mc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.mc-progress { display: flex; flex-direction: column; gap: 3px; }
.mc-progress > span { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #647d6c; }
.mc-progress strong { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mc-progress small { font-size: 15px; color: #7b8f80; font-weight: 500; }
.mc-button { min-height: 44px; padding: 9px 13px; border-radius: 11px; border: 1px solid #cad8c6; background: #f8faf3; color: #315c48; font-size: 13px !important; font-weight: 600 !important; }
.mc-button:hover:not(:disabled) { background: #e6eddf; }
.mc-button:disabled { opacity: .55; }
.mc-primary { color: white; background: #285747; border-color: #285747; }
.mc-primary:hover:not(:disabled) { background: #173d31; }
.mc-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mc-tools .mc-button { padding: 7px 11px; }
.mc-pace { font-size: 10px; color: #748574; text-align: right; margin-left: auto; max-width: 110px; line-height: 1.4; }
.mc-board-wrap { position: relative; border: 1px solid #b8c6ac; background: #dce5d1; border-radius: 18px; box-shadow: 0 4px 0 #c1cfb8; padding: 34px calc(100% / 14 + 3px); }
.mc-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; user-select: none; }
.mc-row { display: contents; }
.mc-tile { position: relative; width: 100%; min-width: 0; height: 55px; border: 1px solid #d0d4bc; border-bottom: 3px solid #b8c2a7; border-radius: 7px; padding: 2px 3px; background: #fffff6; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 2px 3px #50654912; }
.mc-number { font-size: 16px; font-weight: 750; line-height: 1; }
.mc-tile svg { display: block; width: 25px; height: 25px; pointer-events: none; }
.mc-circle { color: #b45739; }
.mc-bamboo { color: #287564; }
.mc-diamond { color: #6e5c9d; }
.mc-tile:hover:not(:disabled) { background: #fcf9df; }
.mc-tile.mc-selected { background: #ffefb5; outline: 2px solid #b87c33; outline-offset: 0; border-color: #cda15b; z-index: 1; }
.mc-tile.mc-hint { background: #fff4c9; outline: 2px dashed #a1742d; outline-offset: 1px; z-index: 1; }
.mc-tile.mc-connected { background: #f8e6a5; box-shadow: 0 0 0 2px #9c8635; }
.mc-tile.mc-empty { visibility: hidden; }
.mc-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.mc-path polyline { stroke: #e39635; stroke-width: 4; filter: drop-shadow(0 1px 0 #ffffff); }
.mc-status { font-size: 12px; line-height: 1.5; min-height: 38px; text-align: center; margin: 15px 0 4px; }
.mc-save { font-size: 10px; color: #71866e; text-align: center; margin: 0; }
.mc-save::before { content: ''; display: inline-block; width: 5px; height: 5px; background: #8ca67e; border-radius: 50%; margin-right: 5px; }
.mc-help { font-size: 12px; line-height: 1.6; color: #5f7865; margin-top: 13px; text-align: center; }
.mc-help summary { cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b7c8ad; }
.mc-help p { margin: 6px 0 0; }
.mc-complete { position: absolute; z-index: 4; inset: 0; border-radius: 17px; background: #244b39a6; display: grid; place-items: center; padding: 18px; }
.mc-complete-card { background: #fffdf3; border-radius: 17px; padding: 27px 18px; width: 100%; max-width: 310px; text-align: center; box-shadow: 0 16px 40px #133b3030; }
.mc-eyebrow { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #74896b; }
.mc-complete-card h2 { font-size: 27px; margin: 8px 0; letter-spacing: -.03em; }
.mc-complete-card p { font-size: 13px; margin: 7px 0 16px; }
.mc-complete-card .mc-round-detail { color: #7a886e; font-size: 11px; }
.mc-confirm { position: absolute; inset: 0; z-index: 8; background: #25442a66; backdrop-filter: blur(3px); border-radius: 16px; display: flex; justify-content: center; align-items: start; padding: 100px 14px 20px; }
.mc-confirm-card { background: #fffef5; padding: 23px; border-radius: 16px; max-width: 340px; box-shadow: 0 16px 45px #22492e30; }
.mc-confirm-card h2 { font-size: 22px; margin: 0 0 10px; }
.mc-confirm-card p { font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.mc-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-complete[hidden], .mc-confirm[hidden] { display: none; }
@media (max-width: 480px) {
  .mc-board-wrap { padding: 30px calc(100% / 14 + 2px); border-radius: 15px; }
  .mc-board { gap: 4px; }
  .mc-tile { height: 49px; border-radius: 5px; padding: 1px 2px; }
  .mc-number { font-size: 15px; }
  .mc-tile svg { width: 23px; height: 23px; }
  .mc-progress strong { font-size: 26px; }
  .mc-pace { max-width: 80px; }
  .mc-tools { gap: 6px; }
  .mc-tools .mc-button { padding: 7px 10px; }
  .mc-status { font-size: 12px; }
}
