@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--paper:#f7f6f0;--ink:#30362d;--muted:#69705f;--olive:#526444;--line:#d9dbcf;--white:#fffef9;--red:#b55233;--lilac:#e5ddef;--sage:#e2e8d6;--yellow:#f2eebe;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,a{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button{border:0}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:4px}button,a{transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(.97)}.skip{position:fixed;top:-70px;background:white;padding:15px;z-index:99}.skip:focus{top:5px}.header{max-width:1320px;margin:auto;padding:22px 36px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:600;font-size:21px;letter-spacing:-.7px}.brand-mark{font-family:Georgia;font-size:48px;color:var(--olive);line-height:1}.brand small{display:block;font-size:8px;letter-spacing:1.6px;font-weight:500;margin-top:6px;color:var(--muted)}.backlink{margin-left:auto;font-size:12px}.coach-toggle{display:flex;align-items:center;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:30px;background:var(--white);font-size:12px;white-space:nowrap}.coach-toggle b{font-weight:500}.switch-track{width:30px;height:18px;background:var(--olive);border-radius:20px;padding:3px;display:inline-block;margin-right:3px}.switch-track i{width:12px;height:12px;display:block;border-radius:50%;background:white;transform:translateX(12px);transition:transform .2s}.coach-toggle[aria-checked=false] .switch-track{background:#aaa99d}.coach-toggle[aria-checked=false] i{transform:translateX(0)}.app-shell{max-width:1250px;margin:auto;padding:0 36px}.nav{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-top:6px}.nav a{font-size:12px;padding:19px 0 15px;color:var(--muted);border-bottom:2px solid transparent;display:flex;gap:8px;align-items:center}.nav a span{font-size:19px}.nav a.active{color:var(--olive);border-color:var(--olive);font-weight:700}main{min-height:65vh;padding:38px 0 40px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:600;color:var(--muted);text-transform:uppercase}.hero{display:grid;grid-template-columns:1fr 310px;align-items:center;gap:20px;margin:10px 0 34px}h1,h2,h3{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400}h1{font-size:clamp(43px,5.4vw,68px);line-height:1.03;letter-spacing:-1.4px;margin:17px 0 20px}h1 em,h2 em{color:#667750;font-weight:400}p{font-size:14px;line-height:1.75}p.sub{color:var(--muted);max-width:510px;margin:0}h2{font-size:34px;line-height:1.1;margin:10px 0 18px}h3{font-size:27px;line-height:1.15;margin:9px 0 12px}.doodle{height:210px;position:relative;display:grid;place-items:center;background-image:radial-gradient(#c2c5b4 .7px,transparent .7px);background-size:16px 16px;border-radius:50%}.mascot{position:relative;width:105px;height:143px;background:var(--white);border:2px solid var(--ink);border-radius:8px;transform:rotate(12deg);box-shadow:6px 7px 0 #dbe3ca}.mascot .pip{position:absolute;font:29px Georgia;color:var(--red);left:9px;top:4px}.mascot .face{font:26px Georgia;position:absolute;top:55px;left:22px;letter-spacing:8px}.mascot .smile{position:absolute;top:78px;left:43px;font-size:23px;color:var(--red)}.doodle .spark{position:absolute;top:19px;left:50px;font:40px Georgia;color:#9c9455}.doodle .note{position:absolute;bottom:0;right:0;transform:rotate(-8deg);font:italic 17px Georgia;color:#737d4a}.home-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.paper{background:var(--white);border:1px solid var(--line);border-radius:7px;box-shadow:0 7px 20px #2f392508}.feature{background:var(--sage);padding:30px;position:relative;overflow:hidden}.feature h2{font-size:40px;max-width:420px}.feature p{max-width:450px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:46px;padding:12px 20px;border-radius:5px;font-size:13px;font-weight:600}.primary{background:var(--olive);color:#fff}.primary.terra{background:var(--red)}.secondary{background:var(--white);border:1px solid var(--line)}.text-btn{background:none;color:var(--olive);text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:10px 0;min-height:40px}.buttons{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:22px}.note-card{padding:26px;background:#f1edc4;transform:rotate(1.1deg);position:relative}.note-card:before{content:'';position:absolute;top:-10px;left:40%;width:65px;height:22px;background:#dfdcc7aa;transform:rotate(-6deg)}.note-card p{font-family:Georgia;font-size:19px;line-height:1.5}.note-card .eyebrow{font-family:'DM Sans',sans-serif}.section-title{display:flex;justify-content:space-between;align-items:center;margin:36px 0 16px;gap:15px}.section-title h2{font-size:30px;margin:0}.section-title span,.fine{font-size:11px;color:var(--muted);line-height:1.7}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.lesson-card{padding:22px;text-align:left;display:block;width:100%;background:var(--white)}.lesson-card:hover{transform:translateY(-3px)}.lesson-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.lesson-icon{font:27px Georgia;width:43px;height:43px;display:grid;place-items:center;border-radius:9px;background:var(--sage);color:var(--olive)}.lesson-card:nth-child(3n+2) .lesson-icon{background:var(--lilac)}.lesson-card:nth-child(3n) .lesson-icon{background:var(--yellow)}.lesson-card h3{font-size:26px;margin-top:18px}.lesson-card p{font-size:12px;color:var(--muted);margin:0}.progress{height:5px;background:#e2e4d8;border-radius:5px;margin:16px 0 8px;overflow:hidden}.progress i{display:block;height:100%;background:#829369;border-radius:5px}.intro-row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.intro-row h1{font-size:52px;margin-bottom:10px}.intro-row .sub{max-width:650px}.lesson-view{max-width:760px;margin:0 auto}.lesson-view h1{font-size:52px}.reading{padding:30px 35px}.reading p{font-size:15px}.tag{display:inline-block;font-size:9px;letter-spacing:1.3px;background:var(--sage);padding:5px 9px;border-radius:3px;font-family:'DM Sans',sans-serif;font-weight:600}.tag.agreement{background:var(--lilac)}.tag.guideline{background:var(--yellow)}details{border-top:1px solid var(--line);padding:14px 0;margin-top:15px}summary{cursor:pointer;font-size:13px;font-weight:600;min-height:25px}details p{font-size:13px!important;color:var(--muted);margin-bottom:0}.question{padding:25px 30px;margin-top:22px;background:#eeefE5}.options{display:grid;gap:9px;margin-top:18px}.option{background:var(--white);border:1px solid var(--line);padding:14px 16px;border-radius:5px;text-align:left;font-size:14px;min-height:48px}.option.selected{border:2px solid var(--olive);padding:13px 15px;background:#e7eddd}.option.wrong{border-color:#b55233;background:#f5e8df}.feedback{border-left:3px solid var(--olive);padding:12px 16px;background:#e6ebdc;font-size:14px;line-height:1.65;margin-top:16px}.feedback.retry{background:#f5e8df;border-color:var(--red)}.lab-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:24px}.lab-hand{padding:26px}.suit-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:13px}.suit-label{width:20px;font:25px Georgia}.red{color:#b43d39}.playing-card{width:48px;height:67px;border:1px solid #c8c9bc;border-radius:5px;background:#fffef9;box-shadow:0 2px 3px #26331b16;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-family:Georgia,serif;font-size:21px;flex-shrink:0;line-height:1.05;position:relative}.playing-card small{font-size:20px}.playing-card.selected{transform:translateY(-9px);outline:2px solid var(--red);outline-offset:1px;background:#fff8e8}.playing-card:disabled{opacity:.42}.playing-card.recommend{box-shadow:0 0 0 2px #81965f}.card-back{background:repeating-linear-gradient(45deg,#d6cce4 0 3px,#e6dff0 3px 6px);border:3px solid #fffef9;width:34px;height:46px;border-radius:4px;box-shadow:0 1px 3px #0002}.auction{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;border:1px solid var(--line);border-radius:5px;margin:18px 0}.auction div{padding:10px 4px;font-size:13px;border-bottom:1px solid var(--line)}.auction .auction-seat{background:#eeefe5;font-size:10px;color:var(--muted)}.auction .you{background:#e5e9da;font-weight:600}.bid-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bid-options button{font-size:22px;text-align:center}.bubble{padding:23px;background:var(--lilac);border:1px solid #d3c8df;border-radius:8px;line-height:1.7;font-size:14px;margin-top:20px;position:relative}.bubble .eyebrow{display:block;font-size:9px;margin-bottom:8px}.lab-controls{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:12px}.hint-off{padding:20px;background:#eeefe5;border:1px dashed #c6cbb7;border-radius:5px;color:var(--muted);font-size:13px;line-height:1.7;margin-top:20px}.play-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap}.play-toolbar h1{font-size:43px;margin:0}.deal-select{display:flex;gap:7px;flex-wrap:wrap}.deal-select button{font-size:11px;padding:10px 13px;border:1px solid var(--line);border-radius:20px;background:var(--white);min-height:40px}.deal-select button.active{background:var(--olive);color:white;border-color:var(--olive)}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.table-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px;font-size:12px}.contract{padding:9px 13px;background:#e6dded;border-radius:4px;font-weight:600}.bridge-table{background:#dfe6d2;border:1px solid #bcc6a9;border-radius:22px;padding:19px;position:relative;background-image:radial-gradient(#9ba98b25 .6px,transparent .6px);background-size:5px 5px}.seat-label{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#4f6040;text-align:center;margin-bottom:10px}.hand{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;padding:4px 0;min-height:75px}.hand .playing-card{width:40px;height:57px;font-size:18px}.hand .playing-card small{font-size:17px}.hand.turn{outline:1px dashed #788d5c;outline-offset:7px;border-radius:4px}.table-center{display:grid;grid-template-columns:50px 1fr 50px;align-items:center;gap:8px;margin:15px 0;min-height:205px}.opponent{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:9px;color:#526444}.trick-field{position:relative;min-height:205px}.trick-slot{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%)}.trick-slot.N{top:18%;left:50%}.trick-slot.E{top:50%;left:78%}.trick-slot.S{top:82%;left:50%}.trick-slot.W{top:50%;left:22%}.trick-slot .playing-card{width:41px;height:58px;font-size:19px}.trick-slot.winner .playing-card{outline:2px solid var(--olive);outline-offset:2px}.trick-empty{font-family:Georgia;font-size:18px;color:#869476;text-align:center;position:absolute;top:40%;width:100%;line-height:1.5}.table-actions{margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.status-line{font-size:13px;color:var(--olive);min-height:25px;margin:0 0 12px;font-weight:500}.coach-panel{padding:23px;align-self:start}.coach-panel h2{font-size:28px}.coach-panel p{font-size:13px}.coach-panel .feedback{font-size:12px;padding:12px}.coach-panel details{margin-top:12px}.memory-grid{display:grid;grid-template-columns:20px 1fr;gap:10px;font-size:12px;line-height:1.8;margin-top:14px}.memory-grid b{font:20px Georgia}.chip{display:inline-block;background:#e9ecdf;padding:2px 7px;border-radius:4px;font-size:11px}.tiny-note{font-family:Georgia;font-style:italic;color:#788362;font-size:16px;margin:20px 0}.review-list{display:grid;gap:13px}.review-row{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.review-row h3{font-size:24px;margin:3px 0}.review-row p{font-size:12px;margin:0;color:var(--muted)}.review-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.empty{padding:32px;border:1px dashed #c7ccbb;border-radius:6px}.empty p{color:var(--muted)}.result{background:#eeefdf;padding:28px;margin-top:24px;border:1px solid var(--line);border-radius:7px}.result h2{font-size:36px}.history-row{display:grid;grid-template-columns:54px repeat(4,1fr) 50px;gap:4px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.history-head{font-size:9px;color:var(--muted)}.glossary{padding:25px}.glossary details p{font-size:13px}.glossary summary{font-size:14px}footer{max-width:1250px;margin:auto;padding:25px 36px 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:10px;color:var(--muted)}footer button{background:none;font-size:10px;text-decoration:underline;text-underline-offset:3px;padding:0}dialog{border:1px solid #bbbfae;border-radius:9px;padding:0;width:min(520px,92vw);color:var(--ink);background:var(--white);max-height:85dvh;overflow:auto}dialog::backdrop{background:#2d352b70;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;padding:10px 22px;border-bottom:1px solid var(--line);background:#eeefe5;font-size:9px;letter-spacing:1px}.dialog-top button{font-size:26px;background:none;width:40px;height:40px}.dialog-body{padding:25px}.setting{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);font-size:14px}.setting input{width:22px;height:22px;accent-color:var(--olive)}.source-links{font-size:11px;line-height:1.7;color:var(--muted);margin-top:30px}.source-links a{text-decoration:underline}.lesson-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.suit-summary{font-size:12px;color:var(--muted);margin-top:18px;line-height:1.8}.badge{background:var(--lilac);padding:7px 10px;border-radius:4px;font-size:10px}.home-note{margin:25px 0 0;font-size:11px;color:var(--muted);line-height:1.8}.lesson-card.done .lesson-icon{background:#dde7d0}.suit-divider{width:9px}.practice-label{font-size:11px;color:var(--muted);margin-top:8px}
@media(min-width:1400px){main{padding-top:50px}.hero{margin-bottom:45px}}
@media(max-width:1000px){.play-layout{grid-template-columns:minmax(0,1fr)}.coach-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.coach-panel>.eyebrow,.coach-panel>h2{grid-column:1/-1}.lesson-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr 230px}.lab-grid{grid-template-columns:1.1fr 1fr}.nav{justify-content:space-between;gap:14px}}
@media(max-width:650px){.header{padding:15px 18px;gap:8px}.brand{font-size:17px;gap:8px;letter-spacing:-.5px}.brand small{font-size:6px;letter-spacing:.9px}.brand-mark{font-size:37px}.backlink{display:none}.coach-toggle{margin-left:auto;padding:9px;font-size:11px}.app-shell{padding:0 19px}.nav{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fffef9f5;backdrop-filter:blur(10px);border-top:1px solid var(--line);border-bottom:0;margin:0;padding:4px 10px max(7px,env(safe-area-inset-bottom));gap:0;justify-content:space-around}.nav a{flex-direction:column;gap:4px;padding:8px 5px 6px;font-size:9px;border:0;border-radius:7px;min-width:51px;min-height:50px}.nav a span{font-size:21px}.nav a.active{background:#e9eddf}.nav a:first-child{font-size:0}.nav a:first-child:after{content:'Home';font-size:9px}.nav a:first-child span{font-size:21px}.nav a:first-child{gap:0}.nav a:first-child:after{margin-top:4px}main{padding:27px 0 30px}.hero{grid-template-columns:1fr;position:relative;margin:4px 0 27px;gap:0}.hero h1{font-size:48px;max-width:300px;margin-bottom:15px}.hero .sub{font-size:13px;max-width:295px}.doodle{position:absolute;width:88px;height:110px;right:-3px;top:28px;opacity:.95;background:none}.mascot{width:54px;height:77px;border-width:1.5px;box-shadow:3px 4px 0 #dbe3ca}.mascot .pip{font-size:18px;left:5px}.mascot .face{font-size:15px;left:10px;top:30px;letter-spacing:4px}.mascot .smile{font-size:14px;left:20px;top:42px}.doodle .spark{font-size:25px;left:-2px;top:0}.doodle .note{display:none}.hero h1{max-width:240px;font-size:44px}.hero .eyebrow{font-size:8px}.home-grid{grid-template-columns:1fr;gap:23px}.feature{padding:24px}.feature h2{font-size:35px}.feature p{font-size:13px}.note-card{padding:19px 23px}.note-card h3{font-size:27px}.note-card p{font-size:17px;margin:12px 0}.lesson-grid{grid-template-columns:1fr;gap:12px}.lesson-card{padding:19px;position:relative}.lesson-top{justify-content:flex-start;gap:14px}.lesson-card h3{margin:13px 0 7px;font-size:28px}.section-title{margin-top:29px}.section-title h2{font-size:28px}.section-title span{font-size:10px}.intro-row{display:block;margin-bottom:24px}.intro-row h1,.lesson-view h1{font-size:43px}.intro-row .sub{font-size:13px}.lab-grid{grid-template-columns:1fr;gap:16px}.lab-hand{padding:21px}.lab-controls{margin-top:16px}.lab-controls .fine{max-width:120px}.reading{padding:23px}.reading p{font-size:14px}.question{padding:22px}.lesson-nav{font-size:11px}.play-toolbar h1{font-size:37px}.deal-select button{font-size:10px;padding:9px 11px}.play-layout{gap:16px}.bridge-table{padding:14px 10px;border-radius:15px}.hand{gap:3px;min-height:60px;row-gap:8px}.hand .playing-card{width:34px;height:48px;font-size:16px}.hand .playing-card small{font-size:15px}.table-top{font-size:11px}.contract{padding:8px}.table-center{grid-template-columns:34px 1fr 34px;min-height:185px;margin:13px 0}.trick-field{min-height:185px}.trick-slot .playing-card{width:36px;height:50px;font-size:17px}.trick-slot.N{top:17%}.trick-slot.S{top:83%}.card-back{width:25px;height:37px}.seat-label{font-size:9px}.opponent{font-size:8px}.table-actions{margin-top:18px;gap:8px}.table-actions .primary{flex:1}.table-actions .text-btn{font-size:11px}.coach-panel{display:block;padding:22px}.status-line{font-size:12px;min-height:22px}.review-columns{grid-template-columns:1fr}.review-row{padding:17px}.review-row h3{font-size:22px}footer{padding:19px 20px 96px;font-size:9px;gap:12px}footer button{font-size:10px}.primary,.secondary{font-size:12px;padding:12px 16px}.result{padding:23px}.history-row{font-size:10px;grid-template-columns:45px repeat(4,1fr) 40px}.history-head{font-size:8px}.source-links{font-size:10px}.suit-row{gap:5px}.playing-card{width:43px;height:60px;font-size:20px}.home-note{font-size:10px}}
@media(max-width:360px){.brand small{display:none}.brand{font-size:15px}.hero h1{font-size:40px;max-width:210px}.doodle{right:-10px}.app-shell{padding:0 14px}.hand .playing-card{width:31px;height:46px}.coach-toggle{font-size:10px}.table-center{grid-template-columns:28px 1fr 28px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep every hand readable, even when it is not that hand’s turn. */
.playing-card:disabled{opacity:.68}
@media(max-width:650px){.hand .playing-card{width:40px;height:56px;font-size:18px}.hand .playing-card small{font-size:17px}}
@media(max-width:360px){.hand .playing-card{width:36px;height:52px}}
