/* Festival presentation. Puzzle boards and game rules keep their original colors. */
:root { background: #f5eddf; color: #513925; }
body { background-image: radial-gradient(#ae947c24 .7px, transparent .7px); background-size: 6px 6px; }
.site-shell { margin-top: 25px; }
.site-header { gap: 12px; }
.brand { color: #5d3d24; gap: 9px; letter-spacing: 0; }
.brand > img { width: 25px; height: 38px; object-fit: contain; }
.brand-lines { display: grid; gap: 5px; }
.brand-lines > span { font-size: 11px; font-weight: 400; }
.brand-lines > strong { font-size: 12px; font-weight: 600; }
.festival-home { font-size: 11px; color: #88684b; margin-left: auto; padding-block: 10px; }
.maze-navigation { flex-basis: 100%; min-width: 0; }
.maze-progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; color: #92795c; font-size: 11px; line-height: 1.6; }
.maze-progress strong { font-size: 11px; font-weight: 600; color: #76563a; font-variant-numeric: tabular-nums; }
.maze-progress.all-completed, .maze-progress.all-completed strong { color: #5c744e; }
.maze-completed-icon { display: none; margin-left: 4px; color: #5c744e; font-weight: 800; }
.maze-links a.completed .maze-completed-icon { display: inline; }
.maze-links { flex-basis: 100%; padding: 10px 0 14px; border-top: 1px solid #d7c8b1; border-bottom: 1px solid #d7c8b1; gap: 3px; }
.maze-links a { color: #8d775e; padding: 8px 9px; font-size: 11px; border-radius: 3px; }
.maze-links a[aria-current="page"] { color: #7f4432; background: #e6d6bf; }
.maze-links a:hover { background: #ebdfcc; }
.game-card { border-color: #d6c5ac; border-radius: 8px; box-shadow: 0 5px 0 -1px #ebe0cc, 0 6px 0 #d8c8af, 0 16px 35px -28px #63432755; background: #fffaf0; color: #513925; }
.game-heading h1 { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-weight: 600; }
.help-button { color: #9f805e; }
.help-button:hover { background: #efe4cf; }
.direction-button { background: #76614a; border-color: #675239; box-shadow: 0 2px 0 #d2c2a8; }
.direction-button:hover:not(:disabled) { background: #584530; }
.button.primary { background: #87513d; color: #fff6e8; }
.button.secondary { background: #f4ead8; color: #876b4e; border-color: #deceb4; }
.rules-dialog { border-color: #d6c4a8; background: #fff9ed; color: #674a30; border-radius: 8px; }
.rules-dialog p { color: #8b7357; }
.rules-dialog::backdrop { background: #44332377; }
@media (max-width: 480px) {
  .site-shell { margin-top: 16px; }
  .site-header { gap: 12px; }
  .game-card { border-radius: 7px; }
  .maze-links { gap: 1px; padding-block: 9px; }
  .maze-links a { padding: 7px 8px; font-size: 10px; }
}
