.tt-difficulty-help{margin:0;padding:12px 20px;background:#fff8e5;color:#5a4a30;font:600 .82rem/1.65 system-ui,sans-serif;border-bottom:1px solid #d8c69b}
.tt-engine-credit{padding:9px 20px;background:#f4f0e4;color:#665b43;font:500 .75rem/1.6 system-ui,sans-serif}.tt-engine-credit p{margin:8px 0 0}.tt-engine-credit a{color:#185a49;text-decoration:underline}
.mj-assist-toggle{display:flex;align-items:center;gap:7px;white-space:nowrap}.mj-assist-toggle input{accent-color:#207257;width:17px;height:17px}
.mj-dora-note{margin:0 0 12px;padding:8px 12px;border:1px solid #c7dacb;border-radius:9px;background:#f2f6e9;color:#2c5743;font:600 .74rem/1.65 system-ui,sans-serif}
#mjSolo .tt-actions{flex-wrap:wrap;gap:10px}#mjSolo .tt-actions label{display:flex;align-items:center;gap:7px}#mjSolo .tt-actions select{max-width:120px}
#mjSolo .mj-tile{position:relative;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;line-height:1.1}#mjSolo .mj-tile small{font:700 10px/1.2 system-ui,sans-serif;letter-spacing:0;color:#214d40;margin-top:2px}#mjSolo .mj-tile.is-study-selected{box-shadow:0 0 0 3px #dbad42,0 5px 12px #172b2325;transform:translateY(-4px)}
.mj-study{margin:18px 16px 20px;background:#fffdf5;color:#213f35;border:1px solid #c8d8c7;border-radius:18px;overflow:hidden;box-shadow:0 5px 18px #122d2510}.mj-study[hidden]{display:none}.mj-study-heading{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#1c5645;color:#fff}.mj-study-heading span{display:block;color:#c4ddbd;font:700 .6rem/1.5 system-ui;letter-spacing:.12em}.mj-study-heading h3{margin:3px 0 0;font-size:1.1rem}.mj-study-heading>strong{font:700 .8rem/1.5 system-ui;text-align:right;max-width:55%;background:#ffffff12;border:1px solid #ffffff25;border-radius:10px;padding:8px 12px}
.mj-study-intro{margin:14px 20px;color:#536453;font:500 .8rem/1.7 system-ui}.mj-study-candidates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 20px}.mj-study-candidate{border:1px solid #cedbca;border-radius:12px;background:#f4f7ed;padding:12px;min-width:0}.mj-study-candidate.is-active{border-color:#af8c35;background:#fff5d7;box-shadow:inset 0 0 0 1px #af8c35}.mj-study-candidate>small{font:700 .65rem/1.4 system-ui;color:#62755c}.mj-study-candidate h4{margin:5px 0;display:flex;align-items:center;gap:8px;font-size:1rem}.mj-study-candidate h4 span{font-size:2.2rem;line-height:1.2}.mj-study-candidate p{font:600 .75rem/1.6 system-ui;margin:5px 0;color:#495d46}.mj-study-candidate button{margin-top:5px;border:1px solid #668b64;background:white;border-radius:8px;color:#245b3f;font:700 .75rem/1.5 system-ui;padding:7px 10px;cursor:pointer;width:100%}
.mj-study-selector{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 20px 12px;font:700 .8rem system-ui}.mj-study-selector select{border:1px solid #aabd9d;border-radius:8px;padding:9px 12px;background:white;color:#214934;max-width:100%}.mj-study-detail{padding:0 20px}.mj-study-detail h4{font-size:1rem;margin:14px 0 8px}.mj-study-detail p{font:500 .8rem/1.8 system-ui;margin:8px 0;color:#435542}.mj-study-tiles{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.mj-study-tile{display:flex;align-items:center;gap:4px;background:#eef3e6;border:1px solid #d1ddc8;border-radius:8px;padding:5px 8px;font:700 .72rem/1.4 system-ui}.mj-study-tile .face{font-size:1.8rem;line-height:1.2}.mj-study-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}.mj-study-role{border:1px solid #dedac0;border-left:4px solid #c8a447;border-radius:8px;background:#fffdf2;padding:12px}.mj-study-role h5{font:700 .9rem/1.5 system-ui;margin:0 0 5px}.mj-study-role p{margin:0}.mj-study-wait{padding:10px 12px;background:#edf6ef;border-radius:10px;margin:8px 0}.mj-study-alert{padding:10px 12px;background:#fff0da;border:1px solid #e2bc80;border-radius:10px;color:#794816!important}.mj-study-discard{display:block!important;margin:16px 20px!important;min-height:44px;max-width:calc(100% - 40px)}.mj-study-rules{padding:14px 20px;background:#f3f4e9;border-top:1px solid #d6ddc8;font:500 .75rem/1.8 system-ui;color:#53634e}.mj-study-rules summary{font-weight:700;cursor:pointer}.mj-study-rules p{margin:10px 0}
@media(max-width:600px){.tt-difficulty-help{padding:10px 13px;font-size:.76rem}.tt-engine-credit{padding:8px 13px}.mj-study{margin:12px 8px}.mj-study-heading{padding:13px;align-items:flex-start;flex-direction:column;gap:9px}.mj-study-heading>strong{max-width:100%;text-align:left;padding:6px 9px}.mj-study-intro{margin:12px 13px}.mj-study-candidates{padding:0 13px;grid-template-columns:1fr;gap:8px}.mj-study-candidate{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;padding:10px 12px}.mj-study-candidate>small{grid-column:1/-1}.mj-study-candidate h4{margin:0;grid-row:2/4}.mj-study-candidate h4 span{font-size:2rem}.mj-study-candidate p{margin:0;font-size:.72rem}.mj-study-candidate button{grid-column:2;padding:6px}.mj-study-selector{margin:14px 13px 10px}.mj-study-detail{padding:0 13px}.mj-study-role-grid{grid-template-columns:1fr}.mj-study-discard{margin:14px 13px!important;max-width:calc(100% - 26px)}.mj-study-rules{padding:12px 13px}#mjSolo .tt-topbar{align-items:flex-start}#mjSolo .tt-actions{gap:9px;justify-content:flex-start}#mjSolo .tt-actions label{font-size:.75rem}}
.native-demo-frame #mjSoloAssist{display:none}
.mj-goal-roles{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:12px}.mj-goal-intro{padding:10px 12px;border-radius:9px;background:#edf4e9;color:#315a43!important}.mj-goal-role{min-width:0;padding:16px;border-left-color:#367a57;background:#fffef8;border-radius:13px}
.mj-goal-section-heading{scroll-margin-top:95px}.mj-goal-jump{padding:9px 12px;border:1px solid #2b7453;border-radius:8px;background:#eaf3df;color:#23543a;font:700 .77rem/1.5 system-ui;cursor:pointer}.mj-goal-jump:disabled{opacity:.5;cursor:default}.mj-goal-jump:hover:not(:disabled){background:#dceccd}
.mj-goal-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin-bottom:7px}.mj-goal-heading h5{margin:0;font-size:1rem}.mj-goal-progress{padding:5px 9px;border:1px solid #b8d0b7;border-radius:999px;background:#eaf4e8;color:#24563c;font:700 .73rem/1.4 system-ui;white-space:nowrap}.mj-goal-caption{margin:8px 0!important;font-weight:700!important;font-size:.75rem!important;color:#48654b!important}
.mj-goal-example{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;padding:12px 10px;border:1px solid #d8e2ce;border-radius:11px;background:#edf1e5;min-width:0}.mj-goal-group{box-sizing:border-box;max-width:100%;width:max-content;min-width:0;padding:5px;border-radius:8px;background:#ffffff90;border:1px solid #dbe4d3}.mj-goal-group-name{display:block;margin:0 0 5px;color:#52694e;font:700 .63rem/1.4 system-ui}.mj-goal-group-tiles{display:flex;flex-wrap:wrap;gap:3px;min-width:0}
.mj-goal-tile{box-sizing:border-box;display:flex;flex:0 0 38px;flex-direction:column;align-items:center;justify-content:center;width:38px;min-height:78px;padding:4px 1px;border:2px solid #429269;border-bottom-width:4px;border-radius:6px;background:#f3fff3;color:#1f4c32;box-shadow:0 2px 2px #2b44351a}.mj-goal-tile .face{font-size:2rem;line-height:1.1}.mj-goal-tile .name{margin-top:4px;font:700 10px/1.25 system-ui}.mj-goal-tile .state{margin-top:3px;padding:2px 3px;border-radius:4px;background:#d9efdc;color:#245939;font:700 9px/1.2 system-ui;white-space:nowrap}.mj-goal-tile.is-needed{border-color:#d59634;border-style:dashed;background:#fff7df;color:#79490d}.mj-goal-tile.is-needed .state{background:#ffe3a4;color:#78460b}
.mj-goal-needs{margin-top:12px;padding:11px 12px;border:1px solid #e6c88c;border-radius:9px;background:#fff4d8}.mj-goal-needs h6{margin:0 0 8px;color:#785019;font:800 .8rem/1.5 system-ui}.mj-goal-need-list,.mj-goal-unused-list{display:flex;flex-wrap:wrap;gap:6px}.mj-goal-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #dbb775;border-radius:7px;background:#fffefa;color:#6c4611;line-height:1.2}.mj-goal-chip .face{font-size:1.8rem}.mj-goal-chip strong{font:700 .75rem/1.4 system-ui;white-space:nowrap}
.mj-goal-explanation{margin-top:11px!important}.mj-goal-riichi-note{margin-top:10px!important;padding:8px 10px;border-left:3px solid #d2ac58;background:#f8f0d7;color:#6a511d!important}.mj-goal-unused{margin-top:12px;border-top:1px solid #e0e3d3;padding-top:9px;color:#5b6752;font:600 .74rem/1.6 system-ui}.mj-goal-unused summary{cursor:pointer}.mj-goal-unused-list{margin-top:9px}.mj-goal-unused-list .mj-goal-chip{background:#f1f2e9;color:#64705c;border-color:#d4d9ca}
@media(max-width:600px){.mj-goal-role{padding:11px;border-left-width:3px}.mj-goal-heading h5{font-size:.94rem}.mj-goal-example{gap:7px;padding:9px 7px}.mj-goal-group{padding:4px}.mj-goal-needs{padding:10px}.mj-goal-roles{gap:13px}.mj-goal-chip{padding:4px 6px}}
@media(max-width:600px){#mjSolo .mj-hand{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;overflow:visible;padding:7px 3px 11px}#mjSolo .mj-tile{box-sizing:border-box;width:100%;min-width:0;height:64px;padding:2px;font-size:1.7rem}#mjSolo .mj-tile small{font-size:11px}#mjSolo .mj-tile.is-drawn{margin-left:0;outline:2px solid #e5bf61;outline-offset:1px}}
.native-demo-frame #mjSolo>.tt-topbar,.native-demo-frame #mjSolo>.tt-difficulty-help,.native-demo-frame #mjSolo .mj-dora-note{display:none}
@media(max-width:600px){
 .native-demo-frame #mjSolo .mj-table{padding:6px}.native-demo-frame #mjSolo .mj-hud{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:6px}.native-demo-frame #mjSolo .mj-stat{padding:5px;font-size:10px}.native-demo-frame #mjSolo .mj-stat strong{font-size:12px}
 .native-demo-frame #mjSolo .mj-river-grid{min-height:190px;grid-template-rows:repeat(3,1fr)}.native-demo-frame #mjSolo .mj-seat{min-height:52px;padding:4px}.native-demo-frame #mjSolo .mj-seat-head{font-size:9px}.native-demo-frame #mjSolo .mj-center{min-height:50px}.native-demo-frame #mjSolo .mj-center strong{font-size:1rem}
 .native-demo-frame #mjSolo .mj-hand-wrap{padding:4px}.native-demo-frame #mjSolo .mj-hand{display:flex;min-height:58px;gap:1px;padding:3px 1px 6px;overflow:visible}.native-demo-frame #mjSolo .mj-tile{flex:0 0 calc((100% - 20px)/14);min-width:0;width:auto;box-sizing:border-box;padding:0;height:44px;font-size:18px;border-bottom-width:3px}.native-demo-frame #mjSolo .mj-tile small{font-size:8px}.native-demo-frame #mjSolo .mj-tile.is-drawn{margin-left:3px}
 .native-demo-frame #mjSolo .mj-controls{gap:4px;min-height:34px;padding:3px}.native-demo-frame #mjSolo .mj-controls button{min-width:60px;min-height:30px;font-size:10px;padding:4px}.native-demo-frame #mjSolo .mj-message{min-height:18px;padding:4px;font-size:10px}
 .native-demo-frame #mjSolo .mj-result{margin:0 4px 4px;padding:8px;font-size:11px}.native-demo-frame #mjSolo .mj-result h3{font-size:14px}.native-demo-frame #mjSolo .mj-result-yaku{margin:5px 0;gap:3px}.native-demo-frame #mjSolo .mj-result-yaku span{font-size:10px;padding:3px 5px}
 .native-demo-frame #sgSolo>.tt-difficulty-help,.native-demo-frame #sgSolo>.tt-engine-credit,.native-demo-frame #sgSolo>.tt-notice{display:none}
}
