:root { --ink: #28241d; --muted: #777064; --paper: #f7f1e5; --paper-deep: #e8dcc5; --red: #96392f; --gold: #c99b4a; --app-height: 100vh; --tray-height: 150px; } *, *::before, *::after { box-sizing: border-box; } html, body { min-height: 100%; margin: 0; } html { touch-action: manipulation; } body { min-height: 100vh; min-height: var(--app-height, 100vh); color: var(--ink); background: #292720; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } button { font: inherit; } button:focus { outline: 2px solid var(--gold); outline-offset: 2px; } button:disabled { cursor: default; opacity: .38; } .start-screen { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: var(--app-height, 100vh); padding: 24px 16px; padding-top: calc(24px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); padding-bottom: calc(24px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); background: radial-gradient(circle at 50% 18%, rgba(203,163,83,.22), transparent 34%), linear-gradient(145deg, #eee3cd, #f9f4e9 48%, #dfceb0); } .start-panel { position: relative; z-index: 2; width: 100%; max-width: 620px; padding: 30px 26px 26px; border: 1px solid rgba(82,62,38,.2); border-radius: 14px; background: rgba(250,246,236,.9); box-shadow: 0 20px 60px rgba(50,38,23,.16), inset 0 0 50px rgba(165,122,56,.07); text-align: center; } .start-card-backdrop { position: absolute; z-index: 0; top: -3%; right: -3%; bottom: -3%; left: -3%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; pointer-events: none; transform: rotate(-1.5deg) scale(1.04); } .start-card-row { flex: 1 1 10%; min-height: 0; overflow: hidden; opacity: .16; } .start-card-track { display: flex; align-items: center; width: max-content; height: 100%; animation: startCardsLeft 170s linear infinite; will-change: transform; } .start-card-row:nth-child(3n) .start-card-track { animation-duration: 205s; } .start-card-row:nth-child(3n+1) .start-card-track { animation-duration: 185s; } .start-card-row.is-reverse .start-card-track { animation-name: startCardsRight; } .start-card-group { display: flex; align-items: center; height: 100%; } .start-bg-card { position: relative; flex: 0 0 auto; width: 58px; max-height: 88%; margin-right: 18px; overflow: hidden; border-radius: 5px; filter: saturate(.72) sepia(.1); box-shadow: 0 7px 16px rgba(50,38,23,.12); } .start-bg-card img { display: block; width: 100%; height: auto; } .start-bg-element { position: absolute; top: 2%; left: 2%; display: flex; align-items: center; justify-content: center; width: 23%; height: 15%; color: rgba(255,255,255,.9); font-family: "Songti SC", STSong, serif; font-size: 9px; font-weight: 700; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.22); } .start-bg-card.element-earth .start-bg-element, .start-bg-card.element-metal .start-bg-element { color: rgba(52,43,34,.88); text-shadow: 0 1px 1px rgba(255,255,255,.28); } @keyframes startCardsLeft { from { transform: translate3d(0,0,0); } to { transform: translate3d(-25%,0,0); } } @keyframes startCardsRight { from { transform: translate3d(-25%,0,0); } to { transform: translate3d(0,0,0); } } .start-seal { display: inline-block; margin: 0 0 12px; padding: 4px 7px; border: 1px solid var(--red); color: var(--red); font-family: "Songti SC", STSong, serif; font-size: 11px; letter-spacing: .2em; } .start-panel h1 { margin: 0; font-family: "Songti SC", STSong, serif; font-size: 42px; font-weight: 600; letter-spacing: .18em; } .card-source-note { display: inline-block; margin: 11px 0 0; padding: 5px 12px; border-radius: 14px; color: #fff9ec; background: var(--red); font-family: "Songti SC", STSong, serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; } .start-subtitle { margin: 9px 0 24px; color: var(--muted); font-family: "Songti SC", STSong, serif; font-size: 13px; letter-spacing: .22em; } .mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .mode-card { position: relative; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; min-height: 82px; padding: 14px; border: 1px solid rgba(61,50,35,.18); border-radius: 10px; background: rgba(255,255,255,.45); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; } .mode-card input { position: absolute; width: 1px; height: 1px; opacity: 0; } .mode-card.is-selected { border-color: var(--red); background: rgba(150,57,47,.07); box-shadow: 0 0 0 2px rgba(150,57,47,.08); transform: translateY(-2px); } .mode-card.is-locked { cursor: default; filter: grayscale(.65); opacity: .54; } .mode-mark { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #fff8e8; background: var(--red); font-family: "Songti SC", STSong, serif; font-size: 20px; } .mode-card strong { font-family: "Songti SC", STSong, serif; font-size: 17px; } .mode-card small { color: var(--muted); font-size: 11px; } .custom-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 15px; padding: 13px; border-radius: 9px; background: rgba(217,199,164,.26); } .custom-options label { color: var(--muted); font-size: 10px; font-weight: 700; text-align: left; } .custom-options select { display: block; width: 100%; margin-top: 5px; padding: 9px 7px; border: 1px solid rgba(57,47,34,.2); border-radius: 6px; color: var(--ink); background: #faf6ed; font-size: 13px; } .start-button { min-width: 180px; margin-top: 22px; padding: 12px 26px; border: 1px solid var(--red); border-radius: 6px; color: #fffaf0; background: var(--red); font-family: "Songti SC", STSong, serif; font-size: 16px; letter-spacing: .12em; cursor: pointer; } .app-shell { width: 100%; max-width: 1120px; min-height: 100vh; min-height: var(--app-height, 100vh); margin: 0 auto; padding: 18px 14px 24px; padding-top: calc(18px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); background-color: var(--paper); background-image: radial-gradient(circle at 18% 3%, rgba(193,150,74,.14), transparent 26%), linear-gradient(rgba(89,75,54,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(89,75,54,.035) 1px, transparent 1px); background-size: auto, 24px 24px, 24px 24px; } .hero, .stage-copy, .table-heading, .tray-meta { display: flex; align-items: center; justify-content: space-between; } .hero-actions { display: flex; align-items: center; gap: 7px; } .hero h1 { margin: 0; font-family: "Songti SC", STSong, serif; font-size: 26px; font-weight: 600; letter-spacing: .12em; } .eyebrow, .stage-kicker { margin: 0; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .18em; } .round-button, .modal-close { width: 36px; height: 36px; border: 1px solid rgba(40,36,29,.24); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.42); cursor: pointer; } .hud { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 11px; border-top: 1px solid rgba(40,36,29,.16); border-bottom: 1px solid rgba(40,36,29,.16); } .hud div { padding: 7px 3px; text-align: center; } .hud div + div { border-left: 1px solid rgba(40,36,29,.13); } .hud span { display: inline; margin-right: 5px; color: var(--muted); font-size: 9px; } .hud strong { display: inline; font-family: Georgia, "Songti SC", serif; font-size: 16px; } .rule-button { margin: 0; padding: 5px 9px; border: 1px solid rgba(150,57,47,.28); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.42); font-family: "Songti SC", STSong, serif; font-size: 16px; font-weight: 600; letter-spacing: .08em; cursor: pointer; } .rule-button span { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; color: #fff; background: var(--red); font-family: sans-serif; font-size: 10px; letter-spacing: 0; } .stage-copy > p { max-width: 360px; margin: 0 0 1px 16px; color: var(--muted); font-size: 11px; text-align: right; } .table-section { position: relative; z-index: 1; isolation: isolate; padding: 8px; border: 1px solid rgba(63,53,39,.15); border-radius: 12px; background: rgba(225,211,185,.48); box-shadow: inset 0 0 32px rgba(89,66,35,.07); } .table-heading { justify-content: flex-end; padding: 0 2px 5px; color: var(--muted); font-size: 9px; } .pile-board { position: relative; width: 100%; max-width: 560px; height: 485px; margin: 0 auto; } .pile-board.level-1 { height: 590px; } .pile-card { position: absolute; width: 24%; padding: 0; border: 1px solid rgba(53,45,34,.28); border-radius: 7px; overflow: hidden; background: #d8ccb7; box-shadow: 0 2px 6px rgba(43,35,24,.2); cursor: default; transition: transform .2s ease, opacity .2s ease, filter .2s ease, box-shadow .2s ease; } .pile-board:not(.level-1) .pile-card { width: 18.5%; } .pile-card.is-available { cursor: pointer; box-shadow: 0 0 0 2px rgba(250,246,232,.96), 0 0 0 3px rgba(201,155,74,.72), 0 7px 16px rgba(43,35,24,.3); } .pile-card.is-available:hover { transform: translateY(-3px) rotate(0deg) !important; } .pile-card.is-covered { filter: brightness(.42) saturate(.52); pointer-events: none; } .pile-card.is-covered::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; border: 2px solid rgba(36,30,23,.38); background: repeating-linear-gradient(135deg, transparent 0, transparent 13px, rgba(24,20,16,.08) 14px, rgba(24,20,16,.08) 16px); content: ""; } .pile-card.is-hinted { z-index: 99 !important; box-shadow: 0 0 0 3px #f0c658, 0 0 22px rgba(224,173,59,.95); animation: hintPulse .65s ease 3; } .pile-card.is-moving { pointer-events: none; transform: translateY(38px) scale(.7) !important; opacity: 0; } .card-ratio { display: block; padding-top: 154.3%; } .pile-card img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover; } .info-chip { position: absolute; top: 0; left: 0; z-index: 3; display: flex; align-items: center; justify-content: center; width: 25%; height: 16.5%; padding: 0; color: #fff; background: transparent; font-size: 9px; font-weight: 700; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.35); } .element-earth .info-chip, .element-metal .info-chip { color: #413b32; text-shadow: 0 1px 1px rgba(255,255,255,.45); } .tool-row { display: flex; align-items: center; justify-content: center; gap: 7px; } .tool-button { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 7px; border: 1px solid rgba(40,36,29,.2); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.55); cursor: pointer; } .tool-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .tool-button small { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; color: #fff; background: var(--red); font-family: Georgia, serif; font-size: 9px; line-height: 16px; text-align: center; } .tray-spacer { height: var(--tray-height); } .tray-dock { position: fixed; left: 50%; bottom: 0; z-index: 20; width: 100%; max-width: 1120px; min-height: var(--tray-height); padding: 10px 14px 12px; padding-bottom: calc(12px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); border-top: 1px solid rgba(54,46,34,.22); background: rgba(247,241,229,.97); box-shadow: 0 -8px 28px rgba(42,34,23,.16); transform: translateX(-50%); } .tray-meta { min-height: 36px; margin-bottom: 7px; } .tray-meta > span { color: var(--muted); font-size: 11px; font-weight: 700; } .tray-meta > span { width: 48px; text-align: right; } .tray { display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 4px; padding: 5px; border: 1px solid rgba(54,46,34,.22); border-radius: 9px; background: #ded1b9; transition: box-shadow .2s ease, background .2s ease; } .tray.is-warning { box-shadow: 0 0 0 2px rgba(201,155,74,.55); } .tray.is-danger { background: #e3c3b8; box-shadow: 0 0 0 2px rgba(150,57,47,.72); animation: dangerPulse .7s ease infinite; } .tray-cell { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px dashed rgba(72,61,46,.22); border-radius: 5px; background: rgba(255,255,255,.36); } .tray-card { border-style: solid; background: #f9f5ec; box-shadow: 0 2px 5px rgba(40,30,20,.18); cursor: pointer; animation: trayIn .24s ease both; } .tray-card:active { transform: translateY(1px); } .tray-card img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .tray-card.is-eliminating { animation: eliminate .38s ease forwards; } .tray-element { position: absolute; top: 0; left: 0; z-index: 2; display: flex; align-items: center; justify-content: center; width: 25%; height: 16.5%; color: #fff; background: transparent; font-family: "Songti SC", STSong, serif; font-size: 9px; font-weight: 700; line-height: 1; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.35); } .element-earth .tray-element, .element-metal .tray-element { color: #413b32; text-shadow: 0 1px 1px rgba(255,255,255,.45); } .burst-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 900; overflow: hidden; pointer-events: none; } .element-burst { position: absolute; left: 50%; bottom: 20px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--burst-color) 35%, transparent 72%); animation: burst .55s ease-out forwards; } .toast { position: fixed; left: 50%; top: 42%; z-index: 1400; max-width: 85%; padding: 10px 18px; border: 1px solid #dfbd70; border-radius: 5px; color: #fff8dd; background: rgba(77,42,34,.95); box-shadow: 0 8px 26px rgba(25,18,12,.3); font-family: "Songti SC", STSong, serif; font-size: 17px; letter-spacing: .08em; text-align: center; transform: translate(-50%, -50%); animation: toast .95s ease both; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(25,23,19,.74); } .modal-card { position: relative; width: 100%; max-width: 560px; max-height: 84vh; padding: 25px; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; background: #f9f4e9; box-shadow: 0 20px 60px rgba(0,0,0,.3); } .modal-card h2 { margin: 5px 38px 14px 0; font-family: "Songti SC", STSong, serif; font-size: 24px; } .modal-close { position: absolute; top: 15px; right: 15px; font-size: 21px; line-height: 28px; } .modal-body { color: #565046; font-size: 14px; line-height: 1.7; } .modal-body p { margin: 0 0 10px; } .rule-highlight { padding: 9px 12px; border-left: 3px solid var(--red); color: var(--red); background: rgba(150,57,47,.07); font-family: "Songti SC", STSong, serif; font-size: 18px; font-weight: 700; } .rule-examples { margin: 10px 0; padding: 10px 12px 1px; border-radius: 7px; background: rgba(201,155,74,.11); } .rule-examples strong { color: var(--red); } .score-details { margin-top: 10px; border-top: 1px solid rgba(70,55,37,.12); color: var(--muted); font-size: 12px; } .score-details summary { padding: 10px 2px 2px; color: var(--red); font-weight: 700; cursor: pointer; } .score-details div { margin-top: 7px; padding: 7px 9px; border-radius: 5px; background: rgba(150,57,47,.045); } .score-details p { margin: 4px 0; } .modal-body table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: center; } .modal-body th, .modal-body td { padding: 5px 2px; border: 1px solid #d8cdb9; } .modal-body th { color: #fff; background: #5d594e; } .knowledge-card { display: block; width: 210px; max-width: 72%; margin: 8px auto 14px; border-radius: 8px; box-shadow: 0 8px 24px rgba(42,31,20,.22); } .modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; } .primary-button, .secondary-button { display: block; min-width: 130px; margin: 0; padding: 11px 18px; border: 1px solid var(--red); border-radius: 5px; cursor: pointer; } .primary-button { color: #fffaf0; background: var(--red); } .secondary-button { color: var(--red); background: transparent; } .primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .55; } .is-hidden { display: none !important; } @keyframes hintPulse { 50% { transform: translateY(-5px) scale(1.04); } } @keyframes dangerPulse { 50% { box-shadow: 0 0 0 4px rgba(150,57,47,.25); } } @keyframes trayIn { from { transform: translateY(-18px) scale(.82); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } } @keyframes eliminate { 35% { transform: translateY(-7px) scale(1.05); box-shadow: 0 0 18px var(--element-color); } to { transform: scale(.1); opacity: 0; } } @keyframes burst { from { transform: scale(.2); opacity: 1; } to { transform: scale(12); opacity: 0; } } @keyframes toast { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.75); } 20%,72% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-62%) scale(1.04); } } @media (min-width: 720px) { :root { --tray-height: 178px; } .app-shell { padding-left: 30px; padding-right: 30px; } .pile-card { border-radius: 9px; } .rule-button { font-size: 18px; } .tray-dock { padding-left: 30px; padding-right: 30px; } .tray { max-width: 720px; margin: 0 auto; grid-gap: 7px; } } @media (max-width: 430px) { .start-panel { padding: 25px 15px 21px; } .start-card-row { opacity: .13; } .start-bg-card { width: 43px; margin-right: 12px; } .start-bg-element { font-size: 7px; } .start-panel h1 { font-size: 34px; } .mode-grid { grid-template-columns: 1fr; } .mode-card { min-height: 70px; padding: 11px 13px; } .custom-options { grid-template-columns: 1fr; } .app-shell { padding-left: 9px; padding-right: 9px; } .hero h1 { font-size: 22px; } .rule-button { padding: 5px 7px; font-size: 13px; } .pile-board { height: 445px; } .pile-board.level-1 { height: 475px; } .tray-dock { padding-left: 8px; padding-right: 8px; } .modal-card { padding: 22px 15px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .start-card-track { animation: none !important; } }