@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #344c34;
  --muted: #78806a;
  --paper: #fffdf1;
  --green: #52713f;
  --body-font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --display-font: "STKaiti", "KaiTi", "Kaiti SC", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f3e8; color: var(--ink); font-family: var(--body-font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(#c5bea5 .6px, transparent .6px); background-size: 7px 7px; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, h1 { outline-offset: 6px; }
button:focus-visible, h1:focus-visible { outline: 3px solid #275b72; }
h1:focus:not(:focus-visible) { outline: none; }
button:disabled { cursor: not-allowed; }
button svg { width: 24px; height: 24px; flex-shrink: 0; }
.page-shell { width: min(1180px, calc(100% - 80px)); margin: auto; position: relative; }
.site-header { min-height: 119px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 4px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 22px; letter-spacing: 3px; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; color: #537849; background: #e4e9d7; border: 1px solid #ccd7bb; border-radius: 14px 14px 17px 17px; transform: rotate(-5deg); }
.brand-mark svg { width: 32px; height: 32px; }
.brand small { display: block; color: #849075; font-size: 8px; letter-spacing: 2.3px; margin-top: 3px; font-weight: 600; }
.header-note { color: #7c836e; font-size: 12px; letter-spacing: 1.5px; display: flex; align-items: center; gap: 9px; }
.header-note span { width: 6px; height: 6px; border-radius: 50%; background: #9fb06e; }
.scene { min-height: 620px; position: relative; isolation: isolate; overflow: hidden; background: #edf1df; border: 1px solid #d4dcc3; border-radius: 28px; box-shadow: 0 5px 0 #e3e6d4, 0 20px 50px -35px #5c6745; }
.scene::after { content: ""; position: absolute; inset: 10px; border: 1px solid #ffffff8c; border-radius: 20px; pointer-events: none; z-index: 10; }
.landscape { position: absolute; inset: 0; overflow: hidden; z-index: -1; background: linear-gradient(180deg, #eaf0df, #f4f3da 67%); }
.sun { position: absolute; right: 17%; top: 52px; width: 89px; height: 89px; border-radius: 50%; background: #f6dfa0; box-shadow: 0 0 0 16px #f5e7b43d, 0 0 0 34px #f5e7b421; }
.cloud { position: absolute; width: 115px; height: 20px; border-radius: 50%; background: #fffdf0b3; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 60px; height: 35px; left: 17px; bottom: 0; }
.cloud::after { width: 40px; height: 27px; left: 60px; bottom: 0; }
.cloud-one { left: 12%; top: 105px; transform: rotate(-4deg); }
.cloud-two { right: 7%; top: 190px; transform: scale(.75); }
.hill { position: absolute; width: 115%; height: 285px; border-radius: 50% 50% 0 0; }
.hill-far { left: -34%; bottom: -65px; background: #d1dfb5; transform: rotate(9deg); }
.hill-mid { right: -39%; bottom: -27px; background: #c1d39e; transform: rotate(-12deg); }
.hill-near { left: -17%; bottom: -171px; width: 145%; height: 290px; background: #a9c084; transform: rotate(4deg); }
.trail { position: absolute; left: 46%; bottom: -118px; width: 153px; height: 300px; border-left: 65px solid #e8dfae; border-radius: 50%; transform: rotate(24deg); opacity: .7; }
.grass { position: absolute; width: 37px; height: 49px; border-left: 3px solid #7e9a5a; border-radius: 50%; transform: rotate(-24deg); }
.grass::after { content: ""; position: absolute; width: 28px; height: 40px; left: -1px; top: 13px; border-left: 3px solid #7e9a5a; border-radius: 50%; transform: rotate(60deg); }
.grass-one { left: 9%; bottom: 35px; }
.grass-two { right: 9%; bottom: 55px; transform: rotate(20deg) scale(.8); }
.flower { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #d5ad58; box-shadow: -7px 0 #fffbe8, 7px 0 #fffbe8, 0 -7px #fffbe8, 0 7px #fffbe8; }
.flower-one { left: 7%; bottom: 121px; transform: scale(.7); }
.flower-two { left: 32%; bottom: 38px; }
.flower-three { right: 28%; bottom: 88px; transform: scale(.65); }
.flower-four { right: 5%; bottom: 115px; transform: scale(.8); }
.flower-five { left: 18%; bottom: 62px; transform: scale(.5); }
.butterfly { color: #b6a16d; position: absolute; font-size: 24px; }
.butterfly-one { left: 25%; top: 228px; transform: rotate(-13deg); }
.butterfly-two { right: 27%; top: 293px; font-size: 18px; }
.lobby-intro { position: relative; text-align: center; padding-top: 106px; z-index: 2; }
.eyebrow { margin: 0; color: #7c8865; font-size: 11px; font-weight: 500; letter-spacing: 4px; line-height: 1.8; }
.lobby-intro .eyebrow { display: flex; justify-content: center; align-items: center; gap: 14px; }
.eyebrow span { width: 27px; height: 1px; background: #a8b38d; }
.lobby h1 { margin: 18px 0 10px; padding-left: 22px; font: 700 clamp(62px, 6.8vw, 84px)/1.3 var(--display-font); letter-spacing: 12px; color: #3e6037; text-shadow: 2px 3px 0 #ffffe1; }
.title-dot { display: inline-block; vertical-align: top; font: 700 45px/1 var(--display-font); margin-left: -4px; margin-top: 2px; color: #c6a35f; }
.intro-copy { margin: 0; font-size: 14px; color: #788467; letter-spacing: 3px; }
.story-button { min-width: 254px; min-height: 74px; margin-top: 37px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border: 1px solid #406236; border-radius: 16px; color: #fffee8; background: #5e7d47; box-shadow: 0 6px 0 #3e5b33, inset 0 2px 0 #91a977; font-size: 24px; font-weight: 700; letter-spacing: 4px; transition: transform .18s, box-shadow .18s, background .18s; }
.story-button::after { content: ""; position: absolute; inset: 6px; border: 1px solid #aac18e55; border-radius: 10px; pointer-events: none; }
.story-button svg { width: 22px; height: 22px; }
.button-sprout { font-size: 28px; color: #cad9a5; line-height: 1; }
.story-button:hover { transform: translateY(-3px); background: #66894c; box-shadow: 0 9px 0 #3e5b33, 0 12px 20px #3e5b3318, inset 0 2px 0 #91a977; }
.story-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #3e5b33; }
.lobby-hint { margin: 21px 0 0; font-size: 11px; letter-spacing: 2px; color: #899574; }
.character { position: absolute; pointer-events: none; z-index: 1; }
.character img { display: block; width: 100%; position: relative; filter: drop-shadow(0 7px 5px #4d59321c); }
.character-cow { left: 8%; bottom: 86px; width: 204px; transform: rotate(-8deg); }
.character-sheep { right: 8%; bottom: 87px; width: 174px; transform: rotate(9deg); }
.character-shadow { width: 78%; height: 19px; position: absolute; bottom: 0; left: 10%; background: #687e3e25; border-radius: 50%; filter: blur(3px); }
.character-tag { position: absolute; bottom: -18px; left: 21px; padding: 7px 12px; border: 1px solid #c2ce9d; border-radius: 6px; color: #69804e; background: #eff0ce; font-size: 10px; letter-spacing: 1px; transform: rotate(5deg); box-shadow: 0 2px 0 #a3b78344; }
.scene-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 2px; color: #5c7448; }
.tiny-sprout { font-size: 21px; margin-right: 8px; vertical-align: -2px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 28px 4px 30px; color: #979a85; font-size: 10px; letter-spacing: 1.3px; }
.footer-flower { color: #acb48c; font-size: 19px; }
.screen-bar { display: flex; justify-content: space-between; align-items: center; padding: 30px 34px 0; gap: 16px; position: relative; z-index: 2; }
.back-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 12px 7px 9px; border: 1px solid #bdc9a9; border-radius: 9px; background: #fffdf170; color: #637751; font-size: 12px; transition: background .2s; }
.back-button svg { width: 18px; height: 18px; }
.back-button:hover { background: #fffdf1; }
.chapter-note { font-size: 10px; color: #7f8c6b; letter-spacing: 1.6px; }
.screen-heading { text-align: center; margin-top: 45px; }
.screen-heading h1, .detail-content h1 { margin: 12px 0; font: 700 42px/1.3 var(--display-font); letter-spacing: 5px; color: #45633c; }
.screen-heading > p:last-child { color: #818b70; font-size: 12px; letter-spacing: 1.5px; }
.selection .landscape { opacity: .65; }
.level-card { display: flex; align-items: center; position: relative; z-index: 1; width: min(520px, calc(100% - 80px)); min-height: 157px; margin: 37px auto 0; padding: 25px 28px; text-align: left; background: var(--paper); border: 1px solid #bdcba3; border-radius: 18px; color: var(--ink); box-shadow: 0 5px 0 #c5d1b0, 0 12px 25px #6b805a0d; transition: transform .2s, box-shadow .2s; }
.level-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid #e8ead7; border-radius: 13px; pointer-events: none; }
.level-card:hover { transform: translateY(-4px); box-shadow: 0 9px 0 #c5d1b0, 0 16px 30px #6b805a15; }
.level-card:active { transform: translateY(2px); box-shadow: 0 3px 0 #c5d1b0; }
.level-marker { width: 79px; height: 79px; flex-shrink: 0; background: #e4eacb; border: 1px solid #ccd7ad; border-radius: 50%; display: grid; place-items: center; position: relative; margin-right: 25px; }
.level-marker > span:first-child { font: italic 34px/1 Georgia, serif; color: #7a8c55; }
.marker-leaf { width: 21px; height: 12px; border: 1px solid #8ba764; background: #a9c184; position: absolute; top: 1px; right: -2px; border-radius: 0 80% 0 80%; transform: rotate(-25deg); }
.level-card-copy { display: flex; flex-direction: column; gap: 9px; }
.card-kicker { color: #99a27b; font-size: 10px; letter-spacing: 2px; }
.level-name { font-size: 22px; font-weight: 700; letter-spacing: 3px; }
.card-description { font-size: 11px; color: #92977d; letter-spacing: .6px; }
.level-card-arrow { margin-left: auto; padding-left: 18px; color: #7f9461; }
.level-path { position: absolute; left: calc(50% - 55px); top: 390px; height: 140px; width: 90px; border-left: 2px dashed #9eb18188; transform: rotate(27deg); border-radius: 50%; }
.selection-footnote { text-align: center; font-size: 11px; letter-spacing: 1.5px; color: #788c60; margin: 87px 20px 0; position: relative; }
.details .landscape { opacity: .45; }
.detail-paper { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; width: min(838px, calc(100% - 100px)); margin: 34px auto 58px; padding: 35px; background: #fffdf3ed; border: 1px solid #d0d6ba; border-radius: 20px; box-shadow: 0 5px 0 #cfd8bc66, 0 18px 35px #667f4e0a; position: relative; }
.thumbnail-wrap { display: flex; flex-direction: column; }
.level-thumbnail { flex: 1; min-height: 270px; background: #f1f0e4; border: 1px dashed #d6d5bf; border-radius: 11px; box-shadow: inset 0 0 0 7px #f8f7ec; }
.deal-thumbnail { position: relative; overflow: hidden; padding: 18px 12px; border-style: solid; background: #d7e3b7; box-shadow: inset 0 0 0 7px #edf3d8; }
.thumbnail-contract { position: absolute; top: 14px; left: 0; right: 0; color: #536741; font-size: 15px; font-weight: 700; letter-spacing: 2px; text-align: center; }
.thumbnail-hand { position: absolute; left: 10px; right: 10px; display: flex; align-items: flex-start; gap: 7px; color: #617550; font-size: 10px; font-weight: 700; }
.thumbnail-hand > div { display: flex; flex-wrap: wrap; gap: 2px; }
.thumbnail-north { top: 51px; }
.thumbnail-south { bottom: 17px; }
.thumbnail-card { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 30px; border: 1px solid #c7c9b8; border-radius: 3px; background: #fff; box-shadow: 0 1px 0 #aeb8a1; font-size: 9px; font-weight: 700; }
.thumbnail-lead { position: absolute; top: 50%; left: calc(50% - 31px); transform: translate(-50%, -50%); display: grid; place-items: center; width: 46px; height: 52px; border: 1px solid #c7c9b8; border-radius: 5px; background: #fff; box-shadow: 0 2px 0 #aeb8a1; color: #36493b; font-size: 14px; font-weight: 700; }
.thumbnail-caption { font-size: 10px; color: #aaa993; letter-spacing: 2px; text-align: center; margin-top: 13px; }
.detail-content .eyebrow { font-size: 10px; letter-spacing: 2px; }
.detail-content h1 { font-size: 35px; letter-spacing: 3px; margin: 9px 0; }
.detail-subtitle { font-size: 11px; color: #92977e; letter-spacing: .7px; margin: 0 0 21px; }
.tier-list { margin: 0 0 24px; }
.tier-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eeecdc; }
.tier-row dt { color: #7b826d; font-size: 12px; letter-spacing: 1px; }
.tier-row dd { margin: 0; }
.tier-badge { --badge-bg: #eee; --badge-text: #667; --badge-border: #ddd; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 77px; padding: 5px 12px; border: 1px solid var(--badge-border); color: var(--badge-text); background: var(--badge-bg); border-radius: 7px; font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .8px; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.tier-deep-green { --badge-bg: #dce9db; --badge-text: #295237; --badge-border: #acc2a6; }
.tier-green { --badge-bg: #edf3de; --badge-text: #648643; --badge-border: #d5e2bb; }
.tier-yellow { --badge-bg: #fbf0ce; --badge-text: #a0822e; --badge-border: #ebdcab; }
.tier-blue { --badge-bg: #e1eef7; --badge-text: #4c7b9d; --badge-border: #bfd7e6; }
.tier-pink { --badge-bg: #fae7e9; --badge-text: #b76c7d; --badge-border: #edcbd2; }
.tier-rainbow { --badge-bg: linear-gradient(110deg, #f8dce2, #f8e9bf 30%, #e0efcd 52%, #d5eaf4 75%, #e9dff5); --badge-text: #655673; --badge-border: #d8c8df; }
.tier-neutral { --badge-bg: #eeeee8; --badge-text: #777b70; --badge-border: #d6d8ce; }
.start-button { width: 100%; height: 48px; border: 1px solid #d5d8c6; border-radius: 10px; background: #e5e7da; color: #9da68b; box-shadow: 0 3px 0 #d6daca; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; letter-spacing: 3px; }
.start-button:disabled { opacity: .72; filter: saturate(.55); }
.start-button:not(:disabled) { border-color: #9a7228; background: linear-gradient(180deg, #f4d477, #c99a35); color: #fff9df; box-shadow: 0 4px 0 #89611e, inset 0 2px 0 #fff4bd; text-shadow: 0 1px 0 #7b5719; transition: transform .18s, box-shadow .18s, background .18s; }
.start-button:not(:disabled):hover { transform: translateY(-2px); background: linear-gradient(180deg, #ffe498, #d5a53d); box-shadow: 0 6px 0 #89611e, inset 0 2px 0 #fff4bd; }
.start-button:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 #89611e; }
.start-button svg { width: 18px; height: 18px; }
.start-note { text-align: center; font-size: 10px; letter-spacing: 1px; color: #a0a48e; margin: 13px 0 0; }
.bridge-scene { min-height: 760px; background: #e8edd8; }
.bridge-header { text-align: center; margin: 24px 220px 0; position: relative; z-index: 2; }
.bridge-header h1 { margin: 0; font: 700 34px/1.3 var(--display-font); letter-spacing: 3px; color: #45633c; }
.bridge-header p { margin: 5px 0 0; color: #788467; font-size: 12px; }
.bidding-panel { position: absolute; top: 98px; right: 42px; width: 308px; padding: 14px 16px; background: #f7e3a8; border: 1px solid #d5bd79; border-radius: 12px; box-shadow: 0 4px 0 #c6ab68; z-index: 3; }
.bidding-panel h2 { margin: 0 0 9px; color: #6b5831; font-size: 13px; letter-spacing: 2px; }
.bidding-grid { display: grid; gap: 3px; color: #594d36; font-size: 10px; }
.bidding-header, .bidding-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; align-items: center; }
.bidding-header { color: #88734a; font-size: 9px; font-weight: 700; text-align: center; }
.bidding-row { min-height: 24px; }
.bidding-call { display: grid; grid-template-columns: 1fr auto; gap: 3px; align-items: center; min-width: 0; padding: 3px 4px; border-radius: 4px; background: #fff4ca99; }
.bidding-call span { overflow: hidden; color: #8a7854; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bidding-call strong { color: #3f4c38; font-size: 11px; }
.bridge-table { position: relative; width: min(760px, calc(100% - 130px)); min-height: 575px; margin: 22px auto 0; border: 1px solid #bdcba3; border-radius: 50%; background: #b7c98eaa; box-shadow: inset 0 0 0 10px #dce5c5aa, 0 8px 0 #9eaf7a; }
.trick-score { display: inline-block; margin: 5px 0 0; padding: 6px 12px; border: 1px solid #aebd91; border-radius: 999px; background: #fffdf2cc; color: #465b39; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.player-hand { position: absolute; z-index: 2; text-align: center; }
.player-hand h2 { margin: 0 0 7px; color: #5c714b; font-size: 13px; letter-spacing: 2px; }
.player-north { top: 16px; left: 50%; transform: translateX(-50%); }
.player-south { bottom: 16px; left: 50%; transform: translateX(-50%); }
.player-west { left: 16px; top: 50%; transform: translateY(-50%); }
.player-east { right: 16px; top: 50%; transform: translateY(-50%); }
.hand-cards { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 0; max-width: none; }
.bridge-card { position: relative; z-index: var(--card-order); margin-left: -19px; }
.bridge-card:first-child { margin-left: 0; }
.bridge-card { width: 42px; min-height: 59px; padding: 2px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; }
.bridge-card-face { position: relative; display: block; width: 100%; min-height: 55px; border: 1px solid #c7c9b8; border-radius: 5px; background: #fff; box-shadow: 0 2px 0 #aeb8a1; font-size: 13px; line-height: 1; font-weight: 700; }
.trick-card-face { position: relative; display: block; width: 100%; min-height: 55px; border: 1px solid #c7c9b8; border-radius: 5px; background: #fff; box-shadow: 0 2px 0 #aeb8a1; font-size: 13px; line-height: 1; font-weight: 700; }
.card-corner { position: absolute; top: 4px; left: 4px; display: grid; justify-items: center; gap: 1px; font-size: 10px; line-height: .9; font-style: normal; }
.card-corner b { font-size: 12px; }.card-corner i { font-style: normal; font-size: 11px; }
.card-corner-bottom { top: auto; right: 4px; bottom: 4px; left: auto; transform: rotate(180deg); }
.card-pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; }
.bridge-card-suit { font-size: 13px; }
.bridge-card-rank { font-size: 14px; }
.bridge-card-playable .bridge-card-face { border-color: #6b8b57; box-shadow: 0 0 0 2px #b7cf8e, 0 3px 0 #8ba970; }
.bridge-card:not(:disabled):hover { transform: translateY(-5px); }
.bridge-card:disabled { opacity: .65; }
.card-red { color: #b35a58; }
.card-black { color: #36493b; }
.current-trick { position: absolute; left: 50%; top: 50%; width: 198px; height: 154px; transform: translate(-50%, -50%); border: 1px dashed #91a36e; border-radius: 14px; background: #e8efd5aa; text-align: center; }
.trick-card { position: absolute; width: 42px; height: 59px; }
.trick-card-face { min-height: 55px; font-size: 13px; }
.trick-north { top: 8px; left: 50%; transform: translateX(-50%); }
.trick-south { bottom: 8px; left: 50%; transform: translateX(-50%); }
.trick-west { top: 50%; left: 8px; transform: translateY(-50%); }
.trick-east { top: 50%; right: 8px; transform: translateY(-50%); }
.trick-empty { color: #8fa174; font-size: 32px; }
.bridge-result { min-height: 620px; display: grid; place-items: center; }
.result-content { text-align: center; }
.result-crown { color: #bb9950; font-size: 56px; line-height: 1; }
.result-content h1 { margin: 18px 0 7px; font: 700 40px/1.3 var(--display-font); letter-spacing: 4px; color: #45633c; }
.result-difference { margin: 0 0 28px; font-size: 46px; font-weight: 700; }
.result-green { color: #5f8c50; }
.result-red { color: #b75f5a; }
.result-back { margin: auto; }
.noscript-message { text-align: center; padding: 40px; }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) { .site-header { min-height: 145px; } .scene { min-height: 660px; } .lobby-intro { padding-top: 122px; } .screen-heading { margin-top: 63px; } .detail-paper { margin-top: 55px; } }
@media (max-width: 1000px) { .page-shell { width: calc(100% - 48px); } .scene { min-height: 600px; } .character-cow { left: 5%; width: 170px; bottom: 72px; } .character-sheep { right: 4%; width: 145px; bottom: 85px; } .detail-paper { width: calc(100% - 68px); padding: 28px; gap: 28px; } .detail-content h1 { font-size: 31px; } }
@media (min-width: 701px) and (max-height: 900px) {
  .site-header { min-height: 76px; }
  .scene { min-height: 530px; }
  .site-footer { padding: 14px 4px 16px; }
  .lobby-intro { padding-top: 64px; }
  .lobby h1 { margin: 10px 0 4px; font-size: clamp(48px, 5.6vw, 66px); }
  .story-button { min-height: 60px; margin-top: 23px; }
  .character-cow { bottom: 58px; width: 160px; }
  .character-sheep { bottom: 58px; width: 138px; }
  .screen-bar { padding-top: 18px; }
  .screen-heading { margin-top: 24px; }
  .level-card { min-height: 126px; margin-top: 20px; padding: 18px 24px; }
  .level-marker { width: 65px; height: 65px; margin-right: 18px; }
  .level-path { top: 310px; height: 105px; }
  .detail-paper { margin: 16px auto 20px; padding: 22px; gap: 26px; }
  .level-thumbnail { min-height: 210px; }
  .detail-content h1 { margin: 4px 0; }
  .detail-subtitle { margin-bottom: 11px; }
  .tier-list { margin-bottom: 14px; }
  .tier-row { padding: 7px 0; }
  .bridge-scene { min-height: 640px; }
  .bridge-header { margin-top: 14px; }
  .bidding-panel { top: 74px; padding: 9px 12px; }
  .bridge-table { min-height: 485px; margin-top: 12px; }
  .bridge-result { min-height: 530px; }
}
@media (max-width: 700px) {
  .page-shell { width: calc(100% - 28px); }
  .site-header { min-height: 90px; padding: 0 6px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand small { font-size: 6px; letter-spacing: 1.7px; }
  .header-note { font-size: 9px; letter-spacing: 0; gap: 5px; }
  .header-note span { width: 4px; height: 4px; }
  .scene { min-height: 650px; border-radius: 21px; }
  .scene::after { inset: 7px; border-radius: 15px; }
  .lobby-intro { padding-top: 102px; }
  .lobby h1 { font-size: 68px; letter-spacing: 7px; padding-left: 16px; margin-top: 23px; }
  .title-dot { font-size: 33px; }
  .lobby-intro .eyebrow { font-size: 10px; letter-spacing: 3px; }
  .intro-copy { font-size: 12px; letter-spacing: 2px; }
  .story-button { margin-top: 30px; min-width: 226px; min-height: 66px; font-size: 21px; gap: 13px; }
  .lobby-hint { font-size: 9px; letter-spacing: 1px; margin-top: 18px; }
  .sun { right: 11%; top: 46px; width: 57px; height: 57px; }
  .cloud-one { left: -4%; top: 111px; transform: scale(.7); }
  .cloud-two { right: -8%; top: 220px; transform: scale(.55); }
  .hill-far { bottom: -52px; height: 240px; width: 140%; left: -70%; }
  .hill-mid { width: 150%; right: -80%; bottom: -41px; height: 260px; }
  .hill-near { bottom: -185px; width: 180%; left: -44%; }
  .character-cow { left: 6%; width: 141px; bottom: 69px; }
  .character-sheep { right: 6%; width: 117px; bottom: 75px; }
  .character-tag { font-size: 8px; padding: 5px 8px; bottom: -16px; left: 6px; }
  .scene-caption { font-size: 9px; letter-spacing: 1px; bottom: 25px; }
  .butterfly-one { left: 9%; top: 300px; font-size: 19px; }
  .butterfly-two { right: 10%; top: 378px; }
  .flower-two { bottom: 29px; left: 23%; transform: scale(.7); }
  .flower-three { right: 44%; bottom: 79px; }
  .screen-bar { padding: 23px 23px 0; }
  .back-button { min-height: 42px; font-size: 11px; padding-right: 10px; }
  .chapter-note { font-size: 8px; letter-spacing: .4px; }
  .screen-heading { margin-top: 59px; }
  .screen-heading h1 { font-size: 37px; }
  .screen-heading > p:last-child { font-size: 11px; letter-spacing: .5px; }
  .level-card { width: calc(100% - 48px); padding: 23px 20px; margin-top: 38px; min-height: 148px; }
  .level-marker { width: 62px; height: 62px; margin-right: 18px; }
  .level-marker > span:first-child { font-size: 28px; }
  .level-name { font-size: 20px; letter-spacing: 2px; }
  .card-kicker { font-size: 9px; }
  .card-description { font-size: 9px; letter-spacing: 0; }
  .level-card-arrow { padding-left: 5px; }
  .level-card-arrow svg { width: 19px; }
  .selection-footnote { margin-top: 99px; font-size: 10px; }
  .detail-paper { grid-template-columns: 1fr; width: calc(100% - 46px); gap: 26px; margin: 24px auto 32px; padding: 22px; border-radius: 15px; }
  .level-thumbnail { min-height: 164px; }
  .thumbnail-caption { margin-top: 9px; font-size: 8px; }
  .detail-content h1 { font-size: 32px; }
  .detail-content .eyebrow { font-size: 9px; }
  .detail-subtitle { margin-bottom: 14px; }
  .tier-list { margin-bottom: 22px; }
  .tier-row { padding: 11px 0; }
  .details { min-height: 0; }
  .bridge-scene { min-height: 760px; }
  .bridge-header { margin: 25px 20px 0; }
  .bridge-header h1 { font-size: 28px; }
  .bidding-panel { top: 91px; right: 18px; width: 255px; padding: 10px 11px; }
  .bidding-header, .bidding-row { gap: 2px; }
  .bidding-call { padding: 2px; }
  .bidding-call span { display: none; }
  .bidding-call strong { margin: auto; }
  .bridge-table { width: calc(100% - 28px); min-height: 585px; margin-top: 40px; }
  .player-north { top: 16px; }
  .player-south { bottom: 16px; }
  .player-west { left: 5px; }
  .player-east { right: 5px; }
  .hand-cards { max-width: 180px; gap: 3px; }
  .bridge-card { margin-left: -15px; }
  .bridge-card { width: 34px; min-height: 50px; }
  .bridge-card-face { min-height: 46px; }
  .bridge-card-suit { font-size: 11px; }
  .bridge-card-rank { font-size: 12px; }
  .current-trick { width: 146px; height: 108px; }
  .result-content h1 { font-size: 32px; }
  .site-footer { padding: 24px 4px; font-size: 8px; letter-spacing: .3px; }
  .footer-flower { font-size: 15px; }
}
@media (max-width: 380px) { .header-note { font-size: 8px; } .brand { font-size: 16px; } .level-card { padding: 20px 16px; } .level-marker { width: 49px; height: 49px; margin-right: 13px; } .level-name { font-size: 18px; } .card-description { font-size: 8px; } .level-card-arrow { padding: 0; } .detail-paper { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
