/* 마작 솔리테어 — 앱 전용 스타일(공통은 css/site.css 사본) */
:root { --accent: #0f766e; --felt: #1f6f5b; --felt2: #185a4a; --tile: #fffdf4; --tile-side: #c9b98f; --tile-edge: #b5a57c; }
.hud .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hud .acts { margin-top: 10px; flex-wrap: wrap; gap: 6px; }
.hud .acts .btn { padding: 6px 10px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.meta { margin: 8px 0 0; display: flex; gap: 14px; flex-wrap: wrap; min-height: 1.2em; }
#board-wrap { margin: 12px 0; padding: 10px; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 35%, var(--felt), var(--felt2) 75%); overflow: hidden; display: flex; justify-content: center; }
.board { position: relative; --dz: 6px; --tw: 40px; }
.tile { position: absolute; margin: 0; padding: 0; border: 1px solid var(--tile-edge); border-radius: calc(var(--tw) * .12); background: var(--tile); cursor: pointer; display: block; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; box-shadow: var(--dz) var(--dz) 0 0 var(--tile-side), calc(var(--dz) * 1.4) calc(var(--dz) * 1.6) 6px rgba(0, 0, 0, .35); transition: transform .08s; }
.tile svg { width: 100%; height: 100%; display: block; }
.tile:focus-visible { outline: 3px solid #fde68a; outline-offset: 1px; }
.tile.gone { display: none; }
.board.dim .tile.blocked { filter: brightness(.78) saturate(.7); }
.tile.sel { background: #fef3c7; border-color: #d97706; outline: 3px solid #f59e0b; outline-offset: -1px; transform: translate(-1px, -1px); }
.tile.hint { animation: tl-hint .55s ease-in-out 3; outline: 3px solid #38bdf8; outline-offset: -1px; }
.tile.shake { animation: tl-shake .3s ease-in-out 1; }
@keyframes tl-hint { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes tl-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.msg { text-align: center; }
.msg h2 { margin: 0 0 6px; } .msg .row { justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.msg.win { border-color: var(--accent); background: #ecfdf5; }
.how ol { margin: 6px 0 10px; padding-left: 1.3em; font-size: .92rem; } .how li { margin: 4px 0; }
@media (max-width: 720px) { .hud .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .stat b { font-size: 1.05rem; } .stat span { font-size: .7rem; } .chk { margin-left: 0; width: 100%; } #board-wrap { padding: 6px; margin-left: -8px; margin-right: -8px; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .tile, .tile.hint, .tile.shake { animation: none; transition: none; } }
